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
This commit is contained in:
Kazu Hirata 2002-02-09 17:19:00 +00:00 committed by Kazu Hirata
parent 3450d4db0d
commit 16c9630430
2 changed files with 9 additions and 4 deletions

View 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.

View File

@ -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))