[AArch64][SVE] Add ABS support

Programming / Compilers / GCC - rsandifo [138bc75d-0d04-0410-961f-82ee72b054a4] - 20 December 2018 16:34 EST

For some reason we missed ABS out of the list of supported integer operations when adding the SVE port initially.

2018-12-20 Richard Sandiford

gcc/
- config/aarch64/iterators.md (SVE_INT_UNARY, fp_int_op): Add abs. (SVE_FP_UNARY): Sort.

gcc/testsuite/
- gcc.target/aarch64/pr64946.c: Force nosve.
- gcc.target/aarch64/ssadv16qi.c: Likewise.
- gcc.target/aarch64/usadv16qi.c: Likewise.
- gcc.target/aarch64/vect-abs-compile.c: Likewise.
- gcc.target/aarch64/sve/abs_1.c: New test.

48d9b2fcda3 [AArch64][SVE] Add ABS support
gcc/ChangeLog | 5 +++++
gcc/config/aarch64/iterators.md | 5 +++--
gcc/testsuite/ChangeLog | 8 ++++++++
gcc/testsuite/gcc.target/aarch64/pr64946.c | 3 ++-
gcc/testsuite/gcc.target/aarch64/ssadv16qi.c | 2 ++
gcc/testsuite/gcc.target/aarch64/sve/abs_1.c | 21 +++++++++++++++++++++
gcc/testsuite/gcc.target/aarch64/usadv16qi.c | 2 ++
gcc/testsuite/gcc.target/aarch64/vect-abs-compile.c | 3 ++-
8 files changed, 45 insertions(+), 4 deletions(-)

Upstream: gcc.gnu.org


  • Share