Add zero load opcodes#3943
Conversation
248d9fe to
1ea93cc
Compare
b0202a7 to
072960f
Compare
| wasm_set_exception(module, "unsupported SIMD opcode"); | ||
| break; | ||
| } | ||
| #define SIMD_LOAD_ZERO_OP(width) \ |
There was a problem hiding this comment.
It appears there is some code shared with SIMD_LOAD_LANE_OP(like after int32 base...). Is there a way we can minimize code duplication?
There was a problem hiding this comment.
yeah that's a great idea actually
what we can do is call load_lane (0, width) to load the 0 lane and then nullify other lanes
needs some refactoring but doable
072960f to
4cb9b1b
Compare
|
@lum1n0us I refactored a bit, I think refactoring further will just bring a lot of complexity |
I'm quite fond of this version. It uncovers the logical connection between |
|
looks like the CI failure is unrelated (it's also in classic-interp while the PR only touches the fast one) so I think it should be merge-ready |
|
The CI is green now after I re-ran it. |
tested using a simple wat again