diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-18 22:12:59 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-18 22:12:59 +0000 |
commit | ab5a13fd97582f83cde6a2e17dd5622b8e309a49 (patch) | |
tree | d4030985d9c2416412f28e8e10ee1ec46b9f3ab5 /gcc/config/h8300/h8300.md | |
parent | a578a1cc7edb615151a18ca57cac9ca3b787d4b2 (diff) | |
download | gcc-ab5a13fd97582f83cde6a2e17dd5622b8e309a49.tar.gz |
* config/h8300/h8300-protos.h: Add a prototype for
h8300_expand_branch.
* config/h8300/h8300.c (h8300_expand_branch): New.
* config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
bgtu, beq, bne): Call h8300_expand_branch().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78052 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/h8300/h8300.md')
-rw-r--r-- | gcc/config/h8300/h8300.md | 80 |
1 files changed, 20 insertions, 60 deletions
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index dd77e3279ec..25462cfc1bd 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -1566,94 +1566,54 @@ ;; Conditional jump instructions (define_expand "ble" - [(set (pc) - (if_then_else (le (cc0) - (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] + [(match_operand 0 "" "")] "" - "") + "h8300_expand_branch (LE, operands[0]); DONE;") (define_expand "bleu" - [(set (pc) - (if_then_else (leu (cc0) - (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] + [(match_operand 0 "" "")] "" - "") + "h8300_expand_branch (LEU, operands[0]); DONE;") (define_expand "bge" - [(set (pc) - (if_then_else (ge (cc0) - (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] + [(match_operand 0 "" "")] "" - "") + "h8300_expand_branch (GE, operands[0]); DONE;") (define_expand "bgeu" - [(set (pc) - (if_then_else (geu (cc0) - (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] + [(match_operand 0 "" "")] "" - "") + "h8300_expand_branch (GEU, operands[0]); DONE;") (define_expand "blt" - [(set (pc) - (if_then_else (lt (cc0) - (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] + [(match_operand 0 "" "")] "" - "") + "h8300_expand_branch (LT, operands[0]); DONE;") (define_expand "bltu" - [(set (pc) - (if_then_else (ltu (cc0) - (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] + [(match_operand 0 "" "")] "" - "") + "h8300_expand_branch (LTU, operands[0]); DONE;") (define_expand "bgt" - [(set (pc) - (if_then_else (gt (cc0) - (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] + [(match_operand 0 "" "")] "" - "") + "h8300_expand_branch (GT, operands[0]); DONE;") (define_expand "bgtu" - [(set (pc) - (if_then_else (gtu (cc0) - (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] + [(match_operand 0 "" "")] "" - "") + "h8300_expand_branch (GTU, operands[0]); DONE;") (define_expand "beq" - [(set (pc) - (if_then_else (eq (cc0) - (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] + [(match_operand 0 "" "")] "" - "") + "h8300_expand_branch (EQ, operands[0]); DONE;") (define_expand "bne" - [(set (pc) - (if_then_else (ne (cc0) - (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] + [(match_operand 0 "" "")] "" - "") + "h8300_expand_branch (NE, operands[0]); DONE;") (define_insn "branch_true" [(set (pc) |