Mercurial > hg > CbC > CbC_gcc
diff gcc/config/score/score.md @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | f6334be47118 |
line wrap: on
line diff
--- a/gcc/config/score/score.md Sun Feb 07 18:28:00 2010 +0900 +++ b/gcc/config/score/score.md Fri Feb 12 23:39:51 2010 +0900 @@ -2175,6 +2175,20 @@ (set_attr "length" "4,4") (set_attr "mode" "SI")]) +(define_expand "cbranchsi4" + [(set (reg:CC CC_REGNUM) + (compare:CC (match_operand:SI 1 "score_register_operand" "") + (match_operand:SI 2 "arith_operand" ""))) + (set (pc) + (if_then_else + (match_operator 0 "ordered_comparison_operator" + [(reg:CC CC_REGNUM) + (const_int 0)]) + (label_ref (match_operand 3 "" "")) + (pc)))] + "" + "") + (define_insn "cbrancheqz" [(set (pc) (if_then_else (eq (match_operand:SI 0 "score_register_operand" "d") @@ -2259,16 +2273,6 @@ (const_int 4) (const_int 6)))]) -(define_expand "cmpsi" - [(match_operand:SI 0 "score_register_operand") - (match_operand:SI 1 "arith_operand")] - "" -{ - cmp_op0 = operands[0]; - cmp_op1 = operands[1]; - DONE; -}) - (define_insn "cmpsi_nz_score7" [(set (reg:CC_NZ CC_REGNUM) (compare:CC_NZ (match_operand:SI 0 "register_operand" "d,e,d") @@ -2375,106 +2379,6 @@ (set_attr "up_c" "yes") (set_attr "mode" "SI")]) -(define_expand "beq" - [(set (pc) - (if_then_else (eq (reg:CC CC_REGNUM) (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] - "" -{ - score_gen_cmp (CCmode); -}) - -(define_expand "bne" - [(set (pc) - (if_then_else (ne (reg:CC CC_REGNUM) (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] - "" -{ - score_gen_cmp (CCmode); -}) - -(define_expand "bgt" - [(set (pc) - (if_then_else (gt (reg:CC CC_REGNUM) (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] - "" -{ - score_gen_cmp (CCmode); -}) - -(define_expand "ble" - [(set (pc) - (if_then_else (le (reg:CC CC_REGNUM) (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] - "" -{ - score_gen_cmp (CCmode); -}) - -(define_expand "bge" - [(set (pc) - (if_then_else (ge (reg:CC CC_REGNUM) (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] - "" -{ - score_gen_cmp (CCmode); -}) - -(define_expand "blt" - [(set (pc) - (if_then_else (lt (reg:CC CC_REGNUM) (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] - "" -{ - score_gen_cmp (CCmode); -}) - -(define_expand "bgtu" - [(set (pc) - (if_then_else (gtu (reg:CC CC_REGNUM) (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] - "" -{ - score_gen_cmp (CCmode); -}) - -(define_expand "bleu" - [(set (pc) - (if_then_else (leu (reg:CC CC_REGNUM) (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] - "" -{ - score_gen_cmp (CCmode); -}) - -(define_expand "bgeu" - [(set (pc) - (if_then_else (geu (reg:CC CC_REGNUM) (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] - "" -{ - score_gen_cmp (CCmode); -}) - -(define_expand "bltu" - [(set (pc) - (if_then_else (ltu (reg:CC CC_REGNUM) (const_int 0)) - (label_ref (match_operand 0 "" "")) - (pc)))] - "" -{ - score_gen_cmp (CCmode); -}) - (define_insn "*branch_n_score7" [(set (pc) (if_then_else