| .text |
| .section .text.foo,"ax",@progbits |
| .hidden foo |
| .globl foo |
| .type foo,@function |
| foo: # @foo |
| .param i32, i32 |
| .result i64 |
| # BB#0: # %entry |
| i32.div_s $push0=, $0, $1 |
| i64.extend_s/i32 $push1=, $pop0 |
| # fallthrough-return: $pop1 |
| .endfunc |
| .Lfunc_end0: |
| .size foo, .Lfunc_end0-foo |
| |
| .section .text.bar,"ax",@progbits |
| .hidden bar |
| .globl bar |
| .type bar,@function |
| bar: # @bar |
| .result i32 |
| # BB#0: # %entry |
| i32.const $push0=, 0 |
| i32.const $push5=, 0 |
| i32.load $push1=, a($pop5) |
| i32.const $push4=, 0 |
| i32.ne $push2=, $pop1, $pop4 |
| i32.store b($pop0), $pop2 |
| i32.const $push3=, 0 |
| # fallthrough-return: $pop3 |
| .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 |
| i32.call $drop=, bar@FUNCTION |
| block |
| i32.const $push3=, 0 |
| i32.load $push0=, b($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 |
| .LBB2_2: # %if.then |
| end_block # label0: |
| call abort@FUNCTION |
| unreachable |
| .endfunc |
| .Lfunc_end2: |
| .size main, .Lfunc_end2-main |
| |
| .hidden a # @a |
| .type a,@object |
| .section .data.a,"aw",@progbits |
| .globl a |
| .p2align 2 |
| a: |
| .int32 3 # 0x3 |
| .size a, 4 |
| |
| .hidden b # @b |
| .type b,@object |
| .section .data.b,"aw",@progbits |
| .globl b |
| .p2align 2 |
| b: |
| .int32 1 # 0x1 |
| .size b, 4 |
| |
| |
| .functype abort, void |