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