blob: 0527d0c3d613ca696f63161e54d46cc0060b30fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* { dg-do compile } */
/* { dg-options "-O2 -mcpu=thunderx -dA" } */
/* 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" } } */
|