aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/pr63304_1.c
blob: c917f81c022c64915b594c3f230add7fa2cc693f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* { dg-do assemble } */
/* { dg-options "-O1 --save-temps -mno-fix-cortex-a53-843419" } */
#pragma GCC push_options
#pragma GCC target ("+nothing+simd, cmodel=small")

int
cal (float a)
{
  float b = 1.2;
  float c = 2.2;
  if ((a + b) != c)
    return 0;
  else
    return 1;
}

#pragma GCC push_options

#pragma GCC target ("cmodel=large")

int
cal2 (float a)
{

  float b = 1.2;
  float c = 2.2;
  if ((a + b) != c)
    return 0;
  else
    return 1;
}

#pragma GCC pop_options

int
cal3 (float a)
{

  float b = 1.2;
  float c = 2.2;
  if ((a + b) != c)
    return 0;
  else
    return 1;
}

/* { dg-final { scan-assembler-times "adrp" 6 } } */