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.

Signed-off-by: Yangyu Chen <c...@cyyself.name>

gcc/testsuite/ChangeLog:

        * gcc.target/riscv/target-attr-norelax.c: Fix testcase.
---
 gcc/testsuite/gcc.target/riscv/target-attr-norelax.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.target/riscv/target-attr-norelax.c 
b/gcc/testsuite/gcc.target/riscv/target-attr-norelax.c
index 77de6195ad1..01663b56864 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 } } */
-- 
2.45.2

Reply via email to