You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rdunnington opened this issue
May 11, 2024
· 0 comments
· Fixed by #20012
Labels
arch-wasm32-bit and 64-bit WebAssemblybugObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.
arch-wasm32-bit and 64-bit WebAssemblybugObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.
Zig Version
0.12.0
Steps to Reproduce and Observed Behavior
With this program
memtest.zig
:Building with the command:
zig build-exe memtest.zig -target wasm64-freestanding -fno-entry --export=memtest -O ReleaseSmall
Yields the codegen (translated with
wasm2wat --enable-all --no-check memtest.wasm
:Running
wasm2wat --enable-all memtest.wasm
(without the--no-check
) yields an error:Note that an
i32
is being pushed on the stack instead of an i64, even though the memory type is declared asi64
.Expected Behavior
An i64 is pushed to the stack instead of
i32
in accordance with thememory64
spec proposal:https://github.com/WebAssembly/memory64/blob/main/proposals/memory64/Overview.md
The text was updated successfully, but these errors were encountered: