On 8/15/23 09:49, Robin Dapp wrote:
Hi,
this patch changes the equality check for the reduc_strict_run-1
testcase from == to fabs () < EPS. The FAIL only occurs with
_Float16 but I'd argue approximate equality is preferable for all
float modes.
Regards
Robin
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/autovec/reduc/reduc_strict_run-1.c:
Check float equality with fabs < EPS.
Generally agree with using an EPS test.
The question is shouldn't a fold-left reduction be done in-order and
produce the same result as a scalar equivalent?
Jeff