h8300.md (length): Correct the distance valid for the short branch.
authorKazu Hirata <kazu@hxi.com>
Sat, 9 Feb 2002 17:19:00 +0000 (17:19 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 9 Feb 2002 17:19:00 +0000 (17:19 +0000)
* config/h8300/h8300.md (length): Correct the distance valid
for the short branch.

From-SVN: r49637

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

index 2455a68d0f69f1d58bb5ae3a51c704ba1be58689..29a66368e7ccf0e039d633831ee4887f213014f5 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 415eb8598f00ac56faaefba82f515fe16f24f999..457c87700056c962b68b3fb07f499981fae76556 100644 (file)
 
 (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))