diff options
Diffstat (limited to 'test/torture-s/loop-3b.c.s')
-rw-r--r-- | test/torture-s/loop-3b.c.s | 67 |
1 files changed, 37 insertions, 30 deletions
diff --git a/test/torture-s/loop-3b.c.s b/test/torture-s/loop-3b.c.s index 0e1da32bb..453d47d27 100644 --- a/test/torture-s/loop-3b.c.s +++ b/test/torture-s/loop-3b.c.s @@ -9,11 +9,12 @@ g: # @g .result i32 .local i32 # BB#0: # %entry - i32.const $1=, 0 - i32.load $push0=, n($1) - i32.const $push1=, 1 - i32.add $push2=, $pop0, $pop1 - i32.store $discard=, n($1), $pop2 + i32.const $push0=, 0 + i32.const $push4=, 0 + i32.load $push1=, n($pop4) + i32.const $push2=, 1 + i32.add $push3=, $pop1, $pop2 + i32.store $discard=, n($pop0), $pop3 return $1 .endfunc .Lfunc_end0: @@ -26,23 +27,26 @@ g: # @g f: # @f .param i32 .result i32 - .local i32, i32 # BB#0: # %entry - i32.const $2=, 268435455 - i32.const $1=, 0 - i32.load $push0=, n($1) - i32.lt_s $push1=, $0, $2 - i32.select $push2=, $pop1, $0, $2 - i32.const $push3=, -1 - i32.xor $push4=, $pop2, $pop3 - i32.add $push5=, $0, $pop4 - i32.add $push6=, $pop5, $2 - i32.div_u $push7=, $pop6, $2 - i32.add $push8=, $pop0, $pop7 - i32.const $push9=, 1 - i32.add $push10=, $pop8, $pop9 - i32.store $discard=, n($1), $pop10 - return $2 + i32.const $push0=, 0 + i32.const $push16=, 0 + i32.load $push1=, n($pop16) + i32.const $push2=, 268435455 + i32.lt_s $push3=, $0, $pop2 + i32.const $push15=, 268435455 + i32.select $push4=, $pop3, $0, $pop15 + i32.const $push5=, -1 + i32.xor $push6=, $pop4, $pop5 + i32.add $push7=, $0, $pop6 + i32.const $push14=, 268435455 + i32.add $push8=, $pop7, $pop14 + i32.const $push13=, 268435455 + i32.div_u $push9=, $pop8, $pop13 + i32.add $push10=, $pop1, $pop9 + i32.const $push11=, 1 + i32.add $push12=, $pop10, $pop11 + i32.store $discard=, n($pop0), $pop12 + return $0 .endfunc .Lfunc_end1: .size f, .Lfunc_end1-f @@ -53,17 +57,20 @@ f: # @f .type main,@function main: # @main .result i32 - .local i32, i32 + .local i32 # BB#0: # %entry - i32.const $0=, 0 - i32.load $1=, n($0) + i32.const $push5=, 0 + i32.const $push4=, 0 + i32.load $push0=, n($pop4) + tee_local $push3=, $0=, $pop0 + i32.const $push1=, 4 + i32.add $push2=, $pop3, $pop1 + i32.store $discard=, n($pop5), $pop2 block - i32.const $push0=, 4 - i32.add $push1=, $1, $pop0 - i32.store $discard=, n($0), $pop1 - br_if $1, 0 # 0: down to label0 + br_if $0, 0 # 0: down to label0 # BB#1: # %if.end - call exit@FUNCTION, $0 + i32.const $push6=, 0 + call exit@FUNCTION, $pop6 unreachable .LBB2_2: # %if.then end_block # label0: @@ -77,7 +84,7 @@ main: # @main .type n,@object .section .bss.n,"aw",@nobits .globl n - .align 2 + .p2align 2 n: .int32 0 # 0x0 .size n, 4 |