[testsuite] Fix directives order
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_1.c
blob4a3a1ee233a0e276d114b380651c290afcd52c44
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mcpu=thunderx -march=armv8-a -dA" } */
4 /* Test that cpu attribute overrides the command-line -mcpu. */
6 __attribute__ ((target ("cpu=cortex-a72.cortex-a53")))
7 int
8 foo (int a)
10 return a + 1;
13 /* { dg-final { scan-assembler "//.tune cortex-a72.cortex-a53" } } */
14 /* { dg-final { scan-assembler-not "thunderx" } } */