[AArch64][1/3] Expand signed mod by power of 2 using CSNEG
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 9 Sep 2015 08:39:13 +0000 (08:39 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 9 Sep 2015 08:39:13 +0000 (08:39 +0000)
commit4f58fe36c141c2a328b6081be7d9cdf203cf2fcf
tree029f6807ac622b179c0baa4c28b32bfe41ca019e
parent6cbf37c3d58bd0dbd5f79c6b2e24b35764e6fb0a
[AArch64][1/3] Expand signed mod by power of 2 using CSNEG

* config/aarch64/aarch64.md (mod<mode>3): New define_expand.
(*neg<mode>2_compare0): Rename to...
(neg<mode>2_compare0): ... This.
* config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
Move check for speed inside the if-then-elses.  Reflect
CSNEG sequence in MOD by power of 2 case.

From-SVN: r227585
gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.md