ping

> -----Original Message-----
> From: Gcc-patches <gcc-patches-boun...@gcc.gnu.org> On Behalf Of Tamar
> Christina
> Sent: Friday, September 25, 2020 3:31 PM
> To: gcc-patches@gcc.gnu.org
> Cc: Richard Earnshaw <richard.earns...@arm.com>; nd <n...@arm.com>;
> Marcus Shawcroft <marcus.shawcr...@arm.com>
> Subject: [PATCH v2 12/16]AArch64: Add SVE2 Integer RTL patterns for
> Complex Addition, Multiply and FMA.
> 
> Hi All,
> 
> This adds implementation for the optabs for complex operations.  With this
> the following C code:
> 
>   void f90 (int _Complex a[restrict N], int _Complex b[restrict N],
>           int _Complex c[restrict N])
>   {
>     for (int i=0; i < N; i++)
>       c[i] = a[i] + (b[i] * I);
>   }
> 
> generates
> 
>   f90:
>         mov     x3, 0
>         mov     x4, 200
>         whilelo p0.s, xzr, x4
>         .p2align 3,,7
>   .L2:
>         ld1w    z0.s, p0/z, [x0, x3, lsl 2]
>         ld1w    z1.s, p0/z, [x1, x3, lsl 2]
>         cadd    z0.s, z0.s, z1.s, #90
>         st1w    z0.s, p0, [x2, x3, lsl 2]
>         incw    x3
>         whilelo p0.s, x3, x4
>         b.any   .L2
>         ret
> 
> instead of
> 
>   f90:
>         mov     x3, 0
>         mov     x4, 0
>         mov     w5, 100
>         whilelo p0.s, wzr, w5
>         .p2align 3,,7
>   .L2:
>         ld2w    {z4.s - z5.s}, p0/z, [x0, x3, lsl 2]
>         ld2w    {z2.s - z3.s}, p0/z, [x1, x3, lsl 2]
>         sub     z0.s, z4.s, z3.s
>         add     z1.s, z5.s, z2.s
>         st2w    {z0.s - z1.s}, p0, [x2, x3, lsl 2]
>         incw    x4
>         inch    x3
>         whilelo p0.s, w4, w5
>         b.any   .L2
>         ret
> 
> Bootstrapped Regtested on aarch64-none-linux-gnu and no issues.
> 
> Ok for master?
> 
> Thanks,
> Tamar
> 
> gcc/ChangeLog:
> 
>       * config/aarch64/aarch64-sve2.md (cadd<rot><mode>3,
>       cml<fcmac1><rot_op><mode>4, cmul<rot_op><mode>3): New.
>       * config/aarch64/iterators.md (SVE2_INT_CMLA_OP,
> SVE2_INT_CMUL_OP,
>       SVE2_INT_CADD_OP): New.
> 
> --

Reply via email to