]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Adjust test
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Thu, 14 Dec 2023 22:22:06 +0000 (06:22 +0800)
committerPan Li <pan2.li@intel.com>
Fri, 15 Dec 2023 00:32:38 +0000 (08:32 +0800)
Since middle-end patch:
https://gcc.gnu.org/pipermail/gcc-patches/2023-December/640595.html

will change vectorization code.

Adapt tests for ths patch.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/vsetvl/pr112988-1.c: Adapt test.

gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr112988-1.c

index 6f983ef8bb5352a1aa278951562c46afe95c713b..b37166b2973e7c6fe9a7f86cbea21d82822f7ec8 100644 (file)
@@ -62,8 +62,7 @@ int main() {
   return 0;
 }
 
-/* { dg-final { scan-assembler-times {vsetvli} 1 } } */
-/* { dg-final { scan-assembler-times {vsetivli} 1 } } */
-/* { dg-final { scan-assembler-times {vsetivli\tzero,\s*4,\s*e32,\s*m1,\s*t[au],\s*m[au]} 1 } } */
+/* { dg-final { scan-assembler-times {vsetvli} 4 } } */
+/* { dg-final { scan-assembler-not {vsetivli} } } */
 /* { dg-final { scan-assembler-times {vsetvli\tzero,\s*[a-x0-9]+,\s*e8,\s*m8,\s*t[au],\s*m[au]} 1 } } */
 /* { dg-final { scan-assembler-times {li\t[a-x0-9]+,\s*32} 1 } } */