aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@hxi.com>2002-02-09 17:19:00 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2002-02-09 17:19:00 +0000
commit16c9630430fc8632ba7a769d99d3c3313ddbadbe (patch)
treeecefe27a2dea253dea7861a9421a8f229e9eaf40
parent3450d4db0dc78e83652fe0dfd32ff7a37a005eeb (diff)
downloadgcc-16c9630430fc8632ba7a769d99d3c3313ddbadbe.zip
gcc-16c9630430fc8632ba7a769d99d3c3313ddbadbe.tar.gz
gcc-16c9630430fc8632ba7a769d99d3c3313ddbadbe.tar.bz2
h8300.md (length): Correct the distance valid for the short branch.
* config/h8300/h8300.md (length): Correct the distance valid for the short branch. From-SVN: r49637
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/h8300/h8300.md8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2455a68..29a6636 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2002-02-09 Kazu Hirata <kazu@hxi.com>
+ * config/h8300/h8300.md (length): Correct the distance valid
+ for the short branch.
+
+2002-02-09 Kazu Hirata <kazu@hxi.com>
+
* config/h8300/h8300.md (iorhi3): Tighten the predicates.
2002-02-09 Alexandre Oliva <aoliva@redhat.com>
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index 415eb85..457c877 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -67,10 +67,10 @@
(define_attr "length" ""
(cond [(eq_attr "type" "branch")
- (if_then_else (and (ge (minus (pc) (match_dup 0))
- (const_int -120))
- (le (minus (pc) (match_dup 0))
- (const_int 120)))
+ (if_then_else (and (ge (minus (match_dup 0) (pc))
+ (const_int -126))
+ (le (minus (match_dup 0) (pc))
+ (const_int 126)))
(const_int 2)
(if_then_else (and (eq_attr "cpu" "h8300h")
(and (ge (minus (pc) (match_dup 0))