gcc/testsuite/gcc.target/loongarch/can_inline_3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=loongarch64 -mabi=lp64d -fdump-tree-einline-details -O2" } */ |
| 3 | /* { dg-final { scan-tree-dump {missed: not inlinable: bar/\d+ -> foo/\d+, target specific option mismatch} "einline" } } */ |
| 4 | /* { dg-final { scan-tree-dump-not {\(inlined\)} "einline" } } */ |
| 5 | |
| 6 | void |
| 7 | __attribute__ ((target ("arch=la64v1.1"))) |
| 8 | foo (void) |
| 9 | {} |
| 10 | |
| 11 | void |
| 12 | __attribute__ ((target ("arch=la64v1.0"))) |
| 13 | bar (void) |
| 14 | { |
| 15 | foo (); |
| 16 | } |