On Wed, 2025-09-24 at 15:44 +0800, Lulu Cheng wrote:
> diff --git a/gcc/testsuite/gcc.target/loongarch/can_inline_1.c
> b/gcc/testsuite/gcc.target/loongarch/can_inline_1.c
> new file mode 100644
> index 00000000000..bdae4dbebe7
> --- /dev/null
> +++ b/gcc/testsuite/gcc.target/loongarch/can_inline_1.c
> @@ -0,0 +1,18 @@
> +/* { dg-do compile } */
> +/* { dg-options "-march=loongarch64 -mabi=lp64d -fdump-tree-einline-
> details -O2" } */
> +/* { dg-final { scan-tree-dump {missed: not inlinable: bar/\d+ ->
> foo/\d+, target specific option mismatch} "einline" } } */
> +/* { dg-final { scan-tree-dump-not {\(inlined\)} "einline" } } */
> +
> +void
> +__attribute__ ((target ("lsx")))
> +foo (void)
> +{}
> +
> +void
> +bar (void)
> +{
> + foo ();
> +}
> +
> +
> +
I think those trailing empty lines should be dropped (likewise for other
tests).
--
Xi Ruoyao <[email protected]>