diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 20a2d09c31aa9cd504fbf47aafd386c8000c87b0..b34a81fb21e866877e657f758dbb59ec013af59b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-21  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
+
+	* config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
+	for operand 1.
+
 2009-11-21  Adam Nemet  <adambnemet@gmail.com>
 
 	* config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md
index 7fa634777b33f3979a4a0c3482ea9eff5dce7d64..4318c702b4285eae4450be62cd53ccbb3e591ce1 100644
--- a/gcc/config/sh/sh.md
+++ b/gcc/config/sh/sh.md
@@ -591,7 +591,7 @@
 (define_insn ""
   [(set (reg:SI T_REG)
 	(eq:SI (and:SI (match_operand:SI 0 "arith_reg_operand" "z,r")
-		       (match_operand:SI 1 "arith_operand" "K08,r"))
+		       (match_operand:SI 1 "logical_operand" "K08,r"))
 	       (const_int 0)))]
   "TARGET_SH1"
   "tst	%1,%0"