This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] h8300.md: Correct the distance valid for the short branch.
- From: Kazu Hirata <kazu at hxi dot com>
- To: gcc-patches at gcc dot gnu dot org
- Subject: [patch] h8300.md: Correct the distance valid for the short branch.
Hi,
Attached is a patch to correct the distance valid for the short
branch.
Tested on h8300 port. Committed as obvious.
Kazu Hirata
2002-02-09 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.md (length): Correct the distance valid
for the short branch.
Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.70
diff -c -r1.70 h8300.md
*** h8300.md 2002/02/09 05:16:25 1.70
--- h8300.md 2002/02/09 17:12:27
***************
*** 67,76 ****
(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)))
(const_int 2)
(if_then_else (and (eq_attr "cpu" "h8300h")
(and (ge (minus (pc) (match_dup 0))
--- 67,76 ----
(define_attr "length" ""
(cond [(eq_attr "type" "branch")
! (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))