aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaushik Phatak <kaushik.phatak@kpitcummins.com>2009-11-21 22:51:07 +0000
committerKaz Kojima <kkojima@gcc.gnu.org>2009-11-21 22:51:07 +0000
commitbcd9e00d09ab3ded9935c7f086c93e6c22759440 (patch)
treeabaf1a81df227b4308df8ccd0b126131a914c074
parent583467831d979d0da2587b816c4713743777c2a6 (diff)
downloadgcc-bcd9e00d09ab3ded9935c7f086c93e6c22759440.zip
gcc-bcd9e00d09ab3ded9935c7f086c93e6c22759440.tar.gz
gcc-bcd9e00d09ab3ded9935c7f086c93e6c22759440.tar.bz2
sh.md (cmpeqsi_t-1): Use logical_operand predicate for operand 1.
* config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate for operand 1. From-SVN: r154412
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sh/sh.md2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 20a2d09..b34a81f 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 7fa6347..4318c70 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"