aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/target_attr_1.c
blob: 4a3a1ee233a0e276d114b380651c290afcd52c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -mcpu=thunderx -march=armv8-a -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" } } */