summaryrefslogtreecommitdiff
path: root/test/torture-s/loop-3c.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/loop-3c.c.s')
-rw-r--r--test/torture-s/loop-3c.c.s29
1 files changed, 16 insertions, 13 deletions
diff --git a/test/torture-s/loop-3c.c.s b/test/torture-s/loop-3c.c.s
index ed8e747fe..9e781559a 100644
--- a/test/torture-s/loop-3c.c.s
+++ b/test/torture-s/loop-3c.c.s
@@ -17,21 +17,24 @@ f: # @f
.LBB0_1: # %do.body
# =>This Inner Loop Header: Depth=1
loop # label0:
- i32.const $push10=, 1
- i32.shr_s $2=, $2, $pop10
- i32.const $push9=, 4
- i32.add $0=, $0, $pop9
- i32.const $push8=, 2
- i32.shl $push4=, $2, $pop8
+ i32.const $push14=, 1
+ i32.shr_s $push13=, $2, $pop14
+ tee_local $push12=, $2=, $pop13
+ i32.const $push11=, 2
+ i32.shl $push4=, $pop12, $pop11
i32.store $push0=, a($pop4), $1
- i32.const $push7=, 32
- i32.add $1=, $pop0, $pop7
+ i32.const $push10=, 32
+ i32.add $1=, $pop0, $pop10
+ i32.const $push9=, 4
+ i32.add $push8=, $0, $pop9
+ tee_local $push7=, $0=, $pop8
i32.const $push6=, 1073741840
- i32.lt_s $push5=, $0, $pop6
+ i32.lt_s $push5=, $pop7, $pop6
br_if 0, $pop5 # 0: up to label0
# BB#2: # %do.end
end_loop # label1:
- return $0
+ copy_local $push15=, $0
+ # fallthrough-return: $pop15
.endfunc
.Lfunc_end0:
.size f, .Lfunc_end0-f
@@ -43,9 +46,9 @@ f: # @f
main: # @main
.result i32
# BB#0: # %if.end7
- i32.const $push1=, 0
- i32.const $push2=, a
- i32.store $drop=, a+512($pop1), $pop2
+ i32.const $push2=, 0
+ i32.const $push1=, a
+ i32.store $drop=, a+512($pop2), $pop1
i32.const $push10=, 0
i32.const $push3=, a+32
i32.store $drop=, a+256($pop10), $pop3