[AArch64][12/14] Target attributes and target pragmas tests
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_8.c
blob32d173cb25bd136d7410352ece4fc457c3677662
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -save-temps" } */
4 /* bar has a subset set of the architectural flags of bam.
5 Inlining should be allowed. */
7 __attribute__ ((target ("arch=armv8-a+nocrc")))
8 int
9 bar (int a)
11 return a - 6;
14 __attribute__ ((target ("arch=armv8-a+crc")))
15 int
16 bam (int a)
18 return a - bar (a);
22 /* { dg-final { scan-assembler-not "bl.*bar" } } */