2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pragma_fpu_attribute.c
blob174be85f3f777e4f9a4a1c4a85f706021ce4dd7c
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 } */
6 #include <stdint.h>
8 extern uint32_t bar ();
10 #pragma GCC target("fpu=vfpv3-d16")
12 extern float fmaf (float, float, float);
14 float
15 __attribute__((target("fpu=vfpv4"))) vfma32 (float x, float y, float z)
17 return fmaf (x, y, z);
20 uint32_t restored ()
22 return bar();
25 /* { dg-final { scan-assembler-times {\.fpu\s+vfpv4} 1 } } */
26 /* { dg-final { scan-assembler-times {\.fpu\s+vfpv3-d16} 1 } } */