re PR tree-optimization/46722 (Missed fma for x*x + y)
authorRichard Guenther <rguenther@suse.de>
Tue, 30 Nov 2010 16:55:35 +0000 (16:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 30 Nov 2010 16:55:35 +0000 (16:55 +0000)
commit4dbed5f6d4fd0e9ffa797e3b1b5d0ae479e7e6c5
treee61a7127cbad42be966353a6abec621a1e9d38ed
parent16187791e3c516705412dc57534f6b413143cfe2
re PR tree-optimization/46722 (Missed fma for x*x + y)

2010-11-30  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/46722
* tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
operands as arguments.
(execute_optimize_widening_mul): Also handle power of two as
multiplication.

* gcc.target/i386/fma4-fma-2.c: New testcase.

From-SVN: r167304
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/fma4-fma-2.c [new file with mode: 0644]
gcc/tree-ssa-math-opts.c