1
0
mirror of https://github.com/fluencelabs/wasmer synced 2025-03-17 16:50:48 +00:00

24 lines
508 B
Plaintext
Raw Normal View History

2018-10-29 14:36:26 +01:00
(module
(func $ternary (param $lhs i64) (param $rhs i64) (param $cond i32) (result i64)
(select
(get_local $lhs)
(get_local $rhs)
(get_local $cond)
)
)
(func $main (result i64)
(call $ternary
(i64.const 126)
(call $ternary
(i64.const 1024)
(i64.const 4028)
(i32.const 0)
)
(i32.const 0)
)
)
(export "main" (func $main))
)