Interpreter: Incorrect i32.ne
results for value from host function (negative numbers only)
#2371
Labels
bug
Something isn't working
Describe the bug
Incorrect
i32.ne
results for value from host function (negative numbers only).Host func result put on stack as uint64 (see internal/wasm.callGoFunc).
For -1 its 0xFFFFFFFFFFFFFFFF.
But on comaration with i32(-1) from wasm its comapres with 0x00000000FFFFFFFF.
To Reproduce
Golang code:
Wat code for WASM
Expected behavior
After run, the message "OK: -1 != -1 is false" should be displayed, but an error occurs.
Screenshots
Screenshot from debugger
Environment (please complete the relevant information):
Additional context
In compiler mode its work fine.
The text was updated successfully, but these errors were encountered: