gcc/testsuite/gcc.target/aarch64/fnmadd-fastmath.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -ffast-math" } */ |
| 3 | |
| 4 | extern double fma (double, double, double); |
| 5 | extern float fmaf (float, float, float); |
| 6 | |
| 7 | double test_fma1 (double x, double y, double z) |
| 8 | { |
| 9 | return - fma (x, y, z); |
| 10 | } |
| 11 | |
| 12 | float test_fma2 (float x, float y, float z) |
| 13 | { |
| 14 | return - fmaf (x, y, z); |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-assembler-times "fnmadd\td\[0-9\]" 1 } } */ |
| 18 | /* { dg-final { scan-assembler-times "fnmadd\ts\[0-9\]" 1 } } */ |
| 19 |