Files
wasm-instrument/tests/fixtures/gas/branch.wat
T
StackOverflowExcept1on fdce5c64f1 chore: modernize WASM tests (#79)
I tried locally merge `fix-tests` and `fix-clippy` branches and CI
should work after my PRs
2023-11-07 09:14:09 +01:00

28 lines
388 B
WebAssembly Text Format

(module
(func $fibonacci_with_break (result i32)
(local $x i32) (local $y i32)
(block $unrolled_loop
(local.set $x (i32.const 0))
(local.set $y (i32.const 1))
local.get $x
local.get $y
local.tee $x
i32.add
local.set $y
i32.const 1
br_if $unrolled_loop
local.get $x
local.get $y
local.tee $x
i32.add
local.set $y
)
local.get $y
)
)