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