Commit 2cd04f4d by Anthony Green

Finish committing moxie port

From-SVN: r148340
parent cceb575c
...@@ -296,15 +296,21 @@ ...@@ -296,15 +296,21 @@
(define_expand "cbranchsi4" (define_expand "cbranchsi4"
[(set (reg:CC CC_REG) [(set (reg:CC CC_REG)
(compare:CC (compare:CC
(match_operand:SI 1 "register_operand" "") (match_operand:SI 1 "general_operand" "")
(match_operand:SI 2 "register_operand" ""))) (match_operand:SI 2 "general_operand" "")))
(set (pc) (set (pc)
(if_then_else (match_operator:CC 0 "comparison_operator" (if_then_else (match_operator:CC 0 "comparison_operator"
[(reg:CC CC_REG) (const_int 0)]) [(reg:CC CC_REG) (const_int 0)])
(label_ref (match_operand 3 "" "")) (label_ref (match_operand 3 "" ""))
(pc)))] (pc)))]
"" ""
"") "
/* Force the compare operands into registers. */
if (GET_CODE (operands[1]) != REG)
operands[1] = force_reg (SImode, operands[1]);
if (GET_CODE (operands[2]) != REG)
operands[2] = force_reg (SImode, operands[2]);
")
(define_insn "*cmpsi" (define_insn "*cmpsi"
[(set (reg:CC CC_REG) [(set (reg:CC CC_REG)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment