]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix target-attr-norelax.c testcase
authorYangyu Chen <cyy@cyyself.name>
Tue, 12 Nov 2024 23:50:03 +0000 (16:50 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Tue, 12 Nov 2024 23:50:03 +0000 (16:50 -0700)
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.

gcc/testsuite/gcc.target/riscv/target-attr-norelax.c

index 77de6195ad1ebea8a027363e7f54940971e32b5f..01663b568646e338db5e5b3264ccea6cdaa90284 100644 (file)
@@ -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 } } */