diff options
author | Jeff Law <law@torsion.usersys.redhat.com> | 2020-04-29 10:19:22 -0400 |
---|---|---|
committer | Jeff Law <law@torsion.usersys.redhat.com> | 2020-04-29 10:19:22 -0400 |
commit | 392aa7d7adfbd84253121d2ef779bf3c627e8d0b (patch) | |
tree | d5ad65f1409b86eddac5c15dc670c14fac7941c0 /gcc/config/h8300 | |
parent | c7137fcc7cbc1f1f14f9fed75adcc6bd8f1d418c (diff) | |
download | gcc-392aa7d7adfbd84253121d2ef779bf3c627e8d0b.zip gcc-392aa7d7adfbd84253121d2ef779bf3c627e8d0b.tar.gz gcc-392aa7d7adfbd84253121d2ef779bf3c627e8d0b.tar.bz2 |
Fix some testsuite failures for H8/SX multilibs where short branches where used when long branches were necessary.
* config/h8300/h8300.md (H8/SX div patterns): All H8/SX specific
division instructions are 4 bytes long.
Diffstat (limited to 'gcc/config/h8300')
-rw-r--r-- | gcc/config/h8300/h8300.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 3e5cdbe..a86b8ea 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -1218,7 +1218,7 @@ (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") @@ -1226,7 +1226,7 @@ (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") |