aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2020-04-07 17:55:00 -0600
committerJeff Law <law@redhat.com>2020-04-07 17:55:00 -0600
commit14162197fd4cf0e3a848d32bd9385876e1b1f249 (patch)
tree38808969d1d9df4f478bf4ec0a290cc4930e0669 /gcc
parent31449cf8e119bbe172a68689068591827472da5c (diff)
downloadgcc-14162197fd4cf0e3a848d32bd9385876e1b1f249.zip
gcc-14162197fd4cf0e3a848d32bd9385876e1b1f249.tar.gz
gcc-14162197fd4cf0e3a848d32bd9385876e1b1f249.tar.bz2
Fix a variety of testsuite failures on the H8 after recent cselib changes
PR rtl-optimization/92264 * config/h8300/h8300.md (mov;add peephole2): Avoid applying when the destination is the stack pointer.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/h8300/h8300.md1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 12803e9..6f2dcfb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2020-04-07 Jeff Law <law@redhat.com>
+
+ PR rtl-optimization/92264
+ * config/h8300/h8300.md (mov;add peephole2): Avoid applying when
+ the destination is the stack pointer.
+
2020-04-07 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/94291
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index bcc78a4..fdd2d8b 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -4299,6 +4299,7 @@
(plus:SI (match_dup 0)
(match_operand:SI 2 "const_int_operand" "")))]
"(TARGET_H8300H || TARGET_H8300S)
+ && operands[0] != stack_pointer_rtx
&& REG_P (operands[0]) && REG_P (operands[1])
&& REGNO (operands[0]) != REGNO (operands[1])
&& !satisfies_constraint_L (operands[2])