]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Make the test condition more strict for gcc.target/riscv/_Float16-zhinxmin-1.c
authorKito Cheng <kito.cheng@sifive.com>
Wed, 22 Feb 2023 09:16:20 +0000 (17:16 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 22 Feb 2023 12:20:34 +0000 (20:20 +0800)
LTO might generate random string for the section name, which might contain `mv`,
then might cause random false alarm.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/_Float16-zhinxmin-1.c: Tweak test
condition.

gcc/testsuite/gcc.target/riscv/_Float16-zhinxmin-1.c

index 0070ebf616cd02e0929f402e2ae67656954662ac..fa049db5b93254f00a2b402c86f72fafd605cc64 100644 (file)
@@ -5,6 +5,6 @@ _Float16 foo1 (_Float16 a, _Float16 b)
 {
     /* { dg-final { scan-assembler-not "fmv.h" } } */
     /* { dg-final { scan-assembler-not "fmv.s" } } */
-    /* { dg-final { scan-assembler-times "mv" 1 } } */
+    /* { dg-final { scan-assembler-times "mv\ta0" 1 } } */
     return b;
 }