[testsuite] Fix directives order
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / fmadd.c
blob39975dbae0af52e8d67ab288864980272b03f26c
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 extern double fma (double, double, double);
5 extern float fmaf (float, float, float);
7 double test_fma1 (double x, double y, double z)
9 return fma (x, y, z);
12 float test_fma2 (float x, float y, float z)
14 return fmaf (x, y, z);
17 double test_fnma1 (double x, double y, double z)
19 return fma (-x, y, z);
22 float test_fnma2 (float x, float y, float z)
24 return fmaf (-x, y, z);
27 double test_fms1 (double x, double y, double z)
29 return fma (x, y, -z);
32 float test_fms2 (float x, float y, float z)
34 return fmaf (x, y, -z);
37 double test_fnms1 (double x, double y, double z)
39 return fma (-x, y, -z);
42 float test_fnms2 (float x, float y, float z)
44 return fmaf (-x, y, -z);
47 /* { dg-final { scan-assembler-times "fmadd\td\[0-9\]" 1 } } */
48 /* { dg-final { scan-assembler-times "fmadd\ts\[0-9\]" 1 } } */
49 /* { dg-final { scan-assembler-times "fmsub\td\[0-9\]" 1 } } */
50 /* { dg-final { scan-assembler-times "fmsub\ts\[0-9\]" 1 } } */
51 /* { dg-final { scan-assembler-times "fnmsub\td\[0-9\]" 1 } } */
52 /* { dg-final { scan-assembler-times "fnmsub\ts\[0-9\]" 1 } } */
53 /* { dg-final { scan-assembler-times "fnmadd\td\[0-9\]" 1 } } */
54 /* { dg-final { scan-assembler-times "fnmadd\ts\[0-9\]" 1 } } */