blob: 2f969b86bccf9d3e70140cf4e6702669e13f9712 [file] [log] [blame]
.text
.section .text.foo,"ax",@progbits
.hidden foo
.globl foo
.type foo,@function
foo: # @foo
.param i32
.result i32
# BB#0: # %entry
i32.const $push2=, 52783
i32.const $push0=, 0
i32.const $push5=, 0
i32.load8_u $push1=, next_buffer($pop5)
i32.select $push3=, $pop2, $pop0, $pop1
i32.add $push4=, $pop3, $0
# fallthrough-return: $pop4
.endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
.section .text.bar,"ax",@progbits
.hidden bar
.globl bar
.type bar,@function
bar: # @bar
# BB#0: # %entry
# fallthrough-return
.endfunc
.Lfunc_end1:
.size bar, .Lfunc_end1-bar
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
# BB#0: # %entry
block
i32.const $push2=, 0
i32.load8_u $push0=, next_buffer($pop2)
i32.eqz $push5=, $pop0
br_if 0, $pop5 # 0: down to label0
# BB#1: # %if.then
call abort@FUNCTION
unreachable
.LBB2_2: # %if.end4
end_block # label0:
i32.const $push4=, 0
i32.const $push1=, 1
i32.store8 next_buffer($pop4), $pop1
i32.const $push3=, 0
call exit@FUNCTION, $pop3
unreachable
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
.type next_buffer,@object # @next_buffer
.section .bss.next_buffer,"aw",@nobits
.p2align 2
next_buffer:
.int8 0 # 0x0
.size next_buffer, 1
.functype abort, void
.functype exit, void, i32