OSDN Git Service

* config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Nov 2010 01:30:38 +0000 (01:30 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Nov 2010 01:30:38 +0000 (01:30 +0000)
        and *mulsubsf4 respectively.  Use fma rtx_code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166789 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/frv/frv.md

index a701485..3c08537 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-15  Richard Henderson  <rth@redhat.com>
+
+       * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
+       and *mulsubsf4 respectively.  Use fma rtx_code.
+
 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
 
        * gcc.c: Include "vec.h".
index 2440d12..81b4b16 100644 (file)
    (set_attr "type" "fsmul")])
 
 ;; Multiplication with addition/subtraction
-(define_insn "*muladdsf4"
+(define_insn "fmasf4"
   [(set (match_operand:SF 0 "fpr_operand" "=f")
-       (plus:SF (mult:SF (match_operand:SF 1 "fpr_operand" "%f")
-                         (match_operand:SF 2 "fpr_operand" "f"))
-                (match_operand:SF 3 "fpr_operand" "0")))]
+       (fma:SF (match_operand:SF 1 "fpr_operand" "f")
+               (match_operand:SF 2 "fpr_operand" "f")
+               (match_operand:SF 3 "fpr_operand" "0")))]
   "TARGET_HARD_FLOAT && TARGET_MULADD"
   "fmadds %1,%2,%0"
   [(set_attr "length" "4")
    (set_attr "type" "fsmadd")])
 
-(define_insn "*mulsubsf4"
+(define_insn "fmssf4"
   [(set (match_operand:SF 0 "fpr_operand" "=f")
-       (minus:SF (mult:SF (match_operand:SF 1 "fpr_operand" "%f")
-                          (match_operand:SF 2 "fpr_operand" "f"))
-                 (match_operand:SF 3 "fpr_operand" "0")))]
+       (fma:SF (match_operand:SF 1 "fpr_operand" "f")
+               (match_operand:SF 2 "fpr_operand" "f")
+               (neg:SF (match_operand:SF 3 "fpr_operand" "0"))))]
   "TARGET_HARD_FLOAT && TARGET_MULADD"
   "fmsubs %1,%2,%0"
   [(set_attr "length" "4")