Commit f3308413 by Alexandre Oliva Committed by Alexandre Oliva

i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.

* config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
* config/i386/sse.md: Add n to negated FMA pattern names.

From-SVN: r174493
parent 28c14a04
2011-05-31 Alexandre Oliva <aoliva@redhat.com> 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
* config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
* config/i386/sse.md: Add n to negated FMA pattern names.
2011-05-31 Alexandre Oliva <aoliva@redhat.com>
* gcc.c (driver_handle_option): Fix disabling of -fcompare-debug. * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2011-05-31 Alexandre Oliva <aoliva@redhat.com> 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
......
...@@ -29226,12 +29226,12 @@ ix86_rtx_costs (rtx x, int code, int outer_code_i, int *total, bool speed) ...@@ -29226,12 +29226,12 @@ ix86_rtx_costs (rtx x, int code, int outer_code_i, int *total, bool speed)
/* Negate in op0 or op2 is free: FMS, FNMA, FNMS. */ /* Negate in op0 or op2 is free: FMS, FNMA, FNMS. */
sub = XEXP (x, 0); sub = XEXP (x, 0);
if (GET_CODE (sub) == NEG) if (GET_CODE (sub) == NEG)
sub = XEXP (x, 0); sub = XEXP (sub, 0);
*total += rtx_cost (sub, FMA, speed); *total += rtx_cost (sub, FMA, speed);
sub = XEXP (x, 2); sub = XEXP (x, 2);
if (GET_CODE (sub) == NEG) if (GET_CODE (sub) == NEG)
sub = XEXP (x, 0); sub = XEXP (sub, 0);
*total += rtx_cost (sub, FMA, speed); *total += rtx_cost (sub, FMA, speed);
return true; return true;
} }
...@@ -1731,7 +1731,7 @@ ...@@ -1731,7 +1731,7 @@
[(set_attr "type" "ssemuladd") [(set_attr "type" "ssemuladd")
(set_attr "mode" "<MODE>")]) (set_attr "mode" "<MODE>")])
(define_insn "*fma_fmadd_<mode>" (define_insn "*fma_fnmadd_<mode>"
[(set (match_operand:FMAMODE 0 "register_operand" "=x,x,x") [(set (match_operand:FMAMODE 0 "register_operand" "=x,x,x")
(fma:FMAMODE (fma:FMAMODE
(neg:FMAMODE (neg:FMAMODE
...@@ -1746,7 +1746,7 @@ ...@@ -1746,7 +1746,7 @@
[(set_attr "type" "ssemuladd") [(set_attr "type" "ssemuladd")
(set_attr "mode" "<MODE>")]) (set_attr "mode" "<MODE>")])
(define_insn "*fma_fmsub_<mode>" (define_insn "*fma_fnmsub_<mode>"
[(set (match_operand:FMAMODE 0 "register_operand" "=x,x,x") [(set (match_operand:FMAMODE 0 "register_operand" "=x,x,x")
(fma:FMAMODE (fma:FMAMODE
(neg:FMAMODE (neg:FMAMODE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment