Fix a variety of testsuite failures on the H8 after recent cselib changes
authorJeff Law <law@redhat.com>
Tue, 7 Apr 2020 23:55:00 +0000 (17:55 -0600)
committerJeff Law <law@redhat.com>
Tue, 7 Apr 2020 23:55:00 +0000 (17:55 -0600)
PR rtl-optimization/92264
* config/h8300/h8300.md (mov;add peephole2): Avoid applying when
the destination is the stack pointer.

gcc/ChangeLog
gcc/config/h8300/h8300.md

index 12803e90b0a0815de845773849905cb7cdd651a2..6f2dcfb766c219bdca3b4ff5c8cc5edeb3384404 100644 (file)
@@ -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
index bcc78a4ce4d02841532ca7339c7dba067edb82ba..fdd2d8b02d73a46b4e76f521e0ff3763d687ea7c 100644 (file)
        (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])