gcc/testsuite/gcc.target/aarch64/target_attr_6.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -save-temps" } */ |
| 3 | |
| 4 | /* Inlining strict-align functions into non-strict align |
| 5 | functions is not allowed. */ |
| 6 | |
| 7 | __attribute__ ((target ("strict-align"))) |
| 8 | int |
| 9 | bar (int a) |
| 10 | { |
| 11 | return a - 6; |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | bam (int a) |
| 16 | { |
| 17 | return a - bar (a); |
| 18 | } |
| 19 | |
| 20 | /* { dg-final { scan-assembler "bl.*bar" } } */ |