diff options
author | Richard Henderson <rth@redhat.com> | 2010-11-15 17:30:38 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2010-11-15 17:30:38 -0800 |
commit | be2fbfb6a6d0b2421f7d750b0651b09b8edbba33 (patch) | |
tree | 6b962ed43dbda1d0e80f95568300e64d9dd93ddf | |
parent | 5b634ee080f68f3c9a160768f25980b765ea5236 (diff) | |
download | gcc-be2fbfb6a6d0b2421f7d750b0651b09b8edbba33.zip gcc-be2fbfb6a6d0b2421f7d750b0651b09b8edbba33.tar.gz gcc-be2fbfb6a6d0b2421f7d750b0651b09b8edbba33.tar.bz2 |
frv.md (fmasf4, fmssf4): Rename from *muladdsf4 and *mulsubsf4 respectively.
* config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
and *mulsubsf4 respectively. Use fma rtx_code.
From-SVN: r166789
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/frv/frv.md | 16 |
2 files changed, 13 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a701485..3c08537 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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". diff --git a/gcc/config/frv/frv.md b/gcc/config/frv/frv.md index 2440d12..81b4b16 100644 --- a/gcc/config/frv/frv.md +++ b/gcc/config/frv/frv.md @@ -3274,21 +3274,21 @@ (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") |