[AArch64][12/14] Target attributes and target pragmas tests
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_5.c
blob4fc0709be81d2ca67c56ac1feda1db0d90e9f822
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -save-temps" } */
4 /* Make sure that bar is inlined into bam. */
6 __attribute__ ((target ("arch=armv8-a+nocrc")))
7 int
8 bar (int a)
10 return a - 6;
13 __attribute__ ((target ("cpu=cortex-a53+nocrc")))
14 int
15 bam (int a)
17 return a - bar (a);
20 /* { dg-final { scan-assembler-not "bl.*bar" } } */