1 /* Test for #pragma assembly extension generations. */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target arm_fp_ok } */
4 /* { dg-add-options arm_fp } */
8 #pragma GCC target("fpu=vfpv3-d16")
10 extern uint32_t bar();
12 #pragma GCC push_options
13 #pragma GCC target("fpu=vfpv4")
14 extern float fmaf (float, float, float);
17 vfma32 (float x
, float y
, float z
)
19 return fmaf (x
, y
, z
);
21 #pragma GCC pop_options
28 /* We can't tell exactly how many times the following tests will match because
29 command-line options may cause additional instances to be generated, but
30 each must be present at least once. */
31 /* { dg-final { scan-assembler {\.fpu\s+vfpv4\n} } } */
32 /* { dg-final { scan-assembler {\.fpu\s+vfpv3-d16\n} } } */