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
If I work around the assert by using wasm::Literal::geti64() instead of wasm::Literal::geti32(), wasm-split is able to run but running wasm-opt build/main.wasm --enable-mutable-globals --enable-memory64 on the resulting wasm file throws a validation error:
[wasm-validator error in function 6] i32 != i64: call-indirect call target must match the table index type, on
(call_indirect $0 (type $func.0)
(i64.add
(local.get $15)
(i64.load
(i64.add
(i64.load
(local.get $15)
)
(i64.const -24)
)
)
)
(i32.const 5)
(i32.const 365)
)
[wasm-validator error in function 13] i32 != i64: call-indirect call target must match the table index type, on
(call_indirect $0 (type $func.0)
(local.get $9)
(local.get $8)
(i32.shr_s
(i32.shl
(local.get $11)
(local.get $12)
)
(local.get $12)
)
(i32.const 366)
)
...
Fatal: error validating input
Activity
wenhanchong commentedon Jul 21, 2025
If I work around the assert by using
wasm::Literal::geti64()instead ofwasm::Literal::geti32(), wasm-split is able to run but runningwasm-opt build/main.wasm --enable-mutable-globals --enable-memory64on the resulting wasm file throws a validation error:wenhanchong commentedon Jul 22, 2025
@tlively is memory64 supported in wasm-split?
Mintyboi commentedon Aug 15, 2025
@kripken @sbc100 Any chance of getting some eyes on this?
Or perhaps, could there be anything we can do more to make it easier to identify the issue?
tlively commentedon Aug 15, 2025
cc @aheejin, do you think you could take a look at this?
[wasm-split] Support table64
[wasm-split] Support table64
[wasm-split] Support table64 (WebAssembly#7904)