blob: 852ce1e9f06fe6e9d95f88a036d9012c4aed1c10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* { dg-do compile } */
/* { dg-options "-O2 -mcpu=thunderx -save-temps" } */
/* Test that cpu attribute overrides the command-line -mcpu. */
__attribute__ ((target ("cpu=cortex-a72.cortex-a53")))
int
foo (int a)
{
return a + 1;
}
/* { dg-final { scan-assembler "//.tune cortex-a72.cortex-a53" } } */
/* { dg-final { scan-assembler-not "thunderx" } } */
|