[AArch64] Implement copysign[ds]f3

Marcus Shawcroft marcus.shawcroft@gmail.com
Wed Sep 16 14:34:00 GMT 2015


On 16 September 2015 at 08:40, James Greenhalgh
<james.greenhalgh@arm.com> wrote:
>
> Hi,
>
> This patch adds expanders for copysigndf3 and copysignsf3 to the AArch64
> backend. These use the BSL/BIT/BIF insn to save us from the default
> expansion pattern.
>
> Bootstrapped on aarch64-none-linux-gnu with no issues, and checked
> the performance to show a slight improvement to FP routines using
> copysign or SIGN from fortran.
>
> OK?
>
> Thanks,
> James
>
> ---
> gcc/
>
> 2015-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
>
>         * config/aarch64/aarch64.md (copysigndf3): New.
>         (copysignsf3): Likewise.
>
> gcc/testsuite/
>
> 2015-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
>
>         * gcc.target/aarch64/copysign_1.c: New.
>         * gcc.target/aarch64/copysign_2.c: New.
>

OK /Marcus



More information about the Gcc-patches mailing list