From ef64fa154d56b761185db501c02d71c6f78bc437 Mon Sep 17 00:00:00 2001 From: Torbjorn Granlund Date: Tue, 30 Jul 1996 19:03:29 +0000 Subject: (eq reg (const_int 0)): New pattern. From-SVN: r12575 --- gcc/config/i960/i960.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc') diff --git a/gcc/config/i960/i960.md b/gcc/config/i960/i960.md index 1891a3e..f6ca00e 100644 --- a/gcc/config/i960/i960.md +++ b/gcc/config/i960/i960.md @@ -352,6 +352,13 @@ (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 "" + [(set (match_operand:SI 0 "general_operand" "=d") (match_operator:SI 1 "comparison_operator" [(reg:CC 36) (const_int 0)]))] "" "test%C1 %0" -- cgit v1.1