[AArch64] Use conditional negate for abs
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 14 May 2015 13:35:30 +0000 (13:35 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Thu, 14 May 2015 13:35:30 +0000 (13:35 +0000)
commitfc8b587d7e3cac469d29a415149102858bf7faf8
treec03c9f9fd75cd041254db4fe8ec2a0848e8726ab
parenta0c4531ccf06e9381083421e9e7c2bdf89aa7f13
[AArch64] Use conditional negate for abs

2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>

      gcc/
* config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
(csneg3<mode>_insn): Enable expansion of pattern.

      gcc/testsuite/
* gcc.target/aarch64/abs_1.c (abs64): Update test for new abs expansion.
(abs64_in_dreg): Likewise.

From-SVN: r223197
gcc/ChangeLog
gcc/config/aarch64/aarch64.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/abs_1.c