Fix some testsuite failures for H8/SX multilibs where short branches where used...
authorJeff Law <law@torsion.usersys.redhat.com>
Wed, 29 Apr 2020 14:19:22 +0000 (10:19 -0400)
committerJeff Law <law@torsion.usersys.redhat.com>
Wed, 29 Apr 2020 14:19:22 +0000 (10:19 -0400)
* config/h8300/h8300.md (H8/SX div patterns): All H8/SX specific
division instructions are 4 bytes long.

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

index 80064da83ce756432b38c2be19cb17dc94684909..a2d4a1b82f44df61d68c0dd2d488e1ef83f5b058 100644 (file)
@@ -1,3 +1,8 @@
+2020-04-29  Jeff Law  <law@redhat.com>
+
+       * config/h8300/h8300.md (H8/SX div patterns): All H8/SX specific
+       division instructions are 4 bytes long.
+
 2020-04-29  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/94826
index 3e5cdbeeebe1b66e6a7080ce483d1fb92947aa80..a86b8ea2074b2c84ba03546474fad9492733c02b 100644 (file)
                  (match_operand:HSI 2 "reg_or_nibble_operand" "r IP4>X")))]
   "TARGET_H8300SX"
   { return <MODE>mode == HImode ? "divu.w\\t%T2,%T0" : "divu.l\\t%S2,%S0"; }
-  [(set_attr "length" "2")])
+  [(set_attr "length" "4")])
 
 (define_insn "div<mode>3"
   [(set (match_operand:HSI 0 "register_operand" "=r")
                 (match_operand:HSI 2 "reg_or_nibble_operand" "r IP4>X")))]
   "TARGET_H8300SX"
   { return <MODE>mode == HImode ? "divs.w\\t%T2,%T0" : "divs.l\\t%S2,%S0"; }
-  [(set_attr "length" "2")])
+  [(set_attr "length" "4")])
 
 (define_insn "udivmodqi4"
   [(set (match_operand:QI 0 "register_operand" "=r")