blob: a0eb1172ac3df1b6ea22c7cd92e052206d0e42a0 [file] [log] [blame]
(module
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $1 (func (result i32)))
(type $2 (func (param i32)))
(type $3 (func))
(import "env" "table" (table 9 9 anyfunc))
(func $break-and-binary (; 0 ;) (type $1) (result i32)
(block $x (result i32)
(f32.add
(br_if $x
(i32.trunc_u/f64
(unreachable)
)
(i32.trunc_u/f64
(unreachable)
)
)
(f32.const 1)
)
)
)
(func $call-and-unary (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(drop
(i64.eqz
(call $call-and-unary
(unreachable)
)
)
)
(drop
(i64.eqz
(i32.eqz
(unreachable)
)
)
)
(drop
(i64.eqz
(call_indirect (type $FUNCSIG$ii)
(unreachable)
(unreachable)
)
)
)
)
(func $tee (; 2 ;) (type $2) (param $x i32)
(local $y f32)
(drop
(i64.eqz
(tee_local $x
(unreachable)
)
)
)
(drop
(tee_local $y
(i64.eqz
(unreachable)
)
)
)
)
(func $tee2 (; 3 ;) (type $3)
(local $0 f32)
(if
(i32.const 259)
(tee_local $0
(unreachable)
)
)
)
(func $select (; 4 ;) (type $3)
(drop
(i64.eqz
(select
(unreachable)
(i32.const 1)
(i32.const 2)
)
)
)
)
(func $untaken-break-should-have-value (; 5 ;) (type $1) (result i32)
(block $x (result i32)
(block $block
(br_if $x
(i32.const 0)
(unreachable)
)
)
)
)
(func $unreachable-in-block-but-code-before (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(if
(get_local $0)
(return
(i32.const 127)
)
)
(block $label$0 (result i32)
(br_if $label$0
(i32.const 0)
(return
(i32.const -32)
)
)
)
)
(func $br_table_unreachable_to_also_unreachable (; 7 ;) (type $1) (result i32)
(block $a (result i32)
(block $b (result i32)
(br_table $a $b
(unreachable)
(unreachable)
)
)
)
)
(func $untaken-br_if (; 8 ;) (type $1) (result i32)
(block $label$8 (result i32)
(block $label$9
(drop
(if
(i32.const 0)
(br_if $label$8
(unreachable)
(i32.const 0)
)
(unreachable)
)
)
)
)
)
)