[AArch64][SVE] Add ABS support
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 20 Dec 2018 16:34:31 +0000 (16:34 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 20 Dec 2018 16:34:31 +0000 (16:34 +0000)
commit69c5fdcf6eaee5e20073aa76152ef7b402619998
treef9c9e7b08a2895487f944df13ae76c7205e8f55a
parent7abc36cc997553532214a77cdb555bdaada8dfb3
[AArch64][SVE] Add ABS support

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  <richard.sandiford@arm.com>

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.

From-SVN: r267304
gcc/ChangeLog
gcc/config/aarch64/iterators.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr64946.c
gcc/testsuite/gcc.target/aarch64/ssadv16qi.c
gcc/testsuite/gcc.target/aarch64/sve/abs_1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/usadv16qi.c
gcc/testsuite/gcc.target/aarch64/vect-abs-compile.c