]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix reduc_strict_run-1 test case.
authorRobin Dapp <rdapp@ventanamicro.com>
Tue, 15 Aug 2023 15:15:58 +0000 (17:15 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Thu, 24 Aug 2023 11:12:49 +0000 (13:12 +0200)
commit8c3146ce0ee14bc6747fb92947879d82d43f3bb2
tree8acf866f6339b9e390804e27daf336d25e4132c4
parent43da77a4f1636280c4259402c9c2c543e6ec6c0b
RISC-V: Fix reduc_strict_run-1 test case.

This patch fixes the reduc_strict_run-1 testcase by introducing
a variable that holds the reference result.  This is necessary
because in presence of _Float16 emulation an intermediate
result used in a comparison is computed in higher precision.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/reduc/reduc_strict_run-1.c:
Add variable to hold reference result.
gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc_strict_run-1.c