PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / pr48067.c
blob779690918ce3a4d502562c4d5648e776f9140315
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math -fno-tree-forwprop -fno-tree-reassoc" } */
3 /* { dg-options "-O2 -ffast-math -fno-tree-forwprop -fno-tree-reassoc -mfma4" { target x86_64-*-* i?86-*-* } } */
5 float
6 foo (float x, float cim)
8 float c = x * cim;
9 float d = -c;
10 return c - d;