gcc/testsuite/gcc.target/aarch64/acle/acle_fma.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | #include "arm_acle.h" |
| 5 | |
| 6 | double test_acle_fma (double x, double y, double z) |
| 7 | { |
| 8 | return __fma (x, y, z); |
| 9 | } |
| 10 | |
| 11 | float test_acle_fmaf (float x, float y, float z) |
| 12 | { |
| 13 | return __fmaf (x, y, z); |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-assembler-times "fmadd\td\[0-9\]" 1 } } */ |
| 17 | /* { dg-final { scan-assembler-times "fmadd\ts\[0-9\]" 1 } } */ |