public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-7609] Fix a variety of testsuite failures on the H8 after recent cselib changes
@ 2020-04-07 23:56 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2020-04-07 23:56 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:14162197fd4cf0e3a848d32bd9385876e1b1f249

commit r10-7609-g14162197fd4cf0e3a848d32bd9385876e1b1f249
Author: Jeff Law <law@redhat.com>
Date:   Tue Apr 7 17:55:00 2020 -0600

    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.

Diff:
---
 gcc/ChangeLog             | 6 ++++++
 gcc/config/h8300/h8300.md | 1 +
 2 files changed, 7 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 12803e90b0a..6f2dcfb766c 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 bcc78a4ce4d..fdd2d8b02d7 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])


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-07 23:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 23:56 [gcc r10-7609] Fix a variety of testsuite failures on the H8 after recent cselib changes Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).