From: Yangyu Chen Date: Tue, 12 Nov 2024 23:50:03 +0000 (-0700) Subject: RISC-V: Fix target-attr-norelax.c testcase X-Git-Tag: basepoints/gcc-16~4372 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=098214cf395f8f464ef2696bc27ad8583e3a2e11;p=thirdparty%2Fgcc.git RISC-V: Fix target-attr-norelax.c testcase The target-attr-norelax.c testcase was failing due to the redundant "\t" check in the assembly output, and forgot to skip the check for lto build in the testcase. gcc/testsuite/ChangeLog: * gcc.target/riscv/target-attr-norelax.c: Fix testcase. --- diff --git a/gcc/testsuite/gcc.target/riscv/target-attr-norelax.c b/gcc/testsuite/gcc.target/riscv/target-attr-norelax.c index 77de6195ad1e..01663b568646 100644 --- a/gcc/testsuite/gcc.target/riscv/target-attr-norelax.c +++ b/gcc/testsuite/gcc.target/riscv/target-attr-norelax.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */ /* { dg-options "-march=rv32gc" { target { rv32 } } } */ /* { dg-options "-march=rv64gc" { target { rv64 } } } */ @@ -16,6 +17,6 @@ int main() return 0; } -/* { dg-final { scan-assembler-times ".option push\t" 1 } } */ -/* { dg-final { scan-assembler-times ".option norelax\t" 1 } } */ -/* { dg-final { scan-assembler-times ".option pop\t" 1 } } */ +/* { dg-final { scan-assembler-times ".option push" 1 } } */ +/* { dg-final { scan-assembler-times ".option norelax" 1 } } */ +/* { dg-final { scan-assembler-times ".option pop" 1 } } */