afonso360 opened PR #6599 from afonso360:riscv-simd-avg-round
to bytecodealliance:main
:
:wave: Hey,
This PR implements the SIMD
avg_round
instruction. We don't have a native version of this, so we break it down into multiple ops, using a slightly modified formula from Hacker's Delight.The original formula does a floor average round, but we correct that by using a special shift right instruction that rounds up the result. I think this is correct, but would appreciate a double check on it.
This passes both the cranelift tests, as well as the wasmtime
*_arith2
test suites, however we can't enable them yet because they also requireiabs
which is only implemented in #6598.
afonso360 requested abrown for a review on PR #6599.
afonso360 requested wasmtime-compiler-reviewers for a review on PR #6599.
alexcrichton submitted PR review:
:+1:
afonso360 merged PR #6599.
Last updated: Nov 22 2024 at 16:03 UTC