summaryrefslogtreecommitdiff
path: root/test/torture-s/loop-13.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/loop-13.c.s')
-rw-r--r--test/torture-s/loop-13.c.s68
1 files changed, 35 insertions, 33 deletions
diff --git a/test/torture-s/loop-13.c.s b/test/torture-s/loop-13.c.s
index 50aa87526..c1f0a35ba 100644
--- a/test/torture-s/loop-13.c.s
+++ b/test/torture-s/loop-13.c.s
@@ -6,55 +6,57 @@
.type scale,@function
scale: # @scale
.param i32, i32, i32
- .local i32, i32, i32
+ .local i32, i32
# BB#0: # %entry
block
- i32.load $push13=, 0($0)
- tee_local $push12=, $3=, $pop13
- i32.const $push11=, 1
- i32.eq $push0=, $pop12, $pop11
+ i32.load $push15=, 0($0)
+ tee_local $push14=, $3=, $pop15
+ i32.const $push13=, 1
+ i32.eq $push0=, $pop14, $pop13
br_if 0, $pop0 # 0: down to label0
# BB#1: # %entry
- i32.const $push14=, 1
- i32.lt_s $push1=, $2, $pop14
+ i32.const $push16=, 1
+ i32.lt_s $push1=, $2, $pop16
br_if 0, $pop1 # 0: down to label0
# BB#2: # %for.body.preheader
- i32.load $4=, 4($1)
i32.load $push2=, 0($1)
i32.mul $push3=, $pop2, $3
i32.store $drop=, 0($1), $pop3
- i32.mul $push4=, $4, $3
- i32.store $drop=, 4($1), $pop4
- i32.const $push5=, 1
- i32.eq $push6=, $2, $pop5
- br_if 0, $pop6 # 0: down to label0
+ i32.load $push4=, 4($1)
+ i32.mul $push5=, $pop4, $3
+ i32.store $drop=, 4($1), $pop5
+ i32.const $push6=, 1
+ i32.eq $push7=, $2, $pop6
+ br_if 0, $pop7 # 0: down to label0
# BB#3: # %for.body.for.body_crit_edge.preheader
- i32.const $push7=, 12
- i32.add $1=, $1, $pop7
- i32.const $push15=, -1
- i32.add $2=, $2, $pop15
+ i32.const $push8=, 12
+ i32.add $1=, $1, $pop8
+ i32.const $push17=, -1
+ i32.add $2=, $2, $pop17
.LBB0_4: # %for.body.for.body_crit_edge
# =>This Inner Loop Header: Depth=1
loop # label1:
- i32.const $push20=, -4
- i32.add $3=, $1, $pop20
- i32.load $4=, 0($1)
- i32.load $push8=, 0($3)
- i32.load $push19=, 0($0)
- tee_local $push18=, $5=, $pop19
- i32.mul $push9=, $pop8, $pop18
- i32.store $drop=, 0($3), $pop9
- i32.mul $push10=, $4, $5
+ i32.load $push9=, 0($1)
+ i32.load $push26=, 0($0)
+ tee_local $push25=, $3=, $pop26
+ i32.mul $push10=, $pop9, $pop25
i32.store $drop=, 0($1), $pop10
- i32.const $push17=, -1
- i32.add $2=, $2, $pop17
- i32.const $push16=, 8
- i32.add $1=, $1, $pop16
- br_if 0, $2 # 0: up to label1
+ i32.const $push24=, -4
+ i32.add $push23=, $1, $pop24
+ tee_local $push22=, $4=, $pop23
+ i32.load $push11=, 0($4)
+ i32.mul $push12=, $3, $pop11
+ i32.store $drop=, 0($pop22), $pop12
+ i32.const $push21=, 8
+ i32.add $1=, $1, $pop21
+ i32.const $push20=, -1
+ i32.add $push19=, $2, $pop20
+ tee_local $push18=, $2=, $pop19
+ br_if 0, $pop18 # 0: up to label1
.LBB0_5: # %if.end
end_loop # label2:
end_block # label0:
- return
+ # fallthrough-return
.endfunc
.Lfunc_end0:
.size scale, .Lfunc_end0-scale
@@ -67,7 +69,7 @@ main: # @main
.result i32
# BB#0: # %if.end
i32.const $push0=, 0
- return $pop0
+ # fallthrough-return: $pop0
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main