aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wehle <john@feith.com>1998-06-11 23:33:35 +0000
committerJeff Law <law@gcc.gnu.org>1998-06-11 17:33:35 -0600
commit9bc6d2c2070cccaaa5f0c129bd7b27bdb728af27 (patch)
tree9f867a8e9b93dc6972acd2095b0d406e76389f24
parent112a70c24da0534355071de477c0b69e17e27eed (diff)
downloadgcc-9bc6d2c2070cccaaa5f0c129bd7b27bdb728af27.zip
gcc-9bc6d2c2070cccaaa5f0c129bd7b27bdb728af27.tar.gz
gcc-9bc6d2c2070cccaaa5f0c129bd7b27bdb728af27.tar.bz2
i386.md (cmpsi_1, [...]): Remove code which set CC_REVERSED since reload should ensure that the operands...
* i386.md (cmpsi_1, cmphi_1, cmpqi_1): Remove code which set CC_REVERSED since reload should ensure that the operands are already the correct type. From-SVN: r20434
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/i386.md30
2 files changed, 9 insertions, 27 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9c43cca..0814d52 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jun 12 00:30:32 1998 John Wehle (john@feith.com)
+
+ * i386.md (cmpsi_1, cmphi_1, cmpqi_1): Remove code
+ which set CC_REVERSED since reload should ensure that
+ the operands are already the correct type.
+
Thu Jun 11 17:14:15 1998 Jim Wilson <wilson@cygnus.com>
* except.c (expand_builtin_eh_stub): Call emit_move_insn rather than
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 4cda8f7..cb1a42a 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -328,15 +328,7 @@
(compare (match_operand:SI 0 "nonimmediate_operand" "mr,r")
(match_operand:SI 1 "general_operand" "ri,mr")))]
"GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM"
- "*
-{
- if (CONSTANT_P (operands[0]) || GET_CODE (operands[1]) == MEM)
- {
- cc_status.flags |= CC_REVERSED;
- return AS2 (cmp%L0,%0,%1);
- }
- return AS2 (cmp%L0,%1,%0);
-}")
+ "* return AS2 (cmp%L0,%1,%0);")
(define_expand "cmpsi"
[(set (cc0)
@@ -359,15 +351,7 @@
(compare (match_operand:HI 0 "nonimmediate_operand" "mr,r")
(match_operand:HI 1 "general_operand" "ri,mr")))]
"GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM"
- "*
-{
- if (CONSTANT_P (operands[0]) || GET_CODE (operands[1]) == MEM)
- {
- cc_status.flags |= CC_REVERSED;
- return AS2 (cmp%W0,%0,%1);
- }
- return AS2 (cmp%W0,%1,%0);
-}")
+ "* return AS2 (cmp%W0,%1,%0);")
(define_expand "cmphi"
[(set (cc0)
@@ -390,15 +374,7 @@
(compare (match_operand:QI 0 "nonimmediate_operand" "q,mq")
(match_operand:QI 1 "general_operand" "qm,nq")))]
"GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM"
- "*
-{
- if (CONSTANT_P (operands[0]) || GET_CODE (operands[1]) == MEM)
- {
- cc_status.flags |= CC_REVERSED;
- return AS2 (cmp%B0,%0,%1);
- }
- return AS2 (cmp%B0,%1,%0);
-}")
+ "* return AS2 (cmp%B0,%1,%0);")
(define_expand "cmpqi"
[(set (cc0)