blob: 818d327705f3d5ec7863da93c4181cc1441f58f5 (
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
|
/* { dg-do compile } */
/* { dg-options "-O2 -mcpu=thunderx -dA" } */
/* Make sure that #pragma overrides command line option and
target attribute overrides the pragma. */
#pragma GCC target ("cpu=xgene1")
int
bar (int a)
{
return a - 6;
}
__attribute__ ((target ("tune=cortex-a53")))
int
bam (int a)
{
return a - bar (a);
}
/* { dg-final { scan-assembler-times "//.tune xgene1" 1 } } */
/* { dg-final { scan-assembler-times "//.tune cortex-a53" 1 } } */
/* { dg-final { scan-assembler-not "thunderx" } } */
|