gcc/testsuite/gcc.dg/pr98350-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Ofast --param tree-reassoc-width=2 -fdump-tree-widening_mul" } */ |
| 3 | /* { dg-additional-options "-mfpmath=sse -mfma" { target { i?86-*-* x86_64-*-* } } } */ |
| 4 | |
| 5 | /* Test that the compiler rearrange the ops to generate more FMA. */ |
| 6 | |
| 7 | float |
| 8 | foo1 (float a, float b, float c, float d, float *e) |
| 9 | { |
| 10 | return *e + a * b + c * d ; |
| 11 | } |
| 12 | /* { dg-final { scan-tree-dump-times { = \.FMA \(} 2 "widening_mul" { target { i?86-*-* x86_64-*-* } } } } */ |