WebAssembly / spec

WebAssembly specification, reference interpreter, and test suite.
https://webassembly.github.io/spec/
Other
3.09k stars 438 forks source link

[spec] Fix argument order in shape.replace_lane instruction of execution #1721

Closed HoseongLee closed 5 months ago

HoseongLee commented 5 months ago

The order of the arguments in the instruction shape.replace_lane is different to the order of the pop in the execution. The execution pops t1.const c1 first even though it is presented as the left-most argument.

imageImage of the original spec

This pull request changes the order of the arguments to match the pop operations and the subscripts of variables accordingly.