summaryrefslogtreecommitdiff
path: root/test/torture-s/switch-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/switch-1.c.s')
-rw-r--r--test/torture-s/switch-1.c.s39
1 files changed, 20 insertions, 19 deletions
diff --git a/test/torture-s/switch-1.c.s b/test/torture-s/switch-1.c.s
index c3c41de49..a1543dc8e 100644
--- a/test/torture-s/switch-1.c.s
+++ b/test/torture-s/switch-1.c.s
@@ -23,7 +23,7 @@ foo: # @foo
.LBB0_2: # %return
end_block # label0:
i32.const $push3=, 31
- return $pop3
+ # fallthrough-return: $pop3
.endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
@@ -46,20 +46,20 @@ main: # @main
block
block
loop # label6:
- i32.const $2=, 31
+ i32.const $3=, 31
block
i32.const $push14=, -4
i32.add $push13=, $1, $pop14
- tee_local $push12=, $4=, $pop13
+ tee_local $push12=, $2=, $pop13
i32.const $push11=, 7
i32.gt_u $push10=, $pop12, $pop11
- tee_local $push9=, $3=, $pop10
+ tee_local $push9=, $4=, $pop10
br_if 0, $pop9 # 0: down to label8
# BB#2: # %switch.lookup.i
# in Loop: Header=BB1_1 Depth=1
i32.const $push15=, 2
- i32.shl $push0=, $4, $pop15
- i32.load $2=, .Lswitch.table($pop0)
+ i32.shl $push0=, $2, $pop15
+ i32.load $3=, .Lswitch.table($pop0)
.LBB1_3: # %foo.exit
# in Loop: Header=BB1_1 Depth=1
end_block # label8:
@@ -68,11 +68,11 @@ main: # @main
block
block
block
- br_if 0, $3 # 0: down to label13
+ br_if 0, $4 # 0: down to label13
# BB#4: # %foo.exit
# in Loop: Header=BB1_1 Depth=1
block
- br_table $4, 0, 1, 2, 1, 1, 3, 1, 4, 0 # 0: down to label14
+ br_table $2, 0, 1, 2, 1, 1, 3, 1, 4, 0 # 0: down to label14
# 1: down to label13
# 2: down to label12
# 3: down to label11
@@ -81,42 +81,43 @@ main: # @main
# in Loop: Header=BB1_1 Depth=1
end_block # label14:
i32.const $push16=, 30
- i32.eq $push4=, $2, $pop16
+ i32.eq $push4=, $3, $pop16
br_if 4, $pop4 # 4: down to label9
br 8 # 8: down to label4
.LBB1_6: # %if.else21
# in Loop: Header=BB1_1 Depth=1
end_block # label13:
i32.const $push17=, 31
- i32.ne $push5=, $2, $pop17
+ i32.ne $push5=, $3, $pop17
br_if 8, $pop5 # 8: down to label3
# BB#7: # %for.inc
# in Loop: Header=BB1_1 Depth=1
- i32.const $push19=, 1
- i32.add $1=, $1, $pop19
+ i32.const $push21=, 1
+ i32.add $push20=, $1, $pop21
+ tee_local $push19=, $1=, $pop20
i32.const $push18=, 66
- i32.lt_s $push6=, $1, $pop18
+ i32.lt_s $push6=, $pop19, $pop18
br_if 4, $pop6 # 4: up to label6
br 6 # 6: down to label5
.LBB1_8: # %if.then5
# in Loop: Header=BB1_1 Depth=1
end_block # label12:
- i32.const $push20=, 30
- i32.eq $push3=, $2, $pop20
+ i32.const $push22=, 30
+ i32.eq $push3=, $3, $pop22
br_if 2, $pop3 # 2: down to label9
br 8 # 8: down to label2
.LBB1_9: # %if.then11
# in Loop: Header=BB1_1 Depth=1
end_block # label11:
- i32.const $push21=, 30
- i32.eq $push2=, $2, $pop21
+ i32.const $push23=, 30
+ i32.eq $push2=, $3, $pop23
br_if 1, $pop2 # 1: down to label9
br 8 # 8: down to label1
.LBB1_10: # %if.then17
# in Loop: Header=BB1_1 Depth=1
end_block # label10:
- i32.const $push22=, 30
- i32.ne $push1=, $2, $pop22
+ i32.const $push24=, 30
+ i32.ne $push1=, $3, $pop24
br_if 2, $pop1 # 2: down to label7
.LBB1_11: # %for.inc.thread
# in Loop: Header=BB1_1 Depth=1