]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Refine test cases for both PR112929 and PR112988
authorPan Li <pan2.li@intel.com>
Wed, 13 Dec 2023 13:46:14 +0000 (21:46 +0800)
committerPan Li <pan2.li@intel.com>
Wed, 13 Dec 2023 14:06:51 +0000 (22:06 +0800)
commitd702387b1b765f85e19961a0b2a29df14df89bfd
tree57a0246e773d7645ec07eb8d196797534426c053
parentf6f76583fcf381b3a778e196f11634e458d3b36d
RISC-V: Refine test cases for both PR112929 and PR112988

Refine the test cases for:

* Name convention.
* Add run case.

These test cases used to cause out-of-bounds writes to the stack
and therefore showed unreliable behavior.  Depending on the
execution environment they can either pass or fail.  As of now,
with the latest QEMU version, they will pass even without the
underlying issue fixed.  As the test case is known to have
caused the problem before we keep it as a run test case for
future reference.

PR target/112929
PR target/112988

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/vsetvl/pr112929.c: Moved to...
* gcc.target/riscv/rvv/vsetvl/pr112929-1.c: ...here.
* gcc.target/riscv/rvv/vsetvl/pr112988.c: Moved to...
* gcc.target/riscv/rvv/vsetvl/pr112988-1.c: ...here.
* gcc.target/riscv/rvv/vsetvl/pr112929-2.c: New test.
* gcc.target/riscv/rvv/vsetvl/pr112988-2.c: New test.

Signed-off-by: Pan Li <pan2.li@intel.com>
gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr112929-1.c [moved from gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr112929.c with 100% similarity]
gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr112929-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr112988-1.c [moved from gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr112988.c with 100% similarity]
gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr112988-2.c [new file with mode: 0644]