summaryrefslogtreecommitdiff
path: root/gcc/config/arm/neon.md
diff options
context:
space:
mode:
authorcbaylis <cbaylis@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-31 14:27:58 +0000
committercbaylis <cbaylis@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-31 14:27:58 +0000
commitf0f38f1675bc83b4fdc13d4592848fc62368e6f1 (patch)
treee439337d478b57a9ca89cef07e1187353c032812 /gcc/config/arm/neon.md
parentd3a3536500cd7bbb4ec178b21b3225a488c7893c (diff)
downloadgcc-f0f38f1675bc83b4fdc13d4592848fc62368e6f1.tar.gz
PR target/61948
gcc/ChangeLog: 2014-07-29 Charles Baylis <charles.baylis@linaro.org> PR target/61948 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless constraints are satisfied. (<shift>di3_neon): Likewise. gcc/testsuite/ChangeLog: 2014-07-29 Charles Baylis <charles.baylis@linaro.org> PR target/61948 * gcc.target/arm/pr61948.c: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213376 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/arm/neon.md')
-rw-r--r--gcc/config/arm/neon.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md
index 1fc4dcd8275..dc364eeb64e 100644
--- a/gcc/config/arm/neon.md
+++ b/gcc/config/arm/neon.md
@@ -1041,7 +1041,9 @@
}
else
{
- if (CONST_INT_P (operands[2]) && INTVAL (operands[2]) == 1)
+ if (CONST_INT_P (operands[2]) && INTVAL (operands[2]) == 1
+ && (!reg_overlap_mentioned_p (operands[0], operands[1])
+ || REGNO (operands[0]) == REGNO (operands[1])))
/* This clobbers CC. */
emit_insn (gen_arm_ashldi3_1bit (operands[0], operands[1]));
else
@@ -1141,7 +1143,9 @@
}
else
{
- if (CONST_INT_P (operands[2]) && INTVAL (operands[2]) == 1)
+ if (CONST_INT_P (operands[2]) && INTVAL (operands[2]) == 1
+ && (!reg_overlap_mentioned_p (operands[0], operands[1])
+ || REGNO (operands[0]) == REGNO (operands[1])))
/* This clobbers CC. */
emit_insn (gen_arm_<shift>di3_1bit (operands[0], operands[1]));
else