Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/target_attr_8.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -save-temps" } */
3
4 /* bar has a subset set of the architectural flags of bam.
5 Inlining should be allowed. */
6
7 __attribute__ ((target ("arch=armv8-a+nocrc")))
8 static int
9 bar (int a)
10 {
11 return a - 6;
12 }
13
14 __attribute__ ((target ("arch=armv8-a+crc")))
15 int
16 bam (int a)
17 {
18 return a - bar (a);
19 }
20
21
22 /* { dg-final { scan-assembler-not "bl.*bar" } } */