afonso360 requested fitzgen for a review on PR #6657.
afonso360 requested wasmtime-compiler-reviewers for a review on PR #6657.
afonso360 requested wasmtime-default-reviewers for a review on PR #6657.
afonso360 opened PR #6657 from afonso360:riscv-simd-float-arith2 to bytecodealliance:main:
:wave: Hey,
This PR implements a few SIMD float ops. These are:
fabsfcopysignfmin_pseudofmax_pseudofminfmax
f{min,max}are slightly complicated since we don't have a instruction that exactly matches the required semantics. The implementation here builds a mask for the inputs that are NaN and returns the canonical NaN in these cases. This is the same lowering that V8 uses.I've had to alter the
simd-fmax-fmintests since they were expecting the sign bit of the resulting NaN to be unchanged, however this seems not to be required as per our documentation. I've moved these tests to thenondeterministictestsuites that we have.
alexcrichton submitted PR review:
:+1:
alexcrichton merged PR #6657.
Last updated: Dec 06 2025 at 06:05 UTC