-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasm-opt crash: "Fatal: Unsupported instruction for Flatten: BrOn" #7053
Comments
Looks like this is #6989 (comment) - we don't yet support Was there a specific reason you wanted that instead of |
(func $foo1 (;299;) (param $var0 (ref $OneByteString)) (result i64)
(local $var1 i64)
(local $var2 i64)
(local $var3 (ref $Array<WasmI8>))
loop $label0
local.get $var1
local.get $var0
struct.get $OneByteString $field2
local.tee $var3
array.len
i64.extend_i32_u
i64.lt_s
if
local.get $var3
local.get $var1
i32.wrap_i64
array.get_u $Array<WasmI8>
i64.extend_i32_u
i64.eqz
if
local.get $var3
i32.const 1000000000
array.get_u $Array<WasmI8>
i64.extend_i32_u
local.get $var2
i64.add
local.set $var2
end
local.get $var1
i64.const 1
i64.add
local.set $var1
br $label0
end
end $label0
local.get $var2) Here |
Ah, then |
wasm-opt crashes when I try to optimize the Wasm file in the zip file (attached):
I'm trying with the current
main
branch (320867a):Update: it also happens with wasm-opt version 119 (93883fd).
test.wasm.zip
The text was updated successfully, but these errors were encountered: