2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_8.c
blob00ebd8c250762013d5a2c682177beec20998face
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 static 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" } } */