gcc/testsuite/gcc.dg/pr48067.c
raw| 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-*-* } } */ |
| 4 | |
| 5 | float |
| 6 | foo (float x, float cim) |
| 7 | { |
| 8 | float c = x * cim; |
| 9 | float d = -c; |
| 10 | return c - d; |
| 11 | } |