aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2010-07-06 23:44:55 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2010-07-06 23:44:55 +0000
commit325d79974db871a95dae0598b4435f3b60b89402 (patch)
treeed80adf1d983be206d71c3ae45f5eb3b1e8d0444 /gcc/config
parent604b91240e4f3a1b5c97681b575389addf3dd638 (diff)
downloadgcc-325d79974db871a95dae0598b4435f3b60b89402.zip
gcc-325d79974db871a95dae0598b4435f3b60b89402.tar.gz
gcc-325d79974db871a95dae0598b4435f3b60b89402.tar.bz2
re PR rtl-optimization/44787 (internal compiler error: in reload_cse_simplify_operands, at postreload.c:395)
PR rtl-optimization/44787 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2. * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise. testsuite/ PR rtl-optimization/44787 * gcc.c-torture/compile/pr44788.c: New test. * gcc.target/arm/pr44788.c: New test. From-SVN: r161893
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arm/arm.md2
-rw-r--r--gcc/config/arm/thumb2.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md
index 90cf2c6..f36a56c 100644
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -9122,7 +9122,7 @@
[(match_operator:SI 3 "shift_operator"
[(match_operand:SI 4 "s_register_operand" "r")
(match_operand:SI 5 "reg_or_int_operand" "rI")])
- (match_operand:SI 2 "s_register_operand" "r")]))]
+ (match_operand:SI 2 "s_register_operand" "rk")]))]
"TARGET_ARM"
"%i1%?\\t%0, %2, %4%S3"
[(set_attr "predicable" "yes")
diff --git a/gcc/config/arm/thumb2.md b/gcc/config/arm/thumb2.md
index ac275ad..2e03b8d 100644
--- a/gcc/config/arm/thumb2.md
+++ b/gcc/config/arm/thumb2.md
@@ -467,7 +467,7 @@
[(match_operator:SI 3 "shift_operator"
[(match_operand:SI 4 "s_register_operand" "r")
(match_operand:SI 5 "const_int_operand" "M")])
- (match_operand:SI 2 "s_register_operand" "r")]))]
+ (match_operand:SI 2 "s_register_operand" "rk")]))]
"TARGET_THUMB2"
"%i1%?\\t%0, %2, %4%S3"
[(set_attr "predicable" "yes")