afonso360 opened PR #6939 from afonso360:fuzz-more-ops
to bytecodealliance:main
:
:wave: Hey,
This PR fixes the
ishl
/{s,u}shr
instructions for SIMD in the interpreter. The main issue is that while the LHS is a vector the RHS is a scalar and that was causing issues. The solution is to splat the RHS into a similar sized vector and perform the normal operation individually.This PR also enables these operations in fuzzgen. As well as
ineg
(fixed in #6844) andbitselect
with floats (which was working previously)
afonso360 requested jameysharp for a review on PR #6939.
afonso360 requested wasmtime-compiler-reviewers for a review on PR #6939.
afonso360 edited PR #6939:
:wave: Hey,
This PR fixes the
ishl
/{s,u}shr
/rot{r,l}
instructions for SIMD in the interpreter. The main issue is that while the LHS is a vector the RHS is a scalar and that was causing issues. The solution is to splat the RHS into a similar sized vector and perform the normal operation individually.This PR also enables these operations in fuzzgen. As well as
ineg
(fixed in #6844) andbitselect
with floats (which was working previously)
afonso360 edited PR #6939:
:wave: Hey,
This PR fixes the
ishl
/{s,u}shr
/rot{r,l}
instructions for SIMD in the interpreter. The main issue is that while the LHS is a vector the RHS is a scalar and by default we perform the operations lanewise. The solution is to splat the RHS into a similar sized vector and perform the normal operation individually.This PR also enables these operations in fuzzgen. As well as
ineg
(fixed in #6844) andbitselect
with floats (which was working previously)
afonso360 updated PR #6939.
jameysharp submitted PR review:
I like this approach and also it's always nice to enable more in fuzzgen. Thanks!
jameysharp submitted PR review:
I like this approach and also it's always nice to enable more in fuzzgen. Thanks!
jameysharp created PR review comment:
Not important but I think I'd find it easier to understand this match arm (and similar ones below) if written this way:
&[I8X16 | I16X8 | I32X4 | I64X2, I128]
afonso360 updated PR #6939.
afonso360 has enabled auto merge for PR #6939.
afonso360 merged PR #6939.
Last updated: Dec 23 2024 at 12:05 UTC