aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorYangyu Chen <cyy@cyyself.name>2024-11-12 16:50:03 -0700
committerJeff Law <jlaw@ventanamicro.com>2024-11-12 16:50:03 -0700
commit098214cf395f8f464ef2696bc27ad8583e3a2e11 (patch)
tree848055fa62fe6ac70bda26ed79aa8b8e50a7752f /gcc
parentd95339c9e3c3086ab5dc082f4e2b08d9197d74f5 (diff)
downloadgcc-098214cf395f8f464ef2696bc27ad8583e3a2e11.zip
gcc-098214cf395f8f464ef2696bc27ad8583e3a2e11.tar.gz
gcc-098214cf395f8f464ef2696bc27ad8583e3a2e11.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/riscv/target-attr-norelax.c7
1 files 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 77de619..01663b5 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 } } */