1 /* Test for target attribute assembly extension generations. */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target arm_fp_ok } */
4 /* { dg-add-options arm_fp } */
8 extern uint32_t bar ();
10 #pragma GCC target("fpu=vfpv3-d16")
12 extern float fmaf (float, float, float);
15 __attribute__((target("fpu=vfpv4"))) vfma32 (float x
, float y
, float z
)
17 return fmaf (x
, y
, z
);
25 /* { dg-final { scan-assembler-times {\.fpu\s+vfpv4} 1 } } */
26 /* { dg-final { scan-assembler-times {\.fpu\s+vfpv3-d16} 1 } } */