Files
wasm-instrument/tests/fixtures/gas/ifs.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

10 lines
175 B
WebAssembly Text Format

(module
(func (param $x i32) (result i32)
(if (result i32)
(i32.const 1)
(then (i32.add (local.get $x) (i32.const 1)))
(else (i32.popcnt (local.get $x)))
)
)
)