From: James Greenhalgh Date: Fri, 16 May 2014 10:15:54 +0000 (+0000) Subject: [AArch64 costs] Fixup to costing of FNMUL X-Git-Tag: releases/gcc-5.1.0~7534 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d840f7d1f4b0172b8179e6e0a41694fc88fde67;p=thirdparty%2Fgcc.git [AArch64 costs] Fixup to costing of FNMUL gcc/ * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case. From-SVN: r210512 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1815d4b0defb..4ec3c7d2a114 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-05-16 James Greenhalgh + + * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case. + 2014-05-16 James Greenhalgh * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 6eb230349b45..0a7f441941cd 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -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; }