[Aarch64][SVE] Add copysign and xorsign support

Programming / Compilers / GCC - ktkachov [138bc75d-0d04-0410-961f-82ee72b054a4] - 9 January 2019 13:57 EST

This patch adds support for copysign and xorsign builtins to SVE. With the new expands, they can be vectorized using bitwise logical operations.

I tested this patch in an aarch64 machine bootstrapping the compiler and running the checks.

2019-01-09 Alejandro Martinez

- config/aarch64/aarch64-sve.md (copysign3): New define_expand. (xorsign3): Likewise.

2019-01-09 Alejandro Martinez

- gcc.target/aarch64/sve/copysign_1.c: New test for SVE vectorized copysign.
- gcc.target/aarch64/sve/copysign_1_run.c: Likewise.
- gcc.target/aarch64/sve/xorsign_1.c: New test for SVE vectorized xorsign.
- gcc.target/aarch64/sve/xorsign_1_run.c: Likewise.

fd87572ba58 [Aarch64][SVE] Add copysign and xorsign support
gcc/ChangeLog | 5 ++
gcc/config/aarch64/aarch64-sve.md | 54 ++++++++++++++++
gcc/testsuite/ChangeLog | 9 +++
gcc/testsuite/gcc.target/aarch64/sve/copysign_1.c | 41 ++++++++++++
.../gcc.target/aarch64/sve/copysign_1_run.c | 72 ++++++++++++++++++++++
gcc/testsuite/gcc.target/aarch64/sve/xorsign_1.c | 37 +++++++++++
.../gcc.target/aarch64/sve/xorsign_1_run.c | 72 ++++++++++++++++++++++
7 files changed, 290 insertions(+)

Upstream: gcc.gnu.org


  • Share