Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr69245.c
blobbd505187728d6cdf1fcecb45b2fb61bccca7e222
1 /* PR target/69245 */
2 /* Test that pop_options restores the vfp fpu mode. */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target arm_neon_ok } */
5 /* { dg-require-effective-target arm_fp_ok } */
6 /* { dg-options "-O2" } */
7 /* { dg-add-options arm_fp } */
9 #pragma GCC target "fpu=vfp"
11 #pragma GCC push_options
12 #pragma GCC target "fpu=neon-vfpv4"
13 int a, c, d;
14 float b;
15 static int fn1 ()
17 return 0;
19 #pragma GCC pop_options
21 void fn2 ()
23 d = b * c + a;
26 /* { dg-final { scan-assembler-times "\.fpu vfp" 1 } } */