mips.h (ISA_HAS_NMADD_NMSUB): New macro.
authorAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 20 Jul 2001 10:35:33 +0000 (10:35 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Fri, 20 Jul 2001 10:35:33 +0000 (10:35 +0000)
        * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.

        * config/mips/mips.md (nmadd/nmsub): Use macro.

From-SVN: r44190

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

index 7e96c6823c918de7bced722ad1668c99ce6f6cb7..fc8edcd342b549e45eafa45d67cf283ac9930a6b 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
+
+        * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
+
+       * config/mips/mips.md (nmadd/nmsub): Use macro.
+
 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
 
        * cppinit.c (remove_dup_dir): Make static.
        previous args.
        (copy_object): Caller changed.
 
+>>>>>>> 1.10722
 2001-07-19  Andreas Schwab  <schwab@suse.de>
 
        * configure.in (assembler dwarf2 debug_line support): Define nop
index 31dceca3b09e372580e9f39a5b2e92ce2af1d2c3..a7da887a2eb3a56c6c26cde010a6dc8ea808c150 100644 (file)
@@ -643,6 +643,9 @@ extern void         sbss_section PARAMS ((void));
 /* ISA has conditional trap instructions.  */
 #define ISA_HAS_COND_TRAP      (mips_isa >= 2)
 
+/* ISA has nmadd and nmsub instructions.  */
+#define ISA_HAS_NMADD_NMSUB    (mips_isa == 4                          \
+                               )
 
 /* CC1_SPEC causes -mips3 and -mips4 to set -mfp64 and -mgp64; -mips1 or
    -mips2 sets -mfp32 and -mgp32.  This can be overridden by an explicit
index a7636f8d31628c46ffd7fd15d5aab20d99539eb1..58fa9634bef73c25c061d8176c7facc4040c8dca 100644 (file)
        (neg:DF (plus:DF (mult:DF (match_operand:DF 1 "register_operand" "f")
                                  (match_operand:DF 2 "register_operand" "f"))
                         (match_operand:DF 3 "register_operand" "f"))))]
-  "ISA_HAS_FP4 && TARGET_HARD_FLOAT && TARGET_DOUBLE_FLOAT"
+  "ISA_HAS_NMADD_NMSUB && TARGET_HARD_FLOAT && TARGET_DOUBLE_FLOAT"
   "nmadd.d\\t%0,%3,%1,%2"
   [(set_attr "type"    "fmadd")
    (set_attr "mode"    "DF")])
        (neg:SF (plus:SF (mult:SF (match_operand:SF 1 "register_operand" "f")
                                  (match_operand:SF 2 "register_operand" "f"))
                         (match_operand:SF 3 "register_operand" "f"))))]
-  "ISA_HAS_FP4 && TARGET_HARD_FLOAT"
+  "ISA_HAS_NMADD_NMSUB && TARGET_HARD_FLOAT"
   "nmadd.s\\t%0,%3,%1,%2"
   [(set_attr "type"    "fmadd")
    (set_attr "mode"    "SF")])
        (minus:DF (match_operand:DF 1 "register_operand" "f")
                  (mult:DF (match_operand:DF 2 "register_operand" "f")
                           (match_operand:DF 3 "register_operand" "f"))))]
-  "ISA_HAS_FP4 && TARGET_HARD_FLOAT && TARGET_DOUBLE_FLOAT"
+  "ISA_HAS_NMADD_NMSUB && TARGET_HARD_FLOAT && TARGET_DOUBLE_FLOAT"
   "nmsub.d\\t%0,%1,%2,%3"
   [(set_attr "type"    "fmadd")
    (set_attr "mode"    "DF")])
        (minus:SF (match_operand:SF 1 "register_operand" "f")
                  (mult:SF (match_operand:SF 2 "register_operand" "f")
                           (match_operand:SF 3 "register_operand" "f"))))]
-  "ISA_HAS_FP4 && TARGET_HARD_FLOAT"
+  "ISA_HAS_NMADD_NMSUB && TARGET_HARD_FLOAT"
   "nmsub.s\\t%0,%1,%2,%3"
   [(set_attr "type"    "fmadd")
    (set_attr "mode"    "SF")])