aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm/arm.c
diff options
context:
space:
mode:
authorRamana Radhakrishnan <ramana.radhakrishnan@linaro.org>2011-06-10 10:12:40 +0000
committerRamana Radhakrishnan <ramana@gcc.gnu.org>2011-06-10 10:12:40 +0000
commit0127c76f613c84e31efdc6b1c6d1634718b8f691 (patch)
treef51c23cc2665f816f592a7d8de421e3d9ee23d0c /gcc/config/arm/arm.c
parentf93fe5a0e6022edb30bd274d9243bdd02710450a (diff)
downloadgcc-0127c76f613c84e31efdc6b1c6d1634718b8f691.zip
gcc-0127c76f613c84e31efdc6b1c6d1634718b8f691.tar.gz
gcc-0127c76f613c84e31efdc6b1c6d1634718b8f691.tar.bz2
Use mvn properly and consolidate movdi patterns.
2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> Richard Earnshaw <rearnsha@arm.com> * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used. * config/arm/vfp.md (*arm_movdi_vfp): Delete. (*thumb2_movdi_vfp): Delete. (*arm_movdi_vfp_cortexa8): Delete. (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp. (*movdi_vfp_cortexa8): Likewise. Co-Authored-By: Richard Earnshaw <rearnsha@arm.com> From-SVN: r174894
Diffstat (limited to 'gcc/config/arm/arm.c')
-rw-r--r--gcc/config/arm/arm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 61a315e..c1bae17 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -2231,7 +2231,8 @@ const_ok_for_op (HOST_WIDE_INT i, enum rtx_code code)
if (arm_arch_thumb2 && (i & 0xffff0000) == 0)
return 1;
else
- return 0;
+ /* Otherwise, try mvn. */
+ return const_ok_for_arm (ARM_SIGN_EXTEND (~i));
case PLUS:
case COMPARE: