[gcc]
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / pr63304_1.c
blobc917f81c022c64915b594c3f230add7fa2cc693f
1 /* { dg-do assemble } */
2 /* { dg-options "-O1 --save-temps -mno-fix-cortex-a53-843419" } */
3 #pragma GCC push_options
4 #pragma GCC target ("+nothing+simd, cmodel=small")
6 int
7 cal (float a)
9 float b = 1.2;
10 float c = 2.2;
11 if ((a + b) != c)
12 return 0;
13 else
14 return 1;
17 #pragma GCC push_options
19 #pragma GCC target ("cmodel=large")
21 int
22 cal2 (float a)
25 float b = 1.2;
26 float c = 2.2;
27 if ((a + b) != c)
28 return 0;
29 else
30 return 1;
33 #pragma GCC pop_options
35 int
36 cal3 (float a)
39 float b = 1.2;
40 float c = 2.2;
41 if ((a + b) != c)
42 return 0;
43 else
44 return 1;
47 /* { dg-final { scan-assembler-times "adrp" 6 } } */