]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix testcase for vector .SAT_SUB in zip benchmark
authorEdwin Lu <ewlu@rivosinc.com>
Fri, 12 Jul 2024 18:31:16 +0000 (11:31 -0700)
committerEdwin Lu <ewlu@rivosinc.com>
Mon, 15 Jul 2024 16:43:46 +0000 (09:43 -0700)
commit4306f76192bc7ab71c5997a7e2c95320505029ab
treee03af0aa15e1fedc8d893c679a7aa2272e370c5b
parent8f87b3c5ecd47f6ac0d7407ae5d436a12fb169dd
RISC-V: Fix testcase for vector .SAT_SUB in zip benchmark

The following testcase was not properly testing anything due to an
uninitialized variable. As a result, the loop was not iterating through
the testing data, but instead on undefined values which could cause an
unexpected abort.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/binop/vec_sat_binary_vx.h:
initialize variable

Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vec_sat_binary_vx.h