diff options
Diffstat (limited to 'test/torture-s/switch-1.c.s')
-rw-r--r-- | test/torture-s/switch-1.c.s | 61 |
1 files changed, 38 insertions, 23 deletions
diff --git a/test/torture-s/switch-1.c.s b/test/torture-s/switch-1.c.s index 4110cf17e..a993c3a22 100644 --- a/test/torture-s/switch-1.c.s +++ b/test/torture-s/switch-1.c.s @@ -8,12 +8,12 @@ foo: # @foo .param i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, -4 i32.add $0=, $0, $pop0 i32.const $push1=, 7 i32.gt_u $push2=, $0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %switch.lookup i32.const $push6=, .Lswitch.table i32.const $push4=, 2 @@ -22,6 +22,7 @@ foo: # @foo i32.load $push8=, 0($pop7) return $pop8 .LBB0_2: # %return + end_block # label0: i32.const $push3=, 31 return $pop3 .Lfunc_end0: @@ -39,15 +40,15 @@ main: # @main i32.const $1=, -1 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB1_17 - loop .LBB1_16 + block + loop # label2: i32.const $push0=, -4 i32.add $2=, $1, $pop0 i32.const $push1=, 7 i32.gt_u $4=, $2, $pop1 i32.const $3=, 31 - block .LBB1_3 - br_if $4, .LBB1_3 + block + br_if $4, 0 # 0: down to label4 # BB#2: # %switch.lookup.i # in Loop: Header=BB1_1 Depth=1 i32.const $push4=, .Lswitch.table @@ -57,70 +58,84 @@ main: # @main i32.load $3=, 0($pop5) .LBB1_3: # %foo.exit # in Loop: Header=BB1_1 Depth=1 - block .LBB1_14 - br_if $4, .LBB1_14 + end_block # label4: + block + br_if $4, 0 # 0: down to label5 # BB#4: # %foo.exit # in Loop: Header=BB1_1 Depth=1 - block .LBB1_13 - block .LBB1_12 - block .LBB1_11 - block .LBB1_9 - block .LBB1_7 - block .LBB1_5 - tableswitch $2, .LBB1_5, .LBB1_5, .LBB1_14, .LBB1_7, .LBB1_14, .LBB1_14, .LBB1_9, .LBB1_14, .LBB1_11 + block + block + block + block + block + block + tableswitch $2, 0, 0, 6, 1, 6, 6, 2, 6, 3 # 0: down to label11 + # 6: down to label5 + # 1: down to label10 + # 2: down to label9 + # 3: down to label8 .LBB1_5: # %if.then # in Loop: Header=BB1_1 Depth=1 + end_block # label11: i32.const $push12=, 30 i32.eq $push13=, $3, $pop12 - br_if $pop13, .LBB1_12 + br_if $pop13, 3 # 3: down to label7 # BB#6: # %if.then3 call abort@FUNCTION unreachable .LBB1_7: # %if.then5 # in Loop: Header=BB1_1 Depth=1 + end_block # label10: i32.const $push10=, 30 i32.eq $push11=, $3, $pop10 - br_if $pop11, .LBB1_12 + br_if $pop11, 2 # 2: down to label7 # BB#8: # %if.then7 call abort@FUNCTION unreachable .LBB1_9: # %if.then11 # in Loop: Header=BB1_1 Depth=1 + end_block # label9: i32.const $push8=, 30 i32.eq $push9=, $3, $pop8 - br_if $pop9, .LBB1_12 + br_if $pop9, 1 # 1: down to label7 # BB#10: # %if.then13 call abort@FUNCTION unreachable .LBB1_11: # %if.then17 # in Loop: Header=BB1_1 Depth=1 + end_block # label8: i32.const $push6=, 30 i32.ne $push7=, $3, $pop6 - br_if $pop7, .LBB1_13 + br_if $pop7, 1 # 1: down to label6 .LBB1_12: # %for.inc.thread # in Loop: Header=BB1_1 Depth=1 + end_block # label7: i32.const $push14=, 1 i32.add $1=, $1, $pop14 - br .LBB1_1 + br 2 # 2: up to label2 .LBB1_13: # %if.then19 + end_block # label6: call abort@FUNCTION unreachable .LBB1_14: # %if.else21 # in Loop: Header=BB1_1 Depth=1 + end_block # label5: i32.const $push15=, 31 i32.ne $push16=, $3, $pop15 - br_if $pop16, .LBB1_17 + br_if $pop16, 2 # 2: down to label1 # BB#15: # %for.inc # in Loop: Header=BB1_1 Depth=1 i32.const $push17=, 1 i32.add $1=, $1, $pop17 i32.const $push18=, 66 i32.lt_s $push19=, $1, $pop18 - br_if $pop19, .LBB1_1 -.LBB1_16: # %for.end + br_if $pop19, 0 # 0: up to label2 +# BB#16: # %for.end + end_loop # label3: i32.const $push20=, 0 return $pop20 .LBB1_17: # %if.then23 + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: |