Skip to content

Commit

Permalink
RISC-V: Adjust test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zhongjuzhe authored and Incarnation-p-lee committed Dec 15, 2023
1 parent 4bfafea commit afead7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr112988-1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 } } */

0 comments on commit afead7f

Please sign in to comment.