]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64 costs] Fixup to costing of FNMUL
authorJames Greenhalgh <james.greenhalgh@arm.com>
Fri, 16 May 2014 10:15:54 +0000 (10:15 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Fri, 16 May 2014 10:15:54 +0000 (10:15 +0000)
gcc/

* config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.

From-SVN: r210512

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index 1815d4b0defbaa3bdc57f5d48bef52678b1c80d4..4ec3c7d2a114b0a96b67619095659d53de2abdf2 100644 (file)
@@ -1,3 +1,7 @@
+2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
+
 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
index 6eb230349b45589699d9b839c21053cfd7f755c6..0a7f441941cded20d8701b888030bb617b8e7857 100644 (file)
@@ -4711,24 +4711,18 @@ aarch64_rtx_mult_cost (rtx x, int code, int outer, bool speed)
     {
       if (speed)
        {
-         /* Floating-point FMA can also support negations of the
+         /* Floating-point FMA/FMUL can also support negations of the
             operands.  */
          if (GET_CODE (op0) == NEG)
-           {
-             maybe_fma = true;
-             op0 = XEXP (op0, 0);
-           }
+           op0 = XEXP (op0, 0);
          if (GET_CODE (op1) == NEG)
-           {
-             maybe_fma = true;
-             op1 = XEXP (op1, 0);
-           }
+           op1 = XEXP (op1, 0);
 
          if (maybe_fma)
            /* FMADD/FNMADD/FNMSUB/FMSUB.  */
            cost += extra_cost->fp[mode == DFmode].fma;
          else
-           /* FMUL.  */
+           /* FMUL/FNMUL.  */
            cost += extra_cost->fp[mode == DFmode].mult;
        }