OSDN Git Service

* config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Aug 2004 11:58:32 +0000 (11:58 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Aug 2004 11:58:32 +0000 (11:58 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86722 138bc75d-0d04-0410-961f-82ee72b054a4

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

index bcfbc0b..d5aa281 100644 (file)
@@ -1,5 +1,9 @@
 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.
        (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
        (sqrt[sd]f3): Redefine using SCALARF.
index 3e220d0..97caec2 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];