* config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
authorRichard Sandiford <rsandifo@redhat.com>
Sun, 29 Aug 2004 11:58:32 +0000 (11:58 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 29 Aug 2004 11:58:32 +0000 (11:58 +0000)
From-SVN: r86722

gcc/ChangeLog
gcc/config/mips/mips.md

index bcfbc0b9dbdec0bc9354f23a5ec04ed0c6e43854..d5aa281bf8227cab09deb69385c50dc867380764 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
+
 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/mips/mips.md (divide_condition): New mode attribute.
index 3e220d07d961c58ee9fcae08dec73a2792a69798..97caec2c9db60619d831003feea6b8ff9835527b 100644 (file)
@@ -4317,22 +4317,11 @@ beq\t%2,%.,1b\;\
   DONE;
 })
 
-(define_expand "cmpdf"
-  [(set (cc0)
-       (compare:CC (match_operand:DF 0 "register_operand")
-                   (match_operand:DF 1 "register_operand")))]
-  "TARGET_HARD_FLOAT && TARGET_DOUBLE_FLOAT"
-{
-  cmp_operands[0] = operands[0];
-  cmp_operands[1] = operands[1];
-  DONE;
-})
-
-(define_expand "cmpsf"
+(define_expand "cmp<mode>"
   [(set (cc0)
-       (compare:CC (match_operand:SF 0 "register_operand")
-                   (match_operand:SF 1 "register_operand")))]
-  "TARGET_HARD_FLOAT"
+       (compare:CC (match_operand:SCALARF 0 "register_operand")
+                   (match_operand:SCALARF 1 "register_operand")))]
+  ""
 {
   cmp_operands[0] = operands[0];
   cmp_operands[1] = operands[1];