From 1f28c666af3af7109a47b20f6175838b96e8da47 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Fri, 20 Jul 2001 10:35:33 +0000 Subject: [PATCH] mips.h (ISA_HAS_NMADD_NMSUB): New macro. * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro. * config/mips/mips.md (nmadd/nmsub): Use macro. From-SVN: r44190 --- gcc/ChangeLog | 7 +++++++ gcc/config/mips/mips.h | 3 +++ gcc/config/mips/mips.md | 8 ++++---- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e96c6823c9..fc8edcd342b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-07-20 Aldy Hernandez + + * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro. + + * config/mips/mips.md (nmadd/nmsub): Use macro. + 2001-07-20 Nathan Sidwell * cppinit.c (remove_dup_dir): Make static. @@ -119,6 +125,7 @@ previous args. (copy_object): Caller changed. +>>>>>>> 1.10722 2001-07-19 Andreas Schwab * configure.in (assembler dwarf2 debug_line support): Define nop diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 31dceca3b09..a7da887a2eb 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -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 diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index a7636f8d316..58fa9634bef 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -2179,7 +2179,7 @@ (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")]) @@ -2189,7 +2189,7 @@ (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")]) @@ -2199,7 +2199,7 @@ (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")]) @@ -2209,7 +2209,7 @@ (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")]) -- 2.30.2