blob: 78fd384630d0965c94de91eb92d5e9ab2e9b45c2 [file] [log] [blame]
.text
.section .text.foo,"ax",@progbits
.hidden foo
.globl foo
.type foo,@function
foo: # @foo
.param i32
.result i32
.local i32
# BB#0: # %entry
i32.const $push0=, 16
i32.call $push8=, __builtin_malloc@FUNCTION, $pop0
tee_local $push7=, $1=, $pop8
i32.const $push1=, 0
i32.store 0($pop7), $pop1
i32.const $push2=, 2
i32.shl $push3=, $0, $pop2
i32.add $push4=, $1, $pop3
i32.const $push5=, 1
i32.store 0($pop4), $pop5
i32.load $push6=, 0($1)
# fallthrough-return: $pop6
.endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
# BB#0: # %entry
block
i32.const $push3=, 0
i32.call $push0=, foo@FUNCTION, $pop3
i32.const $push1=, 1
i32.ne $push2=, $pop0, $pop1
br_if 0, $pop2 # 0: down to label0
# BB#1: # %if.end
i32.const $push4=, 0
return $pop4
.LBB1_2: # %if.then
end_block # label0:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.functype __builtin_malloc, i32
.functype abort, void