(eq reg (const_int 0)): New pattern.

From-SVN: r12575
This commit is contained in:
Torbjorn Granlund 1996-07-30 19:03:29 +00:00
parent a0279a61ae
commit ef64fa154d
1 changed files with 7 additions and 0 deletions

View File

@ -350,6 +350,13 @@
operands[1] = gen_compare_reg (LEU, i960_compare_op0, i960_compare_op1); operands[1] = gen_compare_reg (LEU, i960_compare_op0, i960_compare_op1);
}") }")
(define_insn ""
[(set (match_operand:SI 0 "general_operand" "=d")
(eq:SI (match_operand:SI 1 "register_operand" "d") (const_int 0)))]
""
"shro %1,1,%0"
[(set_attr "type" "alu2")])
(define_insn "" (define_insn ""
[(set (match_operand:SI 0 "general_operand" "=d") [(set (match_operand:SI 0 "general_operand" "=d")
(match_operator:SI 1 "comparison_operator" [(reg:CC 36) (const_int 0)]))] (match_operator:SI 1 "comparison_operator" [(reg:CC 36) (const_int 0)]))]