Files
wasmtime/cranelift/wasm/wasmtests/arith.wat
Olivier Lemasle 954f7d3876 cranelift: move wasmtests in cranelift-wasm
Move test data used by cranelift-wasm's tests in
the crate directory, to make the tests autonomous.

Fixes #2910
2021-05-18 22:48:52 +02:00

14 lines
295 B
Plaintext

(module
(memory 1)
(func $main (local i32)
(set_local 0 (i32.sub (i32.const 4) (i32.const 4)))
(if
(get_local 0)
(then unreachable)
(else (drop (i32.mul (i32.const 6) (get_local 0))))
)
)
(start $main)
(data (i32.const 0) "abcdefgh")
)