diff options
Diffstat (limited to 'test/torture-s/nestfunc-4.c.s')
-rw-r--r-- | test/torture-s/nestfunc-4.c.s | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/test/torture-s/nestfunc-4.c.s b/test/torture-s/nestfunc-4.c.s index 264dc37cf..d3b593392 100644 --- a/test/torture-s/nestfunc-4.c.s +++ b/test/torture-s/nestfunc-4.c.s @@ -9,15 +9,16 @@ main: # @main .local i32 # BB#0: # %if.then i32.const $push0=, 0 - i32.load $0=, level($pop0) - i32.const $push8=, 0 + i32.const $push10=, 0 + i32.load $push9=, level($pop10) + tee_local $push8=, $0=, $pop9 i32.const $push1=, 2040 i32.const $push7=, 2040 i32.gt_s $push2=, $0, $pop7 - i32.select $push3=, $0, $pop1, $pop2 + i32.select $push3=, $pop8, $pop1, $pop2 i32.const $push4=, 1 i32.add $push5=, $pop3, $pop4 - i32.store $drop=, level($pop8), $pop5 + i32.store $drop=, level($pop0), $pop5 i32.const $push6=, 0 call exit@FUNCTION, $pop6 unreachable @@ -34,17 +35,18 @@ foo: # @foo .local i32 # BB#0: # %entry i32.const $push0=, 0 - i32.load $0=, level($pop0) - i32.const $push8=, 0 + i32.const $push10=, 0 + i32.load $push9=, level($pop10) + tee_local $push8=, $0=, $pop9 i32.const $push1=, 2040 i32.const $push7=, 2040 i32.gt_s $push2=, $0, $pop7 - i32.select $push3=, $0, $pop1, $pop2 + i32.select $push3=, $pop8, $pop1, $pop2 i32.const $push4=, 1 i32.add $push5=, $pop3, $pop4 - i32.store $drop=, level($pop8), $pop5 + i32.store $drop=, level($pop0), $pop5 i32.const $push6=, -42 - return $pop6 + # fallthrough-return: $pop6 .endfunc .Lfunc_end1: .size foo, .Lfunc_end1-foo @@ -57,20 +59,20 @@ bar: # @bar .result i32 .local i32, i32 # BB#0: # %entry - i32.const $0=, -42 + i32.const $1=, -42 block i32.const $push0=, 0 i32.load $push5=, level($pop0) - tee_local $push4=, $1=, $pop5 + tee_local $push4=, $0=, $pop5 i32.const $push1=, 2040 i32.gt_s $push2=, $pop4, $pop1 br_if 0, $pop2 # 0: down to label0 # BB#1: # %cond.false - i32.call $0=, foo@FUNCTION + i32.call $1=, foo@FUNCTION .LBB2_2: # %cond.end end_block # label0: - i32.sub $push3=, $0, $1 - return $pop3 + i32.sub $push3=, $1, $0 + # fallthrough-return: $pop3 .endfunc .Lfunc_end2: .size bar, .Lfunc_end2-bar |