aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr98350-2.c
blob: bad6455921d52c1024c360fdeb902e66f078a28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-Ofast --param tree-reassoc-width=2 -fdump-tree-widening_mul" } */
/* { dg-additional-options "-mfpmath=sse -mfma" { target { i?86-*-* x86_64-*-* } } } */

/* Test that the compiler rearrange the ops to generate more FMA.  */

float
foo1 (float a, float b, float c, float d, float *e)
{
   return   *e + a * b + c * d ;
}
/* { dg-final { scan-tree-dump-times { = \.FMA \(} 2 "widening_mul" { target { i?86-*-* x86_64-*-* } } } } */