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