diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-13 15:04:33 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-13 15:04:33 -0800 |
commit | a21fb164cd00e7683661c6dbd343f34cc973333e (patch) | |
tree | 053f09ac9a66cb0586bfcd0c3c48b48475e81543 | |
parent | 8ae75a62d0974273a6ece5e3fb1b72f58c85224f (diff) | |
parent | 7e3efaec50e59ebe1e267f50328a88d639d08947 (diff) | |
download | binaryen-a21fb164cd00e7683661c6dbd343f34cc973333e.tar.gz binaryen-a21fb164cd00e7683661c6dbd343f34cc973333e.tar.bz2 binaryen-a21fb164cd00e7683661c6dbd343f34cc973333e.zip |
Merge pull request #99 from WebAssembly/update-torture
Update torture tests.
601 files changed, 8076 insertions, 8496 deletions
diff --git a/test/revision b/test/revision index ba27a8d04..8f8f81c6c 100644 --- a/test/revision +++ b/test/revision @@ -1 +1 @@ -4ca55c12e7fae4702634a2406298f4d601c3fe74
\ No newline at end of file +9d327232e34ea4c7ed07f420b3595869121e4c1d
\ No newline at end of file diff --git a/test/torture-s/20000113-1.c.s b/test/torture-s/20000113-1.c.s index 9320e7fdf..5113f7623 100644 --- a/test/torture-s/20000113-1.c.s +++ b/test/torture-s/20000113-1.c.s @@ -8,12 +8,12 @@ foobar: # @foobar .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push0=, 1 i32.and $0=, $0, $pop0 i32.const $push10=, 0 i32.eq $push11=, $0, $pop10 - br_if $pop11, .LBB0_3 + br_if $pop11, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.const $push1=, 3 i32.and $1=, $1, $pop1 @@ -24,12 +24,13 @@ foobar: # @foobar i32.and $push6=, $pop4, $pop5 i32.const $push7=, 5 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_3 + br_if $pop8, 0 # 0: down to label0 # BB#2: # %if.end i32.const $push9=, 0 call exit@FUNCTION, $pop9 unreachable .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20000223-1.c.s b/test/torture-s/20000223-1.c.s index 6072bdd02..ba6730d90 100644 --- a/test/torture-s/20000223-1.c.s +++ b/test/torture-s/20000223-1.c.s @@ -7,15 +7,16 @@ check: # @check .param i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 0 i32.sub $push1=, $pop0, $1 i32.and $push2=, $1, $pop1 i32.ne $push3=, $pop2, $1 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20000224-1.c.s b/test/torture-s/20000224-1.c.s index 6aeeebabb..f6d35b2d9 100644 --- a/test/torture-s/20000224-1.c.s +++ b/test/torture-s/20000224-1.c.s @@ -11,16 +11,16 @@ test: # @test i32.const $2=, 0 i32.load $0=, loop_1($2) i32.const $3=, 1 - block .LBB0_4 + block i32.lt_s $push0=, $0, $3 - br_if $pop0, .LBB0_4 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %while.body.lr.ph i32.load $1=, loop_2($2) i32.load $5=, flag($2) copy_local $6=, $2 .LBB0_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.const $4=, 31 i32.shl $push2=, $5, $4 i32.shr_s $push3=, $pop2, $4 @@ -30,11 +30,13 @@ test: # @test i32.add $6=, $6, $pop5 i32.add $5=, $5, $3 i32.gt_s $push6=, $0, $6 - br_if $pop6, .LBB0_2 -.LBB0_3: # %while.cond.while.end_crit_edge + br_if $pop6, 0 # 0: up to label1 +# BB#3: # %while.cond.while.end_crit_edge + end_loop # label2: i32.const $push7=, 0 i32.store $discard=, flag($pop7), $5 .LBB0_4: # %while.end + end_block # label0: return $3 .Lfunc_end0: .size test, .Lfunc_end0-test @@ -50,16 +52,16 @@ main: # @main i32.const $2=, 0 i32.load $0=, loop_1($2) i32.const $3=, 1 - block .LBB1_4 + block i32.lt_s $push0=, $0, $3 - br_if $pop0, .LBB1_4 + br_if $pop0, 0 # 0: down to label3 # BB#1: # %while.body.lr.ph.i i32.load $1=, loop_2($2) i32.load $5=, flag($2) copy_local $6=, $2 .LBB1_2: # %while.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label4: i32.const $4=, 31 i32.lt_s $push1=, $1, $3 i32.shl $push2=, $5, $4 @@ -69,11 +71,13 @@ main: # @main i32.add $6=, $pop5, $6 i32.add $5=, $5, $3 i32.gt_s $push6=, $0, $6 - br_if $pop6, .LBB1_2 -.LBB1_3: # %while.cond.while.end_crit_edge.i + br_if $pop6, 0 # 0: up to label4 +# BB#3: # %while.cond.while.end_crit_edge.i + end_loop # label5: i32.const $push7=, 0 i32.store $discard=, flag($pop7), $5 .LBB1_4: # %test.exit + end_block # label3: call exit@FUNCTION, $2 unreachable .Lfunc_end1: diff --git a/test/torture-s/20000314-2.c.s b/test/torture-s/20000314-2.c.s index 5cf8260a0..304af4af6 100644 --- a/test/torture-s/20000314-2.c.s +++ b/test/torture-s/20000314-2.c.s @@ -9,13 +9,14 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, a($0) - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB0_2: # %if.end + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end0: diff --git a/test/torture-s/20000403-1.c.s b/test/torture-s/20000403-1.c.s index f7f95247d..f516d2c10 100644 --- a/test/torture-s/20000403-1.c.s +++ b/test/torture-s/20000403-1.c.s @@ -9,18 +9,19 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, aa($0) i32.const $push2=, 4096 i32.add $push3=, $pop0, $pop2 i32.load $push1=, bb($0) i32.sub $push4=, $pop3, $pop1 i32.le_s $push5=, $pop4, $0 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20000412-1.c.s b/test/torture-s/20000412-1.c.s index e4aa8a041..f27b012ce 100644 --- a/test/torture-s/20000412-1.c.s +++ b/test/torture-s/20000412-1.c.s @@ -28,15 +28,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load16_u $push0=, i($0) i32.const $push1=, 65535 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20000412-2.c.s b/test/torture-s/20000412-2.c.s index c82b42087..48944db7d 100644 --- a/test/torture-s/20000412-2.c.s +++ b/test/torture-s/20000412-2.c.s @@ -16,21 +16,23 @@ f: # @f i32.const $3=, __stack_pointer i32.store $4=, 0($3), $4 i32.store $discard=, 12($4), $0 - block .LBB0_3 - block .LBB0_2 + block + block i32.const $push2=, 0 i32.eq $push3=, $0, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %if.end i32.const $push0=, -1 i32.add $push1=, $0, $pop0 i32.const $5=, 12 i32.add $5=, $4, $5 i32.call $0=, f@FUNCTION, $pop1, $5 - br .LBB0_3 + br 1 # 1: down to label0 .LBB0_2: # %if.then + end_block # label1: i32.load $0=, 0($1) .LBB0_3: # %cleanup + end_block # label0: i32.const $4=, 16 i32.add $4=, $4, $4 i32.const $4=, __stack_pointer @@ -49,16 +51,17 @@ main: # @main .local i32 # BB#0: # %entry i32.const $2=, 0 - block .LBB1_2 + block i32.const $push0=, 100 i32.call $push1=, f@FUNCTION, $pop0, $2 i32.const $push2=, 1 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label2 # BB#1: # %if.end call exit@FUNCTION, $2 unreachable .LBB1_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20000412-4.c.s b/test/torture-s/20000412-4.c.s index 1230de5ad..196f09b60 100644 --- a/test/torture-s/20000412-4.c.s +++ b/test/torture-s/20000412-4.c.s @@ -12,10 +12,10 @@ f: # @f i32.const $5=, 0 i32.gt_s $6=, $8, $5 i32.select $9=, $6, $8, $5 - block .LBB0_5 + block i32.const $push0=, 3 i32.ge_s $push1=, $9, $pop0 - br_if $pop1, .LBB0_5 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %for.body.lr.ph i32.const $7=, -1 i32.select $push2=, $6, $8, $5 @@ -27,22 +27,24 @@ f: # @f i32.sub $8=, $pop7, $1 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 + loop # label1: i32.add $8=, $8, $3 i32.le_s $push9=, $8, $7 - br_if $pop9, .LBB0_4 + br_if $pop9, 1 # 1: down to label2 # BB#3: # %for.cond # in Loop: Header=BB0_2 Depth=1 i32.const $push8=, 1 i32.add $9=, $9, $pop8 i32.const $push10=, 2 i32.le_s $push11=, $9, $pop10 - br_if $pop11, .LBB0_2 - br .LBB0_5 + br_if $pop11, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB0_4: # %if.then + end_loop # label2: call abort@FUNCTION unreachable .LBB0_5: # %for.cond6.preheader + end_block # label0: return .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/20000412-6.c.s b/test/torture-s/20000412-6.c.s index 955cbfc8d..621b03057 100644 --- a/test/torture-s/20000412-6.c.s +++ b/test/torture-s/20000412-6.c.s @@ -9,7 +9,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.const $push1=, 512 i32.load16_u $push0=, buf($0) i32.sub $push2=, $pop1, $pop0 @@ -21,11 +21,12 @@ main: # @main i32.and $push8=, $pop6, $pop7 i32.const $push9=, 491 i32.ne $push10=, $pop8, $pop9 - br_if $pop10, .LBB0_2 + br_if $pop10, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -39,12 +40,12 @@ bug: # @bug .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.ge_u $push0=, $1, $2 - br_if $pop0, .LBB1_2 + br_if $pop0, 0 # 0: down to label1 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label2: i32.const $push2=, 65535 i32.and $push3=, $0, $pop2 i32.load16_u $push1=, 0($1) @@ -52,8 +53,10 @@ bug: # @bug i32.const $push4=, 2 i32.add $1=, $1, $pop4 i32.lt_u $push5=, $1, $2 - br_if $pop5, .LBB1_1 + br_if $pop5, 0 # 0: up to label2 .LBB1_2: # %for.end + end_loop # label3: + end_block # label1: i32.const $push6=, 65535 i32.and $push7=, $0, $pop6 return $pop7 diff --git a/test/torture-s/20000422-1.c.s b/test/torture-s/20000422-1.c.s index b8a8416a8..05e48e1bd 100644 --- a/test/torture-s/20000422-1.c.s +++ b/test/torture-s/20000422-1.c.s @@ -11,9 +11,9 @@ main: # @main i32.const $5=, 0 i32.load $0=, num($5) i32.const $6=, 1 - block .LBB0_11 + block i32.lt_s $push0=, $0, $6 - br_if $pop0, .LBB0_11 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %for.cond1.preheader.preheader i32.const $8=, ops i32.const $push1=, 2 @@ -27,66 +27,72 @@ main: # @main .LBB0_2: # %for.cond1.preheader # =>This Loop Header: Depth=1 # Child Loop BB0_3 Depth 2 - loop .LBB0_7 + loop # label1: copy_local $11=, $2 copy_local $12=, $1 - block .LBB0_6 + block i32.le_s $push5=, $1, $10 - br_if $pop5, .LBB0_6 + br_if $pop5, 0 # 0: down to label3 .LBB0_3: # %for.body3 # Parent Loop BB0_2 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB0_6 + loop # label4: i32.const $push6=, 4 i32.add $9=, $11, $pop6 i32.load $3=, 0($11) i32.load $4=, 0($9) - block .LBB0_5 + block i32.ge_s $push7=, $3, $4 - br_if $pop7, .LBB0_5 + br_if $pop7, 0 # 0: down to label6 # BB#4: # %if.then # in Loop: Header=BB0_3 Depth=2 i32.store $discard=, 0($9), $3 i32.store $discard=, 0($11), $4 .LBB0_5: # %for.cond1.backedge # in Loop: Header=BB0_3 Depth=2 + end_block # label6: i32.const $push8=, -4 i32.add $11=, $11, $pop8 i32.add $12=, $12, $7 i32.gt_s $push9=, $12, $10 - br_if $pop9, .LBB0_3 + br_if $pop9, 0 # 0: up to label4 .LBB0_6: # %for.end # in Loop: Header=BB0_2 Depth=1 + end_loop # label5: + end_block # label3: i32.add $10=, $10, $6 i32.lt_s $push10=, $10, $0 - br_if $pop10, .LBB0_2 -.LBB0_7: # %for.cond15.preheader + br_if $pop10, 0 # 0: up to label1 +# BB#7: # %for.cond15.preheader + end_loop # label2: i32.const $11=, 0 copy_local $12=, $11 i32.le_s $push11=, $0, $11 - br_if $pop11, .LBB0_11 + br_if $pop11, 0 # 0: down to label0 .LBB0_8: # %for.body17 # =>This Inner Loop Header: Depth=1 - loop .LBB0_10 + loop # label7: i32.add $push12=, $8, $11 i32.load $push13=, 0($pop12) i32.const $push14=, correct i32.add $push15=, $pop14, $11 i32.load $push16=, 0($pop15) i32.ne $push17=, $pop13, $pop16 - br_if $pop17, .LBB0_10 + br_if $pop17, 1 # 1: down to label8 # BB#9: # %for.cond15 # in Loop: Header=BB0_8 Depth=1 i32.const $push18=, 4 i32.add $11=, $11, $pop18 i32.add $12=, $12, $6 i32.lt_s $push19=, $12, $0 - br_if $pop19, .LBB0_8 - br .LBB0_11 + br_if $pop19, 0 # 0: up to label7 + br 2 # 2: down to label0 .LBB0_10: # %if.then21 + end_loop # label8: call abort@FUNCTION unreachable .LBB0_11: # %for.end25 + end_block # label0: call exit@FUNCTION, $5 unreachable .Lfunc_end0: diff --git a/test/torture-s/20000511-1.c.s b/test/torture-s/20000511-1.c.s index e575d184b..eadcd5f61 100644 --- a/test/torture-s/20000511-1.c.s +++ b/test/torture-s/20000511-1.c.s @@ -7,12 +7,13 @@ f: # @f .param i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.ne $push0=, $0, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20000519-2.c.s b/test/torture-s/20000519-2.c.s index 743f625e8..c99e655ed 100644 --- a/test/torture-s/20000519-2.c.s +++ b/test/torture-s/20000519-2.c.s @@ -9,15 +9,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, x($0) i32.const $push1=, -1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20000528-1.c.s b/test/torture-s/20000528-1.c.s index 7323f5dcc..3539cf13e 100644 --- a/test/torture-s/20000528-1.c.s +++ b/test/torture-s/20000528-1.c.s @@ -9,16 +9,17 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load16_u $push0=, l($0) i32.store16 $push1=, s($0), $pop0 i32.const $push2=, 65534 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20000605-1.c.s b/test/torture-s/20000605-1.c.s index 5e0073f7b..d76adc709 100644 --- a/test/torture-s/20000605-1.c.s +++ b/test/torture-s/20000605-1.c.s @@ -11,21 +11,23 @@ main: # @main i32.const $1=, 0 .LBB0_1: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $push0=, 1 i32.add $1=, $1, $pop0 i32.const $0=, 256 i32.ne $push1=, $1, $0 - br_if $pop1, .LBB0_1 -.LBB0_2: # %render_image_rgb_a.exit - block .LBB0_4 + br_if $pop1, 0 # 0: up to label0 +# BB#2: # %render_image_rgb_a.exit + end_loop # label1: + block i32.ne $push2=, $1, $0 - br_if $pop2, .LBB0_4 + br_if $pop2, 0 # 0: down to label2 # BB#3: # %if.end i32.const $push3=, 0 call exit@FUNCTION, $pop3 unreachable .LBB0_4: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20000605-2.c.s b/test/torture-s/20000605-2.c.s index 3b4307a7d..b93b058f7 100644 --- a/test/torture-s/20000605-2.c.s +++ b/test/torture-s/20000605-2.c.s @@ -10,16 +10,16 @@ f1: # @f1 # BB#0: # %entry i32.load $2=, 0($0) i32.const $4=, 0 - block .LBB0_4 + block i32.load $push0=, 0($1) i32.ge_s $push1=, $2, $pop0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.const $push2=, 5 i32.ge_s $push3=, $4, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 1 # 1: down to label2 # BB#2: # %for.inc # in Loop: Header=BB0_1 Depth=1 i32.const $3=, 1 @@ -31,12 +31,14 @@ f1: # @f1 i32.add $push7=, $2, $3 i32.load $push6=, 0($1) i32.lt_s $push8=, $pop7, $pop6 - br_if $pop8, .LBB0_1 - br .LBB0_4 + br_if $pop8, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB0_3: # %if.then + end_loop # label2: call abort@FUNCTION unreachable .LBB0_4: # %for.end + end_block # label0: return .Lfunc_end0: .size f1, .Lfunc_end0-f1 diff --git a/test/torture-s/20000622-1.c.s b/test/torture-s/20000622-1.c.s index 269da15af..474f710d8 100644 --- a/test/torture-s/20000622-1.c.s +++ b/test/torture-s/20000622-1.c.s @@ -8,22 +8,23 @@ foo: # @foo .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB0_4 + block i32.const $push0=, 12 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.const $push2=, 1 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %entry i32.const $push4=, 11 i32.ne $push5=, $2, $pop4 - br_if $pop5, .LBB0_4 + br_if $pop5, 0 # 0: down to label0 # BB#3: # %if.end i32.const $push6=, 0 return $pop6 .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -48,17 +49,18 @@ bar: # @bar baz: # @baz .param i32, i32, i32 # BB#0: # %entry - block .LBB2_3 + block i32.const $push0=, 11 i32.ne $push1=, $1, $pop0 - br_if $pop1, .LBB2_3 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %entry i32.const $push2=, 12 i32.ne $push3=, $2, $pop2 - br_if $pop3, .LBB2_3 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %foo.exit return .LBB2_3: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20000706-3.c.s b/test/torture-s/20000706-3.c.s index d3500bc7b..d305fcff7 100644 --- a/test/torture-s/20000706-3.c.s +++ b/test/torture-s/20000706-3.c.s @@ -21,19 +21,20 @@ baz: # @baz bar: # @bar .param i32 # BB#0: # %entry - block .LBB1_3 + block i32.const $push2=, 2 i32.ne $push3=, $0, $pop2 - br_if $pop3, .LBB1_3 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %entry i32.const $push1=, 0 i32.load $push0=, c($pop1) i32.const $push4=, 1 i32.ne $push5=, $pop0, $pop4 - br_if $pop5, .LBB1_3 + br_if $pop5, 0 # 0: down to label0 # BB#2: # %if.end return .LBB1_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: @@ -46,19 +47,20 @@ bar: # @bar foo: # @foo .param i32, i32 # BB#0: # %entry - block .LBB2_3 + block i32.const $push0=, 0 i32.store $push1=, c($pop0), $0 i32.const $push2=, 1 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB2_3 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %entry i32.const $push4=, 2 i32.ne $push5=, $1, $pop4 - br_if $pop5, .LBB2_3 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %bar.exit return .LBB2_3: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20000717-3.c.s b/test/torture-s/20000717-3.c.s index 77662ffd7..fd40a657d 100644 --- a/test/torture-s/20000717-3.c.s +++ b/test/torture-s/20000717-3.c.s @@ -28,15 +28,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, c($0) i32.const $push1=, -1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20000722-1.c.s b/test/torture-s/20000722-1.c.s index 2d6928fd5..6c0aa855e 100644 --- a/test/torture-s/20000722-1.c.s +++ b/test/torture-s/20000722-1.c.s @@ -30,11 +30,11 @@ bar: # @bar foo: # @foo .param i32 # BB#0: # %entry - block .LBB2_2 + block i32.load $push0=, 4($0) i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB2_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push3=, 4 i32.add $push4=, $0, $pop3 @@ -42,6 +42,7 @@ foo: # @foo i32.store $discard=, 0($pop4), $pop5 return .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20000801-1.c.s b/test/torture-s/20000801-1.c.s index fd291a52c..d0e2155b3 100644 --- a/test/torture-s/20000801-1.c.s +++ b/test/torture-s/20000801-1.c.s @@ -10,12 +10,12 @@ foo: # @foo # BB#0: # %entry i32.add $2=, $0, $1 i32.const $3=, 1 - block .LBB0_2 + block i32.lt_s $push0=, $1, $3 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.const $push1=, 3 i32.add $1=, $0, $pop1 i32.load8_u $5=, 0($1) @@ -32,8 +32,10 @@ foo: # @foo i32.const $push5=, 4 i32.add $0=, $0, $pop5 i32.lt_u $push6=, $0, $2 - br_if $pop6, .LBB0_1 + br_if $pop6, 0 # 0: up to label1 .LBB0_2: # %while.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -52,17 +54,18 @@ main: # @main i32.sub $2=, $0, $1 i32.const $1=, __stack_pointer i32.store $2=, 0($1), $2 - block .LBB1_2 + block i32.const $push0=, 1 i32.store $push1=, 12($2), $pop0 i32.const $push3=, 0 i32.eq $push4=, $pop1, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label3 # BB#1: # %if.end i32.const $push2=, 0 call exit@FUNCTION, $pop2 unreachable .LBB1_2: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20000801-3.c.s b/test/torture-s/20000801-3.c.s index 2581ea251..ac1ffddc4 100644 --- a/test/torture-s/20000801-3.c.s +++ b/test/torture-s/20000801-3.c.s @@ -9,15 +9,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, s+4($0) i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.then call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.else + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20000819-1.c.s b/test/torture-s/20000819-1.c.s index 262381eeb..3822e08b0 100644 --- a/test/torture-s/20000819-1.c.s +++ b/test/torture-s/20000819-1.c.s @@ -10,31 +10,33 @@ foo: # @foo # BB#0: # %entry i32.const $2=, 0 i32.sub $1=, $2, $1 - block .LBB0_5 + block i32.gt_s $push0=, $1, $2 - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $push1=, 2 i32.shl $push2=, $1, $pop1 i32.add $1=, $0, $pop2 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 + loop # label1: i32.load $push3=, 0($1) i32.const $push5=, 1 i32.le_s $push6=, $pop3, $pop5 - br_if $pop6, .LBB0_4 + br_if $pop6, 1 # 1: down to label2 # BB#3: # %for.cond # in Loop: Header=BB0_2 Depth=1 i32.const $push4=, 4 i32.add $1=, $1, $pop4 i32.le_u $push7=, $1, $0 - br_if $pop7, .LBB0_2 - br .LBB0_5 + br_if $pop7, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB0_4: # %if.then + end_loop # label2: call exit@FUNCTION, $2 unreachable .LBB0_5: # %for.end + end_block # label0: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -48,20 +50,21 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_3 + block i32.load $push1=, a($0) i32.const $push2=, 2 i32.lt_s $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_3 + br_if $pop3, 0 # 0: down to label3 # BB#1: # %entry i32.load $push0=, a+4($0) i32.const $push4=, 1 i32.le_s $push5=, $pop0, $pop4 - br_if $pop5, .LBB1_3 + br_if $pop5, 0 # 0: down to label3 # BB#2: # %for.cond.i.1 call abort@FUNCTION unreachable .LBB1_3: # %if.then.i + end_block # label3: call exit@FUNCTION, $0 unreachable .Lfunc_end1: diff --git a/test/torture-s/20000910-1.c.s b/test/torture-s/20000910-1.c.s index c547701e9..cbf549682 100644 --- a/test/torture-s/20000910-1.c.s +++ b/test/torture-s/20000910-1.c.s @@ -42,12 +42,13 @@ bar: # @bar baz: # @baz .param i32, i32 # BB#0: # %entry - block .LBB3_2 + block i32.ne $push0=, $0, $1 - br_if $pop0, .LBB3_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end return .LBB3_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/20000910-2.c.s b/test/torture-s/20000910-2.c.s index fd31e02ec..03e6d1e02 100644 --- a/test/torture-s/20000910-2.c.s +++ b/test/torture-s/20000910-2.c.s @@ -10,25 +10,27 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.const $1=, 42 - block .LBB0_4 + block i32.load $push0=, list($0) i32.call $push1=, strchr@FUNCTION, $pop0, $1 i32.const $push4=, 0 i32.eq $push5=, $pop1, $pop4 - br_if $pop5, .LBB0_4 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.then.i - block .LBB0_3 + block i32.load $push2=, list+4($0) i32.call $push3=, strchr@FUNCTION, $pop2, $1 i32.const $push6=, 0 i32.eq $push7=, $pop3, $pop6 - br_if $pop7, .LBB0_3 + br_if $pop7, 0 # 0: down to label1 # BB#2: # %foo.exit return $0 .LBB0_3: # %if.else.i + end_block # label1: call exit@FUNCTION, $0 unreachable .LBB0_4: # %if.then2.i + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20000914-1.c.s b/test/torture-s/20000914-1.c.s index 323494413..e48103df0 100644 --- a/test/torture-s/20000914-1.c.s +++ b/test/torture-s/20000914-1.c.s @@ -20,14 +20,15 @@ convert_like_real: # @convert_like_real .param i32 .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.load8_u $push0=, 8($0) i32.const $push1=, 222 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %sw.bb return $0 .LBB1_2: # %sw.epilog + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20001009-2.c.s b/test/torture-s/20001009-2.c.s index fac2693a4..b9337670e 100644 --- a/test/torture-s/20001009-2.c.s +++ b/test/torture-s/20001009-2.c.s @@ -9,14 +9,14 @@ foo: # @foo .local i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, b($0) i32.const $push6=, 0 i32.eq $push7=, $pop0, $pop6 - br_if $pop7, .LBB0_2 + br_if $pop7, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.const $1=, 1 #APP #NO_APP @@ -24,8 +24,10 @@ foo: # @foo i32.const $push2=, -1 i32.add $push3=, $pop1, $pop2 i32.store $push4=, b($0), $pop3 - br_if $pop4, .LBB0_1 + br_if $pop4, 0 # 0: up to label1 .LBB0_2: # %if.end + end_loop # label2: + end_block # label0: i32.const $push5=, -1 return $pop5 .Lfunc_end0: @@ -40,14 +42,14 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, b($0) i32.const $push5=, 0 i32.eq $push6=, $pop0, $pop5 - br_if $pop6, .LBB1_2 + br_if $pop6, 0 # 0: down to label3 .LBB1_1: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label4: i32.const $1=, 1 #APP #NO_APP @@ -55,8 +57,10 @@ main: # @main i32.const $push2=, -1 i32.add $push3=, $pop1, $pop2 i32.store $push4=, b($0), $pop3 - br_if $pop4, .LBB1_1 + br_if $pop4, 0 # 0: up to label4 .LBB1_2: # %foo.exit + end_loop # label5: + end_block # label3: return $0 .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/20001013-1.c.s b/test/torture-s/20001013-1.c.s index 4c10f8b87..e892316ba 100644 --- a/test/torture-s/20001013-1.c.s +++ b/test/torture-s/20001013-1.c.s @@ -8,11 +8,11 @@ foo: # @foo .param i32, i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 255 i32.and $push1=, $1, $pop0 i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.load $push7=, 0($0) i32.const $push5=, 0 @@ -21,6 +21,7 @@ foo: # @foo i32.le_s $push8=, $pop7, $pop6 return $pop8 .LBB0_2: # %return + end_block # label0: i32.const $push3=, 1 return $pop3 .Lfunc_end0: @@ -35,16 +36,17 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push2=, z($0) i32.load $push0=, z+4($0) i32.sub $push1=, $0, $pop0 i32.le_s $push3=, $pop2, $pop1 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20001017-1.c.s b/test/torture-s/20001017-1.c.s index 8e841dbc8..3b1a28af3 100644 --- a/test/torture-s/20001017-1.c.s +++ b/test/torture-s/20001017-1.c.s @@ -7,12 +7,13 @@ bug: # @bug .param i32, i32, i32, i32, i32, f64, i32, i32, i32, i32, f64, i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.ne $push0=, $11, $0 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20001017-2.c.s b/test/torture-s/20001017-2.c.s index c3248a863..a729de4b1 100644 --- a/test/torture-s/20001017-2.c.s +++ b/test/torture-s/20001017-2.c.s @@ -7,24 +7,25 @@ fn_4parms: # @fn_4parms .param i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_4 + block i32.load $push0=, 0($1) i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_4 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.load $push3=, 0($2) i32.const $push4=, 2 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB0_4 + br_if $pop5, 0 # 0: down to label0 # BB#2: # %lor.lhs.false2 i32.load $push6=, 0($3) i32.const $push7=, 3 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label0 # BB#3: # %if.end return .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20001024-1.c.s b/test/torture-s/20001024-1.c.s index 01bcaef0a..c672e723c 100644 --- a/test/torture-s/20001024-1.c.s +++ b/test/torture-s/20001024-1.c.s @@ -9,26 +9,27 @@ bar: # @bar .result i32 .local i32 # BB#0: # %entry - block .LBB0_5 + block i32.load $push0=, 0($1) - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.const $3=, 250000 i32.load $push1=, 4($1) i32.ne $push2=, $pop1, $3 - br_if $pop2, .LBB0_5 + br_if $pop2, 0 # 0: down to label0 # BB#2: # %lor.lhs.false2 i32.load $push3=, 8($1) - br_if $pop3, .LBB0_5 + br_if $pop3, 0 # 0: down to label0 # BB#3: # %lor.lhs.false5 i32.const $push4=, 12 i32.add $push5=, $1, $pop4 i32.load $push6=, 0($pop5) i32.ne $push7=, $pop6, $3 - br_if $pop7, .LBB0_5 + br_if $pop7, 0 # 0: down to label0 # BB#4: # %if.end return $1 .LBB0_5: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20001027-1.c.s b/test/torture-s/20001027-1.c.s index 46b53eda6..ce6894aef 100644 --- a/test/torture-s/20001027-1.c.s +++ b/test/torture-s/20001027-1.c.s @@ -10,18 +10,19 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, p($0) - block .LBB0_2 + block i32.const $push0=, 1 i32.store $discard=, x($0), $pop0 i32.const $push1=, 2 i32.store $1=, 0($1), $pop1 i32.load $push2=, x($0) i32.ne $push3=, $pop2, $1 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20001031-1.c.s b/test/torture-s/20001031-1.c.s index 82f64f1e9..7fc21cb38 100644 --- a/test/torture-s/20001031-1.c.s +++ b/test/torture-s/20001031-1.c.s @@ -7,13 +7,14 @@ t1: # @t1 .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 4100 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -38,13 +39,14 @@ t2: # @t2 t3: # @t3 .param i64 # BB#0: # %entry - block .LBB2_2 + block i64.const $push0=, 2147487743 i64.ne $push1=, $0, $pop0 - br_if $pop1, .LBB2_2 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %if.end return .LBB2_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20001101.c.s b/test/torture-s/20001101.c.s index 02da038e5..6d61d8fcf 100644 --- a/test/torture-s/20001101.c.s +++ b/test/torture-s/20001101.c.s @@ -23,17 +23,18 @@ dummy: # @dummy bogus: # @bogus .param i32, i32, i32 # BB#0: # %if.end5 - block .LBB1_2 + block i32.load8_u $push0=, 0($0) i32.const $push1=, 1 i32.or $push2=, $pop0, $pop1 i32.store8 $discard=, 0($0), $pop2 i32.const $push3=, 7 i32.ne $push4=, $1, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end8 return .LBB1_2: # %if.then7 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20001111-1.c.s b/test/torture-s/20001111-1.c.s index 5b7f8b192..71f738267 100644 --- a/test/torture-s/20001111-1.c.s +++ b/test/torture-s/20001111-1.c.s @@ -37,15 +37,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB2_2 + block i32.load8_u $push0=, next_buffer($0) i32.const $push2=, 0 i32.eq $push3=, $pop0, $pop2 - br_if $pop3, .LBB2_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB2_2: # %if.end4 + end_block # label0: i32.const $push1=, 1 i32.store8 $discard=, next_buffer($0), $pop1 call exit@FUNCTION, $0 diff --git a/test/torture-s/20001203-2.c.s b/test/torture-s/20001203-2.c.s index 41ba133d1..d611beb7a 100644 --- a/test/torture-s/20001203-2.c.s +++ b/test/torture-s/20001203-2.c.s @@ -9,10 +9,10 @@ create_array_type: # @create_array_type .result i32 .local i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_8 + block i32.const $push27=, 0 i32.eq $push28=, $0, $pop27 - br_if $pop28, .LBB0_8 + br_if $pop28, 0 # 0: down to label0 # BB#1: # %if.end i32.load $push1=, 0($1) i32.const $push2=, 3 @@ -22,10 +22,10 @@ create_array_type: # @create_array_type i32.store16 $6=, 8($0), $pop4 i32.load $1=, 4($0) i32.const $7=, 0 - block .LBB0_7 + block i32.const $push29=, 0 i32.eq $push30=, $1, $pop29 - br_if $pop30, .LBB0_7 + br_if $pop30, 0 # 0: down to label1 # BB#2: # %cond.true i32.const $push5=, 20 i32.add $push6=, $1, $pop5 @@ -33,25 +33,26 @@ create_array_type: # @create_array_type i32.const $7=, 16 i32.add $4=, $1, $7 i32.load $3=, 0($4) - block .LBB0_6 + block i32.sub $push7=, $2, $3 i32.const $push8=, 15 i32.le_s $push9=, $pop7, $pop8 - br_if $pop9, .LBB0_6 + br_if $pop9, 0 # 0: down to label2 # BB#3: # %if.end9 i32.add $push0=, $3, $7 i32.store $3=, 0($4), $pop0 i32.const $push10=, 12 i32.add $5=, $1, $pop10 i32.load $7=, 0($5) - block .LBB0_5 + block i32.ne $push11=, $3, $7 - br_if $pop11, .LBB0_5 + br_if $pop11, 0 # 0: down to label3 # BB#4: # %if.then16 i32.const $push12=, 28 i32.add $push13=, $1, $pop12 i32.store $discard=, 0($pop13), $6 .LBB0_5: # %if.end17 + end_block # label3: i32.const $push14=, 24 i32.add $push15=, $1, $pop14 i32.load $6=, 0($pop15) @@ -69,14 +70,17 @@ create_array_type: # @create_array_type i32.select $push25=, $pop24, $2, $3 i32.store $push26=, 0($4), $pop25 i32.store $discard=, 0($5), $pop26 - br .LBB0_7 + br 1 # 1: down to label1 .LBB0_6: # %if.then8 + end_block # label2: call _obstack_newchunk@FUNCTION, $0, $0 unreachable .LBB0_7: # %cond.end + end_block # label1: i32.store $discard=, 12($0), $7 return $0 .LBB0_8: # %if.then + end_block # label0: i32.call $discard=, alloc_type@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20001228-1.c.s b/test/torture-s/20001228-1.c.s index 5664fdfdc..20a182f58 100644 --- a/test/torture-s/20001228-1.c.s +++ b/test/torture-s/20001228-1.c.s @@ -51,17 +51,18 @@ main: # @main i32.sub $2=, $0, $1 i32.const $1=, __stack_pointer i32.store $2=, 0($1), $2 - block .LBB2_2 + block i32.load8_u $push2=, 12($2) i32.const $push0=, 1 i32.store $push1=, 12($2), $pop0 i32.ne $push3=, $pop2, $pop1 - br_if $pop3, .LBB2_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 call exit@FUNCTION, $pop4 unreachable .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20010106-1.c.s b/test/torture-s/20010106-1.c.s index ee4ab68f6..db2bd1742 100644 --- a/test/torture-s/20010106-1.c.s +++ b/test/torture-s/20010106-1.c.s @@ -11,10 +11,10 @@ f: # @f # BB#0: # %entry i32.const $1=, 2 i32.add $0=, $0, $1 - block .LBB0_2 + block i32.const $push0=, 7 i32.ge_u $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %switch.lookup i32.const $push3=, .Lswitch.table i32.shl $push2=, $0, $1 @@ -22,6 +22,7 @@ f: # @f i32.load $push5=, 0($pop4) return $pop5 .LBB0_2: # %sw.default + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20010116-1.c.s b/test/torture-s/20010116-1.c.s index 660885afc..f12cc7cb1 100644 --- a/test/torture-s/20010116-1.c.s +++ b/test/torture-s/20010116-1.c.s @@ -9,7 +9,7 @@ find: # @find .local i32 # BB#0: # %for.cond i32.const $2=, 2 - block .LBB0_2 + block i32.sub $push0=, $1, $0 i32.shr_s $push1=, $pop0, $2 i32.const $push2=, -1431655765 @@ -17,11 +17,12 @@ find: # @find i32.shr_s $2=, $pop3, $2 i32.const $push4=, 1 i32.lt_s $push5=, $2, $pop4 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %for.body call ok@FUNCTION, $2 unreachable .LBB0_2: # %for.end + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -34,15 +35,16 @@ find: # @find ok: # @ok .param i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %if.end i32.const $push2=, 0 call exit@FUNCTION, $pop2 unreachable .LBB1_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20010118-1.c.s b/test/torture-s/20010118-1.c.s index feefc52c1..c58ae8c07 100644 --- a/test/torture-s/20010118-1.c.s +++ b/test/torture-s/20010118-1.c.s @@ -19,18 +19,19 @@ bar: # @bar .param i32, i32, i32, i32, i32 .local f64, f64, i32, i32 # BB#0: # %entry - block .LBB1_3 - block .LBB1_2 + block + block i32.load $push0=, 0($0) i32.ne $push1=, $pop0, $1 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %lor.lhs.false i32.const $push2=, 4 i32.add $push3=, $0, $pop2 i32.load $push4=, 0($pop3) i32.eq $push5=, $pop4, $2 - br_if $pop5, .LBB1_3 + br_if $pop5, 1 # 1: down to label0 .LBB1_2: # %if.then + end_block # label1: f64.const $5=, 0x0p0 f64.const $6=, 0x1p-1 i32.load $push6=, 16($0) @@ -52,6 +53,7 @@ bar: # @bar i32.store $discard=, 8($0), $3 i32.store $discard=, 12($0), $4 .LBB1_3: # %if.end + end_block # label0: return .Lfunc_end1: .size bar, .Lfunc_end1-bar diff --git a/test/torture-s/20010221-1.c.s b/test/torture-s/20010221-1.c.s index 2cdc0e896..8715fd1de 100644 --- a/test/torture-s/20010221-1.c.s +++ b/test/torture-s/20010221-1.c.s @@ -12,24 +12,26 @@ main: # @main i32.load $0=, n($3) i32.const $2=, 45 i32.const $1=, 1 - block .LBB0_4 + block i32.lt_s $push0=, $0, $1 - br_if $pop0, .LBB0_4 + br_if $pop0, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.select $2=, $3, $3, $2 i32.add $3=, $3, $1 i32.lt_s $push1=, $3, $0 - br_if $pop1, .LBB0_1 -.LBB0_2: # %for.end + br_if $pop1, 0 # 0: up to label1 +# BB#2: # %for.end + end_loop # label2: i32.ne $push2=, $2, $1 - br_if $pop2, .LBB0_4 + br_if $pop2, 0 # 0: down to label0 # BB#3: # %if.end5 i32.const $push3=, 0 call exit@FUNCTION, $pop3 unreachable .LBB0_4: # %if.then4 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20010222-1.c.s b/test/torture-s/20010222-1.c.s index 3145fb775..92f448896 100644 --- a/test/torture-s/20010222-1.c.s +++ b/test/torture-s/20010222-1.c.s @@ -9,7 +9,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push1=, a+4($0) i32.load $push0=, a($0) i32.add $push2=, $pop1, $pop0 @@ -19,11 +19,12 @@ main: # @main i32.add $push6=, $pop4, $pop5 i32.const $push7=, 12 i32.lt_u $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_2 + br_if $pop8, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB0_2: # %if.end + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end0: diff --git a/test/torture-s/20010224-1.c.s b/test/torture-s/20010224-1.c.s index 8b38c1f6d..7cfda002c 100644 --- a/test/torture-s/20010224-1.c.s +++ b/test/torture-s/20010224-1.c.s @@ -21,17 +21,17 @@ ba_compute_psd: # @ba_compute_psd i32.load16_u $push0=, 0($2) i32.store16 $5=, 0($1), $pop0 i32.const $3=, 3 - block .LBB0_4 + block i32.add $push7=, $0, $4 i32.gt_s $push8=, $pop7, $3 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label0 # BB#1: # %for.body.preheader i32.sub $4=, $3, $0 i32.const $3=, 2 i32.add $0=, $2, $3 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.load16_u $push11=, 0($0) i32.const $push9=, 65535 i32.and $push10=, $5, $pop9 @@ -39,10 +39,12 @@ ba_compute_psd: # @ba_compute_psd i32.const $push12=, -1 i32.add $4=, $4, $pop12 i32.add $0=, $0, $3 - br_if $4, .LBB0_2 -.LBB0_3: # %for.cond.for.end_crit_edge + br_if $4, 0 # 0: up to label1 +# BB#3: # %for.cond.for.end_crit_edge + end_loop # label2: i32.store16 $discard=, 0($1), $5 .LBB0_4: # %for.end + end_block # label0: return .Lfunc_end0: .size ba_compute_psd, .Lfunc_end0-ba_compute_psd @@ -75,7 +77,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB2_2 + block i32.const $push3=, bndpsd i32.load16_s $push0=, masktab($0) i32.const $push1=, 1 @@ -92,10 +94,11 @@ main: # @main i32.load16_u $push12=, bndpsd+2($0) i32.const $push13=, 140 i32.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB2_2 + br_if $pop14, 0 # 0: down to label3 # BB#1: # %if.end return $0 .LBB2_2: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20010403-1.c.s b/test/torture-s/20010403-1.c.s index 81e3f348e..425918df9 100644 --- a/test/torture-s/20010403-1.c.s +++ b/test/torture-s/20010403-1.c.s @@ -33,12 +33,13 @@ b: # @b c: # @c .param i32, i32 # BB#0: # %entry - block .LBB2_2 + block i32.eq $push0=, $0, $1 - br_if $pop0, .LBB2_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end return .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20010409-1.c.s b/test/torture-s/20010409-1.c.s index 095546304..09ae60033 100644 --- a/test/torture-s/20010409-1.c.s +++ b/test/torture-s/20010409-1.c.s @@ -25,13 +25,14 @@ bar: # @bar .param i32, i32, i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB1_2 - br_if $1, .LBB1_2 + block + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push0=, 0 call exit@FUNCTION, $pop0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: @@ -47,14 +48,15 @@ test: # @test # BB#0: # %entry i32.const $2=, 0 i32.load $3=, b($2) - block .LBB2_2 + block i32.const $push0=, 5000 i32.store $discard=, c($2), $pop0 - br_if $3, .LBB2_2 + br_if $3, 0 # 0: down to label1 # BB#1: # %if.then.i call abort@FUNCTION unreachable .LBB2_2: # %if.end.i + end_block # label1: call exit@FUNCTION, $2 unreachable .Lfunc_end2: @@ -71,16 +73,17 @@ main: # @main i32.const $0=, 0 i32.store $discard=, d+4($0), $0 i32.load $1=, b($0) - block .LBB3_2 + block i32.const $push0=, a i32.store $discard=, d($0), $pop0 i32.const $push1=, 5000 i32.store $discard=, c($0), $pop1 - br_if $1, .LBB3_2 + br_if $1, 0 # 0: down to label2 # BB#1: # %if.then.i.i call abort@FUNCTION unreachable .LBB3_2: # %if.end.i.i + end_block # label2: call exit@FUNCTION, $0 unreachable .Lfunc_end3: diff --git a/test/torture-s/20010518-2.c.s b/test/torture-s/20010518-2.c.s index 672e3a1a7..7f11b6364 100644 --- a/test/torture-s/20010518-2.c.s +++ b/test/torture-s/20010518-2.c.s @@ -14,7 +14,7 @@ main: # @main i32.sub $8=, $6, $7 i32.const $7=, __stack_pointer i32.store $8=, 0($7), $8 - block .LBB0_6 + block i32.const $push0=, 1 i32.store16 $0=, 28($8), $pop0 i32.const $push1=, 2 @@ -45,27 +45,28 @@ main: # @main i32.store8 $5=, 31($8), $pop14 i32.load16_u $push15=, 46($8) i32.ne $push16=, $pop15, $0 - br_if $pop16, .LBB0_6 + br_if $pop16, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.load $push17=, 40($8) i32.ne $push18=, $pop17, $1 - br_if $pop18, .LBB0_6 + br_if $pop18, 0 # 0: down to label0 # BB#2: # %lor.lhs.false9 i32.load16_u $push19=, 38($8) i32.ne $push20=, $pop19, $2 - br_if $pop20, .LBB0_6 + br_if $pop20, 0 # 0: down to label0 # BB#3: # %lor.lhs.false14 i32.load16_u $push21=, 36($8) i32.ne $push22=, $pop21, $3 - br_if $pop22, .LBB0_6 + br_if $pop22, 0 # 0: down to label0 # BB#4: # %lor.lhs.false19 i32.load8_u $push23=, 31($8) i32.ne $push24=, $pop23, $5 - br_if $pop24, .LBB0_6 + br_if $pop24, 0 # 0: down to label0 # BB#5: # %if.end call exit@FUNCTION, $4 unreachable .LBB0_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20010604-1.c.s b/test/torture-s/20010604-1.c.s index 125e6a6b3..3b5c92ef2 100644 --- a/test/torture-s/20010604-1.c.s +++ b/test/torture-s/20010604-1.c.s @@ -10,25 +10,26 @@ f: # @f .local i32 # BB#0: # %entry i32.const $7=, 1 - block .LBB0_5 + block i32.const $push3=, 255 i32.and $push4=, $6, $pop3 i32.ne $push5=, $pop4, $7 - br_if $pop5, .LBB0_5 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %entry i32.xor $push0=, $3, $7 - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label0 # BB#2: # %entry i32.xor $push1=, $4, $7 - br_if $pop1, .LBB0_5 + br_if $pop1, 0 # 0: down to label0 # BB#3: # %entry i32.xor $push2=, $5, $7 - br_if $pop2, .LBB0_5 + br_if $pop2, 0 # 0: down to label0 # BB#4: # %if.end i32.add $push6=, $1, $0 i32.add $push7=, $pop6, $2 return $pop7 .LBB0_5: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20010915-1.c.s b/test/torture-s/20010915-1.c.s index 4bdd6f75f..7395111c4 100644 --- a/test/torture-s/20010915-1.c.s +++ b/test/torture-s/20010915-1.c.s @@ -34,19 +34,20 @@ main: # @main i32.const $8=, 0 i32.add $8=, $7, $8 i32.call $discard=, x@FUNCTION, $3, $8 - block .LBB0_3 + block i32.load $push8=, check($2) i32.const $push9=, 2 i32.ne $push10=, $pop8, $pop9 - br_if $pop10, .LBB0_3 + br_if $pop10, 0 # 0: down to label0 # BB#1: # %entry i32.load $push0=, o($2) i32.ne $push11=, $pop0, $3 - br_if $pop11, .LBB0_3 + br_if $pop11, 0 # 0: down to label0 # BB#2: # %if.end call exit@FUNCTION, $2 unreachable .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -61,15 +62,15 @@ x: # @x .result i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB1_19 + block i32.const $push3=, 3 i32.lt_s $push4=, $0, $pop3 - br_if $pop4, .LBB1_19 + br_if $pop4, 0 # 0: down to label1 # BB#1: # %entry i32.const $4=, 0 i32.load $6=, o($4) i32.ge_s $push5=, $6, $0 - br_if $pop5, .LBB1_19 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %land.lhs.true2 i32.const $3=, 2 i32.shl $push6=, $6, $3 @@ -77,63 +78,63 @@ x: # @x i32.load $8=, 0($2) i32.const $push25=, 0 i32.eq $push26=, $8, $pop25 - br_if $pop26, .LBB1_19 + br_if $pop26, 0 # 0: down to label1 # BB#3: # %if.then i32.const $5=, .L.str - block .LBB1_18 + block i32.call $push7=, strcmp@FUNCTION, $8, $5 - br_if $pop7, .LBB1_18 + br_if $pop7, 0 # 0: down to label2 # BB#4: # %lor.lhs.false.i i32.load $7=, check($4) i32.const $1=, 1 i32.add $push8=, $7, $1 i32.store $discard=, check($4), $pop8 i32.ge_s $push9=, $7, $3 - br_if $pop9, .LBB1_18 + br_if $pop9, 0 # 0: down to label2 # BB#5: # %s.exit - block .LBB1_17 + block i32.call $push10=, strcmp@FUNCTION, $8, $5 - br_if $pop10, .LBB1_17 + br_if $pop10, 0 # 0: down to label3 # BB#6: # %lor.lhs.false.i45 i32.add $push11=, $7, $3 i32.store $discard=, check($4), $pop11 i32.ge_s $push12=, $7, $1 - br_if $pop12, .LBB1_17 + br_if $pop12, 0 # 0: down to label3 # BB#7: # %s.exit48 i32.store $discard=, u($4), $4 - block .LBB1_16 + block i32.load $push14=, 0($2) i32.add $push13=, $8, $1 i32.eq $push15=, $pop14, $pop13 - br_if $pop15, .LBB1_16 + br_if $pop15, 0 # 0: down to label4 # BB#8: # %while.cond.preheader - block .LBB1_15 + block i32.add $push0=, $6, $1 i32.store $8=, o($4), $pop0 i32.ge_s $push16=, $8, $0 - br_if $pop16, .LBB1_15 + br_if $pop16, 0 # 0: down to label5 # BB#9: # %while.body.preheader i32.load8_u $7=, r.c.0($4) i32.const $5=, 4 i32.add $6=, $2, $5 .LBB1_10: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_14 + loop # label6: i32.load $3=, 0($6) i32.load8_u $push17=, 0($3) i32.const $push18=, 255 i32.and $push19=, $7, $pop18 i32.ne $push20=, $pop17, $pop19 - br_if $pop20, .LBB1_14 + br_if $pop20, 1 # 1: down to label7 # BB#11: # %lor.lhs.false.i50 # in Loop: Header=BB1_10 Depth=1 i32.load8_u $push21=, 1($3) - br_if $pop21, .LBB1_14 + br_if $pop21, 1 # 1: down to label7 # BB#12: # %lor.lhs.false.i50 # in Loop: Header=BB1_10 Depth=1 i32.load $3=, r.cnt($4) i32.ge_s $push22=, $3, $5 - br_if $pop22, .LBB1_14 + br_if $pop22, 1 # 1: down to label7 # BB#13: # %r.exit # in Loop: Header=BB1_10 Depth=1 i32.add $push23=, $3, $1 @@ -144,23 +145,29 @@ x: # @x i32.store $8=, o($4), $pop2 i32.add $6=, $6, $5 i32.lt_s $push24=, $8, $0 - br_if $pop24, .LBB1_10 - br .LBB1_15 + br_if $pop24, 0 # 0: up to label6 + br 2 # 2: down to label5 .LBB1_14: # %if.then.i51 + end_loop # label7: call abort@FUNCTION unreachable .LBB1_15: # %cleanup + end_block # label5: return $4 .LBB1_16: # %if.then15 + end_block # label4: i32.call $discard=, m@FUNCTION, $4 unreachable .LBB1_17: # %if.then.i46 + end_block # label3: call abort@FUNCTION unreachable .LBB1_18: # %if.then.i + end_block # label2: call abort@FUNCTION unreachable .LBB1_19: # %if.else + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: @@ -175,10 +182,10 @@ s: # @s .result i32 .local i32, i32, i32 # BB#0: # %entry - block .LBB2_3 + block i32.const $push0=, .L.str i32.call $push1=, strcmp@FUNCTION, $0, $pop0 - br_if $pop1, .LBB2_3 + br_if $pop1, 0 # 0: down to label8 # BB#1: # %lor.lhs.false i32.const $2=, 0 i32.load $3=, check($2) @@ -187,12 +194,13 @@ s: # @s i32.store $discard=, check($2), $pop2 i32.const $push3=, 2 i32.ge_s $push4=, $3, $pop3 - br_if $pop4, .LBB2_3 + br_if $pop4, 0 # 0: down to label8 # BB#2: # %if.end i32.add $push5=, $0, $4 i32.store $discard=, 0($1), $pop5 return $2 .LBB2_3: # %if.then + end_block # label8: call abort@FUNCTION unreachable .Lfunc_end2: @@ -222,18 +230,18 @@ r: # @r # BB#0: # %entry i32.load8_u $1=, 0($0) i32.const $3=, 0 - block .LBB4_4 + block i32.load8_u $push0=, r.c.0($3) i32.ne $push1=, $1, $pop0 - br_if $pop1, .LBB4_4 + br_if $pop1, 0 # 0: down to label9 # BB#1: # %lor.lhs.false i32.load8_u $push2=, 1($0) - br_if $pop2, .LBB4_4 + br_if $pop2, 0 # 0: down to label9 # BB#2: # %lor.lhs.false i32.load $2=, r.cnt($3) i32.const $push3=, 4 i32.ge_s $push4=, $2, $pop3 - br_if $pop4, .LBB4_4 + br_if $pop4, 0 # 0: down to label9 # BB#3: # %if.end i32.const $0=, 1 i32.add $push5=, $1, $0 @@ -242,6 +250,7 @@ r: # @r i32.store $discard=, r.cnt($3), $pop6 return $0 .LBB4_4: # %if.then + end_block # label9: call abort@FUNCTION unreachable .Lfunc_end4: diff --git a/test/torture-s/20010924-1.c.s b/test/torture-s/20010924-1.c.s index 6bb4ecb84..7a26f7d9e 100644 --- a/test/torture-s/20010924-1.c.s +++ b/test/torture-s/20010924-1.c.s @@ -9,121 +9,134 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_26 + block i32.load8_u $push0=, a1($1) i32.const $push1=, 52 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_26 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.load $0=, a1+4($1) - block .LBB0_25 + block i32.load8_u $push3=, 0($0) i32.const $push4=, 54 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB0_25 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %if.end6 - block .LBB0_24 + block i32.load8_u $push6=, 1($0) i32.const $push7=, 50 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_24 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %if.end12 - block .LBB0_23 + block i32.load8_u $push9=, 2($0) - br_if $pop9, .LBB0_23 + br_if $pop9, 0 # 0: down to label3 # BB#4: # %if.end18 - block .LBB0_22 + block i32.load8_u $push10=, a2($1) i32.const $push11=, 118 i32.ne $push12=, $pop10, $pop11 - br_if $pop12, .LBB0_22 + br_if $pop12, 0 # 0: down to label4 # BB#5: # %if.end23 - block .LBB0_21 + block i32.load8_u $push13=, a2+1($1) i32.const $push14=, 99 i32.ne $push15=, $pop13, $pop14 - br_if $pop15, .LBB0_21 + br_if $pop15, 0 # 0: down to label5 # BB#6: # %if.end28 - block .LBB0_20 + block i32.load8_u $push16=, a2+2($1) i32.const $push17=, 113 i32.ne $push18=, $pop16, $pop17 - br_if $pop18, .LBB0_20 + br_if $pop18, 0 # 0: down to label6 # BB#7: # %if.end33 - block .LBB0_19 + block i32.load8_u $push19=, a3($1) i32.const $push20=, 111 i32.ne $push21=, $pop19, $pop20 - br_if $pop21, .LBB0_19 + br_if $pop21, 0 # 0: down to label7 # BB#8: # %if.end38 - block .LBB0_18 + block i32.load8_u $push22=, a3+1($1) i32.const $push23=, 119 i32.ne $push24=, $pop22, $pop23 - br_if $pop24, .LBB0_18 + br_if $pop24, 0 # 0: down to label8 # BB#9: # %if.end43 - block .LBB0_17 + block i32.load8_u $push25=, a3+2($1) i32.const $push26=, 120 i32.ne $push27=, $pop25, $pop26 - br_if $pop27, .LBB0_17 + br_if $pop27, 0 # 0: down to label9 # BB#10: # %if.end48 - block .LBB0_16 + block i32.load8_u $push28=, a4($1) i32.const $push29=, 57 i32.ne $push30=, $pop28, $pop29 - br_if $pop30, .LBB0_16 + br_if $pop30, 0 # 0: down to label10 # BB#11: # %if.end53 - block .LBB0_15 + block i32.load8_u $push31=, a4+1($1) i32.const $push32=, 101 i32.ne $push33=, $pop31, $pop32 - br_if $pop33, .LBB0_15 + br_if $pop33, 0 # 0: down to label11 # BB#12: # %if.end58 - block .LBB0_14 + block i32.load8_u $push34=, a4+2($1) i32.const $push35=, 98 i32.ne $push36=, $pop34, $pop35 - br_if $pop36, .LBB0_14 + br_if $pop36, 0 # 0: down to label12 # BB#13: # %if.end63 return $1 .LBB0_14: # %if.then62 + end_block # label12: call abort@FUNCTION unreachable .LBB0_15: # %if.then57 + end_block # label11: call abort@FUNCTION unreachable .LBB0_16: # %if.then52 + end_block # label10: call abort@FUNCTION unreachable .LBB0_17: # %if.then47 + end_block # label9: call abort@FUNCTION unreachable .LBB0_18: # %if.then42 + end_block # label8: call abort@FUNCTION unreachable .LBB0_19: # %if.then37 + end_block # label7: call abort@FUNCTION unreachable .LBB0_20: # %if.then32 + end_block # label6: call abort@FUNCTION unreachable .LBB0_21: # %if.then27 + end_block # label5: call abort@FUNCTION unreachable .LBB0_22: # %if.then22 + end_block # label4: call abort@FUNCTION unreachable .LBB0_23: # %if.then17 + end_block # label3: call abort@FUNCTION unreachable .LBB0_24: # %if.then11 + end_block # label2: call abort@FUNCTION unreachable .LBB0_25: # %if.then5 + end_block # label1: call abort@FUNCTION unreachable .LBB0_26: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20010925-1.c.s b/test/torture-s/20010925-1.c.s index b059e4e6d..6601a5fab 100644 --- a/test/torture-s/20010925-1.c.s +++ b/test/torture-s/20010925-1.c.s @@ -28,14 +28,15 @@ foo: # @foo .local i32 # BB#0: # %entry i32.const $3=, 1 - block .LBB1_2 + block i32.const $push0=, 0 i32.eq $push1=, $2, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end call memcpy@FUNCTION, $0, $1, $2 i32.const $3=, 0 .LBB1_2: # %return + end_block # label0: return $3 .Lfunc_end1: .size foo, .Lfunc_end1-foo diff --git a/test/torture-s/20011008-3.c.s b/test/torture-s/20011008-3.c.s index 908f909ae..d02de706b 100644 --- a/test/torture-s/20011008-3.c.s +++ b/test/torture-s/20011008-3.c.s @@ -27,12 +27,12 @@ __db_txnlist_lsnadd: # @__db_txnlist_lsnadd i32.const $3=, 0 .LBB1_1: # %for.cond # =>This Inner Loop Header: Depth=1 - loop .LBB1_5 + loop # label0: copy_local $7=, $5 - block .LBB1_3 + block i32.const $push10=, 0 i32.eq $push11=, $4, $pop10 - br_if $pop11, .LBB1_3 + br_if $pop11, 0 # 0: down to label2 # BB#2: # %cond.false # in Loop: Header=BB1_1 Depth=1 i32.const $push1=, 12 @@ -40,14 +40,16 @@ __db_txnlist_lsnadd: # @__db_txnlist_lsnadd i32.load $7=, 0($pop2) .LBB1_3: # %cond.end # in Loop: Header=BB1_1 Depth=1 + end_block # label2: i32.ge_s $push3=, $3, $7 - br_if $pop3, .LBB1_5 + br_if $pop3, 1 # 1: down to label1 # BB#4: # %for.body # in Loop: Header=BB1_1 Depth=1 i32.const $push9=, 1 i32.add $3=, $3, $pop9 - br .LBB1_1 + br 0 # 0: up to label0 .LBB1_5: # %for.end35 + end_loop # label1: i32.const $push4=, 20 i32.add $push5=, $1, $pop4 i32.load $7=, 0($pop5) diff --git a/test/torture-s/20011024-1.c.s b/test/torture-s/20011024-1.c.s index 660549dc7..62957f1c9 100644 --- a/test/torture-s/20011024-1.c.s +++ b/test/torture-s/20011024-1.c.s @@ -10,18 +10,19 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.const $1=, buf - block .LBB0_2 + block i32.const $push0=, 6513249 i32.store $discard=, buf($0), $pop0 i32.const $push1=, .L.str i32.call $push2=, strcmp@FUNCTION, $1, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %foo.exit i32.const $push3=, .L.str.1 i32.const $push4=, 9 call memcpy@FUNCTION, $1, $pop3, $pop4 return $0 .LBB0_2: # %if.then1.i + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20011109-1.c.s b/test/torture-s/20011109-1.c.s index e4cdfc651..e4aa848c2 100644 --- a/test/torture-s/20011109-1.c.s +++ b/test/torture-s/20011109-1.c.s @@ -51,34 +51,45 @@ fail4: # @fail4 foo: # @foo .param i32 # BB#0: # %entry - block .LBB4_7 + block i32.const $push0=, 6 i32.add $0=, $0, $pop0 i32.const $push1=, 11 i32.gt_u $push2=, $0, $pop1 - br_if $pop2, .LBB4_7 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %entry - block .LBB4_6 - block .LBB4_5 - block .LBB4_4 - block .LBB4_3 - block .LBB4_2 - tableswitch $0, .LBB4_3, .LBB4_3, .LBB4_7, .LBB4_7, .LBB4_7, .LBB4_7, .LBB4_7, .LBB4_4, .LBB4_2, .LBB4_5, .LBB4_6, .LBB4_6, .LBB4_6 + block + block + block + block + block + tableswitch $0, 1, 1, 5, 5, 5, 5, 5, 2, 0, 3, 4, 4, 4 # 1: down to label4 + # 5: down to label0 + # 2: down to label3 + # 0: down to label5 + # 3: down to label2 + # 4: down to label1 .LBB4_2: # %sw.epilog9 + end_block # label5: return .LBB4_3: # %sw.bb + end_block # label4: call fail1@FUNCTION unreachable .LBB4_4: # %sw.bb1 + end_block # label3: call fail2@FUNCTION unreachable .LBB4_5: # %sw.bb7 + end_block # label2: call abort@FUNCTION unreachable .LBB4_6: # %sw.bb3 + end_block # label1: call fail3@FUNCTION unreachable .LBB4_7: # %sw.default + end_block # label0: call fail4@FUNCTION unreachable .Lfunc_end4: diff --git a/test/torture-s/20011126-1.c.s b/test/torture-s/20011126-1.c.s index 7c37e5dba..9ef5b1f0d 100644 --- a/test/torture-s/20011126-1.c.s +++ b/test/torture-s/20011126-1.c.s @@ -9,14 +9,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, a($0) i32.const $push1=, -1 i32.le_s $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end5 return $0 .LBB0_2: # %if.then4 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20011219-1.c.s b/test/torture-s/20011219-1.c.s index e0c59a2a0..de0877591 100644 --- a/test/torture-s/20011219-1.c.s +++ b/test/torture-s/20011219-1.c.s @@ -23,32 +23,42 @@ foo: # @foo i32.const $push0=, -10 i32.add $0=, $0, $pop0 # implicit-def: %vreg13 - block .LBB1_7 + block i32.const $push1=, 4 i32.gt_u $push2=, $0, $pop1 - br_if $pop2, .LBB1_7 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %entry - block .LBB1_6 - block .LBB1_5 - block .LBB1_4 - block .LBB1_3 - block .LBB1_2 - tableswitch $0, .LBB1_2, .LBB1_2, .LBB1_3, .LBB1_4, .LBB1_5, .LBB1_6 + block + block + block + block + block + tableswitch $0, 0, 0, 1, 2, 3, 4 # 0: down to label5 + # 1: down to label4 + # 2: down to label3 + # 3: down to label2 + # 4: down to label1 .LBB1_2: # %sw.bb + end_block # label5: i32.load $2=, 0($1) - br .LBB1_7 + br 4 # 4: down to label0 .LBB1_3: # %sw.bb1 + end_block # label4: i32.load $2=, 0($1) - br .LBB1_7 + br 3 # 3: down to label0 .LBB1_4: # %sw.bb2 + end_block # label3: i32.load $2=, 0($1) - br .LBB1_7 + br 2 # 2: down to label0 .LBB1_5: # %sw.bb3 + end_block # label2: i32.load $2=, 0($1) - br .LBB1_7 + br 1 # 1: down to label0 .LBB1_6: # %sw.bb4 + end_block # label1: i32.load $2=, 0($1) .LBB1_7: # %sw.epilog + end_block # label0: return $2 .Lfunc_end1: .size foo, .Lfunc_end1-foo diff --git a/test/torture-s/20020107-1.c.s b/test/torture-s/20020107-1.c.s index 433a31eb0..7e1de3e5d 100644 --- a/test/torture-s/20020107-1.c.s +++ b/test/torture-s/20020107-1.c.s @@ -29,16 +29,17 @@ main: # @main #APP #NO_APP i32.const $2=, 1 - block .LBB1_2 + block i32.add $push0=, $0, $2 i32.sub $push1=, $pop0, $1 i32.ne $push2=, $pop1, $2 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %bar.exit i32.const $push3=, 0 call exit@FUNCTION, $pop3 unreachable .LBB1_2: # %if.then.i + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20020118-1.c.s b/test/torture-s/20020118-1.c.s index 37bb46ff0..e324b1dd8 100644 --- a/test/torture-s/20020118-1.c.s +++ b/test/torture-s/20020118-1.c.s @@ -10,7 +10,7 @@ foo: # @foo i32.const $0=, 0 .LBB0_1: # %for.cond # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.load $1=, q($0) i32.load8_s $push0=, 2($1) i32.store $discard=, n($0), $pop0 @@ -38,8 +38,9 @@ foo: # @foo i32.load $push10=, q($0) i32.load8_s $push11=, 2($pop10) i32.store $discard=, n($0), $pop11 - br .LBB0_1 + br 0 # 0: up to label0 .LBB0_2: + end_loop # label1: .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/20020129-1.c.s b/test/torture-s/20020129-1.c.s index b4e352bee..5be0afe1e 100644 --- a/test/torture-s/20020129-1.c.s +++ b/test/torture-s/20020129-1.c.s @@ -9,20 +9,21 @@ foo: # @foo .local i32, i32, i32 # BB#0: # %entry i32.load $4=, 28($1) - block .LBB0_5 - block .LBB0_3 + block + block i32.load $push0=, 28($0) i32.const $push11=, 0 i32.eq $push12=, $pop0, $pop11 - br_if $pop12, .LBB0_3 + br_if $pop12, 0 # 0: down to label1 # BB#1: # %if.end i32.const $push13=, 0 i32.eq $push14=, $4, $pop13 - br_if $pop14, .LBB0_5 + br_if $pop14, 1 # 1: down to label0 # BB#2: # %if.then6 call abort@FUNCTION unreachable .LBB0_3: # %if.then + end_block # label1: i32.const $2=, 28 i32.add $push1=, $0, $2 i32.store $discard=, 0($pop1), $4 @@ -31,28 +32,31 @@ foo: # @foo i32.store $discard=, 0($pop2), $pop3 i32.const $push15=, 0 i32.eq $push16=, $4, $pop15 - br_if $pop16, .LBB0_5 + br_if $pop16, 0 # 0: down to label0 .LBB0_4: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 + loop # label2: i32.store $discard=, 4($4), $0 i32.load $4=, 0($4) - br_if $4, .LBB0_4 + br_if $4, 0 # 0: up to label2 .LBB0_5: # %if.end7 + end_loop # label3: + end_block # label0: i32.load $2=, 12($1) i32.const $4=, -1 - block .LBB0_9 - block .LBB0_8 + block + block i32.load $push4=, 12($0) i32.eq $push5=, $pop4, $4 - br_if $pop5, .LBB0_8 + br_if $pop5, 0 # 0: down to label5 # BB#6: # %if.end22 i32.eq $push6=, $2, $4 - br_if $pop6, .LBB0_9 + br_if $pop6, 1 # 1: down to label4 # BB#7: # %if.then26 call abort@FUNCTION unreachable .LBB0_8: # %if.end22.thread + end_block # label5: i32.const $3=, 12 i32.add $push7=, $0, $3 i32.store $discard=, 0($pop7), $2 @@ -63,6 +67,7 @@ foo: # @foo i32.const $push10=, 0 i32.store $discard=, 16($1), $pop10 .LBB0_9: # %if.end27 + end_block # label4: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -82,35 +87,38 @@ main: # @main i32.store $2=, y+12($1), $pop1 i32.load $5=, x+28($1) i32.load $0=, y+28($1) - block .LBB1_5 - block .LBB1_3 + block + block i32.const $push2=, 2448 i32.store $3=, y+16($1), $pop2 i32.const $push3=, -1 i32.store $4=, x+12($1), $pop3 - br_if $5, .LBB1_3 + br_if $5, 0 # 0: down to label7 # BB#1: # %if.then.i i32.store $5=, x+28($1), $0 i32.store $discard=, y+28($1), $1 i32.const $push6=, 0 i32.eq $push7=, $5, $pop6 - br_if $pop7, .LBB1_5 + br_if $pop7, 1 # 1: down to label6 .LBB1_2: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label8: i32.const $push4=, x i32.store $discard=, 4($5), $pop4 i32.load $5=, 0($5) - br_if $5, .LBB1_2 - br .LBB1_5 + br_if $5, 0 # 0: up to label8 + br 3 # 3: down to label6 .LBB1_3: # %if.end.i + end_loop # label9: + end_block # label7: i32.const $push8=, 0 i32.eq $push9=, $0, $pop8 - br_if $pop9, .LBB1_5 + br_if $pop9, 0 # 0: down to label6 # BB#4: # %if.then6.i call abort@FUNCTION unreachable .LBB1_5: # %foo.exit + end_block # label6: i32.store $discard=, x+12($1), $2 i32.store $discard=, x+16($1), $3 i32.store $discard=, y+12($1), $4 diff --git a/test/torture-s/20020201-1.c.s b/test/torture-s/20020201-1.c.s index 9fd35e7c7..5357fba11 100644 --- a/test/torture-s/20020201-1.c.s +++ b/test/torture-s/20020201-1.c.s @@ -12,106 +12,116 @@ main: # @main i32.load8_u $0=, cx($2) i32.const $3=, 255 i32.const $4=, 6 - block .LBB0_2 + block i32.const $push0=, -6 i32.add $push1=, $0, $pop0 i32.and $push2=, $pop1, $3 i32.lt_u $push3=, $pop2, $4 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB0_2: # %if.end - block .LBB0_20 + end_block # label0: + block i32.and $push4=, $0, $3 i32.rem_u $push5=, $pop4, $4 i32.const $push6=, 1 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB0_20 + br_if $pop7, 0 # 0: down to label1 # BB#3: # %if.end10 i32.load16_u $0=, sx($2) i32.const $3=, 65535 - block .LBB0_5 + block i32.const $push8=, -12 i32.add $push9=, $0, $pop8 i32.and $push10=, $pop9, $3 i32.lt_u $push11=, $pop10, $4 - br_if $pop11, .LBB0_5 + br_if $pop11, 0 # 0: down to label2 # BB#4: # %if.then17 call abort@FUNCTION unreachable .LBB0_5: # %if.end18 - block .LBB0_19 + end_block # label2: + block i32.and $push12=, $0, $3 i32.rem_u $push13=, $pop12, $4 i32.const $push14=, 2 i32.ne $push15=, $pop13, $pop14 - br_if $pop15, .LBB0_19 + br_if $pop15, 0 # 0: down to label3 # BB#6: # %if.end26 i32.load $0=, ix($2) - block .LBB0_8 + block i32.const $push16=, -18 i32.add $push17=, $0, $pop16 i32.lt_u $push18=, $pop17, $4 - br_if $pop18, .LBB0_8 + br_if $pop18, 0 # 0: down to label4 # BB#7: # %if.then30 call abort@FUNCTION unreachable .LBB0_8: # %if.end31 - block .LBB0_18 + end_block # label4: + block i32.rem_u $push19=, $0, $4 i32.const $push20=, 3 i32.ne $push21=, $pop19, $pop20 - br_if $pop21, .LBB0_18 + br_if $pop21, 0 # 0: down to label5 # BB#9: # %if.end36 i32.load $0=, lx($2) - block .LBB0_11 + block i32.const $push22=, -24 i32.add $push23=, $0, $pop22 i32.lt_u $push24=, $pop23, $4 - br_if $pop24, .LBB0_11 + br_if $pop24, 0 # 0: down to label6 # BB#10: # %if.then40 call abort@FUNCTION unreachable .LBB0_11: # %if.end41 - block .LBB0_17 + end_block # label6: + block i32.rem_u $push25=, $0, $4 i32.const $push26=, 4 i32.ne $push27=, $pop25, $pop26 - br_if $pop27, .LBB0_17 + br_if $pop27, 0 # 0: down to label7 # BB#12: # %if.end46 i64.load $1=, Lx($2) i64.const $5=, 6 - block .LBB0_14 + block i64.const $push28=, -30 i64.add $push29=, $1, $pop28 i64.lt_u $push30=, $pop29, $5 - br_if $pop30, .LBB0_14 + br_if $pop30, 0 # 0: down to label8 # BB#13: # %if.then50 call abort@FUNCTION unreachable .LBB0_14: # %if.end51 - block .LBB0_16 + end_block # label8: + block i64.rem_u $push31=, $1, $5 i64.const $push32=, 5 i64.ne $push33=, $pop31, $pop32 - br_if $pop33, .LBB0_16 + br_if $pop33, 0 # 0: down to label9 # BB#15: # %if.end56 call exit@FUNCTION, $2 unreachable .LBB0_16: # %if.then55 + end_block # label9: call abort@FUNCTION unreachable .LBB0_17: # %if.then45 + end_block # label7: call abort@FUNCTION unreachable .LBB0_18: # %if.then35 + end_block # label5: call abort@FUNCTION unreachable .LBB0_19: # %if.then25 + end_block # label3: call abort@FUNCTION unreachable .LBB0_20: # %if.then9 + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20020206-1.c.s b/test/torture-s/20020206-1.c.s index d07f18551..7bd47d5a9 100644 --- a/test/torture-s/20020206-1.c.s +++ b/test/torture-s/20020206-1.c.s @@ -24,24 +24,25 @@ bar: # @bar baz: # @baz .param i32 # BB#0: # %entry - block .LBB1_4 + block i32.load $push0=, 0($0) i32.const $push1=, 176 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_4 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.load $push3=, 4($0) i32.const $push4=, 52 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB1_4 + br_if $pop5, 0 # 0: down to label0 # BB#2: # %lor.lhs.false3 i32.load $push6=, 8($0) i32.const $push7=, 31 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB1_4 + br_if $pop8, 0 # 0: down to label0 # BB#3: # %if.end return .LBB1_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20020206-2.c.s b/test/torture-s/20020206-2.c.s index ebfd66865..d0d8b4676 100644 --- a/test/torture-s/20020206-2.c.s +++ b/test/torture-s/20020206-2.c.s @@ -7,15 +7,16 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 16 i32.or $push1=, $0, $pop0 i32.const $push2=, 2064 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20020213-1.c.s b/test/torture-s/20020213-1.c.s index 68f309dcf..ed3adfe8f 100644 --- a/test/torture-s/20020213-1.c.s +++ b/test/torture-s/20020213-1.c.s @@ -13,15 +13,16 @@ foo: # @foo i32.add $1=, $pop0, $pop1 i32.const $2=, 2241 i32.gt_s $3=, $1, $2 - block .LBB0_2 + block i32.select $push2=, $3, $2, $1 i32.store $discard=, a+4($0), $pop2 i32.const $push3=, 0 i32.eq $push4=, $3, $pop3 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20020216-1.c.s b/test/torture-s/20020216-1.c.s index dc8ae6aae..6b8a1763e 100644 --- a/test/torture-s/20020216-1.c.s +++ b/test/torture-s/20020216-1.c.s @@ -27,15 +27,16 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.const $1=, 65535 - block .LBB1_2 + block i32.load8_s $push0=, c($0) i32.and $push1=, $pop0, $1 i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20020226-1.c.s b/test/torture-s/20020226-1.c.s index e182f1197..21f96b99c 100644 --- a/test/torture-s/20020226-1.c.s +++ b/test/torture-s/20020226-1.c.s @@ -14,74 +14,74 @@ main: # @main i32.const $push1=, 8 i32.sub $2=, $pop1, $1 i32.const $12=, 835 - block .LBB0_42 + block i32.shl $push2=, $0, $2 i32.shr_u $push0=, $0, $1 i32.or $push3=, $pop2, $pop0 i32.ne $push4=, $pop3, $12 - br_if $pop4, .LBB0_42 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end i32.const $13=, 4 - block .LBB0_41 + block i32.shr_u $push5=, $0, $13 i32.shl $push6=, $0, $13 i32.or $push7=, $pop5, $pop6 i32.ne $push8=, $pop7, $12 - br_if $pop8, .LBB0_41 + br_if $pop8, 0 # 0: down to label1 # BB#2: # %if.end11 i32.load16_u $3=, us($11) i32.const $push10=, 16 i32.sub $4=, $pop10, $1 i32.const $14=, 19087651 - block .LBB0_40 + block i32.shr_u $push9=, $3, $1 i32.shl $push11=, $3, $4 i32.or $push12=, $pop9, $pop11 i32.ne $push13=, $pop12, $14 - br_if $pop13, .LBB0_40 + br_if $pop13, 0 # 0: down to label2 # BB#3: # %if.end21 i32.const $15=, 12 - block .LBB0_39 + block i32.shr_u $push14=, $3, $13 i32.shl $push15=, $3, $15 i32.or $push16=, $pop14, $pop15 i32.ne $push17=, $pop16, $14 - br_if $pop17, .LBB0_39 + br_if $pop17, 0 # 0: down to label3 # BB#4: # %if.end30 i32.load $14=, ui($11) i32.const $push19=, 32 i32.sub $5=, $pop19, $1 i32.const $16=, 1073742115 - block .LBB0_38 + block i32.shr_u $push18=, $14, $1 i32.shl $push20=, $14, $5 i32.or $push21=, $pop18, $pop20 i32.ne $push22=, $pop21, $16 - br_if $pop22, .LBB0_38 + br_if $pop22, 0 # 0: down to label4 # BB#5: # %if.end38 i32.const $17=, 28 - block .LBB0_37 + block i32.shr_u $push23=, $14, $13 i32.shl $push24=, $14, $17 i32.or $push25=, $pop23, $pop24 i32.ne $push26=, $pop25, $16 - br_if $pop26, .LBB0_37 + br_if $pop26, 0 # 0: down to label5 # BB#6: # %if.end45 i32.load $16=, ul($11) i32.const $18=, -2128394905 - block .LBB0_36 + block i32.shr_u $push27=, $16, $1 i32.shl $push28=, $16, $5 i32.or $push29=, $pop27, $pop28 i32.ne $push30=, $pop29, $18 - br_if $pop30, .LBB0_36 + br_if $pop30, 0 # 0: down to label6 # BB#7: # %if.end53 - block .LBB0_35 + block i32.shr_u $push31=, $16, $13 i32.shl $push32=, $16, $17 i32.or $push33=, $pop31, $pop32 i32.ne $push34=, $pop33, $18 - br_if $pop34, .LBB0_35 + br_if $pop34, 0 # 0: down to label7 # BB#8: # %if.end60 i64.load $6=, ull($11) i32.const $18=, 64 @@ -89,170 +89,191 @@ main: # @main i64.extend_u/i32 $8=, $pop36 i64.extend_u/i32 $7=, $1 i64.const $19=, 5124095577148911 - block .LBB0_34 + block i64.shr_u $push35=, $6, $7 i64.shl $push37=, $6, $8 i64.or $push38=, $pop35, $pop37 i64.ne $push39=, $pop38, $19 - br_if $pop39, .LBB0_34 + br_if $pop39, 0 # 0: down to label8 # BB#9: # %if.end69 i64.const $20=, 4 i64.const $21=, 60 - block .LBB0_33 + block i64.shr_u $push40=, $6, $20 i64.shl $push41=, $6, $21 i64.or $push42=, $pop40, $pop41 i64.ne $push43=, $pop42, $19 - br_if $pop43, .LBB0_33 + br_if $pop43, 0 # 0: down to label9 # BB#10: # %if.end76 i32.load $22=, shift2($11) i64.extend_u/i32 $9=, $22 i32.sub $push45=, $18, $22 i64.extend_u/i32 $10=, $pop45 i64.const $23=, 1311768467750121216 - block .LBB0_32 + block i64.shl $push46=, $6, $10 i64.shr_u $push44=, $6, $9 i64.or $push47=, $pop46, $pop44 i64.ne $push48=, $pop47, $23 - br_if $pop48, .LBB0_32 + br_if $pop48, 0 # 0: down to label10 # BB#11: # %if.end86 - block .LBB0_31 + block i64.shr_u $push49=, $6, $21 i64.shl $push50=, $6, $20 i64.or $push51=, $pop49, $pop50 i64.ne $push52=, $pop51, $23 - br_if $pop52, .LBB0_31 + br_if $pop52, 0 # 0: down to label11 # BB#12: # %if.end93 - block .LBB0_30 + block i32.shr_u $push54=, $0, $2 i32.shl $push53=, $0, $1 i32.or $push55=, $pop54, $pop53 i32.ne $push56=, $pop55, $12 - br_if $pop56, .LBB0_30 + br_if $pop56, 0 # 0: down to label12 # BB#13: # %if.end112 i32.const $0=, 74561 - block .LBB0_29 + block i32.shl $push57=, $3, $1 i32.shr_u $push58=, $3, $4 i32.or $push59=, $pop57, $pop58 i32.ne $push60=, $pop59, $0 - br_if $pop60, .LBB0_29 + br_if $pop60, 0 # 0: down to label13 # BB#14: # %if.end122 - block .LBB0_28 + block i32.shl $push61=, $3, $13 i32.shr_u $push62=, $3, $15 i32.or $push63=, $pop61, $pop62 i32.ne $push64=, $pop63, $0 - br_if $pop64, .LBB0_28 + br_if $pop64, 0 # 0: down to label14 # BB#15: # %if.end131 i32.const $0=, 74560 - block .LBB0_27 + block i32.shl $push65=, $14, $1 i32.shr_u $push66=, $14, $5 i32.or $push67=, $pop65, $pop66 i32.ne $push68=, $pop67, $0 - br_if $pop68, .LBB0_27 + br_if $pop68, 0 # 0: down to label15 # BB#16: # %if.end139 - block .LBB0_26 + block i32.shl $push69=, $14, $13 i32.shr_u $push70=, $14, $17 i32.or $push71=, $pop69, $pop70 i32.ne $push72=, $pop71, $0 - br_if $pop72, .LBB0_26 + br_if $pop72, 0 # 0: down to label16 # BB#17: # %if.end146 i32.const $0=, 591751041 - block .LBB0_25 + block i32.shl $push73=, $16, $1 i32.shr_u $push74=, $16, $5 i32.or $push75=, $pop73, $pop74 i32.ne $push76=, $pop75, $0 - br_if $pop76, .LBB0_25 + br_if $pop76, 0 # 0: down to label17 # BB#18: # %if.end154 - block .LBB0_24 + block i32.shl $push77=, $16, $13 i32.shr_u $push78=, $16, $17 i32.or $push79=, $pop77, $pop78 i32.ne $push80=, $pop79, $0 - br_if $pop80, .LBB0_24 + br_if $pop80, 0 # 0: down to label18 # BB#19: # %if.end161 - block .LBB0_23 + block i64.shl $push81=, $6, $7 i64.shr_u $push82=, $6, $8 i64.or $push83=, $pop81, $pop82 i64.ne $push84=, $pop83, $23 - br_if $pop84, .LBB0_23 + br_if $pop84, 0 # 0: down to label19 # BB#20: # %if.end178 - block .LBB0_22 + block i64.shr_u $push86=, $6, $10 i64.shl $push85=, $6, $9 i64.or $push87=, $pop86, $pop85 i64.ne $push88=, $pop87, $19 - br_if $pop88, .LBB0_22 + br_if $pop88, 0 # 0: down to label20 # BB#21: # %if.end195 call exit@FUNCTION, $11 unreachable .LBB0_22: # %if.then187 + end_block # label20: call abort@FUNCTION unreachable .LBB0_23: # %if.then170 + end_block # label19: call abort@FUNCTION unreachable .LBB0_24: # %if.then160 + end_block # label18: call abort@FUNCTION unreachable .LBB0_25: # %if.then153 + end_block # label17: call abort@FUNCTION unreachable .LBB0_26: # %if.then145 + end_block # label16: call abort@FUNCTION unreachable .LBB0_27: # %if.then138 + end_block # label15: call abort@FUNCTION unreachable .LBB0_28: # %if.then130 + end_block # label14: call abort@FUNCTION unreachable .LBB0_29: # %if.then121 + end_block # label13: call abort@FUNCTION unreachable .LBB0_30: # %if.then102 + end_block # label12: call abort@FUNCTION unreachable .LBB0_31: # %if.then92 + end_block # label11: call abort@FUNCTION unreachable .LBB0_32: # %if.then85 + end_block # label10: call abort@FUNCTION unreachable .LBB0_33: # %if.then75 + end_block # label9: call abort@FUNCTION unreachable .LBB0_34: # %if.then68 + end_block # label8: call abort@FUNCTION unreachable .LBB0_35: # %if.then59 + end_block # label7: call abort@FUNCTION unreachable .LBB0_36: # %if.then52 + end_block # label6: call abort@FUNCTION unreachable .LBB0_37: # %if.then44 + end_block # label5: call abort@FUNCTION unreachable .LBB0_38: # %if.then37 + end_block # label4: call abort@FUNCTION unreachable .LBB0_39: # %if.then29 + end_block # label3: call abort@FUNCTION unreachable .LBB0_40: # %if.then20 + end_block # label2: call abort@FUNCTION unreachable .LBB0_41: # %if.then10 + end_block # label1: call abort@FUNCTION unreachable .LBB0_42: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20020227-1.c.s b/test/torture-s/20020227-1.c.s index 9122cc865..c8bfb9c3d 100644 --- a/test/torture-s/20020227-1.c.s +++ b/test/torture-s/20020227-1.c.s @@ -33,7 +33,7 @@ f2: # @f2 # BB#0: # %entry i32.const $1=, 8 i32.const $2=, 16 - block .LBB2_4 + block i32.const $push1=, 4 i32.add $push2=, $0, $pop1 i32.load8_u $push3=, 0($pop2) @@ -53,7 +53,7 @@ f2: # @f2 f32.reinterpret/i32 $push17=, $pop16 f32.const $push35=, 0x1p0 f32.ne $push36=, $pop17, $pop35 - br_if $pop36, .LBB2_4 + br_if $pop36, 0 # 0: down to label0 # BB#1: # %entry i32.add $push26=, $0, $1 i32.load8_u $push27=, 0($pop26) @@ -75,15 +75,16 @@ f2: # @f2 f32.reinterpret/i32 $push0=, $pop34 f32.const $push37=, 0x0p0 f32.ne $push38=, $pop0, $pop37 - br_if $pop38, .LBB2_4 + br_if $pop38, 0 # 0: down to label0 # BB#2: # %lor.lhs.false i32.load8_u $push39=, 0($0) i32.const $push40=, 42 i32.ne $push41=, $pop39, $pop40 - br_if $pop41, .LBB2_4 + br_if $pop41, 0 # 0: down to label0 # BB#3: # %if.end return .LBB2_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20020307-1.c.s b/test/torture-s/20020307-1.c.s index 56c16fdf6..cb2093fb8 100644 --- a/test/torture-s/20020307-1.c.s +++ b/test/torture-s/20020307-1.c.s @@ -9,13 +9,14 @@ f3: # @f3 .local i32 # BB#0: # %entry i32.const $1=, 6 - block .LBB0_2 + block i32.and $push0=, $0, $1 i32.ge_u $push1=, $pop0, $1 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -28,15 +29,16 @@ f3: # @f3 f4: # @f4 .param i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 14 i32.and $push1=, $0, $pop0 i32.const $push2=, 10 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %if.end return .LBB1_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: @@ -49,15 +51,16 @@ f4: # @f4 f5: # @f5 .param i32 # BB#0: # %entry - block .LBB2_2 + block i32.const $push0=, 30 i32.and $push1=, $0, $pop0 i32.const $push2=, 18 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB2_2 + br_if $pop3, 0 # 0: down to label2 # BB#1: # %if.end return .LBB2_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end2: @@ -70,15 +73,16 @@ f5: # @f5 f6: # @f6 .param i32 # BB#0: # %entry - block .LBB3_2 + block i32.const $push0=, 62 i32.and $push1=, $0, $pop0 i32.const $push2=, 34 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB3_2 + br_if $pop3, 0 # 0: down to label3 # BB#1: # %if.end return .LBB3_2: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end3: @@ -91,15 +95,16 @@ f6: # @f6 f7: # @f7 .param i32 # BB#0: # %entry - block .LBB4_2 + block i32.const $push0=, 126 i32.and $push1=, $0, $pop0 i32.const $push2=, 66 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB4_2 + br_if $pop3, 0 # 0: down to label4 # BB#1: # %if.end return .LBB4_2: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end4: @@ -112,15 +117,16 @@ f7: # @f7 f8: # @f8 .param i32 # BB#0: # %entry - block .LBB5_2 + block i32.const $push0=, 254 i32.and $push1=, $0, $pop0 i32.const $push2=, 130 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB5_2 + br_if $pop3, 0 # 0: down to label5 # BB#1: # %if.end return .LBB5_2: # %if.then + end_block # label5: call abort@FUNCTION unreachable .Lfunc_end5: @@ -133,15 +139,16 @@ f8: # @f8 f9: # @f9 .param i32 # BB#0: # %entry - block .LBB6_2 + block i32.const $push0=, 510 i32.and $push1=, $0, $pop0 i32.const $push2=, 258 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB6_2 + br_if $pop3, 0 # 0: down to label6 # BB#1: # %if.end return .LBB6_2: # %if.then + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end6: @@ -154,15 +161,16 @@ f9: # @f9 f10: # @f10 .param i32 # BB#0: # %entry - block .LBB7_2 + block i32.const $push0=, 1022 i32.and $push1=, $0, $pop0 i32.const $push2=, 514 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB7_2 + br_if $pop3, 0 # 0: down to label7 # BB#1: # %if.end return .LBB7_2: # %if.then + end_block # label7: call abort@FUNCTION unreachable .Lfunc_end7: @@ -175,15 +183,16 @@ f10: # @f10 f11: # @f11 .param i32 # BB#0: # %entry - block .LBB8_2 + block i32.const $push0=, 2046 i32.and $push1=, $0, $pop0 i32.const $push2=, 1026 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB8_2 + br_if $pop3, 0 # 0: down to label8 # BB#1: # %if.end return .LBB8_2: # %if.then + end_block # label8: call abort@FUNCTION unreachable .Lfunc_end8: @@ -196,15 +205,16 @@ f11: # @f11 f12: # @f12 .param i32 # BB#0: # %entry - block .LBB9_2 + block i32.const $push0=, 4094 i32.and $push1=, $0, $pop0 i32.const $push2=, 2050 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB9_2 + br_if $pop3, 0 # 0: down to label9 # BB#1: # %if.end return .LBB9_2: # %if.then + end_block # label9: call abort@FUNCTION unreachable .Lfunc_end9: @@ -217,15 +227,16 @@ f12: # @f12 f13: # @f13 .param i32 # BB#0: # %entry - block .LBB10_2 + block i32.const $push0=, 8190 i32.and $push1=, $0, $pop0 i32.const $push2=, 4098 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB10_2 + br_if $pop3, 0 # 0: down to label10 # BB#1: # %if.end return .LBB10_2: # %if.then + end_block # label10: call abort@FUNCTION unreachable .Lfunc_end10: @@ -238,15 +249,16 @@ f13: # @f13 f14: # @f14 .param i32 # BB#0: # %entry - block .LBB11_2 + block i32.const $push0=, 16382 i32.and $push1=, $0, $pop0 i32.const $push2=, 8194 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB11_2 + br_if $pop3, 0 # 0: down to label11 # BB#1: # %if.end return .LBB11_2: # %if.then + end_block # label11: call abort@FUNCTION unreachable .Lfunc_end11: @@ -259,15 +271,16 @@ f14: # @f14 f15: # @f15 .param i32 # BB#0: # %entry - block .LBB12_2 + block i32.const $push0=, 32766 i32.and $push1=, $0, $pop0 i32.const $push2=, 16386 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB12_2 + br_if $pop3, 0 # 0: down to label12 # BB#1: # %if.end return .LBB12_2: # %if.then + end_block # label12: call abort@FUNCTION unreachable .Lfunc_end12: @@ -280,15 +293,16 @@ f15: # @f15 f16: # @f16 .param i32 # BB#0: # %entry - block .LBB13_2 + block i32.const $push0=, 65534 i32.and $push1=, $0, $pop0 i32.const $push2=, 32770 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB13_2 + br_if $pop3, 0 # 0: down to label13 # BB#1: # %if.end return .LBB13_2: # %if.then + end_block # label13: call abort@FUNCTION unreachable .Lfunc_end13: @@ -301,15 +315,16 @@ f16: # @f16 f17: # @f17 .param i32 # BB#0: # %entry - block .LBB14_2 + block i32.const $push0=, 131070 i32.and $push1=, $0, $pop0 i32.const $push2=, 65538 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB14_2 + br_if $pop3, 0 # 0: down to label14 # BB#1: # %if.end return .LBB14_2: # %if.then + end_block # label14: call abort@FUNCTION unreachable .Lfunc_end14: @@ -322,15 +337,16 @@ f17: # @f17 f18: # @f18 .param i32 # BB#0: # %entry - block .LBB15_2 + block i32.const $push0=, 262142 i32.and $push1=, $0, $pop0 i32.const $push2=, 131074 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB15_2 + br_if $pop3, 0 # 0: down to label15 # BB#1: # %if.end return .LBB15_2: # %if.then + end_block # label15: call abort@FUNCTION unreachable .Lfunc_end15: @@ -343,15 +359,16 @@ f18: # @f18 f19: # @f19 .param i32 # BB#0: # %entry - block .LBB16_2 + block i32.const $push0=, 524286 i32.and $push1=, $0, $pop0 i32.const $push2=, 262146 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB16_2 + br_if $pop3, 0 # 0: down to label16 # BB#1: # %if.end return .LBB16_2: # %if.then + end_block # label16: call abort@FUNCTION unreachable .Lfunc_end16: @@ -364,15 +381,16 @@ f19: # @f19 f20: # @f20 .param i32 # BB#0: # %entry - block .LBB17_2 + block i32.const $push0=, 1048574 i32.and $push1=, $0, $pop0 i32.const $push2=, 524290 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB17_2 + br_if $pop3, 0 # 0: down to label17 # BB#1: # %if.end return .LBB17_2: # %if.then + end_block # label17: call abort@FUNCTION unreachable .Lfunc_end17: @@ -385,15 +403,16 @@ f20: # @f20 f21: # @f21 .param i32 # BB#0: # %entry - block .LBB18_2 + block i32.const $push0=, 2097150 i32.and $push1=, $0, $pop0 i32.const $push2=, 1048578 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB18_2 + br_if $pop3, 0 # 0: down to label18 # BB#1: # %if.end return .LBB18_2: # %if.then + end_block # label18: call abort@FUNCTION unreachable .Lfunc_end18: @@ -406,15 +425,16 @@ f21: # @f21 f22: # @f22 .param i32 # BB#0: # %entry - block .LBB19_2 + block i32.const $push0=, 4194302 i32.and $push1=, $0, $pop0 i32.const $push2=, 2097154 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB19_2 + br_if $pop3, 0 # 0: down to label19 # BB#1: # %if.end return .LBB19_2: # %if.then + end_block # label19: call abort@FUNCTION unreachable .Lfunc_end19: @@ -427,15 +447,16 @@ f22: # @f22 f23: # @f23 .param i32 # BB#0: # %entry - block .LBB20_2 + block i32.const $push0=, 8388606 i32.and $push1=, $0, $pop0 i32.const $push2=, 4194306 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB20_2 + br_if $pop3, 0 # 0: down to label20 # BB#1: # %if.end return .LBB20_2: # %if.then + end_block # label20: call abort@FUNCTION unreachable .Lfunc_end20: @@ -448,15 +469,16 @@ f23: # @f23 f24: # @f24 .param i32 # BB#0: # %entry - block .LBB21_2 + block i32.const $push0=, 16777214 i32.and $push1=, $0, $pop0 i32.const $push2=, 8388610 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB21_2 + br_if $pop3, 0 # 0: down to label21 # BB#1: # %if.end return .LBB21_2: # %if.then + end_block # label21: call abort@FUNCTION unreachable .Lfunc_end21: @@ -469,15 +491,16 @@ f24: # @f24 f25: # @f25 .param i32 # BB#0: # %entry - block .LBB22_2 + block i32.const $push0=, 33554430 i32.and $push1=, $0, $pop0 i32.const $push2=, 16777218 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB22_2 + br_if $pop3, 0 # 0: down to label22 # BB#1: # %if.end return .LBB22_2: # %if.then + end_block # label22: call abort@FUNCTION unreachable .Lfunc_end22: @@ -490,15 +513,16 @@ f25: # @f25 f26: # @f26 .param i32 # BB#0: # %entry - block .LBB23_2 + block i32.const $push0=, 67108862 i32.and $push1=, $0, $pop0 i32.const $push2=, 33554434 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB23_2 + br_if $pop3, 0 # 0: down to label23 # BB#1: # %if.end return .LBB23_2: # %if.then + end_block # label23: call abort@FUNCTION unreachable .Lfunc_end23: @@ -511,15 +535,16 @@ f26: # @f26 f27: # @f27 .param i32 # BB#0: # %entry - block .LBB24_2 + block i32.const $push0=, 134217726 i32.and $push1=, $0, $pop0 i32.const $push2=, 67108866 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB24_2 + br_if $pop3, 0 # 0: down to label24 # BB#1: # %if.end return .LBB24_2: # %if.then + end_block # label24: call abort@FUNCTION unreachable .Lfunc_end24: @@ -532,15 +557,16 @@ f27: # @f27 f28: # @f28 .param i32 # BB#0: # %entry - block .LBB25_2 + block i32.const $push0=, 268435454 i32.and $push1=, $0, $pop0 i32.const $push2=, 134217730 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB25_2 + br_if $pop3, 0 # 0: down to label25 # BB#1: # %if.end return .LBB25_2: # %if.then + end_block # label25: call abort@FUNCTION unreachable .Lfunc_end25: @@ -553,15 +579,16 @@ f28: # @f28 f29: # @f29 .param i32 # BB#0: # %entry - block .LBB26_2 + block i32.const $push0=, 536870910 i32.and $push1=, $0, $pop0 i32.const $push2=, 268435458 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB26_2 + br_if $pop3, 0 # 0: down to label26 # BB#1: # %if.end return .LBB26_2: # %if.then + end_block # label26: call abort@FUNCTION unreachable .Lfunc_end26: @@ -574,15 +601,16 @@ f29: # @f29 f30: # @f30 .param i32 # BB#0: # %entry - block .LBB27_2 + block i32.const $push0=, 1073741822 i32.and $push1=, $0, $pop0 i32.const $push2=, 536870914 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB27_2 + br_if $pop3, 0 # 0: down to label27 # BB#1: # %if.end return .LBB27_2: # %if.then + end_block # label27: call abort@FUNCTION unreachable .Lfunc_end27: @@ -595,15 +623,16 @@ f30: # @f30 f31: # @f31 .param i32 # BB#0: # %entry - block .LBB28_2 + block i32.const $push0=, 2147483646 i32.and $push1=, $0, $pop0 i32.const $push2=, 1073741826 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB28_2 + br_if $pop3, 0 # 0: down to label28 # BB#1: # %if.end return .LBB28_2: # %if.then + end_block # label28: call abort@FUNCTION unreachable .Lfunc_end28: diff --git a/test/torture-s/20020328-1.c.s b/test/torture-s/20020328-1.c.s index 3dc64da44..873a02753 100644 --- a/test/torture-s/20020328-1.c.s +++ b/test/torture-s/20020328-1.c.s @@ -19,13 +19,14 @@ func: # @func testit: # @testit .param i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 20 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20020402-3.c.s b/test/torture-s/20020402-3.c.s index c4276da3c..317c7dd1e 100644 --- a/test/torture-s/20020402-3.c.s +++ b/test/torture-s/20020402-3.c.s @@ -14,13 +14,13 @@ blockvector_for_pc_sect: # @blockvector_for_pc_sect i32.const $4=, 1 i32.const $8=, 0 copy_local $7=, $1 - block .LBB0_6 - block .LBB0_3 + block + block i32.le_s $push0=, $1, $4 - br_if $pop0, .LBB0_3 + br_if $pop0, 0 # 0: down to label1 .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label2: i32.add $push1=, $1, $4 i32.shr_s $5=, $pop1, $4 i32.add $1=, $5, $8 @@ -38,13 +38,15 @@ blockvector_for_pc_sect: # @blockvector_for_pc_sect i32.select $1=, $6, $5, $pop9 copy_local $7=, $3 i32.gt_s $push10=, $1, $4 - br_if $pop10, .LBB0_1 -.LBB0_2: # %while.cond8.preheader + br_if $pop10, 0 # 0: up to label2 +# BB#2: # %while.cond8.preheader + end_loop # label3: i32.const $7=, 0 i32.const $push11=, -1 i32.le_s $push12=, $8, $pop11 - br_if $pop12, .LBB0_6 + br_if $pop12, 1 # 1: down to label0 .LBB0_3: # %while.body10.preheader + end_block # label1: i32.const $push13=, 2 i32.shl $push14=, $8, $pop13 i32.add $push15=, $pop14, $2 @@ -53,12 +55,12 @@ blockvector_for_pc_sect: # @blockvector_for_pc_sect i32.add $6=, $8, $4 .LBB0_4: # %while.body10 # =>This Inner Loop Header: Depth=1 - loop .LBB0_6 + loop # label4: copy_local $7=, $2 i32.load $push17=, 0($1) i64.load $push18=, 8($pop17) i64.gt_u $push19=, $pop18, $0 - br_if $pop19, .LBB0_6 + br_if $pop19, 1 # 1: down to label5 # BB#5: # %while.cond8 # in Loop: Header=BB0_4 Depth=1 i32.const $push20=, -1 @@ -67,8 +69,10 @@ blockvector_for_pc_sect: # @blockvector_for_pc_sect i32.add $1=, $1, $pop21 i32.const $7=, 0 i32.ge_s $push22=, $6, $4 - br_if $pop22, .LBB0_4 + br_if $pop22, 0 # 0: up to label4 .LBB0_6: # %cleanup + end_loop # label5: + end_block # label0: return $7 .Lfunc_end0: .size blockvector_for_pc_sect, .Lfunc_end0-blockvector_for_pc_sect diff --git a/test/torture-s/20020406-1.c.s b/test/torture-s/20020406-1.c.s index f44bb0909..07d8e4280 100644 --- a/test/torture-s/20020406-1.c.s +++ b/test/torture-s/20020406-1.c.s @@ -34,13 +34,13 @@ DUPFFnew: # @DUPFFnew .result i32 .local i32, i32 # BB#0: # %entry - block .LBB2_2 + block i32.const $push0=, 12 i32.call $1=, malloc@FUNCTION, $pop0 i32.const $push1=, 0 i32.store $push2=, 8($1), $pop1 i32.lt_s $push3=, $0, $pop2 - br_if $pop3, .LBB2_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push4=, 1 i32.add $push5=, $0, $pop4 @@ -50,6 +50,7 @@ DUPFFnew: # @DUPFFnew i32.add $push8=, $1, $pop7 i32.store $discard=, 0($pop8), $2 .LBB2_2: # %if.end + end_block # label0: i32.store $discard=, 0($1), $0 i32.const $push9=, -1 i32.store $discard=, 4($1), $pop9 @@ -121,7 +122,7 @@ DUPFFexgcd: # @DUPFFexgcd i32.load $8=, 4($3) .LBB7_1: # %tailrecurse # =>This Inner Loop Header: Depth=1 - loop .LBB7_2 + loop # label1: copy_local $5=, $3 copy_local $3=, $2 copy_local $4=, $1 @@ -149,23 +150,24 @@ DUPFFexgcd: # @DUPFFexgcd copy_local $0=, $4 copy_local $2=, $5 i32.lt_s $push2=, $8, $9 - br_if $pop2, .LBB7_1 -.LBB7_2: # %if.end + br_if $pop2, 0 # 0: up to label1 +# BB#2: # %if.end + end_loop # label2: i32.const $2=, 2 - block .LBB7_11 + block i32.ne $push3=, $8, $2 - br_if $pop3, .LBB7_11 + br_if $pop3, 0 # 0: down to label3 # BB#3: # %if.end i32.const $8=, 1 i32.ne $push4=, $9, $8 - br_if $pop4, .LBB7_11 + br_if $pop4, 0 # 0: down to label3 # BB#4: # %if.end11 - block .LBB7_10 + block i32.load $push5=, 8($3) i32.load $push6=, 0($pop5) i32.const $push15=, 0 i32.eq $push16=, $pop6, $pop15 - br_if $pop16, .LBB7_10 + br_if $pop16, 0 # 0: down to label4 # BB#5: # %DUPFFnew.exit i32.const $0=, 12 i32.call $9=, malloc@FUNCTION, $0 @@ -180,35 +182,40 @@ DUPFFexgcd: # @DUPFFexgcd i32.call $0=, calloc@FUNCTION, $pop10, $6 i32.store $discard=, 8($8), $0 i32.store $discard=, 0($8), $2 - block .LBB7_9 + block i32.const $push11=, -1 i32.store $discard=, 4($8), $pop11 i32.add $push12=, $5, $6 i32.load $5=, 0($pop12) i32.lt_s $push13=, $5, $7 - br_if $pop13, .LBB7_9 + br_if $pop13, 0 # 0: down to label5 # BB#6: # %while.cond40.preheader.lr.ph i32.add $push14=, $3, $6 i32.load $push0=, 0($pop14) i32.lt_s $3=, $pop0, $5 .LBB7_7: # %while.cond40.preheader # =>This Inner Loop Header: Depth=1 - loop .LBB7_8 - br_if $3, .LBB7_7 + loop # label6: + br_if $3, 0 # 0: up to label6 .LBB7_8: # %while.cond40 # =>This Inner Loop Header: Depth=1 - loop .LBB7_9 - br .LBB7_8 + end_loop # label7: + loop # label8: + br 0 # 0: up to label8 .LBB7_9: # %if.end57 + end_loop # label9: + end_block # label5: i32.store $discard=, 0($1), $9 i32.store $discard=, 0($4), $8 .LBB7_10: # %cleanup + end_block # label4: i32.const $16=, 16 i32.add $13=, $13, $16 i32.const $16=, __stack_pointer i32.store $13=, 0($16), $13 return $3 .LBB7_11: # %if.then10 + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end7: diff --git a/test/torture-s/20020413-1.c.s b/test/torture-s/20020413-1.c.s index 49763c029..5f03a4b2d 100644 --- a/test/torture-s/20020413-1.c.s +++ b/test/torture-s/20020413-1.c.s @@ -31,156 +31,158 @@ test: # @test i64.load $push3=, 0($11) i64.select $0=, $4, $pop3, $0 i64.const $6=, 4611404543450677248 - block .LBB0_26 - block .LBB0_14 + block + block i32.call $push4=, __getf2@FUNCTION, $0, $1, $3, $6 i32.ge_s $push5=, $pop4, $8 - br_if $pop5, .LBB0_14 + br_if $pop5, 0 # 0: down to label1 # BB#1: # %if.else i32.call $push35=, __eqtf2@FUNCTION, $0, $1, $3, $3 i32.const $push66=, 0 i32.eq $push67=, $pop35, $pop66 - br_if $pop67, .LBB0_26 + br_if $pop67, 1 # 1: down to label0 # BB#2: # %if.else i32.call $7=, __lttf2@FUNCTION, $0, $1, $3, $6 i32.const $4=, -1 i32.gt_s $push36=, $7, $4 - br_if $pop36, .LBB0_26 + br_if $pop36, 1 # 1: down to label0 # BB#3: # %while.body12 i64.const $push37=, 4611123068473966592 i32.call $7=, __lttf2@FUNCTION, $0, $1, $3, $pop37 i32.const $8=, 1 i32.const $push38=, 0 i32.ge_s $push39=, $7, $pop38 - br_if $pop39, .LBB0_26 + br_if $pop39, 1 # 1: down to label0 # BB#4: # %while.body12.1 i32.const $8=, 2 i64.const $push40=, 4610841593497255936 i32.call $push41=, __lttf2@FUNCTION, $0, $1, $3, $pop40 i32.gt_s $push42=, $pop41, $4 - br_if $pop42, .LBB0_26 + br_if $pop42, 1 # 1: down to label0 # BB#5: # %while.body12.2 i32.const $8=, 3 i64.const $push43=, 4610560118520545280 i32.call $push44=, __lttf2@FUNCTION, $0, $1, $3, $pop43 i32.gt_s $push45=, $pop44, $4 - br_if $pop45, .LBB0_26 + br_if $pop45, 1 # 1: down to label0 # BB#6: # %while.body12.3 i32.const $8=, 4 i64.const $push46=, 4610278643543834624 i32.call $push47=, __lttf2@FUNCTION, $0, $1, $3, $pop46 i32.gt_s $push48=, $pop47, $4 - br_if $pop48, .LBB0_26 + br_if $pop48, 1 # 1: down to label0 # BB#7: # %while.body12.4 i32.const $8=, 5 i64.const $push49=, 4609997168567123968 i32.call $push50=, __lttf2@FUNCTION, $0, $1, $3, $pop49 i32.gt_s $push51=, $pop50, $4 - br_if $pop51, .LBB0_26 + br_if $pop51, 1 # 1: down to label0 # BB#8: # %while.body12.5 i32.const $8=, 6 i64.const $push52=, 4609715693590413312 i32.call $push53=, __lttf2@FUNCTION, $0, $1, $3, $pop52 i32.gt_s $push54=, $pop53, $4 - br_if $pop54, .LBB0_26 + br_if $pop54, 1 # 1: down to label0 # BB#9: # %while.body12.6 i32.const $8=, 7 i64.const $push55=, 4609434218613702656 i32.call $push56=, __lttf2@FUNCTION, $0, $1, $3, $pop55 i32.gt_s $push57=, $pop56, $4 - br_if $pop57, .LBB0_26 + br_if $pop57, 1 # 1: down to label0 # BB#10: # %while.body12.7 i64.const $push58=, 4609152743636992000 i32.call $7=, __lttf2@FUNCTION, $0, $1, $3, $pop58 copy_local $8=, $5 i32.gt_s $push59=, $7, $4 - br_if $pop59, .LBB0_26 + br_if $pop59, 1 # 1: down to label0 # BB#11: # %while.body12.8 i32.const $8=, 9 i64.const $push60=, 4608871268660281344 i32.call $push61=, __lttf2@FUNCTION, $0, $1, $3, $pop60 i32.gt_s $push62=, $pop61, $4 - br_if $pop62, .LBB0_26 + br_if $pop62, 1 # 1: down to label0 # BB#12: # %while.body12.9 i32.const $8=, 10 i64.const $push63=, 4608589793683570688 i32.call $push64=, __lttf2@FUNCTION, $0, $1, $3, $pop63 i32.gt_s $push65=, $pop64, $4 - br_if $pop65, .LBB0_26 + br_if $pop65, 1 # 1: down to label0 # BB#13: # %while.body12.10 call abort@FUNCTION unreachable .LBB0_14: # %while.cond.preheader + end_block # label1: i32.call $7=, __gttf2@FUNCTION, $0, $1, $3, $6 i32.const $4=, 1 i32.lt_s $push6=, $7, $4 - br_if $pop6, .LBB0_26 + br_if $pop6, 0 # 0: down to label0 # BB#15: # %while.body i64.const $push7=, 4611686018427387904 i32.call $7=, __gttf2@FUNCTION, $0, $1, $3, $pop7 copy_local $8=, $4 i32.const $push8=, 0 i32.le_s $push9=, $7, $pop8 - br_if $pop9, .LBB0_26 + br_if $pop9, 0 # 0: down to label0 # BB#16: # %while.body.1 i32.const $8=, 2 i64.const $push10=, 4611967493404098560 i32.call $7=, __gttf2@FUNCTION, $0, $1, $3, $pop10 i32.const $4=, 1 i32.lt_s $push11=, $7, $4 - br_if $pop11, .LBB0_26 + br_if $pop11, 0 # 0: down to label0 # BB#17: # %while.body.2 i32.const $8=, 3 i64.const $push12=, 4612248968380809216 i32.call $push13=, __gttf2@FUNCTION, $0, $1, $3, $pop12 i32.lt_s $push14=, $pop13, $4 - br_if $pop14, .LBB0_26 + br_if $pop14, 0 # 0: down to label0 # BB#18: # %while.body.3 i32.const $8=, 4 i64.const $push15=, 4612530443357519872 i32.call $push16=, __gttf2@FUNCTION, $0, $1, $3, $pop15 i32.lt_s $push17=, $pop16, $4 - br_if $pop17, .LBB0_26 + br_if $pop17, 0 # 0: down to label0 # BB#19: # %while.body.4 i32.const $8=, 5 i64.const $push18=, 4612811918334230528 i32.call $push19=, __gttf2@FUNCTION, $0, $1, $3, $pop18 i32.lt_s $push20=, $pop19, $4 - br_if $pop20, .LBB0_26 + br_if $pop20, 0 # 0: down to label0 # BB#20: # %while.body.5 i32.const $8=, 6 i64.const $push21=, 4613093393310941184 i32.call $push22=, __gttf2@FUNCTION, $0, $1, $3, $pop21 i32.lt_s $push23=, $pop22, $4 - br_if $pop23, .LBB0_26 + br_if $pop23, 0 # 0: down to label0 # BB#21: # %while.body.6 i32.const $8=, 7 i64.const $push24=, 4613374868287651840 i32.call $push25=, __gttf2@FUNCTION, $0, $1, $3, $pop24 i32.lt_s $push26=, $pop25, $4 - br_if $pop26, .LBB0_26 + br_if $pop26, 0 # 0: down to label0 # BB#22: # %while.body.7 i64.const $push27=, 4613656343264362496 i32.call $7=, __gttf2@FUNCTION, $0, $1, $3, $pop27 copy_local $8=, $5 i32.lt_s $push28=, $7, $4 - br_if $pop28, .LBB0_26 + br_if $pop28, 0 # 0: down to label0 # BB#23: # %while.body.8 i32.const $8=, 9 i64.const $push29=, 4613937818241073152 i32.call $push30=, __gttf2@FUNCTION, $0, $1, $3, $pop29 i32.lt_s $push31=, $pop30, $4 - br_if $pop31, .LBB0_26 + br_if $pop31, 0 # 0: down to label0 # BB#24: # %while.body.9 i32.const $8=, 10 i64.const $push32=, 4614219293217783808 i32.call $push33=, __gttf2@FUNCTION, $0, $1, $3, $pop32 i32.lt_s $push34=, $pop33, $4 - br_if $pop34, .LBB0_26 + br_if $pop34, 0 # 0: down to label0 # BB#25: # %while.body.10 call abort@FUNCTION unreachable .LBB0_26: # %if.end19 + end_block # label0: i32.store $discard=, 0($2), $8 i32.const $11=, 16 i32.add $11=, $11, $11 diff --git a/test/torture-s/20020418-1.c.s b/test/torture-s/20020418-1.c.s index aaf0a718e..3a1dca9a0 100644 --- a/test/torture-s/20020418-1.c.s +++ b/test/torture-s/20020418-1.c.s @@ -10,22 +10,24 @@ gcc_crash: # @gcc_crash # BB#0: # %entry i32.load $1=, 0($0) copy_local $2=, $1 - block .LBB0_3 + block i32.const $push0=, 52 i32.lt_s $push1=, $1, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 .LBB0_1: # %top # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.const $push4=, 1 i32.add $2=, $2, $pop4 i32.const $push2=, 60 i32.gt_s $push3=, $1, $pop2 - br_if $pop3, .LBB0_1 -.LBB0_2: # %if.end6 + br_if $pop3, 0 # 0: up to label1 +# BB#2: # %if.end6 + end_loop # label2: i32.store $discard=, 0($0), $2 return .LBB0_3: # %if.then + end_block # label0: unreachable unreachable .Lfunc_end0: diff --git a/test/torture-s/20020506-1.c.s b/test/torture-s/20020506-1.c.s index d4de74432..aea1925a7 100644 --- a/test/torture-s/20020506-1.c.s +++ b/test/torture-s/20020506-1.c.s @@ -7,26 +7,29 @@ test1: # @test1 .param i32, i32 # BB#0: # %entry - block .LBB0_5 - block .LBB0_4 - block .LBB0_3 + block + block + block i32.const $push0=, 0 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label2 # BB#1: # %if.then i32.const $push2=, 0 i32.eq $push3=, $1, $pop2 - br_if $pop3, .LBB0_4 + br_if $pop3, 1 # 1: down to label1 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB0_3: # %if.else + end_block # label2: i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB0_5 + br_if $pop5, 1 # 1: down to label0 .LBB0_4: # %if.end45 + end_block # label1: return .LBB0_5: # %if.then4 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -41,28 +44,31 @@ test2: # @test2 .local i32 # BB#0: # %entry i32.const $2=, 24 - block .LBB1_5 - block .LBB1_4 - block .LBB1_3 + block + block + block i32.shl $push0=, $0, $2 i32.shr_s $push1=, $pop0, $2 i32.const $push2=, 0 i32.lt_s $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_3 + br_if $pop3, 0 # 0: down to label5 # BB#1: # %if.then i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB1_4 + br_if $pop5, 1 # 1: down to label4 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB1_3: # %if.else + end_block # label5: i32.const $push6=, 0 i32.eq $push7=, $1, $pop6 - br_if $pop7, .LBB1_5 + br_if $pop7, 1 # 1: down to label3 .LBB1_4: # %if.end45 + end_block # label4: return .LBB1_5: # %if.then4 + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: @@ -75,26 +81,29 @@ test2: # @test2 test3: # @test3 .param i32, i32 # BB#0: # %entry - block .LBB2_5 - block .LBB2_4 - block .LBB2_3 + block + block + block i32.const $push0=, 0 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB2_3 + br_if $pop1, 0 # 0: down to label8 # BB#1: # %if.then i32.const $push2=, 0 i32.eq $push3=, $1, $pop2 - br_if $pop3, .LBB2_4 + br_if $pop3, 1 # 1: down to label7 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB2_3: # %if.else + end_block # label8: i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB2_5 + br_if $pop5, 1 # 1: down to label6 .LBB2_4: # %if.end45 + end_block # label7: return .LBB2_5: # %if.then4 + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end2: @@ -109,28 +118,31 @@ test4: # @test4 .local i32 # BB#0: # %entry i32.const $2=, 16 - block .LBB3_5 - block .LBB3_4 - block .LBB3_3 + block + block + block i32.shl $push0=, $0, $2 i32.shr_s $push1=, $pop0, $2 i32.const $push2=, 0 i32.lt_s $push3=, $pop1, $pop2 - br_if $pop3, .LBB3_3 + br_if $pop3, 0 # 0: down to label11 # BB#1: # %if.then i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB3_4 + br_if $pop5, 1 # 1: down to label10 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB3_3: # %if.else + end_block # label11: i32.const $push6=, 0 i32.eq $push7=, $1, $pop6 - br_if $pop7, .LBB3_5 + br_if $pop7, 1 # 1: down to label9 .LBB3_4: # %if.end45 + end_block # label10: return .LBB3_5: # %if.then4 + end_block # label9: call abort@FUNCTION unreachable .Lfunc_end3: @@ -143,26 +155,29 @@ test4: # @test4 test5: # @test5 .param i32, i32 # BB#0: # %entry - block .LBB4_5 - block .LBB4_4 - block .LBB4_3 + block + block + block i32.const $push0=, 0 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB4_3 + br_if $pop1, 0 # 0: down to label14 # BB#1: # %if.then i32.const $push2=, 0 i32.eq $push3=, $1, $pop2 - br_if $pop3, .LBB4_4 + br_if $pop3, 1 # 1: down to label13 # BB#2: # %if.then1 call abort@FUNCTION unreachable .LBB4_3: # %if.else + end_block # label14: i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB4_5 + br_if $pop5, 1 # 1: down to label12 .LBB4_4: # %if.end38 + end_block # label13: return .LBB4_5: # %if.then3 + end_block # label12: call abort@FUNCTION unreachable .Lfunc_end4: @@ -175,26 +190,29 @@ test5: # @test5 test6: # @test6 .param i32, i32 # BB#0: # %entry - block .LBB5_5 - block .LBB5_4 - block .LBB5_3 + block + block + block i32.const $push0=, 0 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB5_3 + br_if $pop1, 0 # 0: down to label17 # BB#1: # %if.then i32.const $push2=, 0 i32.eq $push3=, $1, $pop2 - br_if $pop3, .LBB5_4 + br_if $pop3, 1 # 1: down to label16 # BB#2: # %if.then1 call abort@FUNCTION unreachable .LBB5_3: # %if.else + end_block # label17: i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB5_5 + br_if $pop5, 1 # 1: down to label15 .LBB5_4: # %if.end38 + end_block # label16: return .LBB5_5: # %if.then3 + end_block # label15: call abort@FUNCTION unreachable .Lfunc_end5: @@ -207,26 +225,29 @@ test6: # @test6 test7: # @test7 .param i64, i32 # BB#0: # %entry - block .LBB6_5 - block .LBB6_4 - block .LBB6_3 + block + block + block i64.const $push0=, 0 i64.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB6_3 + br_if $pop1, 0 # 0: down to label20 # BB#1: # %if.then i32.const $push2=, 0 i32.eq $push3=, $1, $pop2 - br_if $pop3, .LBB6_4 + br_if $pop3, 1 # 1: down to label19 # BB#2: # %if.then1 call abort@FUNCTION unreachable .LBB6_3: # %if.else + end_block # label20: i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB6_5 + br_if $pop5, 1 # 1: down to label18 .LBB6_4: # %if.end38 + end_block # label19: return .LBB6_5: # %if.then3 + end_block # label18: call abort@FUNCTION unreachable .Lfunc_end6: @@ -239,26 +260,29 @@ test7: # @test7 test8: # @test8 .param i64, i32 # BB#0: # %entry - block .LBB7_5 - block .LBB7_4 - block .LBB7_3 + block + block + block i64.const $push0=, 0 i64.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB7_3 + br_if $pop1, 0 # 0: down to label23 # BB#1: # %if.then i32.const $push2=, 0 i32.eq $push3=, $1, $pop2 - br_if $pop3, .LBB7_4 + br_if $pop3, 1 # 1: down to label22 # BB#2: # %if.then1 call abort@FUNCTION unreachable .LBB7_3: # %if.else + end_block # label23: i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB7_5 + br_if $pop5, 1 # 1: down to label21 .LBB7_4: # %if.end38 + end_block # label22: return .LBB7_5: # %if.then3 + end_block # label21: call abort@FUNCTION unreachable .Lfunc_end7: diff --git a/test/torture-s/20020508-1.c.s b/test/torture-s/20020508-1.c.s index c84aa2397..1bc4eabe5 100644 --- a/test/torture-s/20020508-1.c.s +++ b/test/torture-s/20020508-1.c.s @@ -14,74 +14,74 @@ main: # @main i32.const $push1=, 8 i32.sub $2=, $pop1, $1 i32.const $12=, 835 - block .LBB0_42 + block i32.shl $push2=, $0, $2 i32.shr_u $push0=, $0, $1 i32.or $push3=, $pop2, $pop0 i32.ne $push4=, $pop3, $12 - br_if $pop4, .LBB0_42 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end i32.const $13=, 4 - block .LBB0_41 + block i32.shr_u $push5=, $0, $13 i32.shl $push6=, $0, $13 i32.or $push7=, $pop5, $pop6 i32.ne $push8=, $pop7, $12 - br_if $pop8, .LBB0_41 + br_if $pop8, 0 # 0: down to label1 # BB#2: # %if.end11 i32.load16_u $3=, us($11) i32.const $push10=, 16 i32.sub $4=, $pop10, $1 i32.const $14=, 253972259 - block .LBB0_40 + block i32.shr_u $push9=, $3, $1 i32.shl $push11=, $3, $4 i32.or $push12=, $pop9, $pop11 i32.ne $push13=, $pop12, $14 - br_if $pop13, .LBB0_40 + br_if $pop13, 0 # 0: down to label2 # BB#3: # %if.end21 i32.const $15=, 12 - block .LBB0_39 + block i32.shr_u $push14=, $3, $13 i32.shl $push15=, $3, $15 i32.or $push16=, $pop14, $pop15 i32.ne $push17=, $pop16, $14 - br_if $pop17, .LBB0_39 + br_if $pop17, 0 # 0: down to label3 # BB#4: # %if.end30 i32.load $14=, ui($11) i32.const $push19=, 32 i32.sub $5=, $pop19, $1 i32.const $16=, 1073745699 - block .LBB0_38 + block i32.shr_u $push18=, $14, $1 i32.shl $push20=, $14, $5 i32.or $push21=, $pop18, $pop20 i32.ne $push22=, $pop21, $16 - br_if $pop22, .LBB0_38 + br_if $pop22, 0 # 0: down to label4 # BB#5: # %if.end38 i32.const $17=, 28 - block .LBB0_37 + block i32.shr_u $push23=, $14, $13 i32.shl $push24=, $14, $17 i32.or $push25=, $pop23, $pop24 i32.ne $push26=, $pop25, $16 - br_if $pop26, .LBB0_37 + br_if $pop26, 0 # 0: down to label5 # BB#6: # %if.end45 i32.load $16=, ul($11) i32.const $18=, -1893513881 - block .LBB0_36 + block i32.shr_u $push27=, $16, $1 i32.shl $push28=, $16, $5 i32.or $push29=, $pop27, $pop28 i32.ne $push30=, $pop29, $18 - br_if $pop30, .LBB0_36 + br_if $pop30, 0 # 0: down to label6 # BB#7: # %if.end53 - block .LBB0_35 + block i32.shr_u $push31=, $16, $13 i32.shl $push32=, $16, $17 i32.or $push33=, $pop31, $pop32 i32.ne $push34=, $pop33, $18 - br_if $pop34, .LBB0_35 + br_if $pop34, 0 # 0: down to label7 # BB#8: # %if.end60 i64.load $6=, ull($11) i32.const $18=, 64 @@ -89,170 +89,191 @@ main: # @main i64.extend_u/i32 $8=, $pop36 i64.extend_u/i32 $7=, $1 i64.const $19=, 68174490360335855 - block .LBB0_34 + block i64.shr_u $push35=, $6, $7 i64.shl $push37=, $6, $8 i64.or $push38=, $pop35, $pop37 i64.ne $push39=, $pop38, $19 - br_if $pop39, .LBB0_34 + br_if $pop39, 0 # 0: down to label8 # BB#9: # %if.end69 i64.const $20=, 4 i64.const $21=, 60 - block .LBB0_33 + block i64.shr_u $push40=, $6, $20 i64.shl $push41=, $6, $21 i64.or $push42=, $pop40, $pop41 i64.ne $push43=, $pop42, $19 - br_if $pop43, .LBB0_33 + br_if $pop43, 0 # 0: down to label9 # BB#10: # %if.end76 i32.load $22=, shift2($11) i64.extend_u/i32 $9=, $22 i32.sub $push45=, $18, $22 i64.extend_u/i32 $10=, $pop45 i64.const $23=, -994074541463572736 - block .LBB0_32 + block i64.shl $push46=, $6, $10 i64.shr_u $push44=, $6, $9 i64.or $push47=, $pop46, $pop44 i64.ne $push48=, $pop47, $23 - br_if $pop48, .LBB0_32 + br_if $pop48, 0 # 0: down to label10 # BB#11: # %if.end86 - block .LBB0_31 + block i64.shr_u $push49=, $6, $21 i64.shl $push50=, $6, $20 i64.or $push51=, $pop49, $pop50 i64.ne $push52=, $pop51, $23 - br_if $pop52, .LBB0_31 + br_if $pop52, 0 # 0: down to label11 # BB#12: # %if.end93 - block .LBB0_30 + block i32.shr_u $push54=, $0, $2 i32.shl $push53=, $0, $1 i32.or $push55=, $pop54, $pop53 i32.ne $push56=, $pop55, $12 - br_if $pop56, .LBB0_30 + br_if $pop56, 0 # 0: down to label12 # BB#13: # %if.end112 i32.const $0=, 992079 - block .LBB0_29 + block i32.shl $push57=, $3, $1 i32.shr_u $push58=, $3, $4 i32.or $push59=, $pop57, $pop58 i32.ne $push60=, $pop59, $0 - br_if $pop60, .LBB0_29 + br_if $pop60, 0 # 0: down to label13 # BB#14: # %if.end122 - block .LBB0_28 + block i32.shl $push61=, $3, $13 i32.shr_u $push62=, $3, $15 i32.or $push63=, $pop61, $pop62 i32.ne $push64=, $pop63, $0 - br_if $pop64, .LBB0_28 + br_if $pop64, 0 # 0: down to label14 # BB#15: # %if.end131 i32.const $0=, 992064 - block .LBB0_27 + block i32.shl $push65=, $14, $1 i32.shr_u $push66=, $14, $5 i32.or $push67=, $pop65, $pop66 i32.ne $push68=, $pop67, $0 - br_if $pop68, .LBB0_27 + br_if $pop68, 0 # 0: down to label15 # BB#16: # %if.end139 - block .LBB0_26 + block i32.shl $push69=, $14, $13 i32.shr_u $push70=, $14, $17 i32.or $push71=, $pop69, $pop70 i32.ne $push72=, $pop71, $0 - br_if $pop72, .LBB0_26 + br_if $pop72, 0 # 0: down to label16 # BB#17: # %if.end146 i32.const $0=, 591751055 - block .LBB0_25 + block i32.shl $push73=, $16, $1 i32.shr_u $push74=, $16, $5 i32.or $push75=, $pop73, $pop74 i32.ne $push76=, $pop75, $0 - br_if $pop76, .LBB0_25 + br_if $pop76, 0 # 0: down to label17 # BB#18: # %if.end154 - block .LBB0_24 + block i32.shl $push77=, $16, $13 i32.shr_u $push78=, $16, $17 i32.or $push79=, $pop77, $pop78 i32.ne $push80=, $pop79, $0 - br_if $pop80, .LBB0_24 + br_if $pop80, 0 # 0: down to label18 # BB#19: # %if.end161 - block .LBB0_23 + block i64.shl $push81=, $6, $7 i64.shr_u $push82=, $6, $8 i64.or $push83=, $pop81, $pop82 i64.ne $push84=, $pop83, $23 - br_if $pop84, .LBB0_23 + br_if $pop84, 0 # 0: down to label19 # BB#20: # %if.end178 - block .LBB0_22 + block i64.shr_u $push86=, $6, $10 i64.shl $push85=, $6, $9 i64.or $push87=, $pop86, $pop85 i64.ne $push88=, $pop87, $19 - br_if $pop88, .LBB0_22 + br_if $pop88, 0 # 0: down to label20 # BB#21: # %if.end195 call exit@FUNCTION, $11 unreachable .LBB0_22: # %if.then187 + end_block # label20: call abort@FUNCTION unreachable .LBB0_23: # %if.then170 + end_block # label19: call abort@FUNCTION unreachable .LBB0_24: # %if.then160 + end_block # label18: call abort@FUNCTION unreachable .LBB0_25: # %if.then153 + end_block # label17: call abort@FUNCTION unreachable .LBB0_26: # %if.then145 + end_block # label16: call abort@FUNCTION unreachable .LBB0_27: # %if.then138 + end_block # label15: call abort@FUNCTION unreachable .LBB0_28: # %if.then130 + end_block # label14: call abort@FUNCTION unreachable .LBB0_29: # %if.then121 + end_block # label13: call abort@FUNCTION unreachable .LBB0_30: # %if.then102 + end_block # label12: call abort@FUNCTION unreachable .LBB0_31: # %if.then92 + end_block # label11: call abort@FUNCTION unreachable .LBB0_32: # %if.then85 + end_block # label10: call abort@FUNCTION unreachable .LBB0_33: # %if.then75 + end_block # label9: call abort@FUNCTION unreachable .LBB0_34: # %if.then68 + end_block # label8: call abort@FUNCTION unreachable .LBB0_35: # %if.then59 + end_block # label7: call abort@FUNCTION unreachable .LBB0_36: # %if.then52 + end_block # label6: call abort@FUNCTION unreachable .LBB0_37: # %if.then44 + end_block # label5: call abort@FUNCTION unreachable .LBB0_38: # %if.then37 + end_block # label4: call abort@FUNCTION unreachable .LBB0_39: # %if.then29 + end_block # label3: call abort@FUNCTION unreachable .LBB0_40: # %if.then20 + end_block # label2: call abort@FUNCTION unreachable .LBB0_41: # %if.then10 + end_block # label1: call abort@FUNCTION unreachable .LBB0_42: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20020508-2.c.s b/test/torture-s/20020508-2.c.s index 29f1e889c..95e169df4 100644 --- a/test/torture-s/20020508-2.c.s +++ b/test/torture-s/20020508-2.c.s @@ -14,74 +14,74 @@ main: # @main i32.const $push1=, 8 i32.sub $2=, $pop1, $1 i32.const $12=, 835 - block .LBB0_42 + block i32.shl $push2=, $0, $2 i32.shr_s $push0=, $0, $1 i32.or $push3=, $pop2, $pop0 i32.ne $push4=, $pop3, $12 - br_if $pop4, .LBB0_42 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end i32.const $13=, 4 - block .LBB0_41 + block i32.shr_s $push5=, $0, $13 i32.shl $push6=, $0, $13 i32.or $push7=, $pop5, $pop6 i32.ne $push8=, $pop7, $12 - br_if $pop8, .LBB0_41 + br_if $pop8, 0 # 0: down to label1 # BB#2: # %if.end11 i32.load16_s $3=, s($11) i32.const $push10=, 16 i32.sub $4=, $pop10, $1 i32.const $14=, 19087651 - block .LBB0_40 + block i32.shr_s $push9=, $3, $1 i32.shl $push11=, $3, $4 i32.or $push12=, $pop9, $pop11 i32.ne $push13=, $pop12, $14 - br_if $pop13, .LBB0_40 + br_if $pop13, 0 # 0: down to label2 # BB#3: # %if.end21 i32.const $15=, 12 - block .LBB0_39 + block i32.shr_s $push14=, $3, $13 i32.shl $push15=, $3, $15 i32.or $push16=, $pop14, $pop15 i32.ne $push17=, $pop16, $14 - br_if $pop17, .LBB0_39 + br_if $pop17, 0 # 0: down to label3 # BB#4: # %if.end30 i32.load $14=, i($11) i32.const $push19=, 32 i32.sub $5=, $pop19, $1 i32.const $16=, 1073742115 - block .LBB0_38 + block i32.shr_s $push18=, $14, $1 i32.shl $push20=, $14, $5 i32.or $push21=, $pop18, $pop20 i32.ne $push22=, $pop21, $16 - br_if $pop22, .LBB0_38 + br_if $pop22, 0 # 0: down to label4 # BB#5: # %if.end38 i32.const $17=, 28 - block .LBB0_37 + block i32.shr_s $push23=, $14, $13 i32.shl $push24=, $14, $17 i32.or $push25=, $pop23, $pop24 i32.ne $push26=, $pop25, $16 - br_if $pop26, .LBB0_37 + br_if $pop26, 0 # 0: down to label5 # BB#6: # %if.end45 i32.load $16=, l($11) i32.const $18=, -2128394905 - block .LBB0_36 + block i32.shr_s $push27=, $16, $1 i32.shl $push28=, $16, $5 i32.or $push29=, $pop27, $pop28 i32.ne $push30=, $pop29, $18 - br_if $pop30, .LBB0_36 + br_if $pop30, 0 # 0: down to label6 # BB#7: # %if.end53 - block .LBB0_35 + block i32.shr_s $push31=, $16, $13 i32.shl $push32=, $16, $17 i32.or $push33=, $pop31, $pop32 i32.ne $push34=, $pop33, $18 - br_if $pop34, .LBB0_35 + br_if $pop34, 0 # 0: down to label7 # BB#8: # %if.end60 i64.load $6=, ll($11) i32.const $18=, 64 @@ -89,170 +89,191 @@ main: # @main i64.extend_u/i32 $8=, $pop36 i64.extend_u/i32 $7=, $1 i64.const $19=, 5124095577148911 - block .LBB0_34 + block i64.shr_s $push35=, $6, $7 i64.shl $push37=, $6, $8 i64.or $push38=, $pop35, $pop37 i64.ne $push39=, $pop38, $19 - br_if $pop39, .LBB0_34 + br_if $pop39, 0 # 0: down to label8 # BB#9: # %if.end69 i64.const $20=, 4 i64.const $21=, 60 - block .LBB0_33 + block i64.shr_s $push40=, $6, $20 i64.shl $push41=, $6, $21 i64.or $push42=, $pop40, $pop41 i64.ne $push43=, $pop42, $19 - br_if $pop43, .LBB0_33 + br_if $pop43, 0 # 0: down to label9 # BB#10: # %if.end76 i32.load $22=, shift2($11) i64.extend_u/i32 $9=, $22 i32.sub $push45=, $18, $22 i64.extend_u/i32 $10=, $pop45 i64.const $23=, 1311768467750121216 - block .LBB0_32 + block i64.shl $push46=, $6, $10 i64.shr_s $push44=, $6, $9 i64.or $push47=, $pop46, $pop44 i64.ne $push48=, $pop47, $23 - br_if $pop48, .LBB0_32 + br_if $pop48, 0 # 0: down to label10 # BB#11: # %if.end86 - block .LBB0_31 + block i64.shr_s $push49=, $6, $21 i64.shl $push50=, $6, $20 i64.or $push51=, $pop49, $pop50 i64.ne $push52=, $pop51, $23 - br_if $pop52, .LBB0_31 + br_if $pop52, 0 # 0: down to label11 # BB#12: # %if.end93 - block .LBB0_30 + block i32.shr_s $push54=, $0, $2 i32.shl $push53=, $0, $1 i32.or $push55=, $pop54, $pop53 i32.ne $push56=, $pop55, $12 - br_if $pop56, .LBB0_30 + br_if $pop56, 0 # 0: down to label12 # BB#13: # %if.end112 i32.const $0=, 74561 - block .LBB0_29 + block i32.shl $push57=, $3, $1 i32.shr_s $push58=, $3, $4 i32.or $push59=, $pop57, $pop58 i32.ne $push60=, $pop59, $0 - br_if $pop60, .LBB0_29 + br_if $pop60, 0 # 0: down to label13 # BB#14: # %if.end122 - block .LBB0_28 + block i32.shl $push61=, $3, $13 i32.shr_s $push62=, $3, $15 i32.or $push63=, $pop61, $pop62 i32.ne $push64=, $pop63, $0 - br_if $pop64, .LBB0_28 + br_if $pop64, 0 # 0: down to label14 # BB#15: # %if.end131 i32.const $0=, 74560 - block .LBB0_27 + block i32.shl $push65=, $14, $1 i32.shr_s $push66=, $14, $5 i32.or $push67=, $pop65, $pop66 i32.ne $push68=, $pop67, $0 - br_if $pop68, .LBB0_27 + br_if $pop68, 0 # 0: down to label15 # BB#16: # %if.end139 - block .LBB0_26 + block i32.shl $push69=, $14, $13 i32.shr_s $push70=, $14, $17 i32.or $push71=, $pop69, $pop70 i32.ne $push72=, $pop71, $0 - br_if $pop72, .LBB0_26 + br_if $pop72, 0 # 0: down to label16 # BB#17: # %if.end146 i32.const $0=, 591751041 - block .LBB0_25 + block i32.shl $push73=, $16, $1 i32.shr_s $push74=, $16, $5 i32.or $push75=, $pop73, $pop74 i32.ne $push76=, $pop75, $0 - br_if $pop76, .LBB0_25 + br_if $pop76, 0 # 0: down to label17 # BB#18: # %if.end154 - block .LBB0_24 + block i32.shl $push77=, $16, $13 i32.shr_s $push78=, $16, $17 i32.or $push79=, $pop77, $pop78 i32.ne $push80=, $pop79, $0 - br_if $pop80, .LBB0_24 + br_if $pop80, 0 # 0: down to label18 # BB#19: # %if.end161 - block .LBB0_23 + block i64.shl $push81=, $6, $7 i64.shr_s $push82=, $6, $8 i64.or $push83=, $pop81, $pop82 i64.ne $push84=, $pop83, $23 - br_if $pop84, .LBB0_23 + br_if $pop84, 0 # 0: down to label19 # BB#20: # %if.end178 - block .LBB0_22 + block i64.shr_s $push86=, $6, $10 i64.shl $push85=, $6, $9 i64.or $push87=, $pop86, $pop85 i64.ne $push88=, $pop87, $19 - br_if $pop88, .LBB0_22 + br_if $pop88, 0 # 0: down to label20 # BB#21: # %if.end195 call exit@FUNCTION, $11 unreachable .LBB0_22: # %if.then187 + end_block # label20: call abort@FUNCTION unreachable .LBB0_23: # %if.then170 + end_block # label19: call abort@FUNCTION unreachable .LBB0_24: # %if.then160 + end_block # label18: call abort@FUNCTION unreachable .LBB0_25: # %if.then153 + end_block # label17: call abort@FUNCTION unreachable .LBB0_26: # %if.then145 + end_block # label16: call abort@FUNCTION unreachable .LBB0_27: # %if.then138 + end_block # label15: call abort@FUNCTION unreachable .LBB0_28: # %if.then130 + end_block # label14: call abort@FUNCTION unreachable .LBB0_29: # %if.then121 + end_block # label13: call abort@FUNCTION unreachable .LBB0_30: # %if.then102 + end_block # label12: call abort@FUNCTION unreachable .LBB0_31: # %if.then92 + end_block # label11: call abort@FUNCTION unreachable .LBB0_32: # %if.then85 + end_block # label10: call abort@FUNCTION unreachable .LBB0_33: # %if.then75 + end_block # label9: call abort@FUNCTION unreachable .LBB0_34: # %if.then68 + end_block # label8: call abort@FUNCTION unreachable .LBB0_35: # %if.then59 + end_block # label7: call abort@FUNCTION unreachable .LBB0_36: # %if.then52 + end_block # label6: call abort@FUNCTION unreachable .LBB0_37: # %if.then44 + end_block # label5: call abort@FUNCTION unreachable .LBB0_38: # %if.then37 + end_block # label4: call abort@FUNCTION unreachable .LBB0_39: # %if.then29 + end_block # label3: call abort@FUNCTION unreachable .LBB0_40: # %if.then20 + end_block # label2: call abort@FUNCTION unreachable .LBB0_41: # %if.then10 + end_block # label1: call abort@FUNCTION unreachable .LBB0_42: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20020508-3.c.s b/test/torture-s/20020508-3.c.s index 80cf713bb..87659e58e 100644 --- a/test/torture-s/20020508-3.c.s +++ b/test/torture-s/20020508-3.c.s @@ -14,74 +14,74 @@ main: # @main i32.const $push1=, 8 i32.sub $2=, $pop1, $1 i32.const $12=, 835 - block .LBB0_42 + block i32.shl $push2=, $0, $2 i32.shr_s $push0=, $0, $1 i32.or $push3=, $pop2, $pop0 i32.ne $push4=, $pop3, $12 - br_if $pop4, .LBB0_42 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end i32.const $13=, 4 - block .LBB0_41 + block i32.shr_s $push5=, $0, $13 i32.shl $push6=, $0, $13 i32.or $push7=, $pop5, $pop6 i32.ne $push8=, $pop7, $12 - br_if $pop8, .LBB0_41 + br_if $pop8, 0 # 0: down to label1 # BB#2: # %if.end11 i32.load16_s $3=, s($11) i32.const $push10=, 16 i32.sub $4=, $pop10, $1 i32.const $14=, -221 - block .LBB0_40 + block i32.shr_s $push9=, $3, $1 i32.shl $push11=, $3, $4 i32.or $push12=, $pop9, $pop11 i32.ne $push13=, $pop12, $14 - br_if $pop13, .LBB0_40 + br_if $pop13, 0 # 0: down to label2 # BB#3: # %if.end21 i32.const $15=, 12 - block .LBB0_39 + block i32.shr_s $push14=, $3, $13 i32.shl $push15=, $3, $15 i32.or $push16=, $pop14, $pop15 i32.ne $push17=, $pop16, $14 - br_if $pop17, .LBB0_39 + br_if $pop17, 0 # 0: down to label3 # BB#4: # %if.end30 i32.load $14=, i($11) i32.const $push19=, 32 i32.sub $5=, $pop19, $1 i32.const $16=, 1073745699 - block .LBB0_38 + block i32.shr_s $push18=, $14, $1 i32.shl $push20=, $14, $5 i32.or $push21=, $pop18, $pop20 i32.ne $push22=, $pop21, $16 - br_if $pop22, .LBB0_38 + br_if $pop22, 0 # 0: down to label4 # BB#5: # %if.end38 i32.const $17=, 28 - block .LBB0_37 + block i32.shr_s $push23=, $14, $13 i32.shl $push24=, $14, $17 i32.or $push25=, $pop23, $pop24 i32.ne $push26=, $pop25, $16 - br_if $pop26, .LBB0_37 + br_if $pop26, 0 # 0: down to label5 # BB#6: # %if.end45 i32.load $16=, l($11) i32.const $18=, -14465689 - block .LBB0_36 + block i32.shr_s $push27=, $16, $1 i32.shl $push28=, $16, $5 i32.or $push29=, $pop27, $pop28 i32.ne $push30=, $pop29, $18 - br_if $pop30, .LBB0_36 + br_if $pop30, 0 # 0: down to label6 # BB#7: # %if.end53 - block .LBB0_35 + block i32.shr_s $push31=, $16, $13 i32.shl $push32=, $16, $17 i32.or $push33=, $pop31, $pop32 i32.ne $push34=, $pop33, $18 - br_if $pop34, .LBB0_35 + br_if $pop34, 0 # 0: down to label7 # BB#8: # %if.end60 i64.load $6=, ll($11) i32.const $18=, 64 @@ -89,169 +89,190 @@ main: # @main i64.extend_u/i32 $8=, $pop36 i64.extend_u/i32 $7=, $1 i64.const $19=, 68174490360335855 - block .LBB0_34 + block i64.shr_s $push35=, $6, $7 i64.shl $push37=, $6, $8 i64.or $push38=, $pop35, $pop37 i64.ne $push39=, $pop38, $19 - br_if $pop39, .LBB0_34 + br_if $pop39, 0 # 0: down to label8 # BB#9: # %if.end69 i64.const $20=, 4 i64.const $21=, 60 - block .LBB0_33 + block i64.shr_s $push40=, $6, $20 i64.shl $push41=, $6, $21 i64.or $push42=, $pop40, $pop41 i64.ne $push43=, $pop42, $19 - br_if $pop43, .LBB0_33 + br_if $pop43, 0 # 0: down to label9 # BB#10: # %if.end76 i32.load $22=, shift2($11) i64.extend_u/i32 $9=, $22 i32.sub $push45=, $18, $22 i64.extend_u/i32 $10=, $pop45 i64.const $23=, -994074541463572736 - block .LBB0_32 + block i64.shl $push46=, $6, $10 i64.shr_s $push44=, $6, $9 i64.or $push47=, $pop46, $pop44 i64.ne $push48=, $pop47, $23 - br_if $pop48, .LBB0_32 + br_if $pop48, 0 # 0: down to label10 # BB#11: # %if.end86 - block .LBB0_31 + block i64.shr_s $push49=, $6, $21 i64.shl $push50=, $6, $20 i64.or $push51=, $pop49, $pop50 i64.ne $push52=, $pop51, $23 - br_if $pop52, .LBB0_31 + br_if $pop52, 0 # 0: down to label11 # BB#12: # %if.end93 - block .LBB0_30 + block i32.shr_s $push54=, $0, $2 i32.shl $push53=, $0, $1 i32.or $push55=, $pop54, $pop53 i32.ne $push56=, $pop55, $12 - br_if $pop56, .LBB0_30 + br_if $pop56, 0 # 0: down to label12 # BB#13: # %if.end112 i32.const $0=, -1 - block .LBB0_29 + block i32.shl $push57=, $3, $1 i32.shr_s $push58=, $3, $4 i32.or $push59=, $pop57, $pop58 i32.ne $push60=, $pop59, $0 - br_if $pop60, .LBB0_29 + br_if $pop60, 0 # 0: down to label13 # BB#14: # %if.end122 - block .LBB0_28 + block i32.shl $push61=, $3, $13 i32.shr_s $push62=, $3, $15 i32.or $push63=, $pop61, $pop62 i32.ne $push64=, $pop63, $0 - br_if $pop64, .LBB0_28 + br_if $pop64, 0 # 0: down to label14 # BB#15: # %if.end131 i32.const $12=, 992064 - block .LBB0_27 + block i32.shl $push65=, $14, $1 i32.shr_s $push66=, $14, $5 i32.or $push67=, $pop65, $pop66 i32.ne $push68=, $pop67, $12 - br_if $pop68, .LBB0_27 + br_if $pop68, 0 # 0: down to label15 # BB#16: # %if.end139 - block .LBB0_26 + block i32.shl $push69=, $14, $13 i32.shr_s $push70=, $14, $17 i32.or $push71=, $pop69, $pop70 i32.ne $push72=, $pop71, $12 - br_if $pop72, .LBB0_26 + br_if $pop72, 0 # 0: down to label16 # BB#17: # %if.end146 - block .LBB0_25 + block i32.shl $push73=, $16, $1 i32.shr_s $push74=, $16, $5 i32.or $push75=, $pop73, $pop74 i32.ne $push76=, $pop75, $0 - br_if $pop76, .LBB0_25 + br_if $pop76, 0 # 0: down to label17 # BB#18: # %if.end154 - block .LBB0_24 + block i32.shl $push77=, $16, $13 i32.shr_s $push78=, $16, $17 i32.or $push79=, $pop77, $pop78 i32.ne $push80=, $pop79, $0 - br_if $pop80, .LBB0_24 + br_if $pop80, 0 # 0: down to label18 # BB#19: # %if.end161 - block .LBB0_23 + block i64.shl $push81=, $6, $7 i64.shr_s $push82=, $6, $8 i64.or $push83=, $pop81, $pop82 i64.ne $push84=, $pop83, $23 - br_if $pop84, .LBB0_23 + br_if $pop84, 0 # 0: down to label19 # BB#20: # %if.end178 - block .LBB0_22 + block i64.shr_s $push86=, $6, $10 i64.shl $push85=, $6, $9 i64.or $push87=, $pop86, $pop85 i64.ne $push88=, $pop87, $19 - br_if $pop88, .LBB0_22 + br_if $pop88, 0 # 0: down to label20 # BB#21: # %if.end195 call exit@FUNCTION, $11 unreachable .LBB0_22: # %if.then187 + end_block # label20: call abort@FUNCTION unreachable .LBB0_23: # %if.then170 + end_block # label19: call abort@FUNCTION unreachable .LBB0_24: # %if.then160 + end_block # label18: call abort@FUNCTION unreachable .LBB0_25: # %if.then153 + end_block # label17: call abort@FUNCTION unreachable .LBB0_26: # %if.then145 + end_block # label16: call abort@FUNCTION unreachable .LBB0_27: # %if.then138 + end_block # label15: call abort@FUNCTION unreachable .LBB0_28: # %if.then130 + end_block # label14: call abort@FUNCTION unreachable .LBB0_29: # %if.then121 + end_block # label13: call abort@FUNCTION unreachable .LBB0_30: # %if.then102 + end_block # label12: call abort@FUNCTION unreachable .LBB0_31: # %if.then92 + end_block # label11: call abort@FUNCTION unreachable .LBB0_32: # %if.then85 + end_block # label10: call abort@FUNCTION unreachable .LBB0_33: # %if.then75 + end_block # label9: call abort@FUNCTION unreachable .LBB0_34: # %if.then68 + end_block # label8: call abort@FUNCTION unreachable .LBB0_35: # %if.then59 + end_block # label7: call abort@FUNCTION unreachable .LBB0_36: # %if.then52 + end_block # label6: call abort@FUNCTION unreachable .LBB0_37: # %if.then44 + end_block # label5: call abort@FUNCTION unreachable .LBB0_38: # %if.then37 + end_block # label4: call abort@FUNCTION unreachable .LBB0_39: # %if.then29 + end_block # label3: call abort@FUNCTION unreachable .LBB0_40: # %if.then20 + end_block # label2: call abort@FUNCTION unreachable .LBB0_41: # %if.then10 + end_block # label1: call abort@FUNCTION unreachable .LBB0_42: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20020510-1.c.s b/test/torture-s/20020510-1.c.s index 3485df4b8..d2caf7748 100644 --- a/test/torture-s/20020510-1.c.s +++ b/test/torture-s/20020510-1.c.s @@ -9,24 +9,27 @@ testc: # @testc .local i32 # BB#0: # %entry i32.const $2=, 24 - block .LBB0_5 - block .LBB0_4 - block .LBB0_3 + block + block + block i32.shl $push0=, $0, $2 i32.shr_s $push1=, $pop0, $2 i32.const $push2=, 1 i32.lt_s $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label2 # BB#1: # %if.then - br_if $1, .LBB0_4 + br_if $1, 1 # 1: down to label1 # BB#2: # %if.then5 call abort@FUNCTION unreachable .LBB0_3: # %if.else - br_if $1, .LBB0_5 + end_block # label2: + br_if $1, 1 # 1: down to label0 .LBB0_4: # %if.end9 + end_block # label1: return .LBB0_5: # %if.then7 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -41,24 +44,27 @@ tests: # @tests .local i32 # BB#0: # %entry i32.const $2=, 16 - block .LBB1_5 - block .LBB1_4 - block .LBB1_3 + block + block + block i32.shl $push0=, $0, $2 i32.shr_s $push1=, $pop0, $2 i32.const $push2=, 1 i32.lt_s $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_3 + br_if $pop3, 0 # 0: down to label5 # BB#1: # %if.then - br_if $1, .LBB1_4 + br_if $1, 1 # 1: down to label4 # BB#2: # %if.then5 call abort@FUNCTION unreachable .LBB1_3: # %if.else - br_if $1, .LBB1_5 + end_block # label5: + br_if $1, 1 # 1: down to label3 .LBB1_4: # %if.end9 + end_block # label4: return .LBB1_5: # %if.then7 + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: @@ -71,22 +77,25 @@ tests: # @tests testi: # @testi .param i32, i32 # BB#0: # %entry - block .LBB2_5 - block .LBB2_4 - block .LBB2_3 + block + block + block i32.const $push0=, 1 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB2_3 + br_if $pop1, 0 # 0: down to label8 # BB#1: # %if.then - br_if $1, .LBB2_4 + br_if $1, 1 # 1: down to label7 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB2_3: # %if.else - br_if $1, .LBB2_5 + end_block # label8: + br_if $1, 1 # 1: down to label6 .LBB2_4: # %if.end6 + end_block # label7: return .LBB2_5: # %if.then4 + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end2: @@ -99,22 +108,25 @@ testi: # @testi testl: # @testl .param i32, i32 # BB#0: # %entry - block .LBB3_5 - block .LBB3_4 - block .LBB3_3 + block + block + block i32.const $push0=, 1 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB3_3 + br_if $pop1, 0 # 0: down to label11 # BB#1: # %if.then - br_if $1, .LBB3_4 + br_if $1, 1 # 1: down to label10 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB3_3: # %if.else - br_if $1, .LBB3_5 + end_block # label11: + br_if $1, 1 # 1: down to label9 .LBB3_4: # %if.end6 + end_block # label10: return .LBB3_5: # %if.then4 + end_block # label9: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/20020611-1.c.s b/test/torture-s/20020611-1.c.s index f1393ba87..0dada2b6c 100644 --- a/test/torture-s/20020611-1.c.s +++ b/test/torture-s/20020611-1.c.s @@ -26,7 +26,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, n($0) i32.const $push1=, 31 i32.lt_u $push2=, $pop0, $pop1 @@ -34,11 +34,12 @@ main: # @main i32.store $push4=, k($0), $pop3 i32.const $push5=, 0 i32.eq $push6=, $pop4, $pop5 - br_if $pop6, .LBB1_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20020615-1.c.s b/test/torture-s/20020615-1.c.s index 869c68c97..be3080a7c 100644 --- a/test/torture-s/20020615-1.c.s +++ b/test/torture-s/20020615-1.c.s @@ -33,15 +33,15 @@ line_hints: # @line_hints i32.add $push9=, $2, $6 i32.xor $7=, $pop9, $6 i32.const $6=, 4 - block .LBB0_6 - block .LBB0_3 + block + block i32.const $push25=, 0 i32.eq $push26=, $1, $pop25 - br_if $pop26, .LBB0_3 + br_if $pop26, 0 # 0: down to label1 # BB#1: # %entry i32.shr_s $push1=, $8, $6 i32.gt_s $push10=, $7, $pop1 - br_if $pop10, .LBB0_3 + br_if $pop10, 0 # 0: down to label1 # BB#2: # %if.then21 i32.gt_s $push12=, $1, $0 i32.const $push14=, 2 @@ -51,15 +51,16 @@ line_hints: # @line_hints i32.const $push15=, 3 i32.xor $push16=, $0, $pop15 i32.select $0=, $pop11, $pop16, $0 - br .LBB0_6 + br 1 # 1: down to label0 .LBB0_3: # %if.else + end_block # label1: i32.const $push27=, 0 i32.eq $push28=, $2, $pop27 - br_if $pop28, .LBB0_6 + br_if $pop28, 0 # 0: down to label0 # BB#4: # %if.else i32.shr_s $push17=, $7, $6 i32.gt_s $push18=, $8, $pop17 - br_if $pop18, .LBB0_6 + br_if $pop18, 0 # 0: down to label0 # BB#5: # %if.then31 i32.const $push19=, 29 i32.shr_u $push20=, $2, $pop19 @@ -71,6 +72,7 @@ line_hints: # @line_hints i32.select $push24=, $pop0, $pop23, $0 return $pop24 .LBB0_6: # %if.end40 + end_block # label0: return $0 .Lfunc_end0: .size line_hints, .Lfunc_end0-line_hints @@ -104,10 +106,10 @@ main: # @main i32.sub $push11=, $6, $10 i32.select $12=, $1, $pop11, $10 i32.select $3=, $2, $11, $12 - block .LBB1_14 + block i32.const $push53=, 0 i32.eq $push54=, $3, $pop53 - br_if $pop54, .LBB1_14 + br_if $pop54, 0 # 0: down to label2 # BB#1: # %entry i32.const $10=, 31 i32.shr_s $13=, $3, $10 @@ -120,7 +122,7 @@ main: # @main i32.xor $push13=, $pop12, $13 i32.shr_s $push3=, $pop13, $14 i32.gt_s $push15=, $pop2, $pop3 - br_if $pop15, .LBB1_14 + br_if $pop15, 0 # 0: down to label2 # BB#2: # %line_hints.exit i32.const $11=, 1 i32.gt_s $push17=, $3, $6 @@ -131,7 +133,7 @@ main: # @main i32.xor $push20=, $3, $pop19 i32.select $push21=, $pop16, $pop20, $3 i32.ne $push22=, $pop21, $11 - br_if $pop22, .LBB1_14 + br_if $pop22, 0 # 0: down to label2 # BB#3: # %lor.lhs.false i64.load $8=, main.gsf+24($6) i64.load $15=, main.gsf+16($6) @@ -157,24 +159,25 @@ main: # @main i32.xor $13=, $pop31, $13 i32.select $2=, $11, $2, $1 i32.shr_s $1=, $2, $10 - block .LBB1_5 + block i32.add $push32=, $2, $1 i32.xor $1=, $pop32, $1 i32.const $push55=, 0 i32.eq $push56=, $3, $pop55 - br_if $pop56, .LBB1_5 + br_if $pop56, 0 # 0: down to label3 # BB#4: # %lor.lhs.false i32.shr_s $push23=, $13, $14 i32.le_s $push33=, $1, $pop23 - br_if $pop33, .LBB1_14 + br_if $pop33, 1 # 1: down to label2 .LBB1_5: # %if.else.i82 + end_block # label3: i32.const $push57=, 0 i32.eq $push58=, $2, $pop57 - br_if $pop58, .LBB1_14 + br_if $pop58, 0 # 0: down to label2 # BB#6: # %if.else.i82 i32.shr_s $push34=, $1, $14 i32.gt_s $push35=, $13, $pop34 - br_if $pop35, .LBB1_14 + br_if $pop35, 0 # 0: down to label2 # BB#7: # %line_hints.exit89 i32.const $1=, 29 i32.shr_u $push36=, $2, $1 @@ -186,7 +189,7 @@ main: # @main i32.select $push39=, $pop0, $pop38, $3 i32.const $push40=, 8 i32.ne $push41=, $pop39, $pop40 - br_if $pop41, .LBB1_14 + br_if $pop41, 0 # 0: down to label2 # BB#8: # %lor.lhs.false3 i32.load $16=, main.fh+28($6) i32.load $17=, main.fh+32($6) @@ -199,24 +202,25 @@ main: # @main i32.xor $0=, $pop43, $0 i32.select $11=, $13, $12, $11 i32.shr_s $10=, $11, $10 - block .LBB1_10 + block i32.add $push44=, $11, $10 i32.xor $10=, $pop44, $10 i32.const $push59=, 0 i32.eq $push60=, $3, $pop59 - br_if $pop60, .LBB1_10 + br_if $pop60, 0 # 0: down to label4 # BB#9: # %lor.lhs.false3 i32.shr_s $push42=, $0, $14 i32.le_s $push45=, $10, $pop42 - br_if $pop45, .LBB1_14 + br_if $pop45, 1 # 1: down to label2 .LBB1_10: # %if.else.i40 + end_block # label4: i32.const $push61=, 0 i32.eq $push62=, $11, $pop61 - br_if $pop62, .LBB1_14 + br_if $pop62, 0 # 0: down to label2 # BB#11: # %if.else.i40 i32.shr_s $push46=, $10, $14 i32.gt_s $push47=, $0, $pop46 - br_if $pop47, .LBB1_14 + br_if $pop47, 0 # 0: down to label2 # BB#12: # %line_hints.exit47 i32.shr_u $push48=, $11, $1 i32.and $push49=, $pop48, $14 @@ -225,11 +229,12 @@ main: # @main i32.xor $push50=, $3, $2 i32.select $push51=, $pop1, $pop50, $3 i32.ne $push52=, $pop51, $14 - br_if $pop52, .LBB1_14 + br_if $pop52, 0 # 0: down to label2 # BB#13: # %if.end call exit@FUNCTION, $6 unreachable .LBB1_14: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20020805-1.c.s b/test/torture-s/20020805-1.c.s index ef35f2c21..f48c7fd78 100644 --- a/test/torture-s/20020805-1.c.s +++ b/test/torture-s/20020805-1.c.s @@ -7,13 +7,14 @@ check: # @check .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, -1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -29,7 +30,7 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, n($0) - block .LBB1_2 + block i32.const $push0=, 2 i32.sub $push1=, $pop0, $1 i32.sub $push2=, $0, $1 @@ -38,11 +39,12 @@ main: # @main i32.or $push5=, $pop3, $pop4 i32.const $push6=, -1 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_2 + br_if $pop7, 0 # 0: down to label1 # BB#1: # %check.exit call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20020911-1.c.s b/test/torture-s/20020911-1.c.s index ea69109e6..a95c5e605 100644 --- a/test/torture-s/20020911-1.c.s +++ b/test/torture-s/20020911-1.c.s @@ -10,10 +10,10 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load16_s $1=, c($0) - block .LBB0_3 + block i32.const $push2=, -1 i32.gt_s $push3=, $1, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.const $push1=, 65535 i32.and $push0=, $1, $pop1 @@ -21,10 +21,11 @@ main: # @main i32.add $push5=, $pop0, $pop4 i32.const $push6=, 32768 i32.ge_s $push7=, $pop5, $pop6 - br_if $pop7, .LBB0_3 + br_if $pop7, 0 # 0: down to label0 # BB#2: # %if.end return $0 .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20021010-2.c.s b/test/torture-s/20021010-2.c.s index 5a56e379b..dfede03ec 100644 --- a/test/torture-s/20021010-2.c.s +++ b/test/torture-s/20021010-2.c.s @@ -13,7 +13,7 @@ main: # @main i32.load16_s $3=, global_bounds($0) i32.load16_s $2=, global_saveRect+2($0) i32.load16_s $4=, global_bounds+2($0) - block .LBB0_2 + block i32.gt_s $push2=, $2, $4 i32.select $push3=, $pop2, $4, $2 i32.lt_s $push0=, $1, $3 @@ -21,11 +21,12 @@ main: # @main i32.sub $push4=, $pop3, $pop1 i32.load $push5=, expectedwidth($0) i32.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end26 call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then25 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20021011-1.c.s b/test/torture-s/20021011-1.c.s index c1ea262b0..c23528904 100644 --- a/test/torture-s/20021011-1.c.s +++ b/test/torture-s/20021011-1.c.s @@ -12,96 +12,98 @@ main: # @main i32.const $1=, buf i32.const $2=, 9 call memcpy@FUNCTION, $1, $0, $2 - block .LBB0_19 + block i32.call $push0=, strcmp@FUNCTION, $1, $0 - br_if $pop0, .LBB0_19 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %for.body.preheader call memcpy@FUNCTION, $1, $0, $2 - block .LBB0_18 + block i32.call $push1=, strcmp@FUNCTION, $1, $0 - br_if $pop1, .LBB0_18 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %for.cond i32.const $1=, buf+1 call memcpy@FUNCTION, $1, $0, $2 i32.call $push2=, strcmp@FUNCTION, $1, $0 - br_if $pop2, .LBB0_18 + br_if $pop2, 0 # 0: down to label1 # BB#3: # %for.cond.1 i32.const $1=, buf+2 call memcpy@FUNCTION, $1, $0, $2 i32.call $push3=, strcmp@FUNCTION, $1, $0 - br_if $pop3, .LBB0_18 + br_if $pop3, 0 # 0: down to label1 # BB#4: # %for.cond.2 i32.const $1=, buf+3 call memcpy@FUNCTION, $1, $0, $2 i32.call $push4=, strcmp@FUNCTION, $1, $0 - br_if $pop4, .LBB0_18 + br_if $pop4, 0 # 0: down to label1 # BB#5: # %for.cond.3 i32.const $1=, buf+4 call memcpy@FUNCTION, $1, $0, $2 i32.call $push5=, strcmp@FUNCTION, $1, $0 - br_if $pop5, .LBB0_18 + br_if $pop5, 0 # 0: down to label1 # BB#6: # %for.cond.4 i32.const $1=, buf+5 call memcpy@FUNCTION, $1, $0, $2 i32.call $push6=, strcmp@FUNCTION, $1, $0 - br_if $pop6, .LBB0_18 + br_if $pop6, 0 # 0: down to label1 # BB#7: # %for.cond.5 i32.const $1=, buf+6 call memcpy@FUNCTION, $1, $0, $2 i32.call $push7=, strcmp@FUNCTION, $1, $0 - br_if $pop7, .LBB0_18 + br_if $pop7, 0 # 0: down to label1 # BB#8: # %for.cond.6 i32.const $1=, buf+7 call memcpy@FUNCTION, $1, $0, $2 i32.call $push8=, strcmp@FUNCTION, $1, $0 - br_if $pop8, .LBB0_18 + br_if $pop8, 0 # 0: down to label1 # BB#9: # %for.cond.7 i32.const $1=, buf+8 call memcpy@FUNCTION, $1, $0, $2 i32.call $push9=, strcmp@FUNCTION, $1, $0 - br_if $pop9, .LBB0_18 + br_if $pop9, 0 # 0: down to label1 # BB#10: # %for.cond.8 i32.const $1=, buf+9 call memcpy@FUNCTION, $1, $0, $2 i32.call $push10=, strcmp@FUNCTION, $1, $0 - br_if $pop10, .LBB0_18 + br_if $pop10, 0 # 0: down to label1 # BB#11: # %for.cond.9 i32.const $1=, buf+10 call memcpy@FUNCTION, $1, $0, $2 i32.call $push11=, strcmp@FUNCTION, $1, $0 - br_if $pop11, .LBB0_18 + br_if $pop11, 0 # 0: down to label1 # BB#12: # %for.cond.10 i32.const $1=, buf+11 call memcpy@FUNCTION, $1, $0, $2 i32.call $push12=, strcmp@FUNCTION, $1, $0 - br_if $pop12, .LBB0_18 + br_if $pop12, 0 # 0: down to label1 # BB#13: # %for.cond.11 i32.const $1=, buf+12 call memcpy@FUNCTION, $1, $0, $2 i32.call $push13=, strcmp@FUNCTION, $1, $0 - br_if $pop13, .LBB0_18 + br_if $pop13, 0 # 0: down to label1 # BB#14: # %for.cond.12 i32.const $1=, buf+13 call memcpy@FUNCTION, $1, $0, $2 i32.call $push14=, strcmp@FUNCTION, $1, $0 - br_if $pop14, .LBB0_18 + br_if $pop14, 0 # 0: down to label1 # BB#15: # %for.cond.13 i32.const $1=, buf+14 call memcpy@FUNCTION, $1, $0, $2 i32.call $push15=, strcmp@FUNCTION, $1, $0 - br_if $pop15, .LBB0_18 + br_if $pop15, 0 # 0: down to label1 # BB#16: # %for.cond.14 i32.const $1=, buf+15 call memcpy@FUNCTION, $1, $0, $2 i32.call $push16=, strcmp@FUNCTION, $1, $0 - br_if $pop16, .LBB0_18 + br_if $pop16, 0 # 0: down to label1 # BB#17: # %for.cond.15 i32.const $push17=, 0 return $pop17 .LBB0_18: # %if.then7 + end_block # label1: call abort@FUNCTION unreachable .LBB0_19: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20021015-1.c.s b/test/torture-s/20021015-1.c.s index 196acbf5a..7174fc7b3 100644 --- a/test/torture-s/20021015-1.c.s +++ b/test/torture-s/20021015-1.c.s @@ -7,16 +7,17 @@ g: # @g .param i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.load $push0=, 0($4) i32.const $push1=, g_list i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $4=, 0 i32.store8 $discard=, g_list($4), $4 return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -31,14 +32,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load8_u $push0=, g_list($0) i32.const $push1=, 0 i32.eq $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %g.exit i32.store8 $discard=, g_list($0), $0 .LBB1_2: # %for.end + end_block # label1: return $0 .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/20021111-1.c.s b/test/torture-s/20021111-1.c.s index 0c87751f6..cd400e861 100644 --- a/test/torture-s/20021111-1.c.s +++ b/test/torture-s/20021111-1.c.s @@ -9,29 +9,31 @@ aim_callhandler: # @aim_callhandler .result i32 .local i32 # BB#0: # %entry - block .LBB0_5 + block i32.const $push5=, 0 i32.eq $push6=, $1, $pop5 - br_if $pop6, .LBB0_5 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %entry i32.const $push0=, 65535 i32.eq $push1=, $3, $pop0 - br_if $pop1, .LBB0_5 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %if.end3 i32.const $1=, 0 i32.load $3=, aim_callhandler.i($1) i32.const $4=, 1 - block .LBB0_4 + block i32.ge_s $push2=, $3, $4 - br_if $pop2, .LBB0_4 + br_if $pop2, 0 # 0: down to label1 # BB#3: # %if.end7 i32.add $push3=, $3, $4 i32.store $discard=, aim_callhandler.i($1), $pop3 - br .LBB0_5 + br 1 # 1: down to label0 .LBB0_4: # %if.then6 + end_block # label1: call abort@FUNCTION unreachable .LBB0_5: # %return + end_block # label0: i32.const $push4=, 0 return $pop4 .Lfunc_end0: @@ -48,13 +50,14 @@ main: # @main i32.const $1=, 0 i32.load $0=, aim_callhandler.i($1) i32.const $2=, 1 - block .LBB1_2 + block i32.lt_s $push0=, $0, $2 - br_if $pop0, .LBB1_2 + br_if $pop0, 0 # 0: down to label2 # BB#1: # %if.then6.i call abort@FUNCTION unreachable .LBB1_2: # %aim_callhandler.exit + end_block # label2: i32.add $push1=, $0, $2 i32.store $discard=, aim_callhandler.i($1), $pop1 call exit@FUNCTION, $1 diff --git a/test/torture-s/20021118-2.c.s b/test/torture-s/20021118-2.c.s index 39ffc834d..dd685705e 100644 --- a/test/torture-s/20021118-2.c.s +++ b/test/torture-s/20021118-2.c.s @@ -57,13 +57,14 @@ t2: # @t2 f1: # @f1 .param f64 # BB#0: # %entry - block .LBB2_2 + block f64.const $push0=, 0x1.8p1 f64.ne $push1=, $0, $pop0 - br_if $pop1, .LBB2_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: @@ -76,17 +77,18 @@ f1: # @f1 f2: # @f2 .param f32, f32 # BB#0: # %entry - block .LBB3_3 + block f32.const $push0=, 0x1.4p1 f32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB3_3 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %entry f32.const $push2=, 0x1.cp1 f32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB3_3 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %if.end return .LBB3_3: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end3: @@ -99,13 +101,14 @@ f2: # @f2 f3: # @f3 .param f32 # BB#0: # %entry - block .LBB4_2 + block f32.const $push0=, 0x1.8p2 f32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB4_2 + br_if $pop1, 0 # 0: down to label2 # BB#1: # %if.end return .LBB4_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end4: diff --git a/test/torture-s/20021118-3.c.s b/test/torture-s/20021118-3.c.s index 50ada52d3..b66e95d65 100644 --- a/test/torture-s/20021118-3.c.s +++ b/test/torture-s/20021118-3.c.s @@ -9,19 +9,20 @@ foo: # @foo .result i32 .local i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push1=, -2 i32.eq $push2=, $0, $pop1 - br_if $pop2, .LBB0_3 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %entry i32.const $1=, 0 i32.const $push3=, -100 i32.sub $push0=, $pop3, $0 i32.ge_s $push4=, $pop0, $1 - br_if $pop4, .LBB0_3 + br_if $pop4, 0 # 0: down to label0 # BB#2: # %if.end return $1 .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20021120-1.c.s b/test/torture-s/20021120-1.c.s index 8229013fa..3b9b8a523 100644 --- a/test/torture-s/20021120-1.c.s +++ b/test/torture-s/20021120-1.c.s @@ -41,13 +41,13 @@ foo: # @foo f64.load $159=, gd+232($1) f64.load $160=, gd+240($1) f64.load $161=, gd+248($1) - block .LBB0_2 + block i32.const $push0=, 1 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: f32.load $2=, gf($1) f32.load $3=, gf+4($1) f32.load $4=, gf+8($1) @@ -306,8 +306,10 @@ foo: # @foo i32.const $push66=, -1 i32.add $0=, $0, $pop66 f32.store $discard=, gf+124($1), $33 - br_if $0, .LBB0_1 + br_if $0, 0 # 0: up to label1 .LBB0_2: # %for.end + end_loop # label2: + end_block # label0: f64.store $discard=, gd($1), $130 f64.store $discard=, gd+8($1), $131 f64.store $discard=, gd+16($1), $132 @@ -358,7 +360,7 @@ main: # @main i32.const $5=, gf .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label3: f64.store $push0=, 0($6), $3 f64.const $push2=, 0x1p0 f64.add $3=, $pop0, $pop2 @@ -372,20 +374,21 @@ main: # @main i32.add $5=, $5, $2 i32.const $push3=, 32 i32.ne $push4=, $4, $pop3 - br_if $pop4, .LBB1_1 -.LBB1_2: # %for.end + br_if $pop4, 0 # 0: up to label3 +# BB#2: # %for.end + end_loop # label4: call foo@FUNCTION, $0 i32.const $4=, 0 i32.const $5=, gd copy_local $6=, $4 .LBB1_3: # %for.body6 # =>This Inner Loop Header: Depth=1 - block .LBB1_7 - loop .LBB1_6 + block + loop # label6: f64.load $push5=, 0($5) f64.convert_s/i32 $push6=, $4 f64.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_7 + br_if $pop7, 2 # 2: down to label5 # BB#4: # %lor.lhs.false # in Loop: Header=BB1_3 Depth=1 i32.const $push8=, gf @@ -393,7 +396,7 @@ main: # @main f32.load $push10=, 0($pop9) f32.convert_s/i32 $push11=, $6 f32.ne $push12=, $pop10, $pop11 - br_if $pop12, .LBB1_7 + br_if $pop12, 2 # 2: down to label5 # BB#5: # %for.cond3 # in Loop: Header=BB1_3 Depth=1 i32.add $6=, $6, $0 @@ -401,12 +404,14 @@ main: # @main i32.add $4=, $4, $2 i32.const $push13=, 31 i32.le_s $push14=, $6, $pop13 - br_if $pop14, .LBB1_3 -.LBB1_6: # %for.end17 + br_if $pop14, 0 # 0: up to label6 +# BB#6: # %for.end17 + end_loop # label7: i32.const $push15=, 0 call exit@FUNCTION, $pop15 unreachable .LBB1_7: # %if.then + end_block # label5: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20021204-1.c.s b/test/torture-s/20021204-1.c.s index ab8c9e44d..f31edae0c 100644 --- a/test/torture-s/20021204-1.c.s +++ b/test/torture-s/20021204-1.c.s @@ -7,13 +7,14 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -29,15 +30,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $2=, 0 - block .LBB1_2 + block i32.load $push0=, z($2) i32.const $push1=, 1 i32.ge_s $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %foo.exit call exit@FUNCTION, $2 unreachable .LBB1_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20021219-1.c.s b/test/torture-s/20021219-1.c.s index 3e3d6bf35..cc68cf307 100644 --- a/test/torture-s/20021219-1.c.s +++ b/test/torture-s/20021219-1.c.s @@ -91,17 +91,17 @@ main: # @main copy_local $5=, $0 .LBB1_1: # %while.cond # =>This Inner Loop Header: Depth=1 - loop .LBB1_5 - block .LBB1_4 + loop # label0: + block i32.const $push45=, 255 i32.and $5=, $5, $pop45 i32.eq $push46=, $5, $0 - br_if $pop46, .LBB1_4 + br_if $pop46, 0 # 0: down to label2 # BB#2: # %while.cond # in Loop: Header=BB1_1 Depth=1 i32.const $push47=, 13 i32.eq $push48=, $5, $pop47 - br_if $pop48, .LBB1_4 + br_if $pop48, 0 # 0: down to label2 # BB#3: # %while.end i32.const $9=, 16 i32.add $13=, $13, $9 @@ -110,10 +110,12 @@ main: # @main return $1 .LBB1_4: # %while.body # in Loop: Header=BB1_1 Depth=1 + end_block # label2: i32.load8_u $5=, 0($6) i32.add $6=, $6, $2 - br .LBB1_1 + br 0 # 0: up to label0 .LBB1_5: + end_loop # label1: .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/20030105-1.c.s b/test/torture-s/20030105-1.c.s index 9d82e971b..666db3e86 100644 --- a/test/torture-s/20030105-1.c.s +++ b/test/torture-s/20030105-1.c.s @@ -19,16 +19,17 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.call $push0=, foo@FUNCTION i32.const $push1=, 28 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push3=, 0 call exit@FUNCTION, $pop3 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20030109-1.c.s b/test/torture-s/20030109-1.c.s index a4ce2f3b0..967f5e088 100644 --- a/test/torture-s/20030109-1.c.s +++ b/test/torture-s/20030109-1.c.s @@ -9,14 +9,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, x+4($0) i32.const $push1=, 40 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20030128-1.c.s b/test/torture-s/20030128-1.c.s index 1c6713667..766367fa0 100644 --- a/test/torture-s/20030128-1.c.s +++ b/test/torture-s/20030128-1.c.s @@ -10,7 +10,7 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load16_s $1=, y($0) - block .LBB0_2 + block i32.load8_u $push0=, x($0) i32.div_s $push1=, $pop0, $1 i32.store8 $push2=, x($0), $pop1 @@ -18,11 +18,12 @@ main: # @main i32.and $push4=, $pop2, $pop3 i32.const $push5=, 246 i32.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20030221-1.c.s b/test/torture-s/20030221-1.c.s index 68aff4b39..2c88f8aac 100644 --- a/test/torture-s/20030221-1.c.s +++ b/test/torture-s/20030221-1.c.s @@ -25,14 +25,14 @@ main: # @main i64.store $discard=, 0($6), $pop3 i32.const $5=, 0 i32.add $5=, $6, $5 - block .LBB0_2 + block i32.call $push4=, strlen@FUNCTION, $5 i32.store8 $push5=, 0($6), $pop4 i32.const $push6=, 255 i32.and $push7=, $pop5, $pop6 i32.const $push8=, 10 i32.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB0_2 + br_if $pop9, 0 # 0: down to label0 # BB#1: # %if.end i32.const $3=, 16 i32.add $6=, $6, $3 @@ -40,6 +40,7 @@ main: # @main i32.store $6=, 0($3), $6 return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20030222-1.c.s b/test/torture-s/20030222-1.c.s index 26f9c654b..3be37b484 100644 --- a/test/torture-s/20030222-1.c.s +++ b/test/torture-s/20030222-1.c.s @@ -34,14 +34,15 @@ main: # @main #APP #NO_APP i64.store32 $discard=, 12($5), $0 - block .LBB1_2 + block i32.load $push0=, 12($5) i32.ne $push1=, $pop0, $2 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $1 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20030313-1.c.s b/test/torture-s/20030313-1.c.s index 67b27f6f3..ecd67c62f 100644 --- a/test/torture-s/20030313-1.c.s +++ b/test/torture-s/20030313-1.c.s @@ -9,95 +9,102 @@ foo: # @foo .local i32 # BB#0: # %entry i32.const $2=, 12 - block .LBB0_20 + block i32.ne $push0=, $1, $2 - br_if $pop0, .LBB0_20 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_19 + block i32.load $push1=, 0($0) i32.const $push2=, 1 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_19 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %lor.lhs.false i32.load $push4=, 4($0) i32.const $push5=, 11 i32.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_19 + br_if $pop6, 0 # 0: down to label1 # BB#3: # %if.end5 - block .LBB0_18 + block i32.load $push7=, 8($0) i32.const $push8=, 2 i32.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB0_18 + br_if $pop9, 0 # 0: down to label2 # BB#4: # %lor.lhs.false8 i32.load $push10=, 12($0) i32.ne $push11=, $pop10, $2 - br_if $pop11, .LBB0_18 + br_if $pop11, 0 # 0: down to label2 # BB#5: # %if.end12 - block .LBB0_17 + block i32.load $push12=, 16($0) i32.const $push13=, 3 i32.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB0_17 + br_if $pop14, 0 # 0: down to label3 # BB#6: # %lor.lhs.false15 i32.load $push15=, 20($0) i32.const $push16=, 13 i32.ne $push17=, $pop15, $pop16 - br_if $pop17, .LBB0_17 + br_if $pop17, 0 # 0: down to label3 # BB#7: # %if.end19 - block .LBB0_16 + block i32.load $push18=, 24($0) i32.const $push19=, 4 i32.ne $push20=, $pop18, $pop19 - br_if $pop20, .LBB0_16 + br_if $pop20, 0 # 0: down to label4 # BB#8: # %lor.lhs.false22 i32.load $push21=, 28($0) i32.const $push22=, 14 i32.ne $push23=, $pop21, $pop22 - br_if $pop23, .LBB0_16 + br_if $pop23, 0 # 0: down to label4 # BB#9: # %if.end26 - block .LBB0_15 + block i32.load $push24=, 32($0) i32.const $push25=, 5 i32.ne $push26=, $pop24, $pop25 - br_if $pop26, .LBB0_15 + br_if $pop26, 0 # 0: down to label5 # BB#10: # %lor.lhs.false29 i32.load $push27=, 36($0) i32.const $push28=, 15 i32.ne $push29=, $pop27, $pop28 - br_if $pop29, .LBB0_15 + br_if $pop29, 0 # 0: down to label5 # BB#11: # %if.end33 - block .LBB0_14 + block i32.load $push30=, 40($0) i32.const $push31=, 6 i32.ne $push32=, $pop30, $pop31 - br_if $pop32, .LBB0_14 + br_if $pop32, 0 # 0: down to label6 # BB#12: # %lor.lhs.false36 i32.load $push33=, 44($0) i32.const $push34=, 16 i32.ne $push35=, $pop33, $pop34 - br_if $pop35, .LBB0_14 + br_if $pop35, 0 # 0: down to label6 # BB#13: # %if.end40 return .LBB0_14: # %if.then39 + end_block # label6: call abort@FUNCTION unreachable .LBB0_15: # %if.then32 + end_block # label5: call abort@FUNCTION unreachable .LBB0_16: # %if.then25 + end_block # label4: call abort@FUNCTION unreachable .LBB0_17: # %if.then18 + end_block # label3: call abort@FUNCTION unreachable .LBB0_18: # %if.then11 + end_block # label2: call abort@FUNCTION unreachable .LBB0_19: # %if.then4 + end_block # label1: call abort@FUNCTION unreachable .LBB0_20: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20030606-1.c.s b/test/torture-s/20030606-1.c.s index 8e67c2511..8618d67db 100644 --- a/test/torture-s/20030606-1.c.s +++ b/test/torture-s/20030606-1.c.s @@ -13,16 +13,17 @@ foo: # @foo i32.store $discard=, 0($0), $pop0 i32.const $2=, 4 i32.add $3=, $0, $2 - block .LBB0_2 + block i32.const $push3=, 0 i32.eq $push4=, $1, $pop3 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.then i32.add $push2=, $0, $2 i32.store $discard=, 0($pop2), $1 i32.const $push1=, 8 i32.add $3=, $0, $pop1 .LBB0_2: # %if.end + end_block # label0: return $3 .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/20030714-1.c.s b/test/torture-s/20030714-1.c.s index ba9b04365..2bb75ad01 100644 --- a/test/torture-s/20030714-1.c.s +++ b/test/torture-s/20030714-1.c.s @@ -9,69 +9,73 @@ RenderBox_setStyle: # @RenderBox_setStyle .local i32, i32 # BB#0: # %entry i32.load16_u $3=, 26($0) - block .LBB0_9 - block .LBB0_8 + block + block i32.const $push1=, 2 i32.add $push2=, $1, $pop1 i32.load8_u $push3=, 0($pop2) i32.const $push4=, 4 i32.and $push5=, $pop3, $pop4 - br_if $pop5, .LBB0_8 + br_if $pop5, 0 # 0: down to label1 # BB#1: # %sw.default i32.const $2=, 16 - block .LBB0_3 + block i32.and $push10=, $3, $2 i32.const $push31=, 0 i32.eq $push32=, $pop10, $pop31 - br_if $pop32, .LBB0_3 + br_if $pop32, 0 # 0: down to label2 # BB#2: # %if.then i32.const $push11=, 26 i32.add $push12=, $0, $pop11 i32.or $push0=, $3, $2 i32.store16 $3=, 0($pop12), $pop0 .LBB0_3: # %if.end + end_block # label2: i32.const $push16=, 26 i32.add $2=, $0, $pop16 i32.const $push14=, 65519 i32.and $push15=, $3, $pop14 i32.store16 $discard=, 0($2), $pop15 i32.load $3=, 0($1) - block .LBB0_6 + block i32.load $push18=, 28($0) i32.call_indirect $push19=, $pop18, $0 - br_if $pop19, .LBB0_6 + br_if $pop19, 0 # 0: down to label3 # BB#4: # %if.end i32.const $push17=, 1572864 i32.and $push13=, $3, $pop17 i32.const $push33=, 0 i32.eq $push34=, $pop13, $pop33 - br_if $pop34, .LBB0_6 + br_if $pop34, 0 # 0: down to label3 # BB#5: # %if.then39 i32.load16_u $push20=, 0($2) i32.const $push21=, 8 i32.or $push22=, $pop20, $pop21 i32.store16 $discard=, 0($2), $pop22 - br .LBB0_9 + br 2 # 2: down to label0 .LBB0_6: # %if.else + end_block # label3: i32.load $push23=, 0($1) i32.const $push24=, 393216 i32.and $push25=, $pop23, $pop24 i32.const $push26=, 131072 i32.ne $push27=, $pop25, $pop26 - br_if $pop27, .LBB0_9 + br_if $pop27, 1 # 1: down to label0 # BB#7: # %if.then55 i32.load16_u $push28=, 0($2) i32.const $push29=, 64 i32.or $push30=, $pop28, $pop29 i32.store16 $discard=, 0($2), $pop30 - br .LBB0_9 + br 1 # 1: down to label0 .LBB0_8: # %sw.bb + end_block # label1: i32.const $push8=, 26 i32.add $push9=, $0, $pop8 i32.const $push6=, 16 i32.or $push7=, $3, $pop6 i32.store16 $discard=, 0($pop9), $pop7 .LBB0_9: # %sw.epilog + end_block # label0: return .Lfunc_end0: .size RenderBox_setStyle, .Lfunc_end0-RenderBox_setStyle diff --git a/test/torture-s/20030715-1.c.s b/test/torture-s/20030715-1.c.s index dfcd8c2c9..7575824a8 100644 --- a/test/torture-s/20030715-1.c.s +++ b/test/torture-s/20030715-1.c.s @@ -26,21 +26,23 @@ server_type: # @server_type i32.call $4=, strcmp@FUNCTION, $2, $pop0 i32.const $3=, 0 copy_local $5=, $3 - block .LBB1_3 - block .LBB1_2 + block + block i32.const $push2=, 0 i32.eq $push3=, $4, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %if.else i32.const $push1=, .L.str.1 i32.call $4=, strcmp@FUNCTION, $2, $pop1 i32.const $2=, .L.str.2 i32.const $5=, 1 - br_if $4, .LBB1_3 + br_if $4, 1 # 1: down to label0 .LBB1_2: # %if.end9 + end_block # label1: i32.store $discard=, ap_standalone($3), $5 copy_local $2=, $3 .LBB1_3: # %cleanup + end_block # label0: return $2 .Lfunc_end1: .size server_type, .Lfunc_end1-server_type diff --git a/test/torture-s/20030717-1.c.s b/test/torture-s/20030717-1.c.s index 9ade23de9..8bede89b1 100644 --- a/test/torture-s/20030717-1.c.s +++ b/test/torture-s/20030717-1.c.s @@ -25,17 +25,18 @@ bar: # @bar copy_local $10=, $2 .LBB0_1: # %do.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 - block .LBB0_3 + loop # label0: + block i32.const $push4=, 0 i32.gt_s $push5=, $1, $pop4 - br_if $pop5, .LBB0_3 + br_if $pop5, 0 # 0: down to label2 # BB#2: # %if.then # in Loop: Header=BB0_1 Depth=1 i32.add $push6=, $0, $6 i32.load $1=, 0($pop6) .LBB0_3: # %if.end # in Loop: Header=BB0_1 Depth=1 + end_block # label2: i32.const $push7=, -1 i32.add $1=, $1, $pop7 i32.mul $push8=, $1, $6 @@ -48,8 +49,9 @@ bar: # @bar i32.lt_u $push13=, $pop12, $5 i32.select $10=, $pop13, $1, $10 i32.ne $push14=, $1, $2 - br_if $pop14, .LBB0_1 -.LBB0_4: # %do.end + br_if $pop14, 0 # 0: up to label0 +# BB#4: # %do.end + end_loop # label1: i32.mul $push18=, $10, $6 i32.add $push19=, $0, $pop18 i32.const $push15=, 9 diff --git a/test/torture-s/20030821-1.c.s b/test/torture-s/20030821-1.c.s index 81250ec66..b4a6d4d5b 100644 --- a/test/torture-s/20030821-1.c.s +++ b/test/torture-s/20030821-1.c.s @@ -8,16 +8,17 @@ foo: # @foo .param i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, -2130706433 i32.and $push1=, $0, $pop0 i32.const $push2=, -2147418114 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20030903-1.c.s b/test/torture-s/20030903-1.c.s index f0fc990eb..1d3430a56 100644 --- a/test/torture-s/20030903-1.c.s +++ b/test/torture-s/20030903-1.c.s @@ -9,31 +9,39 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_2 + block i32.load $push0=, test($1) i32.const $push1=, -1 i32.add $0=, $pop0, $pop1 i32.const $push2=, 3 i32.le_u $push3=, $0, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %sw.epilog return $1 .LBB0_2: # %entry - block .LBB0_6 - block .LBB0_5 - block .LBB0_4 - block .LBB0_3 - tableswitch $0, .LBB0_3, .LBB0_3, .LBB0_4, .LBB0_5, .LBB0_6 + end_block # label0: + block + block + block + block + tableswitch $0, 0, 0, 1, 2, 3 # 0: down to label4 + # 1: down to label3 + # 2: down to label2 + # 3: down to label1 .LBB0_3: # %sw.bb + end_block # label4: call y@FUNCTION unreachable .LBB0_4: # %sw.bb1 + end_block # label3: call y@FUNCTION unreachable .LBB0_5: # %sw.bb2 + end_block # label2: call y@FUNCTION unreachable .LBB0_6: # %sw.bb3 + end_block # label1: call y@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20030909-1.c.s b/test/torture-s/20030909-1.c.s index 7a615733c..199548050 100644 --- a/test/torture-s/20030909-1.c.s +++ b/test/torture-s/20030909-1.c.s @@ -7,12 +7,13 @@ test: # @test .param i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.eq $push0=, $0, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20030916-1.c.s b/test/torture-s/20030916-1.c.s index 406a5a090..f65a2316d 100644 --- a/test/torture-s/20030916-1.c.s +++ b/test/torture-s/20030916-1.c.s @@ -45,7 +45,7 @@ main: # @main i32.const $4=, 0 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label0: i32.const $8=, 0 i32.add $8=, $12, $8 i32.add $push0=, $8, $4 @@ -55,8 +55,9 @@ main: # @main i32.add $4=, $4, $0 i32.const $push2=, 1024 i32.ne $push3=, $4, $pop2 - br_if $pop3, .LBB1_1 -.LBB1_2: # %for.end + br_if $pop3, 0 # 0: up to label0 +# BB#2: # %for.end + end_loop # label1: i32.const $push7=, 0 i32.store $push8=, 1016($12), $pop7 i32.store $push9=, 1020($12), $pop8 @@ -85,11 +86,11 @@ main: # @main i32.store $1=, 28($12), $pop16 .LBB1_3: # %for.cond1 # =>This Inner Loop Header: Depth=1 - block .LBB1_6 - loop .LBB1_5 + block + loop # label3: i32.const $push17=, 255 i32.gt_s $push18=, $5, $pop17 - br_if $pop18, .LBB1_6 + br_if $pop18, 2 # 2: down to label2 # BB#4: # %for.cond1.for.body3_crit_edge # in Loop: Header=BB1_3 Depth=1 i32.load $2=, 0($4) @@ -101,11 +102,13 @@ main: # @main i32.const $push20=, 240 i32.lt_u $push21=, $3, $pop20 i32.eq $push22=, $2, $pop21 - br_if $pop22, .LBB1_3 -.LBB1_5: # %if.then + br_if $pop22, 0 # 0: up to label3 +# BB#5: # %if.then + end_loop # label4: call abort@FUNCTION unreachable .LBB1_6: # %for.end10 + end_block # label2: call exit@FUNCTION, $1 unreachable .Lfunc_end1: diff --git a/test/torture-s/20031010-1.c.s b/test/torture-s/20031010-1.c.s index a4f222640..955ec562b 100644 --- a/test/torture-s/20031010-1.c.s +++ b/test/torture-s/20031010-1.c.s @@ -8,23 +8,25 @@ foo: # @foo .param i32, i32, i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB0_4 + block i32.const $push2=, 0 i32.eq $push3=, $2, $pop2 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.then i32.sub $2=, $0, $1 - block .LBB0_3 + block i32.const $push4=, 0 i32.eq $push5=, $3, $pop4 - br_if $pop5, .LBB0_3 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %if.then4 i32.select $push1=, $4, $1, $0 i32.select $push0=, $4, $0, $1 i32.sub $2=, $pop1, $pop0 .LBB0_3: # %if.end8 + end_block # label1: return $2 .LBB0_4: # %if.end9 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -39,17 +41,18 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 1 - block .LBB1_2 + block i32.const $push1=, 2 i32.const $push0=, 3 i32.call $push2=, foo@FUNCTION, $pop1, $pop0, $0, $0, $0 i32.const $push4=, 0 i32.eq $push5=, $pop2, $pop4 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label2 # BB#1: # %if.end i32.const $push3=, 0 return $pop3 .LBB1_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20031012-1.c.s b/test/torture-s/20031012-1.c.s index 20fd8709c..f7a6d6650 100644 --- a/test/torture-s/20031012-1.c.s +++ b/test/torture-s/20031012-1.c.s @@ -24,10 +24,10 @@ main: # @main i32.store8 $3=, 13371($7), $pop1 i32.const $8=, 0 i32.add $8=, $7, $8 - block .LBB0_2 + block i32.call $push2=, strlen@FUNCTION, $8 i32.ne $push3=, $pop2, $2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %foo.exit i32.const $6=, 15008 i32.add $7=, $7, $6 @@ -35,6 +35,7 @@ main: # @main i32.store $7=, 0($6), $7 return $3 .LBB0_2: # %if.then.i + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20031020-1.c.s b/test/torture-s/20031020-1.c.s index 22c4167d3..94914c9e0 100644 --- a/test/torture-s/20031020-1.c.s +++ b/test/torture-s/20031020-1.c.s @@ -7,13 +7,14 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 1024 i32.ge_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20031201-1.c.s b/test/torture-s/20031201-1.c.s index 93cdba8af..2edd9f161 100644 --- a/test/torture-s/20031201-1.c.s +++ b/test/torture-s/20031201-1.c.s @@ -34,23 +34,24 @@ f0: # @f0 i32.const $1=, 0 i32.load $2=, f0.washere($1) i32.load $0=, i($1) - block .LBB1_4 + block i32.const $push0=, 1 i32.add $push1=, $2, $pop0 i32.store $discard=, f0.washere($1), $pop1 - br_if $2, .LBB1_4 + br_if $2, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.const $1=, 32 i32.load16_u $push2=, 0($0) i32.ne $push3=, $pop2, $1 - br_if $pop3, .LBB1_4 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %lor.lhs.false1 i32.load16_u $push4=, 4($0) i32.ne $push5=, $pop4, $1 - br_if $pop5, .LBB1_4 + br_if $pop5, 0 # 0: down to label0 # BB#3: # %if.end return .LBB1_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: @@ -66,18 +67,19 @@ test: # @test i32.const $1=, 0 i32.load $0=, i($1) i32.const $2=, 8 - block .LBB2_3 + block i32.load16_u $push0=, 0($0) i32.ne $push1=, $pop0, $2 - br_if $pop1, .LBB2_3 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %lor.lhs.false i32.load16_u $push2=, 4($0) i32.ne $push3=, $pop2, $2 - br_if $pop3, .LBB2_3 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %if.end call exit@FUNCTION, $1 unreachable .LBB2_3: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20031204-1.c.s b/test/torture-s/20031204-1.c.s index 0e56a240e..3f0473c88 100644 --- a/test/torture-s/20031204-1.c.s +++ b/test/torture-s/20031204-1.c.s @@ -27,12 +27,12 @@ root_nfs_parse_addr: # @root_nfs_parse_addr .LBB1_1: # %while.cond1.preheader # =>This Loop Header: Depth=1 # Child Loop BB1_2 Depth 2 - loop .LBB1_6 + loop # label0: copy_local $7=, $6 .LBB1_2: # %while.cond1 # Parent Loop BB1_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB1_3 + loop # label2: copy_local $2=, $7 i32.load8_u $1=, 0($2) i32.const $3=, 255 @@ -43,19 +43,20 @@ root_nfs_parse_addr: # @root_nfs_parse_addr i32.and $push2=, $pop1, $3 i32.const $push3=, 10 i32.lt_u $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_2 -.LBB1_3: # %while.end + br_if $pop4, 0 # 0: up to label2 +# BB#3: # %while.end # in Loop: Header=BB1_1 Depth=1 + end_loop # label3: copy_local $9=, $6 i32.eq $push5=, $2, $6 - br_if $pop5, .LBB1_6 + br_if $pop5, 1 # 1: down to label1 # BB#4: # %lor.lhs.false # in Loop: Header=BB1_1 Depth=1 i32.const $5=, 3 copy_local $9=, $2 i32.sub $push6=, $2, $6 i32.gt_s $push7=, $pop6, $5 - br_if $pop7, .LBB1_6 + br_if $pop7, 1 # 1: down to label1 # BB#5: # %if.end # in Loop: Header=BB1_1 Depth=1 i32.eq $push11=, $8, $5 @@ -68,32 +69,35 @@ root_nfs_parse_addr: # @root_nfs_parse_addr copy_local $9=, $2 i32.const $push13=, 4 i32.lt_s $push14=, $8, $pop13 - br_if $pop14, .LBB1_1 + br_if $pop14, 0 # 0: up to label0 .LBB1_6: # %while.end25 + end_loop # label1: i32.const $2=, -1 - block .LBB1_11 + block i32.const $push15=, 4 i32.ne $push16=, $8, $pop15 - br_if $pop16, .LBB1_11 + br_if $pop16, 0 # 0: down to label4 # BB#7: # %land.lhs.true i32.load8_u $7=, 0($9) - block .LBB1_10 + block i32.const $push20=, 0 i32.eq $push21=, $7, $pop20 - br_if $pop21, .LBB1_10 + br_if $pop21, 0 # 0: down to label5 # BB#8: # %land.lhs.true i32.const $push17=, 58 i32.ne $push18=, $7, $pop17 - br_if $pop18, .LBB1_11 + br_if $pop18, 1 # 1: down to label4 # BB#9: # %if.then39 i32.add $2=, $9, $4 i32.const $push19=, 0 i32.store8 $discard=, 0($9), $pop19 copy_local $9=, $2 .LBB1_10: # %if.end41 + end_block # label5: i32.call $discard=, strcpy@FUNCTION, $0, $9 i32.const $2=, 168496141 .LBB1_11: # %if.end43 + end_block # label4: return $2 .Lfunc_end1: .size root_nfs_parse_addr, .Lfunc_end1-root_nfs_parse_addr @@ -111,12 +115,12 @@ main: # @main .LBB2_1: # %while.cond1.preheader.i # =>This Loop Header: Depth=1 # Child Loop BB2_2 Depth 2 - loop .LBB2_6 + loop # label6: copy_local $6=, $5 .LBB2_2: # %while.cond1.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_3 + loop # label8: copy_local $1=, $6 i32.load8_u $0=, 0($1) i32.const $2=, 255 @@ -127,19 +131,20 @@ main: # @main i32.and $push2=, $pop1, $2 i32.const $push3=, 10 i32.lt_u $push4=, $pop2, $pop3 - br_if $pop4, .LBB2_2 -.LBB2_3: # %while.end.i + br_if $pop4, 0 # 0: up to label8 +# BB#3: # %while.end.i # in Loop: Header=BB2_1 Depth=1 + end_loop # label9: copy_local $8=, $5 i32.eq $push5=, $1, $5 - br_if $pop5, .LBB2_6 + br_if $pop5, 1 # 1: down to label7 # BB#4: # %lor.lhs.false.i # in Loop: Header=BB2_1 Depth=1 i32.const $4=, 3 copy_local $8=, $1 i32.sub $push6=, $1, $5 i32.gt_s $push7=, $pop6, $4 - br_if $pop7, .LBB2_6 + br_if $pop7, 1 # 1: down to label7 # BB#5: # %if.end.i # in Loop: Header=BB2_1 Depth=1 i32.eq $push11=, $7, $4 @@ -152,33 +157,36 @@ main: # @main copy_local $8=, $1 i32.const $push13=, 4 i32.lt_s $push14=, $7, $pop13 - br_if $pop14, .LBB2_1 + br_if $pop14, 0 # 0: up to label6 .LBB2_6: # %while.end25.i - block .LBB2_11 + end_loop # label7: + block i32.const $push15=, 4 i32.ne $push16=, $7, $pop15 - br_if $pop16, .LBB2_11 + br_if $pop16, 0 # 0: down to label10 # BB#7: # %land.lhs.true.i i32.load8_u $1=, 0($8) - block .LBB2_10 + block i32.const $push22=, 0 i32.eq $push23=, $1, $pop22 - br_if $pop23, .LBB2_10 + br_if $pop23, 0 # 0: down to label11 # BB#8: # %land.lhs.true.i i32.const $push17=, 58 i32.ne $push18=, $1, $pop17 - br_if $pop18, .LBB2_11 + br_if $pop18, 1 # 1: down to label10 # BB#9: # %if.then39.i i32.add $1=, $8, $3 i32.const $push19=, 0 i32.store8 $discard=, 0($8), $pop19 copy_local $8=, $1 .LBB2_10: # %if.end + end_block # label11: i32.const $push20=, main.addr i32.call $discard=, strcpy@FUNCTION, $pop20, $8 i32.const $push21=, 0 return $pop21 .LBB2_11: # %if.then + end_block # label10: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20031211-2.c.s b/test/torture-s/20031211-2.c.s index e7718df65..2ad8f46e4 100644 --- a/test/torture-s/20031211-2.c.s +++ b/test/torture-s/20031211-2.c.s @@ -21,13 +21,14 @@ foo: # @foo .param i32 .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 3 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20031216-1.c.s b/test/torture-s/20031216-1.c.s index 4edd5f285..5f076ed6a 100644 --- a/test/torture-s/20031216-1.c.s +++ b/test/torture-s/20031216-1.c.s @@ -7,13 +7,14 @@ DisplayNumber: # @DisplayNumber .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 154 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20040218-1.c.s b/test/torture-s/20040218-1.c.s index fe7a3fd8f..fed96cb3d 100644 --- a/test/torture-s/20040218-1.c.s +++ b/test/torture-s/20040218-1.c.s @@ -71,16 +71,16 @@ main: # @main i32.add $4=, $7, $4 i32.call $0=, xb@FUNCTION, $4 i32.const $1=, 16255 - block .LBB3_4 + block i32.ne $push2=, $0, $1 - br_if $pop2, .LBB3_4 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.const $5=, 8 i32.add $5=, $7, $5 i32.call $push3=, xw@FUNCTION, $5 i32.const $push4=, 81535 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB3_4 + br_if $pop5, 0 # 0: down to label0 # BB#2: # %lor.lhs.false4 i32.const $6=, 4 i32.add $6=, $7, $6 @@ -88,12 +88,13 @@ main: # @main i32.const $push7=, 65535 i32.and $push8=, $pop6, $pop7 i32.ne $push9=, $pop8, $1 - br_if $pop9, .LBB3_4 + br_if $pop9, 0 # 0: down to label0 # BB#3: # %if.end i32.const $push10=, 0 call exit@FUNCTION, $pop10 unreachable .LBB3_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/20040223-1.c.s b/test/torture-s/20040223-1.c.s index 709586e86..6a7c58fe0 100644 --- a/test/torture-s/20040223-1.c.s +++ b/test/torture-s/20040223-1.c.s @@ -7,13 +7,14 @@ a: # @a .param i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 1234 i32.ne $push1=, $1, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20040309-1.c.s b/test/torture-s/20040309-1.c.s index 3f158589f..22ed70bbd 100644 --- a/test/torture-s/20040309-1.c.s +++ b/test/torture-s/20040309-1.c.s @@ -11,18 +11,19 @@ foo: # @foo # BB#0: # %entry i32.const $1=, 16 i32.const $2=, 0 - block .LBB0_2 + block i32.shl $push0=, $0, $1 i32.shr_s $push1=, $pop0, $1 i32.const $push2=, -1 i32.gt_s $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %cond.true i32.const $push4=, 32768 i32.add $push5=, $0, $pop4 i32.const $push6=, 65535 i32.and $2=, $pop5, $pop6 .LBB0_2: # %cond.end + end_block # label0: return $2 .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/20040409-1.c.s b/test/torture-s/20040409-1.c.s index 8b59ad687..fd0ef4558 100644 --- a/test/torture-s/20040409-1.c.s +++ b/test/torture-s/20040409-1.c.s @@ -175,14 +175,15 @@ test6u: # @test6u test: # @test .param i32, i32 # BB#0: # %entry - block .LBB12_2 + block i32.const $push0=, -2147483648 i32.xor $push1=, $0, $pop0 i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB12_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end20 return .LBB12_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end12: @@ -195,14 +196,15 @@ test: # @test testu: # @testu .param i32, i32 # BB#0: # %entry - block .LBB13_2 + block i32.const $push0=, -2147483648 i32.xor $push1=, $0, $pop0 i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB13_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %if.end20 return .LBB13_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end13: diff --git a/test/torture-s/20040409-2.c.s b/test/torture-s/20040409-2.c.s index 6d4b40a59..6f47bec9d 100644 --- a/test/torture-s/20040409-2.c.s +++ b/test/torture-s/20040409-2.c.s @@ -343,14 +343,15 @@ test12u: # @test12u test: # @test .param i32, i32 # BB#0: # %entry - block .LBB24_2 + block i32.const $push0=, -2147478988 i32.xor $push1=, $0, $pop0 i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB24_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end44 return .LBB24_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end24: @@ -363,14 +364,15 @@ test: # @test testu: # @testu .param i32, i32 # BB#0: # %entry - block .LBB25_2 + block i32.const $push0=, -2147478988 i32.xor $push1=, $0, $pop0 i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB25_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %if.end44 return .LBB25_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end25: diff --git a/test/torture-s/20040409-3.c.s b/test/torture-s/20040409-3.c.s index 8caffd023..7b2ffc57d 100644 --- a/test/torture-s/20040409-3.c.s +++ b/test/torture-s/20040409-3.c.s @@ -175,14 +175,15 @@ test6u: # @test6u test: # @test .param i32, i32 # BB#0: # %entry - block .LBB12_2 + block i32.const $push0=, 2147483647 i32.xor $push1=, $0, $pop0 i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB12_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end20 return .LBB12_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end12: @@ -195,14 +196,15 @@ test: # @test testu: # @testu .param i32, i32 # BB#0: # %entry - block .LBB13_2 + block i32.const $push0=, 2147483647 i32.xor $push1=, $0, $pop0 i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB13_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %if.end20 return .LBB13_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end13: diff --git a/test/torture-s/20040805-1.c.s b/test/torture-s/20040805-1.c.s index 63981ba4a..26bcc39e1 100644 --- a/test/torture-s/20040805-1.c.s +++ b/test/torture-s/20040805-1.c.s @@ -7,16 +7,17 @@ main: # @main .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.call $push0=, foo@FUNCTION i32.const $push1=, 102 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push3=, 0 call exit@FUNCTION, $pop3 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20040820-1.c.s b/test/torture-s/20040820-1.c.s index 7c574cb5a..660172510 100644 --- a/test/torture-s/20040820-1.c.s +++ b/test/torture-s/20040820-1.c.s @@ -7,13 +7,14 @@ check: # @check .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -29,16 +30,17 @@ test: # @test # BB#0: # %entry i32.const $2=, 0 i32.const $3=, 1 - block .LBB1_2 + block i32.ne $push1=, $1, $2 i32.shl $push2=, $pop1, $3 i32.ne $push0=, $0, $2 i32.or $push3=, $pop2, $pop0 i32.ne $push4=, $pop3, $3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label1 # BB#1: # %check.exit return .LBB1_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20040917-1.c.s b/test/torture-s/20040917-1.c.s index 5bf7cdcd7..ae52ca99a 100644 --- a/test/torture-s/20040917-1.c.s +++ b/test/torture-s/20040917-1.c.s @@ -25,13 +25,14 @@ main: # @main i32.const $push0=, 10 i32.store $1=, test_var($0), $pop0 call not_inlinable@FUNCTION - block .LBB1_2 + block i32.load $push1=, test_var($0) i32.eq $push2=, $pop1, $1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20041011-1.c.s b/test/torture-s/20041011-1.c.s index 7d77b7bc0..b37260d35 100644 --- a/test/torture-s/20041011-1.c.s +++ b/test/torture-s/20041011-1.c.s @@ -9,10 +9,10 @@ t1: # @t1 .result i64 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_4 + block i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB0_4 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %while.body.preheader i32.const $3=, -1 i32.add $push0=, $0, $3 @@ -21,7 +21,7 @@ t1: # @t1 i64.shl $2=, $pop1, $pop2 .LBB0_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.const $4=, 0 i32.load $5=, gvol+4($4) i32.load $6=, gvol+8($4) @@ -84,12 +84,14 @@ t1: # @t1 i32.store $discard=, gvol+116($4), $33 i32.store $discard=, gvol+120($4), $34 i32.add $0=, $0, $3 - br_if $0, .LBB0_2 -.LBB0_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label1 +# BB#3: # %while.end.loopexit + end_loop # label2: i64.const $push3=, -2048 i64.add $push4=, $1, $pop3 i64.sub $1=, $pop4, $2 .LBB0_4: # %while.end + end_block # label0: return $1 .Lfunc_end0: .size t1, .Lfunc_end0-t1 @@ -103,17 +105,17 @@ t2: # @t2 .result i64 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 # BB#0: # %entry - block .LBB1_4 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB1_4 + br_if $pop4, 0 # 0: down to label3 # BB#1: # %while.body.preheader i32.const $3=, -1 i32.add $push0=, $0, $3 i64.extend_u/i32 $2=, $pop0 .LBB1_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label4: i32.const $4=, 0 i32.load $5=, gvol+4($4) i32.load $6=, gvol+8($4) @@ -176,13 +178,15 @@ t2: # @t2 i32.store $discard=, gvol+116($4), $33 i32.store $discard=, gvol+120($4), $34 i32.add $0=, $0, $3 - br_if $0, .LBB1_2 -.LBB1_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label4 +# BB#3: # %while.end.loopexit + end_loop # label5: i64.const $35=, -513 i64.mul $push1=, $2, $35 i64.add $push2=, $1, $pop1 i64.add $1=, $pop2, $35 .LBB1_4: # %while.end + end_block # label3: return $1 .Lfunc_end1: .size t2, .Lfunc_end1-t2 @@ -196,10 +200,10 @@ t3: # @t3 .result i64 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB2_4 + block i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB2_4 + br_if $pop6, 0 # 0: down to label6 # BB#1: # %while.body.preheader i32.const $3=, -1 i32.add $push0=, $0, $3 @@ -208,7 +212,7 @@ t3: # @t3 i64.shl $2=, $pop1, $pop2 .LBB2_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_3 + loop # label7: i32.const $4=, 0 i32.load $5=, gvol+4($4) i32.load $6=, gvol+8($4) @@ -271,12 +275,14 @@ t3: # @t3 i32.store $discard=, gvol+116($4), $33 i32.store $discard=, gvol+120($4), $34 i32.add $0=, $0, $3 - br_if $0, .LBB2_2 -.LBB2_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label7 +# BB#3: # %while.end.loopexit + end_loop # label8: i64.const $push3=, -512 i64.add $push4=, $1, $pop3 i64.sub $1=, $pop4, $2 .LBB2_4: # %while.end + end_block # label6: return $1 .Lfunc_end2: .size t3, .Lfunc_end2-t3 @@ -290,17 +296,17 @@ t4: # @t4 .result i64 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 # BB#0: # %entry - block .LBB3_4 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB3_4 + br_if $pop4, 0 # 0: down to label9 # BB#1: # %while.body.preheader i32.const $3=, -1 i32.add $push0=, $0, $3 i64.extend_u/i32 $2=, $pop0 .LBB3_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB3_3 + loop # label10: i32.const $4=, 0 i32.load $5=, gvol+4($4) i32.load $6=, gvol+8($4) @@ -363,13 +369,15 @@ t4: # @t4 i32.store $discard=, gvol+116($4), $33 i32.store $discard=, gvol+120($4), $34 i32.add $0=, $0, $3 - br_if $0, .LBB3_2 -.LBB3_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label10 +# BB#3: # %while.end.loopexit + end_loop # label11: i64.const $35=, -511 i64.mul $push1=, $2, $35 i64.add $push2=, $1, $pop1 i64.add $1=, $pop2, $35 .LBB3_4: # %while.end + end_block # label9: return $1 .Lfunc_end3: .size t4, .Lfunc_end3-t4 @@ -383,17 +391,17 @@ t5: # @t5 .result i64 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB4_4 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB4_4 + br_if $pop4, 0 # 0: down to label12 # BB#1: # %while.body.preheader i32.const $3=, -1 i32.add $push0=, $0, $3 i64.extend_u/i32 $2=, $pop0 .LBB4_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB4_3 + loop # label13: i32.const $4=, 0 i32.load $5=, gvol+4($4) i32.load $6=, gvol+8($4) @@ -456,12 +464,14 @@ t5: # @t5 i32.store $discard=, gvol+116($4), $33 i32.store $discard=, gvol+120($4), $34 i32.add $0=, $0, $3 - br_if $0, .LBB4_2 -.LBB4_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label13 +# BB#3: # %while.end.loopexit + end_loop # label14: i64.const $push1=, -1 i64.add $push2=, $1, $pop1 i64.sub $1=, $pop2, $2 .LBB4_4: # %while.end + end_block # label12: return $1 .Lfunc_end4: .size t5, .Lfunc_end4-t5 @@ -475,10 +485,10 @@ t6: # @t6 .result i64 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB5_4 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB5_4 + br_if $pop4, 0 # 0: down to label15 # BB#1: # %while.body.preheader i32.const $2=, -1 i32.add $push0=, $0, $2 @@ -486,7 +496,7 @@ t6: # @t6 i64.add $1=, $pop1, $1 .LBB5_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB5_3 + loop # label16: i32.const $3=, 0 i32.load $4=, gvol+4($3) i32.load $5=, gvol+8($3) @@ -549,11 +559,13 @@ t6: # @t6 i32.store $discard=, gvol+116($3), $32 i32.store $discard=, gvol+120($3), $33 i32.add $0=, $0, $2 - br_if $0, .LBB5_2 -.LBB5_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label16 +# BB#3: # %while.end.loopexit + end_loop # label17: i64.const $push2=, 1 i64.add $1=, $1, $pop2 .LBB5_4: # %while.end + end_block # label15: return $1 .Lfunc_end5: .size t6, .Lfunc_end5-t6 @@ -567,10 +579,10 @@ t7: # @t7 .result i64 .local i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB6_4 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB6_4 + br_if $pop4, 0 # 0: down to label18 # BB#1: # %while.body.preheader i32.const $2=, -1 i64.const $3=, 511 @@ -580,7 +592,7 @@ t7: # @t7 i64.add $1=, $pop2, $1 .LBB6_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB6_3 + loop # label19: i32.const $4=, 0 i32.load $5=, gvol+4($4) i32.load $6=, gvol+8($4) @@ -643,10 +655,12 @@ t7: # @t7 i32.store $discard=, gvol+116($4), $33 i32.store $discard=, gvol+120($4), $34 i32.add $0=, $0, $2 - br_if $0, .LBB6_2 -.LBB6_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label19 +# BB#3: # %while.end.loopexit + end_loop # label20: i64.add $1=, $1, $3 .LBB6_4: # %while.end + end_block # label18: return $1 .Lfunc_end6: .size t7, .Lfunc_end6-t7 @@ -660,10 +674,10 @@ t8: # @t8 .result i64 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB7_4 + block i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB7_4 + br_if $pop6, 0 # 0: down to label21 # BB#1: # %while.body.preheader i32.const $2=, -1 i32.add $push0=, $0, $2 @@ -673,7 +687,7 @@ t8: # @t8 i64.add $1=, $pop3, $1 .LBB7_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB7_3 + loop # label22: i32.const $3=, 0 i32.load $4=, gvol+4($3) i32.load $5=, gvol+8($3) @@ -736,11 +750,13 @@ t8: # @t8 i32.store $discard=, gvol+116($3), $32 i32.store $discard=, gvol+120($3), $33 i32.add $0=, $0, $2 - br_if $0, .LBB7_2 -.LBB7_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label22 +# BB#3: # %while.end.loopexit + end_loop # label23: i64.const $push4=, 512 i64.add $1=, $1, $pop4 .LBB7_4: # %while.end + end_block # label21: return $1 .Lfunc_end7: .size t8, .Lfunc_end7-t8 @@ -754,10 +770,10 @@ t9: # @t9 .result i64 .local i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB8_4 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB8_4 + br_if $pop4, 0 # 0: down to label24 # BB#1: # %while.body.preheader i32.const $2=, -1 i64.const $3=, 513 @@ -767,7 +783,7 @@ t9: # @t9 i64.add $1=, $pop2, $1 .LBB8_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB8_3 + loop # label25: i32.const $4=, 0 i32.load $5=, gvol+4($4) i32.load $6=, gvol+8($4) @@ -830,10 +846,12 @@ t9: # @t9 i32.store $discard=, gvol+116($4), $33 i32.store $discard=, gvol+120($4), $34 i32.add $0=, $0, $2 - br_if $0, .LBB8_2 -.LBB8_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label25 +# BB#3: # %while.end.loopexit + end_loop # label26: i64.add $1=, $1, $3 .LBB8_4: # %while.end + end_block # label24: return $1 .Lfunc_end8: .size t9, .Lfunc_end8-t9 @@ -847,10 +865,10 @@ t10: # @t10 .result i64 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB9_4 + block i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB9_4 + br_if $pop6, 0 # 0: down to label27 # BB#1: # %while.body.lr.ph i32.const $3=, 0 i32.const $4=, -1 @@ -862,7 +880,7 @@ t10: # @t10 i64.mul $2=, $pop0, $pop4 .LBB9_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB9_3 + loop # label28: i32.load $5=, gvol+4($3) i32.load $6=, gvol+8($3) i32.load $7=, gvol+12($3) @@ -924,10 +942,12 @@ t10: # @t10 i32.store $discard=, gvol+116($3), $33 i32.store $discard=, gvol+120($3), $34 i32.add $0=, $0, $4 - br_if $0, .LBB9_2 -.LBB9_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label28 +# BB#3: # %while.end.loopexit + end_loop # label29: i64.add $1=, $2, $1 .LBB9_4: # %while.end + end_block # label27: return $1 .Lfunc_end9: .size t10, .Lfunc_end9-t10 @@ -941,10 +961,10 @@ t11: # @t11 .result i64 .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB10_4 + block i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB10_4 + br_if $pop6, 0 # 0: down to label30 # BB#1: # %while.body.lr.ph i32.const $3=, 0 i32.const $4=, -1 @@ -956,7 +976,7 @@ t11: # @t11 i64.mul $2=, $pop0, $pop4 .LBB10_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB10_3 + loop # label31: i32.load $5=, gvol+4($3) i32.load $6=, gvol+8($3) i32.load $7=, gvol+12($3) @@ -1018,10 +1038,12 @@ t11: # @t11 i32.store $discard=, gvol+116($3), $33 i32.store $discard=, gvol+120($3), $34 i32.add $0=, $0, $4 - br_if $0, .LBB10_2 -.LBB10_3: # %while.end.loopexit + br_if $0, 0 # 0: up to label31 +# BB#3: # %while.end.loopexit + end_loop # label32: i64.add $1=, $2, $1 .LBB10_4: # %while.end + end_block # label30: return $1 .Lfunc_end10: .size t11, .Lfunc_end10-t11 @@ -1051,224 +1073,247 @@ main: # @main i64.const $2=, -1 i32.const $0=, 0 i32.const $3=, 3 - block .LBB12_46 + block i64.const $push0=, 100 i64.store $1=, gull($0), $pop0 i64.call $push1=, t1@FUNCTION, $3, $2 i64.const $push2=, -6145 i64.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB12_46 + br_if $pop3, 0 # 0: down to label33 # BB#1: # %if.end i64.const $4=, 4294967295 - block .LBB12_45 + block i64.call $push4=, t1@FUNCTION, $3, $4 i64.const $push5=, 4294961151 i64.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB12_45 + br_if $pop6, 0 # 0: down to label34 # BB#2: # %if.end4 - block .LBB12_44 + block i64.call $push7=, t2@FUNCTION, $3, $2 i64.const $push8=, -1540 i64.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB12_44 + br_if $pop9, 0 # 0: down to label35 # BB#3: # %if.end8 - block .LBB12_43 + block i64.call $push10=, t2@FUNCTION, $3, $4 i64.const $push11=, 4294965756 i64.ne $push12=, $pop10, $pop11 - br_if $pop12, .LBB12_43 + br_if $pop12, 0 # 0: down to label36 # BB#4: # %if.end12 - block .LBB12_42 + block i64.call $push13=, t3@FUNCTION, $3, $2 i64.const $push14=, -1537 i64.ne $push15=, $pop13, $pop14 - br_if $pop15, .LBB12_42 + br_if $pop15, 0 # 0: down to label37 # BB#5: # %if.end16 - block .LBB12_41 + block i64.call $push16=, t3@FUNCTION, $3, $4 i64.const $push17=, 4294965759 i64.ne $push18=, $pop16, $pop17 - br_if $pop18, .LBB12_41 + br_if $pop18, 0 # 0: down to label38 # BB#6: # %if.end20 - block .LBB12_40 + block i64.call $push19=, t4@FUNCTION, $3, $2 i64.const $push20=, -1534 i64.ne $push21=, $pop19, $pop20 - br_if $pop21, .LBB12_40 + br_if $pop21, 0 # 0: down to label39 # BB#7: # %if.end24 - block .LBB12_39 + block i64.call $push22=, t4@FUNCTION, $3, $4 i64.const $push23=, 4294965762 i64.ne $push24=, $pop22, $pop23 - br_if $pop24, .LBB12_39 + br_if $pop24, 0 # 0: down to label40 # BB#8: # %if.end28 - block .LBB12_38 + block i64.call $push25=, t5@FUNCTION, $3, $2 i64.const $push26=, -4 i64.ne $push27=, $pop25, $pop26 - br_if $pop27, .LBB12_38 + br_if $pop27, 0 # 0: down to label41 # BB#9: # %if.end32 - block .LBB12_37 + block i64.call $push28=, t5@FUNCTION, $3, $4 i64.const $push29=, 4294967292 i64.ne $push30=, $pop28, $pop29 - br_if $pop30, .LBB12_37 + br_if $pop30, 0 # 0: down to label42 # BB#10: # %if.end36 - block .LBB12_36 + block i64.call $push31=, t6@FUNCTION, $3, $2 i64.const $push32=, 2 i64.ne $push33=, $pop31, $pop32 - br_if $pop33, .LBB12_36 + br_if $pop33, 0 # 0: down to label43 # BB#11: # %if.end40 - block .LBB12_35 + block i64.call $push34=, t6@FUNCTION, $3, $4 i64.const $push35=, 4294967298 i64.ne $push36=, $pop34, $pop35 - br_if $pop36, .LBB12_35 + br_if $pop36, 0 # 0: down to label44 # BB#12: # %if.end44 - block .LBB12_34 + block i64.call $push37=, t7@FUNCTION, $3, $2 i64.const $push38=, 1532 i64.ne $push39=, $pop37, $pop38 - br_if $pop39, .LBB12_34 + br_if $pop39, 0 # 0: down to label45 # BB#13: # %if.end48 - block .LBB12_33 + block i64.call $push40=, t7@FUNCTION, $3, $4 i64.const $push41=, 4294968828 i64.ne $push42=, $pop40, $pop41 - br_if $pop42, .LBB12_33 + br_if $pop42, 0 # 0: down to label46 # BB#14: # %if.end52 - block .LBB12_32 + block i64.call $push43=, t8@FUNCTION, $3, $2 i64.const $push44=, 1535 i64.ne $push45=, $pop43, $pop44 - br_if $pop45, .LBB12_32 + br_if $pop45, 0 # 0: down to label47 # BB#15: # %if.end56 - block .LBB12_31 + block i64.call $push46=, t8@FUNCTION, $3, $4 i64.const $push47=, 4294968831 i64.ne $push48=, $pop46, $pop47 - br_if $pop48, .LBB12_31 + br_if $pop48, 0 # 0: down to label48 # BB#16: # %if.end60 - block .LBB12_30 + block i64.call $push49=, t9@FUNCTION, $3, $2 i64.const $push50=, 1538 i64.ne $push51=, $pop49, $pop50 - br_if $pop51, .LBB12_30 + br_if $pop51, 0 # 0: down to label49 # BB#17: # %if.end64 - block .LBB12_29 + block i64.call $push52=, t9@FUNCTION, $3, $4 i64.const $push53=, 4294968834 i64.ne $push54=, $pop52, $pop53 - br_if $pop54, .LBB12_29 + br_if $pop54, 0 # 0: down to label50 # BB#18: # %if.end68 i64.call $5=, t10@FUNCTION, $3, $2 i64.const $6=, 3 - block .LBB12_28 + block i64.load $push55=, gull($0) i64.mul $push56=, $pop55, $6 i64.add $push57=, $pop56, $2 i64.ne $push58=, $5, $pop57 - br_if $pop58, .LBB12_28 + br_if $pop58, 0 # 0: down to label51 # BB#19: # %if.end72 i64.call $5=, t10@FUNCTION, $3, $4 - block .LBB12_27 + block i64.load $push59=, gull($0) i64.mul $push60=, $pop59, $6 i64.add $push61=, $pop60, $4 i64.ne $push62=, $5, $pop61 - br_if $pop62, .LBB12_27 + br_if $pop62, 0 # 0: down to label52 # BB#20: # %if.end77 i64.call $5=, t11@FUNCTION, $3, $2 i64.const $6=, -3 - block .LBB12_26 + block i64.load $push63=, gull($0) i64.mul $push64=, $pop63, $6 i64.add $push65=, $pop64, $2 i64.ne $push66=, $5, $pop65 - br_if $pop66, .LBB12_26 + br_if $pop66, 0 # 0: down to label53 # BB#21: # %if.end84 i64.call $5=, t11@FUNCTION, $3, $4 i64.load $2=, gull($0) - block .LBB12_25 + block i64.mul $push67=, $2, $6 i64.add $push68=, $pop67, $4 i64.ne $push69=, $5, $pop68 - br_if $pop69, .LBB12_25 + br_if $pop69, 0 # 0: down to label54 # BB#22: # %if.end91 - block .LBB12_24 + block i64.ne $push70=, $2, $1 - br_if $pop70, .LBB12_24 + br_if $pop70, 0 # 0: down to label55 # BB#23: # %if.end95 call exit@FUNCTION, $0 unreachable .LBB12_24: # %if.then94 + end_block # label55: call abort@FUNCTION unreachable .LBB12_25: # %if.then90 + end_block # label54: call abort@FUNCTION unreachable .LBB12_26: # %if.then83 + end_block # label53: call abort@FUNCTION unreachable .LBB12_27: # %if.then76 + end_block # label52: call abort@FUNCTION unreachable .LBB12_28: # %if.then71 + end_block # label51: call abort@FUNCTION unreachable .LBB12_29: # %if.then67 + end_block # label50: call abort@FUNCTION unreachable .LBB12_30: # %if.then63 + end_block # label49: call abort@FUNCTION unreachable .LBB12_31: # %if.then59 + end_block # label48: call abort@FUNCTION unreachable .LBB12_32: # %if.then55 + end_block # label47: call abort@FUNCTION unreachable .LBB12_33: # %if.then51 + end_block # label46: call abort@FUNCTION unreachable .LBB12_34: # %if.then47 + end_block # label45: call abort@FUNCTION unreachable .LBB12_35: # %if.then43 + end_block # label44: call abort@FUNCTION unreachable .LBB12_36: # %if.then39 + end_block # label43: call abort@FUNCTION unreachable .LBB12_37: # %if.then35 + end_block # label42: call abort@FUNCTION unreachable .LBB12_38: # %if.then31 + end_block # label41: call abort@FUNCTION unreachable .LBB12_39: # %if.then27 + end_block # label40: call abort@FUNCTION unreachable .LBB12_40: # %if.then23 + end_block # label39: call abort@FUNCTION unreachable .LBB12_41: # %if.then19 + end_block # label38: call abort@FUNCTION unreachable .LBB12_42: # %if.then15 + end_block # label37: call abort@FUNCTION unreachable .LBB12_43: # %if.then11 + end_block # label36: call abort@FUNCTION unreachable .LBB12_44: # %if.then7 + end_block # label35: call abort@FUNCTION unreachable .LBB12_45: # %if.then3 + end_block # label34: call abort@FUNCTION unreachable .LBB12_46: # %if.then + end_block # label33: call abort@FUNCTION unreachable .Lfunc_end12: diff --git a/test/torture-s/20041124-1.c.s b/test/torture-s/20041124-1.c.s index 2fab225dc..103f6f91f 100644 --- a/test/torture-s/20041124-1.c.s +++ b/test/torture-s/20041124-1.c.s @@ -40,11 +40,11 @@ main: # @main i32.const $0=, 0 i32.load $1=, gs($0) i32.const $2=, 65535 - block .LBB1_3 + block i32.load16_u $push2=, 8($7) i32.and $push5=, $1, $2 i32.ne $push7=, $pop2, $pop5 - br_if $pop7, .LBB1_3 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %entry i32.const $push3=, 2 i32.const $6=, 8 @@ -55,11 +55,12 @@ main: # @main i32.const $push6=, 16 i32.shr_u $push1=, $1, $pop6 i32.ne $push9=, $pop8, $pop1 - br_if $pop9, .LBB1_3 + br_if $pop9, 0 # 0: down to label0 # BB#2: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20041126-1.c.s b/test/torture-s/20041126-1.c.s index d005a6371..a5cee07ae 100644 --- a/test/torture-s/20041126-1.c.s +++ b/test/torture-s/20041126-1.c.s @@ -8,29 +8,29 @@ check: # @check .param i32 .local i32, i32, i32 # BB#0: # %entry - block .LBB0_9 + block i32.load $push0=, 0($0) - br_if $pop0, .LBB0_9 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %for.inc i32.load $push1=, 4($0) - br_if $pop1, .LBB0_9 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %for.inc.1 i32.load $push2=, 8($0) - br_if $pop2, .LBB0_9 + br_if $pop2, 0 # 0: down to label0 # BB#3: # %for.inc.2 i32.load $push3=, 12($0) - br_if $pop3, .LBB0_9 + br_if $pop3, 0 # 0: down to label0 # BB#4: # %for.inc.3 i32.const $3=, 5 i32.load $push4=, 16($0) - br_if $pop4, .LBB0_9 + br_if $pop4, 0 # 0: down to label0 .LBB0_5: # %for.cond1 # =>This Inner Loop Header: Depth=1 - block .LBB0_8 - loop .LBB0_7 + block + loop # label2: i32.const $push5=, 9 i32.gt_s $push6=, $3, $pop5 - br_if $pop6, .LBB0_8 + br_if $pop6, 2 # 2: down to label1 # BB#6: # %for.body3 # in Loop: Header=BB0_5 Depth=1 i32.const $push7=, 2 @@ -41,13 +41,16 @@ check: # @check i32.add $2=, $3, $pop10 copy_local $3=, $1 i32.eq $push11=, $1, $2 - br_if $pop11, .LBB0_5 -.LBB0_7: # %if.then6 + br_if $pop11, 0 # 0: up to label2 +# BB#7: # %if.then6 + end_loop # label3: call abort@FUNCTION unreachable .LBB0_8: # %for.end10 + end_block # label1: return .LBB0_9: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -110,11 +113,11 @@ main: # @main i32.const $3=, 5 .LBB1_1: # %for.cond1.i # =>This Inner Loop Header: Depth=1 - block .LBB1_4 - loop .LBB1_3 + block + loop # label5: i32.const $push18=, 9 i32.gt_s $push19=, $3, $pop18 - br_if $pop19, .LBB1_4 + br_if $pop19, 2 # 2: down to label4 # BB#2: # %for.body3.i # in Loop: Header=BB1_1 Depth=1 i32.const $push20=, 2 @@ -127,11 +130,13 @@ main: # @main i32.add $2=, $3, $pop23 copy_local $3=, $0 i32.eq $push24=, $0, $2 - br_if $pop24, .LBB1_1 -.LBB1_3: # %if.then6.i + br_if $pop24, 0 # 0: up to label5 +# BB#3: # %if.then6.i + end_loop # label6: call abort@FUNCTION unreachable .LBB1_4: # %check.exit + end_block # label4: i32.const $6=, 48 i32.add $14=, $14, $6 i32.const $6=, __stack_pointer diff --git a/test/torture-s/20041210-1.c.s b/test/torture-s/20041210-1.c.s index 12a793778..e88c075c3 100644 --- a/test/torture-s/20041210-1.c.s +++ b/test/torture-s/20041210-1.c.s @@ -11,12 +11,12 @@ main: # @main i32.const $0=, 0 i64.load $1=, x($0) i64.const $2=, 32 - block .LBB0_3 + block i32.wrap/i64 $push0=, $1 i64.shr_u $push1=, $1, $2 i32.wrap/i64 $push2=, $pop1 i32.ge_s $push3=, $pop0, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.then i64.load $1=, x+8($0) i64.shr_u $push4=, $1, $2 @@ -24,11 +24,12 @@ main: # @main i32.wrap/i64 $push6=, $pop5 i32.const $push7=, -1 i32.gt_s $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_3 + br_if $pop8, 0 # 0: down to label0 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB0_3: # %if.end3 + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end0: diff --git a/test/torture-s/20041213-2.c.s b/test/torture-s/20041213-2.c.s index a2eac5f50..b527caf4f 100644 --- a/test/torture-s/20041213-2.c.s +++ b/test/torture-s/20041213-2.c.s @@ -10,40 +10,44 @@ foo: # @foo # BB#0: # %entry i32.const $3=, 1 i32.const $2=, 0 - block .LBB0_6 + block i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB0_6 + br_if $pop6, 0 # 0: down to label0 .LBB0_1: # %for.cond1.preheader # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 - block .LBB0_4 - block .LBB0_3 + loop # label1: + block + block i32.ge_s $push0=, $2, $3 - br_if $pop0, .LBB0_3 + br_if $pop0, 0 # 0: down to label4 # BB#2: # %for.end.thread # in Loop: Header=BB0_1 Depth=1 i32.const $push2=, 1 i32.shl $push3=, $3, $pop2 i32.sub $1=, $pop3, $2 - br .LBB0_4 + br 1 # 1: down to label3 .LBB0_3: # %for.end # in Loop: Header=BB0_1 Depth=1 + end_block # label4: copy_local $1=, $3 i32.ne $push1=, $2, $3 - br_if $pop1, .LBB0_5 + br_if $pop1, 2 # 2: down to label2 .LBB0_4: # %for.cond # in Loop: Header=BB0_1 Depth=1 + end_block # label3: i32.const $push4=, -1 i32.add $0=, $0, $pop4 copy_local $2=, $3 copy_local $3=, $1 - br_if $0, .LBB0_1 - br .LBB0_6 + br_if $0, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB0_5: # %if.then + end_loop # label2: call abort@FUNCTION unreachable .LBB0_6: # %for.end7 + end_block # label0: return .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/20041218-1.c.s b/test/torture-s/20041218-1.c.s index e71707961..65d26e552 100644 --- a/test/torture-s/20041218-1.c.s +++ b/test/torture-s/20041218-1.c.s @@ -52,31 +52,32 @@ check: # @check .param i32, i32 .result i32 # BB#0: # %entry - block .LBB3_6 + block i32.load $push0=, 0($1) - br_if $pop0, .LBB3_6 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.load $push1=, 4($1) - br_if $pop1, .LBB3_6 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %lor.lhs.false2 i32.const $push2=, 8 i32.add $push3=, $1, $pop2 i32.load $push4=, 0($pop3) - br_if $pop4, .LBB3_6 + br_if $pop4, 0 # 0: down to label0 # BB#3: # %lor.lhs.false5 i32.const $push5=, 12 i32.add $push6=, $1, $pop5 i32.load $push7=, 0($pop6) - br_if $pop7, .LBB3_6 + br_if $pop7, 0 # 0: down to label0 # BB#4: # %lor.lhs.false8 i32.const $push8=, 16 i32.add $push9=, $1, $pop8 i32.load8_u $push10=, 0($pop9) - br_if $pop10, .LBB3_6 + br_if $pop10, 0 # 0: down to label0 # BB#5: # %if.end i32.const $push11=, 1 return $pop11 .LBB3_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: @@ -91,18 +92,18 @@ foo: # @foo .result i32 .local i32 # BB#0: # %for.cond - block .LBB4_4 - block .LBB4_3 + block + block i32.const $push0=, 0 i32.store $3=, 0($2), $pop0 i32.const $push8=, 0 i32.eq $push9=, $1, $pop8 - br_if $pop9, .LBB4_3 + br_if $pop9, 0 # 0: down to label2 # BB#1: # %for.body i32.const $2=, 1 i32.load $push1=, 0($0) i32.ne $push2=, $pop1, $2 - br_if $pop2, .LBB4_4 + br_if $pop2, 1 # 1: down to label1 # BB#2: # %sw.bb i64.const $push3=, 6148914691236517205 i64.store $push4=, baz.v+16($3), $pop3 @@ -123,8 +124,10 @@ foo: # @foo i32.call $discard=, dummy2@FUNCTION, $2, $2 unreachable .LBB4_3: # %for.end + end_block # label2: i32.store $2=, 0($2), $3 .LBB4_4: # %cleanup2 + end_block # label1: return $2 .Lfunc_end4: .size foo, .Lfunc_end4-foo diff --git a/test/torture-s/20050104-1.c.s b/test/torture-s/20050104-1.c.s index bc76aa672..9e4e533b4 100644 --- a/test/torture-s/20050104-1.c.s +++ b/test/torture-s/20050104-1.c.s @@ -7,13 +7,14 @@ foo: # @foo .param i64 # BB#0: # %entry - block .LBB0_2 + block i64.const $push0=, 10 i64.gt_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %lor.lhs.false return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20050106-1.c.s b/test/torture-s/20050106-1.c.s index 94008664c..01a5273cd 100644 --- a/test/torture-s/20050106-1.c.s +++ b/test/torture-s/20050106-1.c.s @@ -9,14 +9,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load16_s $push0=, u($0) i32.const $push1=, -1 i32.le_s $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20050124-1.c.s b/test/torture-s/20050124-1.c.s index b5e2d2793..0100aea2b 100644 --- a/test/torture-s/20050124-1.c.s +++ b/test/torture-s/20050124-1.c.s @@ -9,27 +9,29 @@ foo: # @foo .result i32 .local i32 # BB#0: # %entry - block .LBB0_4 + block i32.const $push0=, 1 i32.add $2=, $0, $pop0 i32.const $push7=, 0 i32.eq $push8=, $1, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label0 # BB#1: # %if.then - block .LBB0_3 + block i32.const $push1=, 0 i32.lt_s $push2=, $0, $pop1 - br_if $pop2, .LBB0_3 + br_if $pop2, 0 # 0: down to label1 # BB#2: # %if.then1 i32.const $push6=, 2 i32.add $2=, $0, $pop6 - br .LBB0_4 + br 1 # 1: down to label0 .LBB0_3: # %if.else + end_block # label1: i32.const $push3=, -1 i32.lt_s $push4=, $0, $pop3 i32.select $push5=, $pop4, $0, $2 return $pop5 .LBB0_4: # %if.end5 + end_block # label0: return $2 .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/20050125-1.c.s b/test/torture-s/20050125-1.c.s index 2086ddb00..28f80ae0a 100644 --- a/test/torture-s/20050125-1.c.s +++ b/test/torture-s/20050125-1.c.s @@ -23,10 +23,10 @@ bracket_empty: # @bracket_empty .local i32 # BB#0: # %entry i32.load $1=, 0($0) - block .LBB1_3 + block i32.load $push0=, 4($0) i32.ge_u $push1=, $1, $pop0 - br_if $pop1, .LBB1_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %land.lhs.true i32.const $push2=, 1 i32.add $push3=, $1, $pop2 @@ -34,10 +34,11 @@ bracket_empty: # @bracket_empty i32.load8_u $push4=, 0($1) i32.const $push5=, 93 i32.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB1_3 + br_if $pop6, 0 # 0: down to label0 # BB#2: # %if.end return .LBB1_3: # %lor.lhs.false + end_block # label0: i32.const $push7=, 7 i32.store $discard=, 8($0), $pop7 return diff --git a/test/torture-s/20050203-1.c.s b/test/torture-s/20050203-1.c.s index ecd372fec..55dfcc9c0 100644 --- a/test/torture-s/20050203-1.c.s +++ b/test/torture-s/20050203-1.c.s @@ -19,15 +19,16 @@ main: # @main call foo@FUNCTION, $3 i32.load8_s $0=, 15($4) call bar@FUNCTION - block .LBB0_2 + block i32.const $push0=, -1 i32.gt_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push2=, 0 call exit@FUNCTION, $pop2 unreachable .LBB0_2: # %if.else + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20050215-1.c.s b/test/torture-s/20050215-1.c.s index 91aeb29f1..47488ca8f 100644 --- a/test/torture-s/20050215-1.c.s +++ b/test/torture-s/20050215-1.c.s @@ -9,20 +9,21 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $0=, v - block .LBB0_4 - block .LBB0_3 - block .LBB0_2 + block + block + block i32.const $push0=, 4 i32.and $push1=, $0, $pop0 i32.const $push12=, 0 i32.eq $push13=, $pop1, $pop12 - br_if $pop13, .LBB0_2 + br_if $pop13, 0 # 0: down to label2 # BB#1: # %if.then i32.const $push9=, 7 i32.and $push10=, $0, $pop9 - br_if $pop10, .LBB0_3 - br .LBB0_4 + br_if $pop10, 1 # 1: down to label1 + br 2 # 2: down to label0 .LBB0_2: # %lor.lhs.false + end_block # label2: i32.const $1=, 0 i32.const $push5=, 1 i32.and $push6=, $0, $pop5 @@ -33,11 +34,13 @@ main: # @main i32.or $push8=, $pop7, $pop4 i32.const $push14=, 0 i32.eq $push15=, $pop8, $pop14 - br_if $pop15, .LBB0_4 + br_if $pop15, 1 # 1: down to label0 .LBB0_3: # %if.end3 + end_block # label1: i32.const $push11=, 0 return $pop11 .LBB0_4: # %if.then2 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20050218-1.c.s b/test/torture-s/20050218-1.c.s index 3a70b252b..b976cb671 100644 --- a/test/torture-s/20050218-1.c.s +++ b/test/torture-s/20050218-1.c.s @@ -10,44 +10,47 @@ foo: # @foo .local i32, i32, i32, i32, i32, i32 # BB#0: # %entry i32.const $4=, 0 - block .LBB0_6 + block i32.const $push5=, 0 i32.eq $push6=, $2, $pop5 - br_if $pop6, .LBB0_6 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %for.body.lr.ph i32.const $7=, 0 i32.const $6=, a copy_local $8=, $7 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_6 + loop # label1: i32.load $4=, 0($6) i32.call $3=, strlen@FUNCTION, $4 i32.add $push0=, $0, $7 i32.call $5=, strncmp@FUNCTION, $pop0, $4, $3 i32.const $4=, 2 - br_if $5, .LBB0_6 + br_if $5, 1 # 1: down to label2 # BB#3: # %if.end # in Loop: Header=BB0_2 Depth=1 i32.add $7=, $3, $7 - block .LBB0_5 + block i32.const $push7=, 0 i32.eq $push8=, $1, $pop7 - br_if $pop8, .LBB0_5 + br_if $pop8, 0 # 0: down to label3 # BB#4: # %if.then6 # in Loop: Header=BB0_2 Depth=1 i32.call $push1=, strlen@FUNCTION, $1 i32.add $7=, $pop1, $7 .LBB0_5: # %for.inc # in Loop: Header=BB0_2 Depth=1 + end_block # label3: i32.const $push2=, 1 i32.add $8=, $8, $pop2 i32.const $push3=, 4 i32.add $6=, $6, $pop3 i32.const $4=, 0 i32.lt_u $push4=, $8, $2 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: up to label1 .LBB0_6: # %cleanup + end_loop # label2: + end_block # label0: return $4 .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -64,25 +67,26 @@ main: # @main i32.load $3=, a($2) i32.call $0=, strlen@FUNCTION, $3 i32.const $4=, .L.str.4 - block .LBB1_4 + block i32.call $push0=, strncmp@FUNCTION, $4, $3, $0 - br_if $pop0, .LBB1_4 + br_if $pop0, 0 # 0: down to label4 # BB#1: # %if.end.i i32.load $3=, a+4($2) i32.call $1=, strlen@FUNCTION, $3 i32.add $push1=, $4, $0 i32.call $push2=, strncmp@FUNCTION, $pop1, $3, $1 - br_if $pop2, .LBB1_4 + br_if $pop2, 0 # 0: down to label4 # BB#2: # %if.end.i.1 i32.load $3=, a+8($2) i32.add $push3=, $1, $0 i32.add $push4=, $4, $pop3 i32.call $push5=, strlen@FUNCTION, $3 i32.call $push6=, strncmp@FUNCTION, $pop4, $3, $pop5 - br_if $pop6, .LBB1_4 + br_if $pop6, 0 # 0: down to label4 # BB#3: # %if.end.i.2 return $2 .LBB1_4: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20050224-1.c.s b/test/torture-s/20050224-1.c.s index c45c37cad..676e93d3a 100644 --- a/test/torture-s/20050224-1.c.s +++ b/test/torture-s/20050224-1.c.s @@ -7,21 +7,22 @@ foo: # @foo .param i32, i32, i32 # BB#0: # %entry - block .LBB0_4 + block i32.const $push0=, 245 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.const $push2=, 36 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %entry i32.const $push4=, 444 i32.ne $push5=, $2, $pop4 - br_if $pop5, .LBB0_4 + br_if $pop5, 0 # 0: down to label0 # BB#3: # %if.end return .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -38,9 +39,9 @@ main: # @main i32.const $8=, 0 i32.load $5=, a($8) i32.load $0=, b($8) - block .LBB1_13 + block i32.ge_u $push0=, $5, $0 - br_if $pop0, .LBB1_13 + br_if $pop0, 0 # 0: down to label1 # BB#1: # %for.body.lr.ph i32.load $1=, c($8) i32.load $2=, d($8) @@ -50,56 +51,61 @@ main: # @main copy_local $6=, $8 .LBB1_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_9 - block .LBB1_8 - block .LBB1_4 + loop # label2: + block + block i32.ge_u $push1=, $5, $1 - br_if $pop1, .LBB1_4 + br_if $pop1, 0 # 0: down to label5 # BB#3: # %if.then # in Loop: Header=BB1_2 Depth=1 i32.const $push6=, 1 i32.add $6=, $6, $pop6 - br .LBB1_8 + br 1 # 1: down to label4 .LBB1_4: # %if.else # in Loop: Header=BB1_2 Depth=1 - block .LBB1_7 + end_block # label5: + block i32.lt_u $push2=, $5, $2 - br_if $pop2, .LBB1_7 + br_if $pop2, 0 # 0: down to label6 # BB#5: # %if.else # in Loop: Header=BB1_2 Depth=1 i32.ge_u $push3=, $5, $3 - br_if $pop3, .LBB1_7 + br_if $pop3, 0 # 0: down to label6 # BB#6: # %if.then4 # in Loop: Header=BB1_2 Depth=1 i32.const $push5=, 1 i32.add $8=, $8, $pop5 - br .LBB1_8 + br 1 # 1: down to label4 .LBB1_7: # %if.else6 # in Loop: Header=BB1_2 Depth=1 + end_block # label6: i32.lt_u $push4=, $5, $4 i32.add $7=, $pop4, $7 .LBB1_8: # %for.inc # in Loop: Header=BB1_2 Depth=1 + end_block # label4: i32.const $push7=, 4096 i32.add $5=, $5, $pop7 i32.lt_u $push8=, $5, $0 - br_if $pop8, .LBB1_2 -.LBB1_9: # %for.end + br_if $pop8, 0 # 0: up to label2 +# BB#9: # %for.end + end_loop # label3: i32.const $push9=, 444 i32.ne $push10=, $6, $pop9 - br_if $pop10, .LBB1_13 + br_if $pop10, 0 # 0: down to label1 # BB#10: # %for.end i32.const $push11=, 245 i32.ne $push12=, $7, $pop11 - br_if $pop12, .LBB1_13 + br_if $pop12, 0 # 0: down to label1 # BB#11: # %for.end i32.const $push13=, 36 i32.ne $push14=, $8, $pop13 - br_if $pop14, .LBB1_13 + br_if $pop14, 0 # 0: down to label1 # BB#12: # %foo.exit i32.const $push15=, 0 return $pop15 .LBB1_13: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20050410-1.c.s b/test/torture-s/20050410-1.c.s index 83ae1f1e7..5d8338602 100644 --- a/test/torture-s/20050410-1.c.s +++ b/test/torture-s/20050410-1.c.s @@ -28,16 +28,17 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.call $push0=, foo@FUNCTION i32.const $push1=, 95 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push3=, 0 call exit@FUNCTION, $pop3 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20050502-1.c.s b/test/torture-s/20050502-1.c.s index 8af692161..0fb7f251a 100644 --- a/test/torture-s/20050502-1.c.s +++ b/test/torture-s/20050502-1.c.s @@ -47,23 +47,23 @@ foo: # @foo i32.and $10=, $9, $5 i32.const $6=, 39 i32.const $11=, 1 - block .LBB2_7 + block i32.eq $push2=, $10, $6 i32.and $push3=, $pop2, $2 - br_if $pop3, .LBB2_7 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %entry i32.const $7=, 34 i32.eq $push4=, $10, $7 i32.and $push0=, $pop4, $3 - br_if $pop0, .LBB2_7 + br_if $pop0, 0 # 0: down to label0 # BB#2: # %if.end14.lr.ph i32.or $4=, $2, $3 i32.const $10=, 1 .LBB2_3: # %if.end14 # =>This Inner Loop Header: Depth=1 - loop .LBB2_7 - block .LBB2_5 - br_if $4, .LBB2_5 + loop # label1: + block + br_if $4, 0 # 0: down to label3 # BB#4: # %land.lhs.true18 # in Loop: Header=BB2_3 Depth=1 i32.const $8=, 24 @@ -73,9 +73,10 @@ foo: # @foo copy_local $11=, $10 i32.const $push15=, 0 i32.eq $push16=, $8, $pop15 - br_if $pop16, .LBB2_7 + br_if $pop16, 2 # 2: down to label2 .LBB2_5: # %while.body.backedge # in Loop: Header=BB2_3 Depth=1 + end_block # label3: i32.add $push9=, $1, $10 i32.store8 $discard=, 0($pop9), $9 i32.const $push8=, 1 @@ -84,7 +85,7 @@ foo: # @foo i32.and $8=, $9, $5 i32.eq $push10=, $8, $6 i32.and $push11=, $pop10, $2 - br_if $pop11, .LBB2_7 + br_if $pop11, 1 # 1: down to label2 # BB#6: # %while.body.backedge # in Loop: Header=BB2_3 Depth=1 copy_local $10=, $11 @@ -92,8 +93,10 @@ foo: # @foo i32.and $push7=, $pop12, $3 i32.const $push17=, 0 i32.eq $push18=, $pop7, $pop17 - br_if $pop18, .LBB2_3 + br_if $pop18, 0 # 0: up to label1 .LBB2_7: # %while.end + end_loop # label2: + end_block # label0: i32.add $push13=, $1, $11 i32.const $push14=, 0 i32.store8 $discard=, 0($pop13), $pop14 @@ -124,17 +127,17 @@ main: # @main i32.const $6=, 16 i32.add $6=, $20, $6 call foo@FUNCTION, $5, $6, $1, $0 - block .LBB3_15 + block i32.load $push1=, 12($20) i32.const $push2=, .L.str.1 i32.call $push3=, strcmp@FUNCTION, $pop1, $pop2 - br_if $pop3, .LBB3_15 + br_if $pop3, 0 # 0: down to label4 # BB#1: # %lor.lhs.false i32.const $push4=, .L.str.2 i32.const $7=, 16 i32.add $7=, $20, $7 i32.call $push5=, strcmp@FUNCTION, $7, $pop4 - br_if $pop5, .LBB3_15 + br_if $pop5, 0 # 0: down to label4 # BB#2: # %if.end i32.const $push6=, .L.str.3 i32.store $discard=, 12($20), $pop6 @@ -143,17 +146,17 @@ main: # @main i32.const $9=, 16 i32.add $9=, $20, $9 call foo@FUNCTION, $8, $9, $0, $1 - block .LBB3_14 + block i32.load $push7=, 12($20) i32.const $push8=, .L.str.4 i32.call $push9=, strcmp@FUNCTION, $pop7, $pop8 - br_if $pop9, .LBB3_14 + br_if $pop9, 0 # 0: down to label5 # BB#3: # %lor.lhs.false7 i32.const $push10=, .L.str.5 i32.const $10=, 16 i32.add $10=, $20, $10 i32.call $push11=, strcmp@FUNCTION, $10, $pop10 - br_if $pop11, .LBB3_14 + br_if $pop11, 0 # 0: down to label5 # BB#4: # %if.end12 i32.const $push12=, .L.str.6 i32.store $discard=, 12($20), $pop12 @@ -162,17 +165,17 @@ main: # @main i32.const $12=, 16 i32.add $12=, $20, $12 call foo@FUNCTION, $11, $12, $1, $1 - block .LBB3_13 + block i32.load $push13=, 12($20) i32.const $push14=, .L.str.7 i32.call $push15=, strcmp@FUNCTION, $pop13, $pop14 - br_if $pop15, .LBB3_13 + br_if $pop15, 0 # 0: down to label6 # BB#5: # %lor.lhs.false16 i32.const $push16=, .L.str.8 i32.const $13=, 16 i32.add $13=, $20, $13 i32.call $push17=, strcmp@FUNCTION, $13, $pop16 - br_if $pop17, .LBB3_13 + br_if $pop17, 0 # 0: down to label6 # BB#6: # %if.end21 i32.const $push18=, .L.str.9 i32.store $discard=, 12($20), $pop18 @@ -181,17 +184,17 @@ main: # @main i32.const $15=, 16 i32.add $15=, $20, $15 call foo@FUNCTION, $14, $15, $1, $1 - block .LBB3_12 + block i32.load $push19=, 12($20) i32.const $push20=, .L.str.10 i32.call $push21=, strcmp@FUNCTION, $pop19, $pop20 - br_if $pop21, .LBB3_12 + br_if $pop21, 0 # 0: down to label7 # BB#7: # %lor.lhs.false25 i32.const $push22=, .L.str.11 i32.const $16=, 16 i32.add $16=, $20, $16 i32.call $push23=, strcmp@FUNCTION, $16, $pop22 - br_if $pop23, .LBB3_12 + br_if $pop23, 0 # 0: down to label7 # BB#8: # %if.end30 i32.const $push24=, .L.str.12 i32.store $discard=, 12($20), $pop24 @@ -200,17 +203,17 @@ main: # @main i32.const $18=, 16 i32.add $18=, $20, $18 call foo@FUNCTION, $17, $18, $0, $0 - block .LBB3_11 + block i32.load $push25=, 12($20) i32.const $push26=, .L.str.13 i32.call $push27=, strcmp@FUNCTION, $pop25, $pop26 - br_if $pop27, .LBB3_11 + br_if $pop27, 0 # 0: down to label8 # BB#9: # %lor.lhs.false34 i32.const $push28=, .L.str.14 i32.const $19=, 16 i32.add $19=, $20, $19 i32.call $push29=, strcmp@FUNCTION, $19, $pop28 - br_if $pop29, .LBB3_11 + br_if $pop29, 0 # 0: down to label8 # BB#10: # %if.end39 i32.const $4=, 80 i32.add $20=, $20, $4 @@ -218,18 +221,23 @@ main: # @main i32.store $20=, 0($4), $20 return $0 .LBB3_11: # %if.then38 + end_block # label8: call abort@FUNCTION unreachable .LBB3_12: # %if.then29 + end_block # label7: call abort@FUNCTION unreachable .LBB3_13: # %if.then20 + end_block # label6: call abort@FUNCTION unreachable .LBB3_14: # %if.then11 + end_block # label5: call abort@FUNCTION unreachable .LBB3_15: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/20050502-2.c.s b/test/torture-s/20050502-2.c.s index 5a8078e56..ee51e76c3 100644 --- a/test/torture-s/20050502-2.c.s +++ b/test/torture-s/20050502-2.c.s @@ -107,9 +107,9 @@ main: # @main i32.const $push45=, .L.str i32.const $12=, 0 i32.add $12=, $14, $12 - block .LBB2_4 + block i32.call $push46=, memcmp@FUNCTION, $12, $pop45, $1 - br_if $pop46, .LBB2_4 + br_if $pop46, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push47=, 77 i32.store8 $discard=, 0($2), $pop47 @@ -117,9 +117,9 @@ main: # @main i32.const $push48=, .L.str.1 i32.const $13=, 0 i32.add $13=, $14, $13 - block .LBB2_3 + block i32.call $push49=, memcmp@FUNCTION, $13, $pop48, $1 - br_if $pop49, .LBB2_3 + br_if $pop49, 0 # 0: down to label1 # BB#2: # %if.end7 i32.const $8=, 16 i32.add $14=, $14, $8 @@ -127,9 +127,11 @@ main: # @main i32.store $14=, 0($8), $14 return $2 .LBB2_3: # %if.then6 + end_block # label1: call abort@FUNCTION unreachable .LBB2_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20050604-1.c.s b/test/torture-s/20050604-1.c.s index e054f198a..d35c14a9d 100644 --- a/test/torture-s/20050604-1.c.s +++ b/test/torture-s/20050604-1.c.s @@ -73,7 +73,7 @@ main: # @main i32.store16 $2=, u($0), $pop7 i32.const $15=, 65535 f32.const $10=, 0x0p0 - block .LBB1_9 + block f32.load $push8=, v+12($0) f32.add $push9=, $pop8, $10 f32.add $push3=, $pop9, $10 @@ -89,37 +89,39 @@ main: # @main f32.store $13=, v($0), $pop0 i32.and $push13=, $2, $15 i32.ne $push14=, $pop13, $3 - br_if $pop14, .LBB1_9 + br_if $pop14, 0 # 0: down to label0 # BB#1: # %entry i32.and $push15=, $1, $15 i32.ne $push16=, $pop15, $4 - br_if $pop16, .LBB1_9 + br_if $pop16, 0 # 0: down to label0 # BB#2: # %entry i32.or $push5=, $5, $6 i32.and $push17=, $pop5, $15 - br_if $pop17, .LBB1_9 + br_if $pop17, 0 # 0: down to label0 # BB#3: # %if.end - block .LBB1_8 + block f32.const $push18=, 0x1.2p5 f32.ne $push19=, $13, $pop18 - br_if $pop19, .LBB1_8 + br_if $pop19, 0 # 0: down to label1 # BB#4: # %if.end f32.const $push20=, 0x1.4p5 f32.ne $push21=, $12, $pop20 - br_if $pop21, .LBB1_8 + br_if $pop21, 0 # 0: down to label1 # BB#5: # %if.end f32.const $push22=, 0x1.6p5 f32.ne $push23=, $11, $pop22 - br_if $pop23, .LBB1_8 + br_if $pop23, 0 # 0: down to label1 # BB#6: # %if.end f32.ne $push24=, $14, $10 - br_if $pop24, .LBB1_8 + br_if $pop24, 0 # 0: down to label1 # BB#7: # %if.end26 return $0 .LBB1_8: # %if.then25 + end_block # label1: call abort@FUNCTION unreachable .LBB1_9: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20050613-1.c.s b/test/torture-s/20050613-1.c.s index 9b98ece96..5b2cbfb22 100644 --- a/test/torture-s/20050613-1.c.s +++ b/test/torture-s/20050613-1.c.s @@ -7,23 +7,24 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_5 + block i32.load $push0=, 0($0) - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.load $push1=, 4($0) i32.const $push2=, 5 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_5 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %lor.lhs.false2 i32.load $push4=, 8($0) - br_if $pop4, .LBB0_5 + br_if $pop4, 0 # 0: down to label0 # BB#3: # %lor.lhs.false4 i32.load $push5=, 12($0) - br_if $pop5, .LBB0_5 + br_if $pop5, 0 # 0: down to label0 # BB#4: # %if.end return .LBB0_5: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20050826-1.c.s b/test/torture-s/20050826-1.c.s index 460c33597..a64f589bc 100644 --- a/test/torture-s/20050826-1.c.s +++ b/test/torture-s/20050826-1.c.s @@ -8,35 +8,38 @@ bar: # @bar .param i32 .local i32 # BB#0: # %entry - block .LBB0_6 + block i32.const $push0=, .L.str i32.const $push1=, 8 i32.call $push2=, memcmp@FUNCTION, $0, $pop0, $pop1 - br_if $pop2, .LBB0_6 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $push3=, 7 i32.add $1=, $0, $pop3 i32.const $0=, 0 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB0_5 - loop .LBB0_4 + block + loop # label2: i32.add $push4=, $1, $0 i32.load8_u $push5=, 0($pop4) - br_if $pop5, .LBB0_5 + br_if $pop5, 2 # 2: down to label1 # BB#3: # %for.cond # in Loop: Header=BB0_2 Depth=1 i32.const $push6=, 1 i32.add $0=, $0, $pop6 i32.const $push7=, 2040 i32.le_u $push8=, $0, $pop7 - br_if $pop8, .LBB0_2 -.LBB0_4: # %for.end + br_if $pop8, 0 # 0: up to label2 +# BB#4: # %for.end + end_loop # label3: return .LBB0_5: # %if.then2 + end_block # label1: call abort@FUNCTION unreachable .LBB0_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -68,19 +71,19 @@ foo: # @foo i32.store8 $3=, a($1), $pop1 i32.const $4=, 8 i32.store8 $2=, a+6($1), $3 - block .LBB1_5 + block i32.const $push7=, .L.str i32.call $push8=, memcmp@FUNCTION, $0, $pop7, $4 - br_if $pop8, .LBB1_5 + br_if $pop8, 0 # 0: down to label4 .LBB1_1: # %for.cond.i # =>This Inner Loop Header: Depth=1 - block .LBB1_4 - loop .LBB1_3 + block + loop # label6: i32.const $push9=, -7 i32.add $push10=, $4, $pop9 i32.const $push11=, 2040 i32.gt_u $push12=, $pop10, $pop11 - br_if $pop12, .LBB1_4 + br_if $pop12, 2 # 2: down to label5 # BB#2: # %for.cond.i.for.body.i_crit_edge # in Loop: Header=BB1_1 Depth=1 i32.add $3=, $0, $4 @@ -88,13 +91,16 @@ foo: # @foo i32.load8_u $push13=, 0($3) i32.const $push14=, 0 i32.eq $push15=, $pop13, $pop14 - br_if $pop15, .LBB1_1 -.LBB1_3: # %if.then2.i + br_if $pop15, 0 # 0: up to label6 +# BB#3: # %if.then2.i + end_loop # label7: call abort@FUNCTION unreachable .LBB1_4: # %bar.exit + end_block # label5: return $1 .LBB1_5: # %if.then.i + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end1: @@ -126,19 +132,19 @@ main: # @main i32.store8 $3=, a($1), $pop1 i32.const $4=, 8 i32.store8 $2=, a+6($1), $3 - block .LBB2_5 + block i32.const $push7=, .L.str i32.call $push8=, memcmp@FUNCTION, $0, $pop7, $4 - br_if $pop8, .LBB2_5 + br_if $pop8, 0 # 0: down to label8 .LBB2_1: # %for.cond.i.i # =>This Inner Loop Header: Depth=1 - block .LBB2_4 - loop .LBB2_3 + block + loop # label10: i32.const $push9=, -7 i32.add $push10=, $4, $pop9 i32.const $push11=, 2040 i32.gt_u $push12=, $pop10, $pop11 - br_if $pop12, .LBB2_4 + br_if $pop12, 2 # 2: down to label9 # BB#2: # %for.cond.i.for.body.i_crit_edge.i # in Loop: Header=BB2_1 Depth=1 i32.add $3=, $0, $4 @@ -146,13 +152,16 @@ main: # @main i32.load8_u $push13=, 0($3) i32.const $push14=, 0 i32.eq $push15=, $pop13, $pop14 - br_if $pop15, .LBB2_1 -.LBB2_3: # %if.then2.i.i + br_if $pop15, 0 # 0: up to label10 +# BB#3: # %if.then2.i.i + end_loop # label11: call abort@FUNCTION unreachable .LBB2_4: # %foo.exit + end_block # label9: return $1 .LBB2_5: # %if.then.i.i + end_block # label8: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20050929-1.c.s b/test/torture-s/20050929-1.c.s index 0e2cec598..f30b2375c 100644 --- a/test/torture-s/20050929-1.c.s +++ b/test/torture-s/20050929-1.c.s @@ -11,49 +11,52 @@ main: # @main i32.const $2=, 0 i32.load $0=, e($2) i32.load $1=, 0($0) - block .LBB0_9 + block i32.load $push0=, 0($1) i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_9 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.load $push3=, 4($1) i32.const $push4=, 2 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB0_9 + br_if $pop5, 0 # 0: down to label0 # BB#2: # %if.end i32.load $1=, 4($0) - block .LBB0_8 + block i32.load $push6=, 0($1) i32.const $push7=, 3 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_8 + br_if $pop8, 0 # 0: down to label1 # BB#3: # %lor.lhs.false5 i32.load $push9=, 4($1) i32.const $push10=, 4 i32.ne $push11=, $pop9, $pop10 - br_if $pop11, .LBB0_8 + br_if $pop11, 0 # 0: down to label1 # BB#4: # %if.end10 i32.load $1=, e+4($2) - block .LBB0_7 + block i32.load $push12=, 0($1) i32.const $push13=, 5 i32.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB0_7 + br_if $pop14, 0 # 0: down to label2 # BB#5: # %lor.lhs.false13 i32.load $push15=, 4($1) i32.const $push16=, 6 i32.ne $push17=, $pop15, $pop16 - br_if $pop17, .LBB0_7 + br_if $pop17, 0 # 0: down to label2 # BB#6: # %if.end17 return $2 .LBB0_7: # %if.then16 + end_block # label2: call abort@FUNCTION unreachable .LBB0_8: # %if.then9 + end_block # label1: call abort@FUNCTION unreachable .LBB0_9: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20051021-1.c.s b/test/torture-s/20051021-1.c.s index 3792a7c29..cd7703274 100644 --- a/test/torture-s/20051021-1.c.s +++ b/test/torture-s/20051021-1.c.s @@ -44,14 +44,15 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, count($0) - block .LBB2_2 + block i32.const $push0=, 2 i32.add $push1=, $1, $pop0 i32.store $discard=, count($0), $pop1 - br_if $1, .LBB2_2 + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end7 return $0 .LBB2_2: # %if.then6 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20051110-1.c.s b/test/torture-s/20051110-1.c.s index 201262037..03b0bf624 100644 --- a/test/torture-s/20051110-1.c.s +++ b/test/torture-s/20051110-1.c.s @@ -13,13 +13,13 @@ add_unwind_adjustsp: # @add_unwind_adjustsp i32.const $push2=, 2 i32.shr_s $0=, $pop1, $pop2 i32.const $2=, bytes - block .LBB0_2 + block i32.const $push10=, 0 i32.eq $push11=, $0, $pop10 - br_if $pop11, .LBB0_2 + br_if $pop11, 0 # 0: down to label0 .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.const $push5=, 7 i32.shr_u $1=, $0, $pop5 i32.const $push6=, 128 @@ -31,8 +31,10 @@ add_unwind_adjustsp: # @add_unwind_adjustsp i32.const $push9=, 1 i32.add $2=, $2, $pop9 copy_local $0=, $1 - br_if $1, .LBB0_1 + br_if $1, 0 # 0: up to label1 .LBB0_2: # %while.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size add_unwind_adjustsp, .Lfunc_end0-add_unwind_adjustsp @@ -49,7 +51,7 @@ main: # @main i32.const $2=, bytes .LBB1_1: # %while.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label3: i32.const $1=, 7 i32.shr_u $0=, $3, $1 i32.const $push2=, 128 @@ -61,23 +63,25 @@ main: # @main i32.const $push5=, 1 i32.add $2=, $2, $pop5 copy_local $3=, $0 - br_if $0, .LBB1_1 -.LBB1_2: # %add_unwind_adjustsp.exit + br_if $0, 0 # 0: up to label3 +# BB#2: # %add_unwind_adjustsp.exit + end_loop # label4: i32.const $3=, 0 - block .LBB1_5 + block i32.load8_u $push7=, bytes($3) i32.const $push8=, 136 i32.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB1_5 + br_if $pop9, 0 # 0: down to label5 # BB#3: # %add_unwind_adjustsp.exit i32.load8_u $push6=, bytes+1($3) i32.const $push10=, 255 i32.and $push11=, $pop6, $pop10 i32.ne $push12=, $pop11, $1 - br_if $pop12, .LBB1_5 + br_if $pop12, 0 # 0: down to label5 # BB#4: # %if.end return $3 .LBB1_5: # %if.then + end_block # label5: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20051110-2.c.s b/test/torture-s/20051110-2.c.s index bb3c80049..03933b730 100644 --- a/test/torture-s/20051110-2.c.s +++ b/test/torture-s/20051110-2.c.s @@ -18,17 +18,17 @@ add_unwind_adjustsp: # @add_unwind_adjustsp i32.store8 $discard=, bytes($0), $pop3 i32.const $4=, 7 i32.shr_u $2=, $5, $4 - block .LBB0_3 + block i32.const $push8=, 0 i32.eq $push9=, $2, $pop8 - br_if $pop9, .LBB0_3 + br_if $pop9, 0 # 0: down to label0 # BB#1: # %if.then.lr.ph i32.load $push4=, flag($0) i32.eq $1=, $pop4, $0 i32.const $0=, bytes .LBB0_2: # %if.then # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.const $push5=, 128 i32.or $push6=, $5, $pop5 i32.store8 $discard=, 0($0), $pop6 @@ -37,8 +37,10 @@ add_unwind_adjustsp: # @add_unwind_adjustsp i32.store8 $discard=, 0($0), $pop7 copy_local $5=, $2 i32.shr_u $2=, $2, $4 - br_if $2, .LBB0_2 + br_if $2, 0 # 0: up to label1 .LBB0_3: # %do.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size add_unwind_adjustsp, .Lfunc_end0-add_unwind_adjustsp @@ -53,7 +55,7 @@ main: # @main # BB#0: # %add_unwind_adjustsp.exit i32.const $0=, 0 i32.load $1=, flag($0) - block .LBB1_3 + block i32.const $push2=, 136 i32.store8 $2=, bytes($0), $pop2 i32.const $push3=, bytes @@ -63,16 +65,17 @@ main: # @main i32.store8 $1=, 0($pop4), $pop5 i32.load8_u $push6=, bytes($0) i32.ne $push7=, $pop6, $2 - br_if $pop7, .LBB1_3 + br_if $pop7, 0 # 0: down to label3 # BB#1: # %add_unwind_adjustsp.exit i32.load8_u $push0=, bytes+1($0) i32.const $push8=, 255 i32.and $push9=, $pop0, $pop8 i32.ne $push10=, $pop9, $1 - br_if $pop10, .LBB1_3 + br_if $pop10, 0 # 0: down to label3 # BB#2: # %if.end return $0 .LBB1_3: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20051113-1.c.s b/test/torture-s/20051113-1.c.s index f56d1f0fe..a30f05b4f 100644 --- a/test/torture-s/20051113-1.c.s +++ b/test/torture-s/20051113-1.c.s @@ -28,9 +28,9 @@ Sum: # @Sum i32.or $push12=, $pop10, $pop11 i32.or $1=, $pop7, $pop12 i64.const $16=, 0 - block .LBB0_3 + block i32.lt_s $push13=, $1, $4 - br_if $pop13, .LBB0_3 + br_if $pop13, 0 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $push14=, 10 i32.add $0=, $0, $pop14 @@ -38,7 +38,7 @@ Sum: # @Sum i32.const $15=, 0 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.const $push15=, 5 i32.add $5=, $0, $pop15 i32.const $push18=, 4 @@ -80,8 +80,10 @@ Sum: # @Sum i64.add $16=, $pop40, $16 i32.add $15=, $15, $4 i32.lt_s $push42=, $15, $1 - br_if $pop42, .LBB0_2 + br_if $pop42, 0 # 0: up to label1 .LBB0_3: # %for.end + end_loop # label2: + end_block # label0: return $16 .Lfunc_end0: .size Sum, .Lfunc_end0-Sum @@ -114,9 +116,9 @@ Sum2: # @Sum2 i32.or $push12=, $pop10, $pop11 i32.or $1=, $pop7, $pop12 i64.const $16=, 0 - block .LBB1_3 + block i32.lt_s $push13=, $1, $4 - br_if $pop13, .LBB1_3 + br_if $pop13, 0 # 0: down to label3 # BB#1: # %for.body.preheader i32.const $push14=, 18 i32.add $0=, $0, $pop14 @@ -124,7 +126,7 @@ Sum2: # @Sum2 i32.const $15=, 0 .LBB1_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label4: i32.const $push15=, 5 i32.add $5=, $0, $pop15 i32.const $push18=, 4 @@ -166,8 +168,10 @@ Sum2: # @Sum2 i64.add $16=, $pop40, $16 i32.add $15=, $15, $4 i32.lt_s $push42=, $15, $1 - br_if $pop42, .LBB1_2 + br_if $pop42, 0 # 0: up to label4 .LBB1_3: # %for.end + end_loop # label5: + end_block # label3: return $16 .Lfunc_end1: .size Sum2, .Lfunc_end1-Sum2 @@ -334,20 +338,22 @@ main: # @main i64.store8 $discard=, 78($0), $4 i64.call $3=, Sum@FUNCTION, $0 i64.const $4=, 4311811859 - block .LBB2_4 + block i64.ne $push97=, $3, $4 - br_if $pop97, .LBB2_4 + br_if $pop97, 0 # 0: down to label6 # BB#1: # %if.end - block .LBB2_3 + block i64.call $push98=, Sum2@FUNCTION, $0 i64.ne $push99=, $pop98, $4 - br_if $pop99, .LBB2_3 + br_if $pop99, 0 # 0: down to label7 # BB#2: # %if.end25 return $2 .LBB2_3: # %if.then24 + end_block # label7: call abort@FUNCTION unreachable .LBB2_4: # %if.then + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20051215-1.c.s b/test/torture-s/20051215-1.c.s index 3f2d2be10..5698447ce 100644 --- a/test/torture-s/20051215-1.c.s +++ b/test/torture-s/20051215-1.c.s @@ -11,26 +11,27 @@ foo: # @foo # BB#0: # %entry i32.const $7=, 0 i32.const $3=, 1 - block .LBB0_5 + block i32.lt_s $push0=, $1, $3 - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %for.body.lr.ph i32.const $5=, 0 copy_local $6=, $5 copy_local $7=, $5 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 - block .LBB0_4 + loop # label1: + block i32.const $push6=, 0 i32.eq $push7=, $2, $pop6 - br_if $pop7, .LBB0_4 + br_if $pop7, 0 # 0: down to label3 # BB#3: # %if.then # in Loop: Header=BB0_2 Depth=1 i32.load $push1=, 0($2) i32.mul $6=, $pop1, $5 .LBB0_4: # %if.end # in Loop: Header=BB0_2 Depth=1 + end_block # label3: i32.const $4=, 0 i32.gt_s $push2=, $0, $4 i32.mul $push3=, $6, $0 @@ -38,8 +39,10 @@ foo: # @foo i32.add $7=, $7, $pop4 i32.add $5=, $5, $3 i32.ne $push5=, $1, $5 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: up to label1 .LBB0_5: # %for.end6 + end_loop # label2: + end_block # label0: return $7 .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -53,14 +56,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.const $push1=, 3 i32.const $push0=, 2 i32.call $push2=, foo@FUNCTION, $pop1, $pop0, $0 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label4 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20060102-1.c.s b/test/torture-s/20060102-1.c.s index 864bd96a0..3a1156131 100644 --- a/test/torture-s/20060102-1.c.s +++ b/test/torture-s/20060102-1.c.s @@ -29,17 +29,18 @@ main: # @main i32.load $4=, one($0) i32.const $2=, 31 i32.const $3=, 1 - block .LBB1_2 + block i32.shr_s $push0=, $1, $2 i32.or $push1=, $pop0, $3 i32.sub $push2=, $0, $4 i32.shr_s $push3=, $pop2, $2 i32.or $push4=, $pop3, $3 i32.eq $push5=, $pop1, $pop4 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20060110-1.c.s b/test/torture-s/20060110-1.c.s index 397f7e8e3..52bbb157c 100644 --- a/test/torture-s/20060110-1.c.s +++ b/test/torture-s/20060110-1.c.s @@ -25,14 +25,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i64.load32_s $push0=, a($0) i64.load $push1=, b($0) i64.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20060110-2.c.s b/test/torture-s/20060110-2.c.s index 84a56e652..963b301c1 100644 --- a/test/torture-s/20060110-2.c.s +++ b/test/torture-s/20060110-2.c.s @@ -27,7 +27,7 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i64.const $1=, 32 - block .LBB1_2 + block i64.load $push1=, b($0) i64.load $push0=, a($0) i64.add $push2=, $pop1, $pop0 @@ -35,10 +35,11 @@ main: # @main i64.shr_s $push4=, $pop3, $1 i64.load $push5=, c($0) i64.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB1_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20060127-1.c.s b/test/torture-s/20060127-1.c.s index b10fad3a8..cd4780ea7 100644 --- a/test/torture-s/20060127-1.c.s +++ b/test/torture-s/20060127-1.c.s @@ -7,12 +7,13 @@ f: # @f .param i64 # BB#0: # %entry - block .LBB0_2 + block i32.wrap/i64 $push0=, $0 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -27,12 +28,13 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, a($0) - br_if $pop0, .LBB1_2 + br_if $pop0, 0 # 0: down to label1 # BB#1: # %f.exit return $0 .LBB1_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20060412-1.c.s b/test/torture-s/20060412-1.c.s index 66f6ef0cc..0eac2606a 100644 --- a/test/torture-s/20060412-1.c.s +++ b/test/torture-s/20060412-1.c.s @@ -11,15 +11,16 @@ main: # @main i32.const $0=, t+328 .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $push0=, -1 i32.store $discard=, 0($0), $pop0 i32.const $push1=, -4 i32.add $0=, $0, $pop1 i32.const $push2=, t+4 i32.gt_u $push3=, $0, $pop2 - br_if $pop3, .LBB0_1 -.LBB0_2: # %if.end5 + br_if $pop3, 0 # 0: up to label0 +# BB#2: # %if.end5 + end_loop # label1: i32.const $0=, 0 i32.store $push4=, t+4($0), $0 return $pop4 diff --git a/test/torture-s/20060420-1.c.s b/test/torture-s/20060420-1.c.s index 9ce620ed8..d27120ca2 100644 --- a/test/torture-s/20060420-1.c.s +++ b/test/torture-s/20060420-1.c.s @@ -10,9 +10,9 @@ foo: # @foo # BB#0: # %entry i32.const $25=, 0 i32.const $8=, 1 - block .LBB0_6 + block i32.lt_s $push0=, $3, $8 - br_if $pop0, .LBB0_6 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %land.rhs.lr.ph i32.const $9=, 4 i32.add $14=, $1, $9 @@ -22,13 +22,13 @@ foo: # @foo .LBB0_2: # %land.rhs # =>This Loop Header: Depth=1 # Child Loop BB0_4 Depth 2 - loop .LBB0_6 + loop # label1: i32.add $push1=, $25, $0 i32.const $push2=, 15 i32.and $push3=, $pop1, $pop2 i32.const $push81=, 0 i32.eq $push82=, $pop3, $pop81 - br_if $pop82, .LBB0_6 + br_if $pop82, 1 # 1: down to label2 # BB#3: # %for.body # in Loop: Header=BB0_2 Depth=1 i32.const $13=, 2 @@ -38,33 +38,37 @@ foo: # @foo f32.load $43=, 0($pop5) copy_local $24=, $15 copy_local $26=, $14 - block .LBB0_5 + block i32.lt_s $push6=, $2, $13 - br_if $pop6, .LBB0_5 + br_if $pop6, 0 # 0: down to label3 .LBB0_4: # %for.body4 # Parent Loop BB0_2 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB0_5 + loop # label4: i32.load $push7=, 0($26) i32.add $push8=, $pop7, $27 f32.load $push9=, 0($pop8) f32.add $43=, $43, $pop9 i32.add $26=, $26, $9 i32.add $24=, $24, $12 - br_if $24, .LBB0_4 + br_if $24, 0 # 0: up to label4 .LBB0_5: # %for.end # in Loop: Header=BB0_2 Depth=1 + end_loop # label5: + end_block # label3: i32.add $push10=, $0, $27 f32.store $discard=, 0($pop10), $43 i32.add $25=, $25, $8 i32.lt_s $push11=, $25, $3 - br_if $pop11, .LBB0_2 + br_if $pop11, 0 # 0: up to label1 .LBB0_6: # %for.cond12.preheader - block .LBB0_12 + end_loop # label2: + end_block # label0: + block i32.const $push12=, -15 i32.add $4=, $3, $pop12 i32.ge_s $push13=, $25, $4 - br_if $pop13, .LBB0_12 + br_if $pop13, 0 # 0: down to label6 # BB#7: # %for.body15.lr.ph i32.const $24=, -16 i32.add $push14=, $3, $24 @@ -78,7 +82,7 @@ foo: # @foo .LBB0_8: # %for.body15 # =>This Loop Header: Depth=1 # Child Loop BB0_9 Depth 2 - loop .LBB0_11 + loop # label7: i32.const $11=, 2 i32.shl $12=, $25, $11 i32.load $push17=, 0($1) @@ -124,13 +128,13 @@ foo: # @foo f32.load $29=, 0($pop29) copy_local $26=, $7 copy_local $27=, $6 - block .LBB0_10 + block i32.lt_s $push30=, $2, $11 - br_if $pop30, .LBB0_10 + br_if $pop30, 0 # 0: down to label9 .LBB0_9: # %for.body33 # Parent Loop BB0_8 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB0_10 + loop # label10: i32.load $push31=, 0($27) i32.add $24=, $pop31, $12 f32.load $push38=, 0($24) @@ -179,9 +183,11 @@ foo: # @foo f32.add $29=, $29, $pop54 i32.add $27=, $27, $9 i32.add $26=, $26, $10 - br_if $26, .LBB0_9 + br_if $26, 0 # 0: up to label10 .LBB0_10: # %for.end56 # in Loop: Header=BB0_8 Depth=1 + end_loop # label11: + end_block # label9: i32.add $24=, $0, $12 f32.store $discard=, 0($24), $40 i32.add $push60=, $24, $13 @@ -214,13 +220,15 @@ foo: # @foo i32.const $24=, 16 i32.add $25=, $25, $24 i32.lt_s $push72=, $25, $4 - br_if $pop72, .LBB0_8 -.LBB0_11: # %for.cond73.preheader.loopexit + br_if $pop72, 0 # 0: up to label7 +# BB#11: # %for.cond73.preheader.loopexit + end_loop # label8: i32.add $25=, $5, $24 .LBB0_12: # %for.cond73.preheader - block .LBB0_17 + end_block # label6: + block i32.ge_s $push73=, $25, $3 - br_if $pop73, .LBB0_17 + br_if $pop73, 0 # 0: down to label12 # BB#13: # %for.body75.lr.ph i32.load $14=, 0($1) i32.const $9=, 4 @@ -230,35 +238,39 @@ foo: # @foo .LBB0_14: # %for.body75 # =>This Loop Header: Depth=1 # Child Loop BB0_15 Depth 2 - loop .LBB0_17 + loop # label13: i32.const $13=, 2 i32.shl $27=, $25, $13 i32.add $push74=, $14, $27 f32.load $43=, 0($pop74) copy_local $24=, $16 copy_local $26=, $15 - block .LBB0_16 + block i32.lt_s $push75=, $2, $13 - br_if $pop75, .LBB0_16 + br_if $pop75, 0 # 0: down to label15 .LBB0_15: # %for.body81 # Parent Loop BB0_14 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB0_16 + loop # label16: i32.load $push76=, 0($26) i32.add $push77=, $pop76, $27 f32.load $push78=, 0($pop77) f32.add $43=, $43, $pop78 i32.add $26=, $26, $9 i32.add $24=, $24, $12 - br_if $24, .LBB0_15 + br_if $24, 0 # 0: up to label16 .LBB0_16: # %for.end87 # in Loop: Header=BB0_14 Depth=1 + end_loop # label17: + end_block # label15: i32.add $push79=, $0, $27 f32.store $discard=, 0($pop79), $43 i32.add $25=, $25, $8 i32.ne $push80=, $25, $3 - br_if $pop80, .LBB0_14 + br_if $pop80, 0 # 0: up to label13 .LBB0_17: # %for.end91 + end_loop # label14: + end_block # label12: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -291,7 +303,7 @@ main: # @main i32.store $9=, 8($15), $pop0 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label18: f32.convert_s/i32 $3=, $10 f32.const $4=, 0x1.6p3 f32.mul $push5=, $3, $4 @@ -308,8 +320,9 @@ main: # @main i32.add $9=, $9, $7 i32.const $8=, 16 i32.ne $push10=, $10, $8 - br_if $pop10, .LBB1_1 -.LBB1_2: # %for.end + br_if $pop10, 0 # 0: up to label18 +# BB#2: # %for.end + end_loop # label19: i32.const $10=, 0 i32.sub $push11=, $10, $0 i32.and $push12=, $pop11, $1 @@ -320,8 +333,8 @@ main: # @main call foo@FUNCTION, $9, $14, $pop13, $8 .LBB1_3: # %for.body16 # =>This Inner Loop Header: Depth=1 - block .LBB1_6 - loop .LBB1_5 + block + loop # label21: f32.convert_s/i32 $3=, $10 f32.load $push19=, 0($9) f32.mul $push17=, $3, $5 @@ -330,15 +343,16 @@ main: # @main f32.add $push16=, $3, $pop15 f32.add $push18=, $pop17, $pop16 f32.ne $push20=, $pop19, $pop18 - br_if $pop20, .LBB1_6 + br_if $pop20, 2 # 2: down to label20 # BB#4: # %for.cond13 # in Loop: Header=BB1_3 Depth=1 i32.add $10=, $10, $6 i32.add $9=, $9, $7 i32.const $push21=, 15 i32.le_s $push22=, $10, $pop21 - br_if $pop22, .LBB1_3 -.LBB1_5: # %for.end31 + br_if $pop22, 0 # 0: up to label21 +# BB#5: # %for.end31 + end_loop # label22: i32.const $push23=, 0 i32.const $13=, 16 i32.add $15=, $15, $13 @@ -346,6 +360,7 @@ main: # @main i32.store $15=, 0($13), $15 return $pop23 .LBB1_6: # %if.then + end_block # label20: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20060905-1.c.s b/test/torture-s/20060905-1.c.s index 5c9a6886c..3f7edc1e3 100644 --- a/test/torture-s/20060905-1.c.s +++ b/test/torture-s/20060905-1.c.s @@ -13,11 +13,11 @@ main: # @main copy_local $3=, $4 .LBB0_1: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 + loop # label0: i32.const $0=, 128 - block .LBB0_3 + block i32.lt_s $push0=, $3, $0 - br_if $pop0, .LBB0_3 + br_if $pop0, 0 # 0: down to label2 # BB#2: # %if.then.i # in Loop: Header=BB0_1 Depth=1 i32.load8_u $1=, 0($2) @@ -27,21 +27,24 @@ main: # @main i32.add $4=, $4, $pop2 .LBB0_3: # %for.inc.i # in Loop: Header=BB0_1 Depth=1 + end_block # label2: i32.const $push3=, 1 i32.add $3=, $3, $pop3 i32.const $push4=, 3 i32.add $2=, $2, $pop4 i32.const $push5=, 256 i32.ne $push6=, $3, $pop5 - br_if $pop6, .LBB0_1 -.LBB0_4: # %foo.exit - block .LBB0_6 + br_if $pop6, 0 # 0: up to label0 +# BB#4: # %foo.exit + end_loop # label1: + block i32.ne $push7=, $4, $0 - br_if $pop7, .LBB0_6 + br_if $pop7, 0 # 0: down to label3 # BB#5: # %if.end i32.const $push8=, 0 return $pop8 .LBB0_6: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20060910-1.c.s b/test/torture-s/20060910-1.c.s index 7607ad707..e8bf9faa2 100644 --- a/test/torture-s/20060910-1.c.s +++ b/test/torture-s/20060910-1.c.s @@ -24,54 +24,60 @@ check_header: # @check_header # BB#0: # %entry i32.load $1=, 4($0) i32.load $2=, 0($0) - block .LBB1_2 + block i32.ge_u $push5=, $2, $1 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %cond.true i32.const $push6=, 1 i32.add $push0=, $2, $pop6 i32.store $2=, 0($0), $pop0 .LBB1_2: # %for.inc - block .LBB1_4 + end_block # label0: + block i32.ge_u $push7=, $2, $1 - br_if $pop7, .LBB1_4 + br_if $pop7, 0 # 0: down to label1 # BB#3: # %cond.true.1 i32.const $push8=, 1 i32.add $push1=, $2, $pop8 i32.store $2=, 0($0), $pop1 .LBB1_4: # %for.inc.1 - block .LBB1_6 + end_block # label1: + block i32.ge_u $push9=, $2, $1 - br_if $pop9, .LBB1_6 + br_if $pop9, 0 # 0: down to label2 # BB#5: # %cond.true.2 i32.const $push10=, 1 i32.add $push2=, $2, $pop10 i32.store $2=, 0($0), $pop2 .LBB1_6: # %for.inc.2 - block .LBB1_8 + end_block # label2: + block i32.ge_u $push11=, $2, $1 - br_if $pop11, .LBB1_8 + br_if $pop11, 0 # 0: down to label3 # BB#7: # %cond.true.3 i32.const $push12=, 1 i32.add $push3=, $2, $pop12 i32.store $2=, 0($0), $pop3 .LBB1_8: # %for.inc.3 - block .LBB1_10 + end_block # label3: + block i32.ge_u $push13=, $2, $1 - br_if $pop13, .LBB1_10 + br_if $pop13, 0 # 0: down to label4 # BB#9: # %cond.true.4 i32.const $push14=, 1 i32.add $push4=, $2, $pop14 i32.store $2=, 0($0), $pop4 .LBB1_10: # %for.inc.4 - block .LBB1_12 + end_block # label4: + block i32.ge_u $push15=, $2, $1 - br_if $pop15, .LBB1_12 + br_if $pop15, 0 # 0: down to label5 # BB#11: # %cond.true.5 i32.const $push16=, 1 i32.add $push17=, $2, $pop16 i32.store $discard=, 0($0), $pop17 .LBB1_12: # %for.inc.5 + end_block # label5: i32.const $push18=, 1 return $pop18 .Lfunc_end1: diff --git a/test/torture-s/20060930-1.c.s b/test/torture-s/20060930-1.c.s index 5b45ec28c..052deed4b 100644 --- a/test/torture-s/20060930-1.c.s +++ b/test/torture-s/20060930-1.c.s @@ -8,13 +8,14 @@ bar: # @bar .param i32, i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 1 i32.ne $push1=, $1, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $1 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -28,10 +29,10 @@ foo: # @foo .param i32, i32 .local i32, i32 # BB#0: # %entry - block .LBB1_3 + block i32.const $push2=, 1 i32.lt_s $push3=, $1, $pop2 - br_if $pop3, .LBB1_3 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %for.body.lr.ph i32.const $3=, 0 i32.gt_s $push0=, $0, $3 @@ -43,11 +44,13 @@ foo: # @foo i32.select $3=, $pop4, $3, $pop5 .LBB1_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label2: i32.call $discard=, bar@FUNCTION, $1, $3 i32.add $1=, $1, $0 - br_if $1, .LBB1_2 + br_if $1, 0 # 0: up to label2 .LBB1_3: # %for.end + end_loop # label3: + end_block # label1: return .Lfunc_end1: .size foo, .Lfunc_end1-foo diff --git a/test/torture-s/20060930-2.c.s b/test/torture-s/20060930-2.c.s index 5f108f3f5..b13a2b85e 100644 --- a/test/torture-s/20060930-2.c.s +++ b/test/torture-s/20060930-2.c.s @@ -28,15 +28,16 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.const $1=, s - block .LBB1_2 + block i32.call $push2=, bar@FUNCTION, $1, $1 i32.const $push0=, t i32.store $push1=, t($0), $pop0 i32.ne $push3=, $pop2, $pop1 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20061031-1.c.s b/test/torture-s/20061031-1.c.s index 44a63580c..4f7b21b6c 100644 --- a/test/torture-s/20061031-1.c.s +++ b/test/torture-s/20061031-1.c.s @@ -25,22 +25,24 @@ f: # @f i32.add $1=, $0, $pop0 call ff@FUNCTION, $0 i32.const $2=, 65535 - block .LBB1_2 + block i32.and $push1=, $1, $2 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.then #APP #NO_APP .LBB1_2: # %for.inc + end_block # label0: call ff@FUNCTION, $0 - block .LBB1_4 + block i32.add $push2=, $1, $0 i32.and $push3=, $pop2, $2 - br_if $pop3, .LBB1_4 + br_if $pop3, 0 # 0: down to label1 # BB#3: # %if.then.1 #APP #NO_APP .LBB1_4: # %for.inc.1 + end_block # label1: return .Lfunc_end1: .size f, .Lfunc_end1-f diff --git a/test/torture-s/20061101-1.c.s b/test/torture-s/20061101-1.c.s index b145bbc9c..011005d9c 100644 --- a/test/torture-s/20061101-1.c.s +++ b/test/torture-s/20061101-1.c.s @@ -8,14 +8,15 @@ tar: # @tar .param i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 36863 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, -1 return $pop2 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -36,12 +37,12 @@ bug: # @bug copy_local $4=, $3 .LBB1_1: # %while.cond # =>This Inner Loop Header: Depth=1 - block .LBB1_4 - loop .LBB1_3 + block + loop # label2: i32.and $push1=, $4, $3 i32.const $push8=, 0 i32.eq $push9=, $pop1, $pop8 - br_if $pop9, .LBB1_4 + br_if $pop9, 2 # 2: down to label1 # BB#2: # %while.body # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push4=, $0, $2 @@ -52,11 +53,13 @@ bug: # @bug i32.mul $push5=, $0, $1 i32.const $push6=, 36863 i32.eq $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_1 -.LBB1_3: # %if.then.i + br_if $pop7, 0 # 0: up to label2 +# BB#3: # %if.then.i + end_loop # label3: call abort@FUNCTION unreachable .LBB1_4: # %while.end + end_block # label1: return .Lfunc_end1: .size bug, .Lfunc_end1-bug diff --git a/test/torture-s/20061101-2.c.s b/test/torture-s/20061101-2.c.s index bc6b5fd0d..d3109f0dc 100644 --- a/test/torture-s/20061101-2.c.s +++ b/test/torture-s/20061101-2.c.s @@ -8,14 +8,15 @@ tar: # @tar .param i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 36863 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, -1 return $pop2 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -36,12 +37,12 @@ bug: # @bug copy_local $4=, $3 .LBB1_1: # %while.cond # =>This Inner Loop Header: Depth=1 - block .LBB1_4 - loop .LBB1_3 + block + loop # label2: i32.and $push1=, $4, $3 i32.const $push8=, 0 i32.eq $push9=, $pop1, $pop8 - br_if $pop9, .LBB1_4 + br_if $pop9, 2 # 2: down to label1 # BB#2: # %while.body # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push4=, $0, $2 @@ -52,11 +53,13 @@ bug: # @bug i32.mul $push5=, $0, $1 i32.const $push6=, 36863 i32.eq $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_1 -.LBB1_3: # %if.then.i + br_if $pop7, 0 # 0: up to label2 +# BB#3: # %if.then.i + end_loop # label3: call abort@FUNCTION unreachable .LBB1_4: # %while.end + end_block # label1: return .Lfunc_end1: .size bug, .Lfunc_end1-bug diff --git a/test/torture-s/20070212-3.c.s b/test/torture-s/20070212-3.c.s index 8143b4ac2..edbfae87b 100644 --- a/test/torture-s/20070212-3.c.s +++ b/test/torture-s/20070212-3.c.s @@ -13,15 +13,16 @@ bar: # @bar i32.add $push1=, $0, $pop0 i32.select $2=, $2, $0, $pop1 i32.load $4=, 0($2) - block .LBB0_2 + block i32.const $push2=, 1 i32.store $discard=, 0($0), $pop2 i32.const $push4=, 0 i32.eq $push5=, $3, $pop4 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.then3 i32.load $1=, 0($2) .LBB0_2: # %if.end5 + end_block # label0: i32.add $push3=, $1, $4 return $pop3 .Lfunc_end0: diff --git a/test/torture-s/20070424-1.c.s b/test/torture-s/20070424-1.c.s index c0b39aebf..17bcf82f9 100644 --- a/test/torture-s/20070424-1.c.s +++ b/test/torture-s/20070424-1.c.s @@ -30,13 +30,14 @@ do_abort: # @do_abort foo: # @foo .param i32, i32 # BB#0: # %entry - block .LBB2_2 + block i32.ge_s $push0=, $0, $1 - br_if $pop0, .LBB2_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %doit call do_abort@FUNCTION unreachable .LBB2_2: # %if.end + end_block # label0: call do_exit@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20070517-1.c.s b/test/torture-s/20070517-1.c.s index 8b98039d9..c6ee27b93 100644 --- a/test/torture-s/20070517-1.c.s +++ b/test/torture-s/20070517-1.c.s @@ -9,10 +9,10 @@ main: # @main .local i32 # BB#0: # %entry i32.call $0=, get_kind@FUNCTION - block .LBB0_4 + block i32.const $push2=, 10 i32.gt_u $push3=, $0, $pop2 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %entry i32.const $push4=, 1 i32.shl $push5=, $pop4, $0 @@ -20,17 +20,18 @@ main: # @main i32.and $push7=, $pop5, $pop6 i32.const $push11=, 0 i32.eq $push12=, $pop7, $pop11 - br_if $pop12, .LBB0_4 + br_if $pop12, 0 # 0: down to label0 # BB#2: # %if.then.i i32.const $push1=, -9 i32.add $push0=, $0, $pop1 i32.const $push8=, 2 i32.lt_u $push9=, $pop0, $pop8 - br_if $pop9, .LBB0_4 + br_if $pop9, 0 # 0: down to label0 # BB#3: # %if.else.i call abort@FUNCTION unreachable .LBB0_4: # %example.exit + end_block # label0: i32.const $push10=, 0 return $pop10 .Lfunc_end0: diff --git a/test/torture-s/20070623-1.c.s b/test/torture-s/20070623-1.c.s index 021bf8a6f..70ae68ff1 100644 --- a/test/torture-s/20070623-1.c.s +++ b/test/torture-s/20070623-1.c.s @@ -170,158 +170,178 @@ main: # @main # BB#0: # %entry i32.const $0=, 2147483647 i32.const $1=, -2147483648 - block .LBB10_40 + block i32.call $push0=, nge@FUNCTION, $1, $0 - br_if $pop0, .LBB10_40 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end i32.call $2=, nge@FUNCTION, $0, $1 i32.const $3=, -1 - block .LBB10_39 + block i32.ne $push1=, $2, $3 - br_if $pop1, .LBB10_39 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %if.end4 - block .LBB10_38 + block i32.call $push2=, ngt@FUNCTION, $1, $0 - br_if $pop2, .LBB10_38 + br_if $pop2, 0 # 0: down to label2 # BB#3: # %if.end8 - block .LBB10_37 + block i32.call $push3=, ngt@FUNCTION, $0, $1 i32.ne $push4=, $pop3, $3 - br_if $pop4, .LBB10_37 + br_if $pop4, 0 # 0: down to label3 # BB#4: # %if.end12 - block .LBB10_36 + block i32.call $push5=, nle@FUNCTION, $1, $0 i32.ne $push6=, $pop5, $3 - br_if $pop6, .LBB10_36 + br_if $pop6, 0 # 0: down to label4 # BB#5: # %if.end16 - block .LBB10_35 + block i32.call $push7=, nle@FUNCTION, $0, $1 - br_if $pop7, .LBB10_35 + br_if $pop7, 0 # 0: down to label5 # BB#6: # %if.end20 - block .LBB10_34 + block i32.call $push8=, nlt@FUNCTION, $1, $0 i32.ne $push9=, $pop8, $3 - br_if $pop9, .LBB10_34 + br_if $pop9, 0 # 0: down to label6 # BB#7: # %if.end24 - block .LBB10_33 + block i32.call $push10=, nlt@FUNCTION, $0, $1 - br_if $pop10, .LBB10_33 + br_if $pop10, 0 # 0: down to label7 # BB#8: # %if.end28 - block .LBB10_32 + block i32.call $push11=, neq@FUNCTION, $1, $0 - br_if $pop11, .LBB10_32 + br_if $pop11, 0 # 0: down to label8 # BB#9: # %if.end32 - block .LBB10_31 + block i32.call $push12=, neq@FUNCTION, $0, $1 - br_if $pop12, .LBB10_31 + br_if $pop12, 0 # 0: down to label9 # BB#10: # %if.end36 - block .LBB10_30 + block i32.call $push13=, nne@FUNCTION, $1, $0 i32.ne $push14=, $pop13, $3 - br_if $pop14, .LBB10_30 + br_if $pop14, 0 # 0: down to label10 # BB#11: # %if.end40 - block .LBB10_29 + block i32.call $push15=, nne@FUNCTION, $0, $1 i32.ne $push16=, $pop15, $3 - br_if $pop16, .LBB10_29 + br_if $pop16, 0 # 0: down to label11 # BB#12: # %if.end44 i32.const $0=, 0 - block .LBB10_28 + block i32.call $push17=, ngeu@FUNCTION, $0, $3 - br_if $pop17, .LBB10_28 + br_if $pop17, 0 # 0: down to label12 # BB#13: # %if.end48 - block .LBB10_27 + block i32.call $push18=, ngeu@FUNCTION, $3, $0 i32.ne $push19=, $pop18, $3 - br_if $pop19, .LBB10_27 + br_if $pop19, 0 # 0: down to label13 # BB#14: # %if.end52 - block .LBB10_26 + block i32.call $push20=, ngtu@FUNCTION, $0, $3 - br_if $pop20, .LBB10_26 + br_if $pop20, 0 # 0: down to label14 # BB#15: # %if.end56 - block .LBB10_25 + block i32.call $push21=, ngtu@FUNCTION, $3, $0 i32.ne $push22=, $pop21, $3 - br_if $pop22, .LBB10_25 + br_if $pop22, 0 # 0: down to label15 # BB#16: # %if.end60 - block .LBB10_24 + block i32.call $push23=, nleu@FUNCTION, $0, $3 i32.ne $push24=, $pop23, $3 - br_if $pop24, .LBB10_24 + br_if $pop24, 0 # 0: down to label16 # BB#17: # %if.end64 - block .LBB10_23 + block i32.call $push25=, nleu@FUNCTION, $3, $0 - br_if $pop25, .LBB10_23 + br_if $pop25, 0 # 0: down to label17 # BB#18: # %if.end68 - block .LBB10_22 + block i32.call $push26=, nltu@FUNCTION, $0, $3 i32.ne $push27=, $pop26, $3 - br_if $pop27, .LBB10_22 + br_if $pop27, 0 # 0: down to label18 # BB#19: # %if.end72 - block .LBB10_21 + block i32.call $push28=, nltu@FUNCTION, $3, $0 - br_if $pop28, .LBB10_21 + br_if $pop28, 0 # 0: down to label19 # BB#20: # %if.end76 call exit@FUNCTION, $0 unreachable .LBB10_21: # %if.then75 + end_block # label19: call abort@FUNCTION unreachable .LBB10_22: # %if.then71 + end_block # label18: call abort@FUNCTION unreachable .LBB10_23: # %if.then67 + end_block # label17: call abort@FUNCTION unreachable .LBB10_24: # %if.then63 + end_block # label16: call abort@FUNCTION unreachable .LBB10_25: # %if.then59 + end_block # label15: call abort@FUNCTION unreachable .LBB10_26: # %if.then55 + end_block # label14: call abort@FUNCTION unreachable .LBB10_27: # %if.then51 + end_block # label13: call abort@FUNCTION unreachable .LBB10_28: # %if.then47 + end_block # label12: call abort@FUNCTION unreachable .LBB10_29: # %if.then43 + end_block # label11: call abort@FUNCTION unreachable .LBB10_30: # %if.then39 + end_block # label10: call abort@FUNCTION unreachable .LBB10_31: # %if.then35 + end_block # label9: call abort@FUNCTION unreachable .LBB10_32: # %if.then31 + end_block # label8: call abort@FUNCTION unreachable .LBB10_33: # %if.then27 + end_block # label7: call abort@FUNCTION unreachable .LBB10_34: # %if.then23 + end_block # label6: call abort@FUNCTION unreachable .LBB10_35: # %if.then19 + end_block # label5: call abort@FUNCTION unreachable .LBB10_36: # %if.then15 + end_block # label4: call abort@FUNCTION unreachable .LBB10_37: # %if.then11 + end_block # label3: call abort@FUNCTION unreachable .LBB10_38: # %if.then7 + end_block # label2: call abort@FUNCTION unreachable .LBB10_39: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB10_40: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end10: diff --git a/test/torture-s/20071011-1.c.s b/test/torture-s/20071011-1.c.s index 51f7c2756..41a5080f3 100644 --- a/test/torture-s/20071011-1.c.s +++ b/test/torture-s/20071011-1.c.s @@ -9,15 +9,16 @@ foo: # @foo .local i32 # BB#0: # %entry i32.load $1=, 0($0) - block .LBB0_2 + block i32.const $push0=, 0 i32.store $discard=, 0($0), $pop0 i32.const $push1=, 0 i32.eq $push2=, $1, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.then return .LBB0_2: # %if.end + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20071018-1.c.s b/test/torture-s/20071018-1.c.s index c119d6c14..d07558a7f 100644 --- a/test/torture-s/20071018-1.c.s +++ b/test/torture-s/20071018-1.c.s @@ -45,16 +45,17 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB2_2 + block i32.const $push0=, 1 i32.call $push1=, foo@FUNCTION, $pop0 i32.const $push3=, 0 i32.eq $push4=, $pop1, $pop3 - br_if $pop4, .LBB2_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 0 return $pop2 .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20071029-1.c.s b/test/torture-s/20071029-1.c.s index 15afb5105..6e86556cd 100644 --- a/test/torture-s/20071029-1.c.s +++ b/test/torture-s/20071029-1.c.s @@ -11,57 +11,60 @@ test: # @test i32.const $2=, 0 i32.load $3=, test.i($2) i32.load $1=, 0($0) - block .LBB0_15 + block i32.const $push1=, 1 i32.add $push0=, $3, $pop1 i32.store $4=, test.i($2), $pop0 i32.ne $push2=, $1, $3 - br_if $pop2, .LBB0_15 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_14 + block i32.load $push3=, 4($0) - br_if $pop3, .LBB0_14 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %lor.lhs.false i32.load $push4=, 8($0) - br_if $pop4, .LBB0_14 + br_if $pop4, 0 # 0: down to label1 # BB#3: # %lor.lhs.false6 i32.load $push5=, 12($0) - br_if $pop5, .LBB0_14 + br_if $pop5, 0 # 0: down to label1 # BB#4: # %lor.lhs.false10 i32.load $push6=, 16($0) - br_if $pop6, .LBB0_14 + br_if $pop6, 0 # 0: down to label1 # BB#5: # %lor.lhs.false13 i32.load $push7=, 20($0) - br_if $pop7, .LBB0_14 + br_if $pop7, 0 # 0: down to label1 # BB#6: # %lor.lhs.false16 i32.load $push8=, 24($0) - br_if $pop8, .LBB0_14 + br_if $pop8, 0 # 0: down to label1 # BB#7: # %lor.lhs.false20 i32.load $push9=, 28($0) - br_if $pop9, .LBB0_14 + br_if $pop9, 0 # 0: down to label1 # BB#8: # %lor.lhs.false23 i32.load $push10=, 32($0) - br_if $pop10, .LBB0_14 + br_if $pop10, 0 # 0: down to label1 # BB#9: # %lor.lhs.false26 i32.load $push11=, 36($0) - br_if $pop11, .LBB0_14 + br_if $pop11, 0 # 0: down to label1 # BB#10: # %lor.lhs.false29 i32.load $push12=, 40($0) - br_if $pop12, .LBB0_14 + br_if $pop12, 0 # 0: down to label1 # BB#11: # %if.end34 - block .LBB0_13 + block i32.const $push13=, 20 i32.eq $push14=, $4, $pop13 - br_if $pop14, .LBB0_13 + br_if $pop14, 0 # 0: down to label2 # BB#12: # %if.end37 return .LBB0_13: # %if.then36 + end_block # label2: call exit@FUNCTION, $2 unreachable .LBB0_14: # %if.then33 + end_block # label1: call abort@FUNCTION unreachable .LBB0_15: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -94,7 +97,7 @@ foo: # @foo i32.or $0=, $19, $2 .LBB1_1: # %again # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label3: i32.const $14=, 24 i32.const $20=, 24 i32.add $20=, $31, $20 @@ -180,8 +183,9 @@ foo: # @foo call test@FUNCTION, $31 i32.store $push4=, 56($31), $15 i32.add $15=, $pop4, $3 - br .LBB1_1 + br 0 # 0: up to label3 .LBB1_2: + end_loop # label4: .Lfunc_end1: .size foo, .Lfunc_end1-foo diff --git a/test/torture-s/20071030-1.c.s b/test/torture-s/20071030-1.c.s index 14757d1ef..6e8e1b990 100644 --- a/test/torture-s/20071030-1.c.s +++ b/test/torture-s/20071030-1.c.s @@ -14,20 +14,21 @@ CalcPing: # @CalcPing i32.const $6=, 0 i32.const $5=, 16 copy_local $7=, $2 - block .LBB0_5 - block .LBB0_2 + block + block i32.wrap/i64 $push0=, $1 i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %if.then i64.const $push12=, 32 i64.shr_u $push13=, $1, $pop12 i32.wrap/i64 $5=, $pop13 - br .LBB0_5 + br 1 # 1: down to label0 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + end_block # label1: + loop # label2: i32.add $push3=, $0, $5 f32.load $3=, 0($pop3) f32.gt $4=, $3, $2 @@ -38,12 +39,13 @@ CalcPing: # @CalcPing i32.add $5=, $5, $pop5 i32.const $push6=, 1552 i32.ne $push7=, $5, $pop6 - br_if $pop7, .LBB0_2 -.LBB0_3: # %for.end + br_if $pop7, 0 # 0: up to label2 +# BB#3: # %for.end + end_loop # label3: i32.const $5=, 9999 i32.const $push14=, 0 i32.eq $push15=, $6, $pop14 - br_if $pop15, .LBB0_5 + br_if $pop15, 0 # 0: down to label0 # BB#4: # %if.end9 f32.convert_s/i32 $push8=, $6 f32.div $push9=, $7, $pop8 @@ -51,6 +53,7 @@ CalcPing: # @CalcPing f32.mul $push11=, $pop9, $pop10 i32.trunc_s/f32 $5=, $pop11 .LBB0_5: # %cleanup + end_block # label0: return $5 .Lfunc_end0: .size CalcPing, .Lfunc_end0-CalcPing @@ -84,7 +87,7 @@ main: # @main copy_local $5=, $0 .LBB1_1: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label4: i32.const $11=, 8 i32.add $11=, $12, $11 i32.add $push3=, $11, $3 @@ -97,12 +100,13 @@ main: # @main i32.add $3=, $3, $pop5 i32.const $push6=, 1552 i32.ne $push7=, $3, $pop6 - br_if $pop7, .LBB1_1 -.LBB1_2: # %for.end.i - block .LBB1_5 + br_if $pop7, 0 # 0: up to label4 +# BB#2: # %for.end.i + end_loop # label5: + block i32.const $push16=, 0 i32.eq $push17=, $4, $pop16 - br_if $pop17, .LBB1_5 + br_if $pop17, 0 # 0: down to label6 # BB#3: # %CalcPing.exit f32.convert_s/i32 $push8=, $4 f32.div $push9=, $5, $pop8 @@ -111,7 +115,7 @@ main: # @main i32.trunc_s/f32 $push12=, $pop11 i32.const $push13=, 1000 i32.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB1_5 + br_if $pop14, 0 # 0: down to label6 # BB#4: # %if.end i32.const $push15=, 0 i32.const $8=, 1552 @@ -120,6 +124,7 @@ main: # @main i32.store $12=, 0($8), $12 return $pop15 .LBB1_5: # %if.then + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20071108-1.c.s b/test/torture-s/20071108-1.c.s index 8d7fbb515..39cc89195 100644 --- a/test/torture-s/20071108-1.c.s +++ b/test/torture-s/20071108-1.c.s @@ -63,24 +63,24 @@ main: # @main i32.load $push0=, 0($0) i32.const $6=, 12 i32.add $6=, $8, $6 - block .LBB3_5 + block i32.ne $push1=, $pop0, $6 - br_if $pop1, .LBB3_5 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %lor.lhs.false2 i32.load $push2=, 4($0) i32.const $7=, 8 i32.add $7=, $8, $7 i32.ne $push3=, $pop2, $7 - br_if $pop3, .LBB3_5 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %lor.lhs.false4 i32.load16_u $0=, 8($0) i32.const $push4=, 255 i32.and $push5=, $0, $pop4 - br_if $pop5, .LBB3_5 + br_if $pop5, 0 # 0: down to label0 # BB#3: # %lor.lhs.false4 i32.const $push6=, 256 i32.ge_u $push7=, $0, $pop6 - br_if $pop7, .LBB3_5 + br_if $pop7, 0 # 0: down to label0 # BB#4: # %if.end i32.const $push8=, 0 i32.const $3=, 16 @@ -89,6 +89,7 @@ main: # @main i32.store $8=, 0($3), $8 return $pop8 .LBB3_5: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/20071120-1.c.s b/test/torture-s/20071120-1.c.s index a5790494d..f370427e6 100644 --- a/test/torture-s/20071120-1.c.s +++ b/test/torture-s/20071120-1.c.s @@ -32,36 +32,37 @@ pop_to_parent_deferring_access_checks: # @pop_to_parent_deferring_access_checks # BB#0: # %entry i32.const $1=, 0 i32.load $0=, deferred_access_no_check($1) - block .LBB2_9 - block .LBB2_8 - block .LBB2_7 - block .LBB2_6 - block .LBB2_2 + block + block + block + block + block i32.const $push11=, 0 i32.eq $push12=, $0, $pop11 - br_if $pop12, .LBB2_2 + br_if $pop12, 0 # 0: down to label4 # BB#1: # %if.then i32.const $push0=, -1 i32.add $push1=, $0, $pop0 i32.store $discard=, deferred_access_no_check($1), $pop1 - br .LBB2_6 + br 1 # 1: down to label3 .LBB2_2: # %if.else + end_block # label4: i32.load $1=, deferred_access_stack($1) i32.const $push13=, 0 i32.eq $push14=, $1, $pop13 - br_if $pop14, .LBB2_9 + br_if $pop14, 3 # 3: down to label0 # BB#3: # %land.lhs.true.i i32.load $0=, 0($1) i32.const $push15=, 0 i32.eq $push16=, $0, $pop15 - br_if $pop16, .LBB2_9 + br_if $pop16, 3 # 3: down to label0 # BB#4: # %land.lhs.true.i25 i32.const $push2=, -1 i32.add $push3=, $0, $pop2 i32.store $push4=, 0($1), $pop3 i32.const $push17=, 0 i32.eq $push18=, $pop4, $pop17 - br_if $pop18, .LBB2_8 + br_if $pop18, 2 # 2: down to label1 # BB#5: # %VEC_deferred_access_base_last.exit29 i32.const $push5=, 3 i32.shl $push6=, $0, $pop5 @@ -71,16 +72,20 @@ pop_to_parent_deferring_access_checks: # @pop_to_parent_deferring_access_checks i32.load $push10=, 0($pop9) i32.const $push19=, 0 i32.eq $push20=, $pop10, $pop19 - br_if $pop20, .LBB2_7 + br_if $pop20, 1 # 1: down to label2 .LBB2_6: # %if.end16 + end_block # label3: return .LBB2_7: # %if.then15 + end_block # label2: call perform_access_checks@FUNCTION, $1 unreachable .LBB2_8: # %cond.false.i26 + end_block # label1: call vec_assert_fail@FUNCTION unreachable .LBB2_9: # %cond.false.i + end_block # label0: call vec_assert_fail@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20071202-1.c.s b/test/torture-s/20071202-1.c.s index 32074af9d..37a638126 100644 --- a/test/torture-s/20071202-1.c.s +++ b/test/torture-s/20071202-1.c.s @@ -148,10 +148,10 @@ main: # @main i32.add $5=, $20, $5 call foo@FUNCTION, $5 i32.const $0=, 12 - block .LBB1_19 + block i32.load $push2=, 8($20) i32.ne $push3=, $pop2, $0 - br_if $pop3, .LBB1_19 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.const $push4=, 4 i32.const $6=, 8 @@ -160,50 +160,50 @@ main: # @main i32.load $push6=, 0($pop5) i32.const $push7=, 6 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB1_19 + br_if $pop8, 0 # 0: down to label0 # BB#2: # %lor.lhs.false2 i32.load $push9=, 16($20) - br_if $pop9, .LBB1_19 + br_if $pop9, 0 # 0: down to label0 # BB#3: # %lor.lhs.false3 i32.const $7=, 8 i32.add $7=, $20, $7 i32.add $push10=, $7, $0 i32.load $push11=, 0($pop10) - br_if $pop11, .LBB1_19 + br_if $pop11, 0 # 0: down to label0 # BB#4: # %lor.lhs.false7 i32.const $push12=, 16 i32.const $8=, 8 i32.add $8=, $20, $8 i32.add $push13=, $8, $pop12 i32.load $push14=, 0($pop13) - br_if $pop14, .LBB1_19 + br_if $pop14, 0 # 0: down to label0 # BB#5: # %lor.lhs.false11 i32.const $push15=, 20 i32.const $9=, 8 i32.add $9=, $20, $9 i32.add $push16=, $9, $pop15 i32.load $push17=, 0($pop16) - br_if $pop17, .LBB1_19 + br_if $pop17, 0 # 0: down to label0 # BB#6: # %lor.lhs.false15 i32.const $push18=, 24 i32.const $10=, 8 i32.add $10=, $20, $10 i32.add $push19=, $10, $pop18 i32.load $push20=, 0($pop19) - br_if $pop20, .LBB1_19 + br_if $pop20, 0 # 0: down to label0 # BB#7: # %lor.lhs.false19 i32.const $push21=, 28 i32.const $11=, 8 i32.add $11=, $20, $11 i32.add $push22=, $11, $pop21 i32.load $push23=, 0($pop22) - br_if $pop23, .LBB1_19 + br_if $pop23, 0 # 0: down to label0 # BB#8: # %if.end - block .LBB1_18 + block i32.load $push24=, 40($20) i32.const $push25=, 7 i32.ne $push26=, $pop24, $pop25 - br_if $pop26, .LBB1_18 + br_if $pop26, 0 # 0: down to label1 # BB#9: # %lor.lhs.false24 i32.const $push27=, 36 i32.const $12=, 8 @@ -212,7 +212,7 @@ main: # @main i32.load $push29=, 0($pop28) i32.const $push30=, 8 i32.ne $push31=, $pop29, $pop30 - br_if $pop31, .LBB1_18 + br_if $pop31, 0 # 0: down to label1 # BB#10: # %lor.lhs.false28 i32.const $push32=, 40 i32.const $13=, 8 @@ -221,7 +221,7 @@ main: # @main i32.load $push34=, 0($pop33) i32.const $push35=, 9 i32.ne $push36=, $pop34, $pop35 - br_if $pop36, .LBB1_18 + br_if $pop36, 0 # 0: down to label1 # BB#11: # %lor.lhs.false33 i32.const $push37=, 44 i32.const $14=, 8 @@ -230,7 +230,7 @@ main: # @main i32.load $push39=, 0($pop38) i32.const $push40=, 10 i32.ne $push41=, $pop39, $pop40 - br_if $pop41, .LBB1_18 + br_if $pop41, 0 # 0: down to label1 # BB#12: # %lor.lhs.false38 i32.const $push42=, 48 i32.const $15=, 8 @@ -239,7 +239,7 @@ main: # @main i32.load $push44=, 0($pop43) i32.const $push45=, 11 i32.ne $push46=, $pop44, $pop45 - br_if $pop46, .LBB1_18 + br_if $pop46, 0 # 0: down to label1 # BB#13: # %lor.lhs.false43 i32.const $push47=, 52 i32.const $16=, 8 @@ -247,7 +247,7 @@ main: # @main i32.add $push48=, $16, $pop47 i32.load $push49=, 0($pop48) i32.ne $push50=, $pop49, $0 - br_if $pop50, .LBB1_18 + br_if $pop50, 0 # 0: down to label1 # BB#14: # %lor.lhs.false48 i32.const $push51=, 56 i32.const $17=, 8 @@ -256,7 +256,7 @@ main: # @main i32.load $push53=, 0($pop52) i32.const $push54=, 13 i32.ne $push55=, $pop53, $pop54 - br_if $pop55, .LBB1_18 + br_if $pop55, 0 # 0: down to label1 # BB#15: # %lor.lhs.false53 i32.const $push56=, 60 i32.const $18=, 8 @@ -265,7 +265,7 @@ main: # @main i32.load $push58=, 0($pop57) i32.const $push59=, 14 i32.ne $push60=, $pop58, $pop59 - br_if $pop60, .LBB1_18 + br_if $pop60, 0 # 0: down to label1 # BB#16: # %lor.lhs.false58 i32.const $push61=, 64 i32.const $19=, 8 @@ -274,7 +274,7 @@ main: # @main i32.load $push63=, 0($pop62) i32.const $push64=, 15 i32.ne $push65=, $pop63, $pop64 - br_if $pop65, .LBB1_18 + br_if $pop65, 0 # 0: down to label1 # BB#17: # %if.end64 i32.const $push66=, 0 i32.const $3=, 80 @@ -283,9 +283,11 @@ main: # @main i32.store $20=, 0($3), $20 return $pop66 .LBB1_18: # %if.then63 + end_block # label1: call abort@FUNCTION unreachable .LBB1_19: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20071211-1.c.s b/test/torture-s/20071211-1.c.s index 4e9f23a0f..98a58d2bc 100644 --- a/test/torture-s/20071211-1.c.s +++ b/test/torture-s/20071211-1.c.s @@ -17,7 +17,7 @@ main: # @main #NO_APP i64.load $1=, sv($0) i64.const $2=, 40 - block .LBB0_2 + block i64.shr_u $push0=, $1, $2 i64.const $push1=, 1 i64.add $3=, $pop0, $pop1 @@ -30,10 +30,11 @@ main: # @main i64.and $push7=, $3, $pop6 i64.const $push8=, 0 i64.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB0_2 + br_if $pop9, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20071216-1.c.s b/test/torture-s/20071216-1.c.s index 5a33067c8..ddd286263 100644 --- a/test/torture-s/20071216-1.c.s +++ b/test/torture-s/20071216-1.c.s @@ -50,43 +50,46 @@ main: # @main i32.const $5=, -1 i32.const $6=, -37 i32.const $3=, -4095 - block .LBB2_6 + block i32.lt_u $push1=, $2, $3 i32.eq $push2=, $2, $4 i32.select $push3=, $pop2, $6, $5 i32.select $push4=, $pop1, $2, $pop3 i32.ne $push5=, $pop4, $1 - br_if $pop5, .LBB2_6 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push6=, -39 i32.store $discard=, x($0), $pop6 i32.call $2=, bar@FUNCTION - block .LBB2_5 + block i32.lt_u $push7=, $2, $3 i32.eq $push8=, $2, $4 i32.select $push9=, $pop8, $6, $5 i32.select $push10=, $pop7, $2, $pop9 i32.ne $push11=, $pop10, $5 - br_if $pop11, .LBB2_5 + br_if $pop11, 0 # 0: down to label1 # BB#2: # %if.end4 i32.store $discard=, x($0), $4 i32.call $2=, bar@FUNCTION - block .LBB2_4 + block i32.lt_u $push12=, $2, $3 i32.eq $push13=, $2, $4 i32.select $push14=, $pop13, $6, $5 i32.select $push15=, $pop12, $2, $pop14 i32.ne $push16=, $pop15, $6 - br_if $pop16, .LBB2_4 + br_if $pop16, 0 # 0: down to label2 # BB#3: # %if.end8 return $0 .LBB2_4: # %if.then7 + end_block # label2: call abort@FUNCTION unreachable .LBB2_5: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB2_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20071219-1.c.s b/test/torture-s/20071219-1.c.s index 59605eb2e..b8b1fde5e 100644 --- a/test/torture-s/20071219-1.c.s +++ b/test/torture-s/20071219-1.c.s @@ -11,32 +11,35 @@ foo: # @foo i32.const $3=, 0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB0_6 - loop .LBB0_5 + block + loop # label1: i32.add $2=, $0, $3 i32.load8_u $push0=, 0($2) - br_if $pop0, .LBB0_6 + br_if $pop0, 2 # 2: down to label0 # BB#2: # %if.else # in Loop: Header=BB0_1 Depth=1 - block .LBB0_4 + block i32.const $push5=, 0 i32.eq $push6=, $1, $pop5 - br_if $pop6, .LBB0_4 + br_if $pop6, 0 # 0: down to label3 # BB#3: # %if.then3 # in Loop: Header=BB0_1 Depth=1 i32.store8 $discard=, 0($2), $1 .LBB0_4: # %for.inc # in Loop: Header=BB0_1 Depth=1 + end_block # label3: i32.const $push1=, 1 i32.add $3=, $3, $pop1 i32.const $push2=, 25 i32.lt_u $push3=, $3, $pop2 - br_if $pop3, .LBB0_1 -.LBB0_5: # %for.end + br_if $pop3, 0 # 0: up to label1 +# BB#5: # %for.end + end_loop # label2: i32.const $push4=, 0 i32.store $discard=, p($pop4), $0 return .LBB0_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20080222-1.c.s b/test/torture-s/20080222-1.c.s index 8e842cfc9..418723082 100644 --- a/test/torture-s/20080222-1.c.s +++ b/test/torture-s/20080222-1.c.s @@ -22,14 +22,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load8_u $push0=, space+4($0) i32.const $push1=, 5 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20080424-1.c.s b/test/torture-s/20080424-1.c.s index 49cd2315a..11d42c78c 100644 --- a/test/torture-s/20080424-1.c.s +++ b/test/torture-s/20080424-1.c.s @@ -10,7 +10,7 @@ bar: # @bar # BB#0: # %entry i32.const $3=, 0 i32.load $2=, bar.i($3) - block .LBB0_3 + block i32.const $push0=, 36 i32.mul $push1=, $2, $pop0 i32.const $push2=, g @@ -18,16 +18,17 @@ bar: # @bar i32.const $push3=, 288 i32.add $push4=, $4, $pop3 i32.ne $push5=, $pop4, $0 - br_if $pop5, .LBB0_3 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.const $push6=, 1 i32.add $push7=, $2, $pop6 i32.store $discard=, bar.i($3), $pop7 i32.ne $push8=, $4, $1 - br_if $pop8, .LBB0_3 + br_if $pop8, 0 # 0: down to label0 # BB#2: # %if.end return .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20080502-1.c.s b/test/torture-s/20080502-1.c.s index 1d9a465e4..c637a0d20 100644 --- a/test/torture-s/20080502-1.c.s +++ b/test/torture-s/20080502-1.c.s @@ -44,13 +44,13 @@ main: # @main i32.const $push2=, 8 i32.const $4=, 0 i32.add $4=, $5, $4 - block .LBB1_2 + block i32.or $push3=, $4, $pop2 i64.load $push4=, 0($pop3) i64.const $push7=, -8905435550453399112 i64.const $push6=, 4611846683310179025 i32.call $push8=, __eqtf2@FUNCTION, $pop5, $pop4, $pop7, $pop6 - br_if $pop8, .LBB1_2 + br_if $pop8, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push9=, 0 i32.const $2=, 16 @@ -59,6 +59,7 @@ main: # @main i32.store $5=, 0($2), $5 return $pop9 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20080522-1.c.s b/test/torture-s/20080522-1.c.s index 0277bcee4..e81ea036a 100644 --- a/test/torture-s/20080522-1.c.s +++ b/test/torture-s/20080522-1.c.s @@ -56,39 +56,39 @@ main: # @main i32.store $0=, 12($9), $pop0 i32.call $2=, foo@FUNCTION, $1 i32.const $3=, 2 - block .LBB2_12 + block i32.ne $push1=, $2, $3 - br_if $pop1, .LBB2_12 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.call $2=, bar@FUNCTION, $1 i32.const $1=, 1 - block .LBB2_11 + block i32.ne $push2=, $2, $1 - br_if $pop2, .LBB2_11 + br_if $pop2, 0 # 0: down to label1 # BB#2: # %if.end4 i32.const $7=, 12 i32.add $7=, $9, $7 - block .LBB2_10 + block i32.call $push3=, foo@FUNCTION, $7 i32.ne $push4=, $pop3, $1 - br_if $pop4, .LBB2_10 + br_if $pop4, 0 # 0: down to label2 # BB#3: # %if.end8 - block .LBB2_9 + block i32.load $push5=, 12($9) i32.ne $push6=, $pop5, $3 - br_if $pop6, .LBB2_9 + br_if $pop6, 0 # 0: down to label3 # BB#4: # %if.end11 i32.const $8=, 12 i32.add $8=, $9, $8 - block .LBB2_8 + block i32.call $push7=, bar@FUNCTION, $8 i32.ne $push8=, $pop7, $3 - br_if $pop8, .LBB2_8 + br_if $pop8, 0 # 0: down to label4 # BB#5: # %if.end15 - block .LBB2_7 + block i32.load $push9=, 12($9) i32.ne $push10=, $pop9, $3 - br_if $pop10, .LBB2_7 + br_if $pop10, 0 # 0: down to label5 # BB#6: # %if.end18 i32.const $6=, 16 i32.add $9=, $9, $6 @@ -96,21 +96,27 @@ main: # @main i32.store $9=, 0($6), $9 return $0 .LBB2_7: # %if.then17 + end_block # label5: call abort@FUNCTION unreachable .LBB2_8: # %if.then14 + end_block # label4: call abort@FUNCTION unreachable .LBB2_9: # %if.then10 + end_block # label3: call abort@FUNCTION unreachable .LBB2_10: # %if.then7 + end_block # label2: call abort@FUNCTION unreachable .LBB2_11: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB2_12: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20080604-1.c.s b/test/torture-s/20080604-1.c.s index 76a9408ed..3f172ce2d 100644 --- a/test/torture-s/20080604-1.c.s +++ b/test/torture-s/20080604-1.c.s @@ -6,15 +6,16 @@ .type foo,@function foo: # @foo # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 0 i32.load $push1=, x($pop0) i32.const $push2=, 0 i32.eq $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20080813-1.c.s b/test/torture-s/20080813-1.c.s index 1921c21e8..a13bb793a 100644 --- a/test/torture-s/20080813-1.c.s +++ b/test/torture-s/20080813-1.c.s @@ -18,13 +18,14 @@ foo: # @foo bar: # @bar .param i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 255 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20081218-1.c.s b/test/torture-s/20081218-1.c.s index cfbf979db..68508eb0f 100644 --- a/test/torture-s/20081218-1.c.s +++ b/test/torture-s/20081218-1.c.s @@ -46,65 +46,71 @@ main: # @main # BB#0: # %entry i32.call $0=, foo@FUNCTION i32.const $3=, 0 - block .LBB2_11 + block i32.const $push0=, 640034342 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB2_11 + br_if $pop1, 0 # 0: down to label0 .LBB2_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB2_10 - loop .LBB2_3 + block + loop # label2: i32.const $0=, a i32.add $push2=, $0, $3 i32.load8_u $push3=, 0($pop2) i32.const $push4=, 38 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB2_10 + br_if $pop5, 2 # 2: down to label1 # BB#2: # %for.cond # in Loop: Header=BB2_1 Depth=1 i32.const $1=, 1 i32.add $3=, $3, $1 i32.const $2=, 519 i32.le_u $push6=, $3, $2 - br_if $pop6, .LBB2_1 -.LBB2_3: # %for.end + br_if $pop6, 0 # 0: up to label2 +# BB#3: # %for.end + end_loop # label3: call bar@FUNCTION i32.const $3=, 0 - block .LBB2_9 + block i32.load $push7=, a+4($3) i32.const $push8=, 909588022 i32.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB2_9 + br_if $pop9, 0 # 0: down to label4 # BB#4: # %if.end9 i32.const $push10=, 909522486 i32.store $discard=, a+4($3), $pop10 .LBB2_5: # %for.body13 # =>This Inner Loop Header: Depth=1 - block .LBB2_8 - loop .LBB2_7 + block + loop # label6: i32.add $push11=, $0, $3 i32.load8_u $push12=, 0($pop11) i32.const $push13=, 54 i32.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB2_8 + br_if $pop14, 2 # 2: down to label5 # BB#6: # %for.cond10 # in Loop: Header=BB2_5 Depth=1 i32.add $3=, $3, $1 i32.le_u $push15=, $3, $2 - br_if $pop15, .LBB2_5 -.LBB2_7: # %for.end22 + br_if $pop15, 0 # 0: up to label6 +# BB#7: # %for.end22 + end_loop # label7: i32.const $push16=, 0 return $pop16 .LBB2_8: # %if.then18 + end_block # label5: call abort@FUNCTION unreachable .LBB2_9: # %if.then8 + end_block # label4: call abort@FUNCTION unreachable .LBB2_10: # %if.then4 + end_block # label1: call abort@FUNCTION unreachable .LBB2_11: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20090527-1.c.s b/test/torture-s/20090527-1.c.s index 4d3844f0e..82d10b226 100644 --- a/test/torture-s/20090527-1.c.s +++ b/test/torture-s/20090527-1.c.s @@ -10,28 +10,31 @@ new_unit: # @new_unit # BB#0: # %entry i32.load $2=, 4($0) i32.const $1=, 1 - block .LBB0_2 + block i32.ne $push0=, $2, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push2=, 4 i32.add $push3=, $0, $pop2 i32.const $push1=, 0 i32.store $2=, 0($pop3), $pop1 .LBB0_2: # %if.end - block .LBB0_4 + end_block # label0: + block i32.load $push4=, 0($0) i32.ne $push5=, $pop4, $1 - br_if $pop5, .LBB0_4 + br_if $pop5, 0 # 0: down to label1 # BB#3: # %if.then3 i32.const $push6=, 0 i32.store $discard=, 0($0), $pop6 .LBB0_4: # %if.end5 - block .LBB0_6 - br_if $2, .LBB0_6 + end_block # label1: + block + br_if $2, 0 # 0: down to label2 # BB#5: # %sw.epilog return .LBB0_6: # %sw.default + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20090711-1.c.s b/test/torture-s/20090711-1.c.s index 835cd45b4..ed83c16bf 100644 --- a/test/torture-s/20090711-1.c.s +++ b/test/torture-s/20090711-1.c.s @@ -26,16 +26,17 @@ div: # @div main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i64.const $push0=, -990000000 i64.call $push1=, div@FUNCTION, $pop0 i64.const $push2=, -30212 i64.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20090814-1.c.s b/test/torture-s/20090814-1.c.s index 57788370b..47cb71c1d 100644 --- a/test/torture-s/20090814-1.c.s +++ b/test/torture-s/20090814-1.c.s @@ -40,7 +40,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB2_2 + block i32.const $push0=, -1 i32.store $discard=, a($0), $pop0 i32.const $push4=, 1 @@ -50,10 +50,11 @@ main: # @main i32.const $push2=, 42 i32.store $push3=, a+4($0), $pop2 i32.ne $push6=, $pop5, $pop3 - br_if $pop6, .LBB2_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20100316-1.c.s b/test/torture-s/20100316-1.c.s index 48455b44b..17aff0b41 100644 --- a/test/torture-s/20100316-1.c.s +++ b/test/torture-s/20100316-1.c.s @@ -25,7 +25,7 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load16_u $1=, f+4($0) - block .LBB1_2 + block i32.const $push0=, -1 i32.store $discard=, f($0), $pop0 i32.const $push2=, 57344 @@ -35,10 +35,11 @@ main: # @main i32.store16 $discard=, f+4($0), $pop5 i32.const $push1=, f i32.call $push6=, foo@FUNCTION, $pop1 - br_if $pop6, .LBB1_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20100416-1.c.s b/test/torture-s/20100416-1.c.s index 7c76cff9c..4d56cb9db 100644 --- a/test/torture-s/20100416-1.c.s +++ b/test/torture-s/20100416-1.c.s @@ -31,44 +31,45 @@ main: # @main i64.const $1=, -1152921504606846977 i32.const $2=, 1 i32.const $3=, -1 - block .LBB1_6 + block i64.load $push0=, tests($0) i64.gt_s $push1=, $pop0, $1 i32.select $push2=, $pop1, $3, $2 i32.load $push3=, tests+8($0) i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_6 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %for.cond i64.load $push5=, tests+16($0) i64.gt_s $push6=, $pop5, $1 i32.select $push7=, $pop6, $3, $2 i32.load $push8=, tests+24($0) i32.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB1_6 + br_if $pop9, 0 # 0: down to label0 # BB#2: # %for.cond.1 i64.load $push10=, tests+32($0) i64.gt_s $push11=, $pop10, $1 i32.select $push12=, $pop11, $3, $2 i32.load $push13=, tests+40($0) i32.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB1_6 + br_if $pop14, 0 # 0: down to label0 # BB#3: # %for.cond.2 i64.load $push15=, tests+48($0) i64.gt_s $push16=, $pop15, $1 i32.select $push17=, $pop16, $3, $2 i32.load $push18=, tests+56($0) i32.ne $push19=, $pop17, $pop18 - br_if $pop19, .LBB1_6 + br_if $pop19, 0 # 0: down to label0 # BB#4: # %for.cond.3 i64.load $push20=, tests+64($0) i64.gt_s $push21=, $pop20, $1 i32.select $push22=, $pop21, $3, $2 i32.load $push23=, tests+72($0) i32.ne $push24=, $pop22, $pop23 - br_if $pop24, .LBB1_6 + br_if $pop24, 0 # 0: down to label0 # BB#5: # %for.cond.4 return $0 .LBB1_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20100805-1.c.s b/test/torture-s/20100805-1.c.s index 13f84c4f2..790866c2b 100644 --- a/test/torture-s/20100805-1.c.s +++ b/test/torture-s/20100805-1.c.s @@ -11,21 +11,23 @@ foo: # @foo # BB#0: # %entry i32.const $2=, 1 i32.and $0=, $0, $2 - block .LBB0_2 + block i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.shl $push0=, $0, $2 i32.const $push1=, 31 i32.shr_u $push2=, $0, $pop1 i32.or $0=, $pop0, $pop2 i32.const $push3=, -1 i32.add $1=, $1, $pop3 - br_if $1, .LBB0_1 + br_if $1, 0 # 0: up to label1 .LBB0_2: # %for.end + end_loop # label2: + end_block # label0: return $0 .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/20100827-1.c.s b/test/torture-s/20100827-1.c.s index 1ae3255be..e3eeafe24 100644 --- a/test/torture-s/20100827-1.c.s +++ b/test/torture-s/20100827-1.c.s @@ -10,30 +10,32 @@ foo: # @foo .local i32, i32, i32 # BB#0: # %entry i32.const $3=, 0 - block .LBB0_4 + block i32.load8_u $push0=, 0($0) i32.const $push3=, 0 i32.eq $push4=, $pop0, $pop3 - br_if $pop4, .LBB0_4 + br_if $pop4, 0 # 0: down to label0 .LBB0_1: # %if.end # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.add $1=, $0, $3 i32.const $push5=, 0 i32.eq $push6=, $1, $pop5 - br_if $pop6, .LBB0_3 + br_if $pop6, 1 # 1: down to label2 # BB#2: # %if.end5 # in Loop: Header=BB0_1 Depth=1 i32.const $2=, 1 i32.add $3=, $3, $2 i32.add $push1=, $1, $2 i32.load8_u $push2=, 0($pop1) - br_if $pop2, .LBB0_1 - br .LBB0_4 + br_if $pop2, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB0_3: # %if.then4 + end_loop # label2: call abort@FUNCTION unreachable .LBB0_4: # %do.end + end_block # label0: return $3 .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -45,16 +47,17 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, .L.str i32.call $push1=, foo@FUNCTION, $pop0 i32.const $push2=, 1 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label3 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20101013-1.c.s b/test/torture-s/20101013-1.c.s index b1695c028..d9e67247e 100644 --- a/test/torture-s/20101013-1.c.s +++ b/test/torture-s/20101013-1.c.s @@ -55,13 +55,14 @@ get_addr_base_and_unit_offset: # @get_addr_base_and_unit_offset build_int_cst: # @build_int_cst .param i64 # BB#0: # %entry - block .LBB3_2 + block i64.const $push0=, 4 i64.ne $push1=, $0, $pop0 - br_if $pop1, .LBB3_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB3_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/20101025-1.c.s b/test/torture-s/20101025-1.c.s index 6958745f4..714e23c1a 100644 --- a/test/torture-s/20101025-1.c.s +++ b/test/torture-s/20101025-1.c.s @@ -41,15 +41,16 @@ main: # @main # BB#0: # %entry i32.call $discard=, f3@FUNCTION i32.const $0=, 0 - block .LBB2_2 + block i32.load $push0=, g_3($0) i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB2_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20111208-1.c.s b/test/torture-s/20111208-1.c.s index d640d9325..e48aec3db 100644 --- a/test/torture-s/20111208-1.c.s +++ b/test/torture-s/20111208-1.c.s @@ -20,15 +20,15 @@ pack_unpack: # @pack_unpack .LBB0_1: # %while.cond.outer # =>This Loop Header: Depth=1 # Child Loop BB0_2 Depth 2 - loop .LBB0_7 + loop # label0: copy_local $4=, $1 .LBB0_2: # %while.cond # Parent Loop BB0_1 Depth=1 # => This Inner Loop Header: Depth=2 - block .LBB0_6 - loop .LBB0_5 + block + loop # label3: i32.ge_u $push1=, $4, $2 - br_if $pop1, .LBB0_7 + br_if $pop1, 4 # 4: down to label1 # BB#3: # %while.body # in Loop: Header=BB0_2 Depth=2 i32.load8_s $3=, 0($4) @@ -36,15 +36,16 @@ pack_unpack: # @pack_unpack i32.add $1=, $4, $pop3 i32.const $push4=, 108 i32.eq $push5=, $3, $pop4 - br_if $pop5, .LBB0_6 + br_if $pop5, 2 # 2: down to label2 # BB#4: # %while.body # in Loop: Header=BB0_2 Depth=2 copy_local $4=, $1 i32.const $push6=, 115 i32.ne $push7=, $3, $pop6 - br_if $pop7, .LBB0_2 -.LBB0_5: # %sw.bb4 + br_if $pop7, 0 # 0: up to label3 +# BB#5: # %sw.bb4 # in Loop: Header=BB0_1 Depth=1 + end_loop # label4: i32.const $4=, 2 i32.const $9=, 8 i32.add $9=, $8, $9 @@ -52,9 +53,10 @@ pack_unpack: # @pack_unpack i32.add $0=, $0, $4 i32.load16_s $push9=, 8($8) call do_something@FUNCTION, $pop9 - br .LBB0_1 + br 1 # 1: up to label0 .LBB0_6: # %sw.bb8 # in Loop: Header=BB0_1 Depth=1 + end_block # label2: i32.const $4=, 4 i32.const $8=, 0 i32.add $8=, $8, $8 @@ -62,8 +64,9 @@ pack_unpack: # @pack_unpack i32.add $0=, $0, $4 i32.load $push8=, 0($8) call do_something@FUNCTION, $pop8 - br .LBB0_1 + br 0 # 0: up to label0 .LBB0_7: # %while.end + end_loop # label1: i32.load8_s $push2=, 0($0) i32.const $7=, 16 i32.add $8=, $8, $7 @@ -91,15 +94,16 @@ do_something: # @do_something main: # @main .result i32 # BB#0: # %entry - block .LBB2_2 + block i32.const $push1=, .L.str i32.const $push0=, .L.str.1 i32.call $push2=, pack_unpack@FUNCTION, $pop1, $pop0 - br_if $pop2, .LBB2_2 + br_if $pop2, 0 # 0: down to label5 # BB#1: # %if.end i32.const $push3=, 0 return $pop3 .LBB2_2: # %if.then + end_block # label5: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20111212-1.c.s b/test/torture-s/20111212-1.c.s index f47b9bc08..8f641b90f 100644 --- a/test/torture-s/20111212-1.c.s +++ b/test/torture-s/20111212-1.c.s @@ -13,7 +13,7 @@ frob_entry: # @frob_entry i32.const $push3=, 2 i32.add $3=, $0, $pop3 i32.const $2=, 8 - block .LBB0_2 + block i32.const $push8=, 1 i32.add $4=, $0, $pop8 i32.load8_u $push1=, 0($1) @@ -29,7 +29,7 @@ frob_entry: # @frob_entry i32.or $push13=, $pop7, $pop12 i32.const $push14=, 63 i32.gt_u $push15=, $pop13, $pop14 - br_if $pop15, .LBB0_2 + br_if $pop15, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push16=, 255 i32.store8 $push17=, 0($0), $pop16 @@ -37,6 +37,7 @@ frob_entry: # @frob_entry i32.store8 $push19=, 0($3), $pop18 i32.store8 $discard=, 0($4), $pop19 .LBB0_2: # %if.end + end_block # label0: return .Lfunc_end0: .size frob_entry, .Lfunc_end0-frob_entry diff --git a/test/torture-s/20111227-1.c.s b/test/torture-s/20111227-1.c.s index 5fb557e44..eab10823c 100644 --- a/test/torture-s/20111227-1.c.s +++ b/test/torture-s/20111227-1.c.s @@ -7,13 +7,14 @@ bar: # @bar .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, -1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -27,20 +28,22 @@ foo: # @foo .param i32, i32 # BB#0: # %entry i32.load16_u $0=, 0($0) - block .LBB1_3 - block .LBB1_2 + block + block i32.const $push2=, 0 i32.eq $push3=, $1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label2 # BB#1: # %if.then call bar@FUNCTION, $0 - br .LBB1_3 + br 1 # 1: down to label1 .LBB1_2: # %if.else + end_block # label2: i32.const $1=, 16 i32.shl $push1=, $0, $1 i32.shr_s $push0=, $pop1, $1 call bar@FUNCTION, $pop0 .LBB1_3: # %if.end + end_block # label1: return .Lfunc_end1: .size foo, .Lfunc_end1-foo diff --git a/test/torture-s/20111227-2.c.s b/test/torture-s/20111227-2.c.s index 4b7ac5c5a..9ee65e37f 100644 --- a/test/torture-s/20111227-2.c.s +++ b/test/torture-s/20111227-2.c.s @@ -9,45 +9,48 @@ bar: # @bar .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_3 + block i32.const $push1=, 2 i32.ne $push2=, $0, $pop1 - br_if $pop2, .LBB0_3 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %entry i32.load16_u $push0=, s($1) i32.const $push3=, 65535 i32.and $push4=, $pop0, $pop3 i32.const $push5=, 255 i32.eq $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_3 + br_if $pop6, 0 # 0: down to label0 # BB#2: # %if.then call abort@FUNCTION unreachable .LBB0_3: # %if.end - block .LBB0_6 + end_block # label0: + block i32.const $push8=, 1 i32.ne $push9=, $0, $pop8 - br_if $pop9, .LBB0_6 + br_if $pop9, 0 # 0: down to label1 # BB#4: # %if.end i32.load $push7=, i($1) i32.const $push10=, 255 i32.eq $push11=, $pop7, $pop10 - br_if $pop11, .LBB0_6 + br_if $pop11, 0 # 0: down to label1 # BB#5: # %if.then8 call abort@FUNCTION unreachable .LBB0_6: # %if.end9 - block .LBB0_9 - br_if $0, .LBB0_9 + end_block # label1: + block + br_if $0, 0 # 0: down to label2 # BB#7: # %if.end9 i32.load $push12=, l($1) i32.const $push13=, 255 i32.eq $push14=, $pop12, $pop13 - br_if $pop14, .LBB0_9 + br_if $pop14, 0 # 0: down to label2 # BB#8: # %if.then15 call abort@FUNCTION unreachable .LBB0_9: # %if.end16 + end_block # label2: return .Lfunc_end0: .size bar, .Lfunc_end0-bar @@ -62,29 +65,32 @@ foo: # @foo # BB#0: # %entry i32.const $3=, 0 i32.load8_u $2=, v($3) - block .LBB1_6 - block .LBB1_5 + block + block i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB1_5 + br_if $pop5, 0 # 0: down to label4 # BB#1: # %entry - block .LBB1_4 + block i32.const $push0=, 1 i32.eq $push1=, $1, $pop0 - br_if $pop1, .LBB1_4 + br_if $pop1, 0 # 0: down to label5 # BB#2: # %entry i32.const $push2=, 2 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB1_6 + br_if $pop3, 2 # 2: down to label3 # BB#3: # %if.then i32.store16 $discard=, s($3), $2 - br .LBB1_6 + br 2 # 2: down to label3 .LBB1_4: # %if.then3 + end_block # label5: i32.store $discard=, i($3), $2 - br .LBB1_6 + br 1 # 1: down to label3 .LBB1_5: # %if.then8 + end_block # label4: i32.store $discard=, l($3), $2 .LBB1_6: # %if.end11 + end_block # label3: call bar@FUNCTION, $1 return .Lfunc_end1: diff --git a/test/torture-s/20111227-3.c.s b/test/torture-s/20111227-3.c.s index 4247ba075..8472072cc 100644 --- a/test/torture-s/20111227-3.c.s +++ b/test/torture-s/20111227-3.c.s @@ -9,44 +9,47 @@ bar: # @bar .local i32, i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_3 + block i32.const $push1=, 2 i32.ne $push2=, $0, $pop1 - br_if $pop2, .LBB0_3 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %entry i32.const $2=, 65535 i32.load16_u $push0=, s($1) i32.and $push3=, $pop0, $2 i32.eq $push4=, $pop3, $2 - br_if $pop4, .LBB0_3 + br_if $pop4, 0 # 0: down to label0 # BB#2: # %if.then call abort@FUNCTION unreachable .LBB0_3: # %if.end - block .LBB0_6 + end_block # label0: + block i32.const $push6=, 1 i32.ne $push7=, $0, $pop6 - br_if $pop7, .LBB0_6 + br_if $pop7, 0 # 0: down to label1 # BB#4: # %if.end i32.load $push5=, i($1) i32.const $push8=, -1 i32.eq $push9=, $pop5, $pop8 - br_if $pop9, .LBB0_6 + br_if $pop9, 0 # 0: down to label1 # BB#5: # %if.then8 call abort@FUNCTION unreachable .LBB0_6: # %if.end9 - block .LBB0_9 - br_if $0, .LBB0_9 + end_block # label1: + block + br_if $0, 0 # 0: down to label2 # BB#7: # %if.end9 i32.load $push10=, l($1) i32.const $push11=, -1 i32.eq $push12=, $pop10, $pop11 - br_if $pop12, .LBB0_9 + br_if $pop12, 0 # 0: down to label2 # BB#8: # %if.then15 call abort@FUNCTION unreachable .LBB0_9: # %if.end16 + end_block # label2: return .Lfunc_end0: .size bar, .Lfunc_end0-bar @@ -61,29 +64,32 @@ foo: # @foo # BB#0: # %entry i32.const $3=, 0 i32.load8_s $2=, v($3) - block .LBB1_6 - block .LBB1_5 + block + block i32.const $push4=, 0 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB1_5 + br_if $pop5, 0 # 0: down to label4 # BB#1: # %entry - block .LBB1_4 + block i32.const $push0=, 1 i32.eq $push1=, $1, $pop0 - br_if $pop1, .LBB1_4 + br_if $pop1, 0 # 0: down to label5 # BB#2: # %entry i32.const $push2=, 2 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB1_6 + br_if $pop3, 2 # 2: down to label3 # BB#3: # %if.then i32.store16 $discard=, s($3), $2 - br .LBB1_6 + br 2 # 2: down to label3 .LBB1_4: # %if.then3 + end_block # label5: i32.store $discard=, i($3), $2 - br .LBB1_6 + br 1 # 1: down to label3 .LBB1_5: # %if.then8 + end_block # label4: i32.store $discard=, l($3), $2 .LBB1_6: # %if.end11 + end_block # label3: call bar@FUNCTION, $1 return .Lfunc_end1: diff --git a/test/torture-s/20120111-1.c.s b/test/torture-s/20120111-1.c.s index 86e10b640..dbc05803c 100644 --- a/test/torture-s/20120111-1.c.s +++ b/test/torture-s/20120111-1.c.s @@ -23,16 +23,17 @@ f0a: # @f0a main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i64.const $push0=, -6352373499721454287 i32.call $push1=, f0a@FUNCTION, $pop0 i32.const $push2=, -1 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20120207-1.c.s b/test/torture-s/20120207-1.c.s index cfb715d28..90c99bc8e 100644 --- a/test/torture-s/20120207-1.c.s +++ b/test/torture-s/20120207-1.c.s @@ -24,18 +24,19 @@ test: # @test main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 2 i32.call $push1=, test@FUNCTION, $pop0 i32.const $push2=, 255 i32.and $push3=, $pop1, $pop2 i32.const $push4=, 49 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push6=, 0 return $pop6 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20120427-1.c.s b/test/torture-s/20120427-1.c.s index 8be907efb..9e2d9cbb0 100644 --- a/test/torture-s/20120427-1.c.s +++ b/test/torture-s/20120427-1.c.s @@ -13,25 +13,26 @@ sreal_compare: # @sreal_compare i32.load $3=, 4($1) i32.const $4=, 1 copy_local $5=, $4 - block .LBB0_4 + block i32.gt_s $push0=, $2, $3 - br_if $pop0, .LBB0_4 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end i32.const $5=, -1 i32.lt_s $push1=, $2, $3 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %if.end6 i32.load $2=, 0($0) i32.load $3=, 0($1) copy_local $5=, $4 i32.gt_u $push2=, $2, $3 - br_if $pop2, .LBB0_4 + br_if $pop2, 0 # 0: down to label0 # BB#3: # %if.end10 i32.lt_u $push3=, $2, $3 i32.const $push5=, -1 i32.const $push4=, 0 i32.select $5=, $pop3, $pop5, $pop4 .LBB0_4: # %return + end_block # label0: return $5 .Lfunc_end0: .size sreal_compare, .Lfunc_end0-sreal_compare @@ -53,173 +54,186 @@ main: # @main i32.load $5=, a+16($6) .LBB1_1: # %for.cond1.preheader # =>This Inner Loop Header: Depth=1 - block .LBB1_33 - loop .LBB1_32 + block + loop # label2: i32.const $10=, 3 i32.const $push1=, a i32.shl $push0=, $6, $10 i32.add $8=, $pop1, $pop0 i32.const $11=, 4 i32.add $7=, $8, $11 - block .LBB1_31 - block .LBB1_28 - block .LBB1_25 - block .LBB1_22 + block + block + block + block i32.const $push2=, -1 i32.le_s $push3=, $6, $pop2 - br_if $pop3, .LBB1_22 + br_if $pop3, 0 # 0: down to label7 # BB#2: # %if.end # in Loop: Header=BB1_1 Depth=1 i32.load $9=, 0($7) - block .LBB1_21 - block .LBB1_19 + block + block i32.const $push44=, 0 i32.eq $push45=, $6, $pop44 - br_if $pop45, .LBB1_19 + br_if $pop45, 0 # 0: down to label9 # BB#3: # %land.lhs.true16 # in Loop: Header=BB1_1 Depth=1 - block .LBB1_18 - block .LBB1_6 + block + block i32.gt_s $push4=, $9, $0 - br_if $pop4, .LBB1_6 + br_if $pop4, 0 # 0: down to label11 # BB#4: # %if.end.i45 # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push5=, $9, $0 - br_if $pop5, .LBB1_18 + br_if $pop5, 1 # 1: down to label10 # BB#5: # %if.end6.i49 # in Loop: Header=BB1_1 Depth=1 i32.load $push6=, 0($8) i32.le_u $push7=, $pop6, $1 - br_if $pop7, .LBB1_18 + br_if $pop7, 1 # 1: down to label10 .LBB1_6: # %if.end.1 # in Loop: Header=BB1_1 Depth=1 + end_block # label11: i32.load $9=, 0($7) - block .LBB1_9 + block i32.const $push8=, 1 i32.ne $push9=, $6, $pop8 - br_if $pop9, .LBB1_9 + br_if $pop9, 0 # 0: down to label12 # BB#7: # %land.lhs.true8.1 # in Loop: Header=BB1_1 Depth=1 i32.ne $push23=, $9, $2 - br_if $pop23, .LBB1_21 + br_if $pop23, 3 # 3: down to label8 # BB#8: # %if.end6.i63.1 # in Loop: Header=BB1_1 Depth=1 i32.load $push24=, 0($8) i32.eq $push25=, $pop24, $3 - br_if $pop25, .LBB1_28 - br .LBB1_21 + br_if $pop25, 6 # 6: down to label5 + br 3 # 3: down to label8 .LBB1_9: # %land.lhs.true16.1 # in Loop: Header=BB1_1 Depth=1 - block .LBB1_12 + end_block # label12: + block i32.gt_s $push10=, $9, $2 - br_if $pop10, .LBB1_12 + br_if $pop10, 0 # 0: down to label13 # BB#10: # %if.end.i45.1 # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push11=, $9, $2 - br_if $pop11, .LBB1_18 + br_if $pop11, 1 # 1: down to label10 # BB#11: # %if.end6.i49.1 # in Loop: Header=BB1_1 Depth=1 i32.load $push12=, 0($8) i32.le_u $push13=, $pop12, $3 - br_if $pop13, .LBB1_18 + br_if $pop13, 1 # 1: down to label10 .LBB1_12: # %if.end.2 # in Loop: Header=BB1_1 Depth=1 + end_block # label13: i32.load $7=, 0($7) - block .LBB1_15 + block i32.const $push14=, 2 i32.ne $push15=, $6, $pop14 - br_if $pop15, .LBB1_15 + br_if $pop15, 0 # 0: down to label14 # BB#13: # %land.lhs.true8.2 # in Loop: Header=BB1_1 Depth=1 i32.ne $push20=, $7, $4 - br_if $pop20, .LBB1_21 + br_if $pop20, 3 # 3: down to label8 # BB#14: # %if.end6.i63.2 # in Loop: Header=BB1_1 Depth=1 copy_local $6=, $10 i32.load $push21=, 0($8) i32.eq $push22=, $pop21, $5 - br_if $pop22, .LBB1_1 - br .LBB1_21 + br_if $pop22, 8 # 8: up to label2 + br 3 # 3: down to label8 .LBB1_15: # %land.lhs.true16.2 # in Loop: Header=BB1_1 Depth=1 + end_block # label14: i32.gt_s $push16=, $7, $4 - br_if $pop16, .LBB1_31 + br_if $pop16, 6 # 6: down to label4 # BB#16: # %if.end.i45.2 # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push17=, $7, $4 - br_if $pop17, .LBB1_18 + br_if $pop17, 0 # 0: down to label10 # BB#17: # %if.end6.i49.2 # in Loop: Header=BB1_1 Depth=1 i32.load $push18=, 0($8) i32.gt_u $push19=, $pop18, $5 - br_if $pop19, .LBB1_31 + br_if $pop19, 6 # 6: down to label4 .LBB1_18: # %if.then21 + end_block # label10: call abort@FUNCTION unreachable .LBB1_19: # %land.lhs.true8 # in Loop: Header=BB1_1 Depth=1 + end_block # label9: i32.ne $push26=, $9, $0 - br_if $pop26, .LBB1_21 + br_if $pop26, 0 # 0: down to label8 # BB#20: # %if.end6.i63 # in Loop: Header=BB1_1 Depth=1 i32.load $push27=, 0($8) i32.eq $push28=, $pop27, $1 - br_if $pop28, .LBB1_25 + br_if $pop28, 2 # 2: down to label6 .LBB1_21: # %if.then13 + end_block # label8: call abort@FUNCTION unreachable .LBB1_22: # %land.lhs.true # in Loop: Header=BB1_1 Depth=1 + end_block # label7: i32.load $10=, 0($7) i32.gt_s $push29=, $10, $0 - br_if $pop29, .LBB1_33 + br_if $pop29, 5 # 5: down to label1 # BB#23: # %if.end.i # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push30=, $10, $0 - br_if $pop30, .LBB1_25 + br_if $pop30, 0 # 0: down to label6 # BB#24: # %if.end6.i # in Loop: Header=BB1_1 Depth=1 i32.load $push31=, 0($8) i32.ge_u $push32=, $pop31, $1 - br_if $pop32, .LBB1_33 + br_if $pop32, 5 # 5: down to label1 .LBB1_25: # %land.lhs.true.1 # in Loop: Header=BB1_1 Depth=1 + end_block # label6: i32.load $10=, 0($7) i32.gt_s $push33=, $10, $2 - br_if $pop33, .LBB1_33 + br_if $pop33, 4 # 4: down to label1 # BB#26: # %if.end.i.1 # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push34=, $10, $2 - br_if $pop34, .LBB1_28 + br_if $pop34, 0 # 0: down to label5 # BB#27: # %if.end6.i.1 # in Loop: Header=BB1_1 Depth=1 i32.load $push35=, 0($8) i32.ge_u $push36=, $pop35, $3 - br_if $pop36, .LBB1_33 + br_if $pop36, 4 # 4: down to label1 .LBB1_28: # %land.lhs.true.2 # in Loop: Header=BB1_1 Depth=1 + end_block # label5: i32.load $7=, 0($7) i32.gt_s $push37=, $7, $4 - br_if $pop37, .LBB1_33 + br_if $pop37, 3 # 3: down to label1 # BB#29: # %if.end.i.2 # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push38=, $7, $4 - br_if $pop38, .LBB1_31 + br_if $pop38, 0 # 0: down to label4 # BB#30: # %if.end6.i.2 # in Loop: Header=BB1_1 Depth=1 i32.load $push39=, 0($8) i32.ge_u $push40=, $pop39, $5 - br_if $pop40, .LBB1_33 + br_if $pop40, 3 # 3: down to label1 .LBB1_31: # %for.inc.2 # in Loop: Header=BB1_1 Depth=1 + end_block # label4: i32.const $push41=, 1 i32.add $6=, $6, $pop41 i32.lt_s $push42=, $6, $11 - br_if $pop42, .LBB1_1 -.LBB1_32: # %for.end25 + br_if $pop42, 0 # 0: up to label2 +# BB#32: # %for.end25 + end_loop # label3: i32.const $push43=, 0 return $pop43 .LBB1_33: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20120427-2.c.s b/test/torture-s/20120427-2.c.s index 73b57e22d..a0aa40a6e 100644 --- a/test/torture-s/20120427-2.c.s +++ b/test/torture-s/20120427-2.c.s @@ -13,25 +13,26 @@ sreal_compare: # @sreal_compare i32.load $3=, 4($1) i32.const $4=, 1 copy_local $5=, $4 - block .LBB0_4 + block i32.gt_s $push0=, $2, $3 - br_if $pop0, .LBB0_4 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end i32.const $5=, -1 i32.lt_s $push1=, $2, $3 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %if.end6 i32.load $2=, 0($0) i32.load $3=, 0($1) copy_local $5=, $4 i32.gt_u $push2=, $2, $3 - br_if $pop2, .LBB0_4 + br_if $pop2, 0 # 0: down to label0 # BB#3: # %if.end10 i32.lt_u $push3=, $2, $3 i32.const $push5=, -1 i32.const $push4=, 0 i32.select $5=, $pop3, $pop5, $pop4 .LBB0_4: # %return + end_block # label0: return $5 .Lfunc_end0: .size sreal_compare, .Lfunc_end0-sreal_compare @@ -53,173 +54,186 @@ main: # @main i32.load $5=, a+16($6) .LBB1_1: # %for.cond1.preheader # =>This Inner Loop Header: Depth=1 - block .LBB1_33 - loop .LBB1_32 + block + loop # label2: i32.const $10=, 3 i32.const $push1=, a i32.shl $push0=, $6, $10 i32.add $8=, $pop1, $pop0 i32.const $11=, 4 i32.add $7=, $8, $11 - block .LBB1_31 - block .LBB1_28 - block .LBB1_25 - block .LBB1_22 + block + block + block + block i32.const $push2=, -1 i32.le_s $push3=, $6, $pop2 - br_if $pop3, .LBB1_22 + br_if $pop3, 0 # 0: down to label7 # BB#2: # %if.end # in Loop: Header=BB1_1 Depth=1 i32.load $9=, 0($7) - block .LBB1_21 - block .LBB1_19 + block + block i32.const $push44=, 0 i32.eq $push45=, $6, $pop44 - br_if $pop45, .LBB1_19 + br_if $pop45, 0 # 0: down to label9 # BB#3: # %land.lhs.true16 # in Loop: Header=BB1_1 Depth=1 - block .LBB1_18 - block .LBB1_6 + block + block i32.gt_s $push4=, $9, $0 - br_if $pop4, .LBB1_6 + br_if $pop4, 0 # 0: down to label11 # BB#4: # %if.end.i45 # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push5=, $9, $0 - br_if $pop5, .LBB1_18 + br_if $pop5, 1 # 1: down to label10 # BB#5: # %if.end6.i49 # in Loop: Header=BB1_1 Depth=1 i32.load $push6=, 0($8) i32.le_u $push7=, $pop6, $1 - br_if $pop7, .LBB1_18 + br_if $pop7, 1 # 1: down to label10 .LBB1_6: # %if.end.1 # in Loop: Header=BB1_1 Depth=1 + end_block # label11: i32.load $9=, 0($7) - block .LBB1_9 + block i32.const $push8=, 1 i32.ne $push9=, $6, $pop8 - br_if $pop9, .LBB1_9 + br_if $pop9, 0 # 0: down to label12 # BB#7: # %land.lhs.true8.1 # in Loop: Header=BB1_1 Depth=1 i32.ne $push23=, $9, $2 - br_if $pop23, .LBB1_21 + br_if $pop23, 3 # 3: down to label8 # BB#8: # %if.end6.i63.1 # in Loop: Header=BB1_1 Depth=1 i32.load $push24=, 0($8) i32.eq $push25=, $pop24, $3 - br_if $pop25, .LBB1_28 - br .LBB1_21 + br_if $pop25, 6 # 6: down to label5 + br 3 # 3: down to label8 .LBB1_9: # %land.lhs.true16.1 # in Loop: Header=BB1_1 Depth=1 - block .LBB1_12 + end_block # label12: + block i32.gt_s $push10=, $9, $2 - br_if $pop10, .LBB1_12 + br_if $pop10, 0 # 0: down to label13 # BB#10: # %if.end.i45.1 # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push11=, $9, $2 - br_if $pop11, .LBB1_18 + br_if $pop11, 1 # 1: down to label10 # BB#11: # %if.end6.i49.1 # in Loop: Header=BB1_1 Depth=1 i32.load $push12=, 0($8) i32.le_u $push13=, $pop12, $3 - br_if $pop13, .LBB1_18 + br_if $pop13, 1 # 1: down to label10 .LBB1_12: # %if.end.2 # in Loop: Header=BB1_1 Depth=1 + end_block # label13: i32.load $7=, 0($7) - block .LBB1_15 + block i32.const $push14=, 2 i32.ne $push15=, $6, $pop14 - br_if $pop15, .LBB1_15 + br_if $pop15, 0 # 0: down to label14 # BB#13: # %land.lhs.true8.2 # in Loop: Header=BB1_1 Depth=1 i32.ne $push20=, $7, $4 - br_if $pop20, .LBB1_21 + br_if $pop20, 3 # 3: down to label8 # BB#14: # %if.end6.i63.2 # in Loop: Header=BB1_1 Depth=1 copy_local $6=, $10 i32.load $push21=, 0($8) i32.eq $push22=, $pop21, $5 - br_if $pop22, .LBB1_1 - br .LBB1_21 + br_if $pop22, 8 # 8: up to label2 + br 3 # 3: down to label8 .LBB1_15: # %land.lhs.true16.2 # in Loop: Header=BB1_1 Depth=1 + end_block # label14: i32.gt_s $push16=, $7, $4 - br_if $pop16, .LBB1_31 + br_if $pop16, 6 # 6: down to label4 # BB#16: # %if.end.i45.2 # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push17=, $7, $4 - br_if $pop17, .LBB1_18 + br_if $pop17, 0 # 0: down to label10 # BB#17: # %if.end6.i49.2 # in Loop: Header=BB1_1 Depth=1 i32.load $push18=, 0($8) i32.gt_u $push19=, $pop18, $5 - br_if $pop19, .LBB1_31 + br_if $pop19, 6 # 6: down to label4 .LBB1_18: # %if.then21 + end_block # label10: call abort@FUNCTION unreachable .LBB1_19: # %land.lhs.true8 # in Loop: Header=BB1_1 Depth=1 + end_block # label9: i32.ne $push26=, $9, $0 - br_if $pop26, .LBB1_21 + br_if $pop26, 0 # 0: down to label8 # BB#20: # %if.end6.i63 # in Loop: Header=BB1_1 Depth=1 i32.load $push27=, 0($8) i32.eq $push28=, $pop27, $1 - br_if $pop28, .LBB1_25 + br_if $pop28, 2 # 2: down to label6 .LBB1_21: # %if.then13 + end_block # label8: call abort@FUNCTION unreachable .LBB1_22: # %land.lhs.true # in Loop: Header=BB1_1 Depth=1 + end_block # label7: i32.load $10=, 0($7) i32.gt_s $push29=, $10, $0 - br_if $pop29, .LBB1_33 + br_if $pop29, 5 # 5: down to label1 # BB#23: # %if.end.i # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push30=, $10, $0 - br_if $pop30, .LBB1_25 + br_if $pop30, 0 # 0: down to label6 # BB#24: # %if.end6.i # in Loop: Header=BB1_1 Depth=1 i32.load $push31=, 0($8) i32.ge_u $push32=, $pop31, $1 - br_if $pop32, .LBB1_33 + br_if $pop32, 5 # 5: down to label1 .LBB1_25: # %land.lhs.true.1 # in Loop: Header=BB1_1 Depth=1 + end_block # label6: i32.load $10=, 0($7) i32.gt_s $push33=, $10, $2 - br_if $pop33, .LBB1_33 + br_if $pop33, 4 # 4: down to label1 # BB#26: # %if.end.i.1 # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push34=, $10, $2 - br_if $pop34, .LBB1_28 + br_if $pop34, 0 # 0: down to label5 # BB#27: # %if.end6.i.1 # in Loop: Header=BB1_1 Depth=1 i32.load $push35=, 0($8) i32.ge_u $push36=, $pop35, $3 - br_if $pop36, .LBB1_33 + br_if $pop36, 4 # 4: down to label1 .LBB1_28: # %land.lhs.true.2 # in Loop: Header=BB1_1 Depth=1 + end_block # label5: i32.load $7=, 0($7) i32.gt_s $push37=, $7, $4 - br_if $pop37, .LBB1_33 + br_if $pop37, 3 # 3: down to label1 # BB#29: # %if.end.i.2 # in Loop: Header=BB1_1 Depth=1 i32.lt_s $push38=, $7, $4 - br_if $pop38, .LBB1_31 + br_if $pop38, 0 # 0: down to label4 # BB#30: # %if.end6.i.2 # in Loop: Header=BB1_1 Depth=1 i32.load $push39=, 0($8) i32.ge_u $push40=, $pop39, $5 - br_if $pop40, .LBB1_33 + br_if $pop40, 3 # 3: down to label1 .LBB1_31: # %for.inc.2 # in Loop: Header=BB1_1 Depth=1 + end_block # label4: i32.const $push41=, 1 i32.add $6=, $6, $pop41 i32.lt_s $push42=, $6, $11 - br_if $pop42, .LBB1_1 -.LBB1_32: # %for.end25 + br_if $pop42, 0 # 0: up to label2 +# BB#32: # %for.end25 + end_loop # label3: i32.const $push43=, 0 return $pop43 .LBB1_33: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20120615-1.c.s b/test/torture-s/20120615-1.c.s index 75e25210b..58d52f058 100644 --- a/test/torture-s/20120615-1.c.s +++ b/test/torture-s/20120615-1.c.s @@ -7,10 +7,10 @@ test1: # @test1 .param i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push0=, 17 i32.gt_u $push1=, $0, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.const $push2=, 1 i32.shl $push3=, $pop2, $0 @@ -18,10 +18,11 @@ test1: # @test1 i32.and $push5=, $pop3, $pop4 i32.const $push6=, 0 i32.eq $push7=, $pop5, $pop6 - br_if $pop7, .LBB0_3 + br_if $pop7, 0 # 0: down to label0 # BB#2: # %if.end6 return .LBB0_3: # %if.end5 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20120808-1.c.s b/test/torture-s/20120808-1.c.s index cc6a1b883..4b1a6beaf 100644 --- a/test/torture-s/20120808-1.c.s +++ b/test/torture-s/20120808-1.c.s @@ -39,38 +39,41 @@ main: # @main i32.add $0=, $pop8, $4 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_8 + loop # label0: i32.add $1=, $0, $7 i32.load8_u $2=, 0($1) - block .LBB0_7 - block .LBB0_6 + block + block i32.const $push9=, 25 i32.eq $push10=, $7, $pop9 - br_if $pop10, .LBB0_6 + br_if $pop10, 0 # 0: down to label3 # BB#2: # %for.body # in Loop: Header=BB0_1 Depth=1 - block .LBB0_5 + block i32.const $push11=, 2 i32.eq $push12=, $7, $pop11 - br_if $pop12, .LBB0_5 + br_if $pop12, 0 # 0: down to label4 # BB#3: # %for.body # in Loop: Header=BB0_1 Depth=1 i32.const $8=, 255 i32.ne $push13=, $7, $4 - br_if $pop13, .LBB0_7 + br_if $pop13, 2 # 2: down to label2 # BB#4: # %sw.bb # in Loop: Header=BB0_1 Depth=1 i32.const $8=, 253 - br .LBB0_7 + br 2 # 2: down to label2 .LBB0_5: # %sw.bb1 # in Loop: Header=BB0_1 Depth=1 + end_block # label4: i32.const $8=, 251 - br .LBB0_7 + br 1 # 1: down to label2 .LBB0_6: # %sw.bb3 # in Loop: Header=BB0_1 Depth=1 + end_block # label3: i32.const $8=, 254 .LBB0_7: # %sw.epilog # in Loop: Header=BB0_1 Depth=1 + end_block # label2: i32.const $14=, 0 i32.add $14=, $15, $14 i32.add $push15=, $14, $7 @@ -81,15 +84,16 @@ main: # @main i32.add $7=, $7, $4 i32.const $push16=, 30 i32.ne $push17=, $7, $pop16 - br_if $pop17, .LBB0_1 -.LBB0_8: # %for.end + br_if $pop17, 0 # 0: up to label0 +# BB#8: # %for.end + end_loop # label1: i64.load $5=, 0($15) - block .LBB0_15 + block i64.const $push22=, 65535 i64.and $push23=, $5, $pop22 i64.const $push24=, 65023 i64.ne $push25=, $pop23, $pop24 - br_if $pop25, .LBB0_15 + br_if $pop25, 0 # 0: down to label5 # BB#9: # %for.end i32.wrap/i64 $push21=, $5 i32.shr_u $push18=, $pop21, $3 @@ -97,31 +101,32 @@ main: # @main i32.and $push27=, $pop18, $pop26 i32.const $push28=, 251 i32.ne $push29=, $pop27, $pop28 - br_if $pop29, .LBB0_15 + br_if $pop29, 0 # 0: down to label5 # BB#10: # %for.end i32.load $push19=, 0($15) i32.const $push30=, -16777216 i32.lt_u $push31=, $pop19, $pop30 - br_if $pop31, .LBB0_15 + br_if $pop31, 0 # 0: down to label5 # BB#11: # %for.end i64.const $6=, 1095216660480 i64.and $push20=, $5, $6 i64.ne $push32=, $pop20, $6 - br_if $pop32, .LBB0_15 + br_if $pop32, 0 # 0: down to label5 # BB#12: # %lor.lhs.false29 i32.load8_u $push33=, 25($15) i32.const $push34=, 254 i32.ne $push35=, $pop33, $pop34 - br_if $pop35, .LBB0_15 + br_if $pop35, 0 # 0: down to label5 # BB#13: # %lor.lhs.false34 i32.load $push36=, cp($8) i32.const $push37=, d+30 i32.ne $push38=, $pop36, $pop37 - br_if $pop38, .LBB0_15 + br_if $pop38, 0 # 0: down to label5 # BB#14: # %if.end call exit@FUNCTION, $8 unreachable .LBB0_15: # %if.then + end_block # label5: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/20120817-1.c.s b/test/torture-s/20120817-1.c.s index 44cc8b3f1..40d2cf9bc 100644 --- a/test/torture-s/20120817-1.c.s +++ b/test/torture-s/20120817-1.c.s @@ -27,16 +27,17 @@ f: # @f main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i64.call $push0=, f@FUNCTION i64.const $push1=, 16 i64.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push3=, 0 call exit@FUNCTION, $pop3 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20120919-1.c.s b/test/torture-s/20120919-1.c.s index c46b93443..296d7a3cb 100644 --- a/test/torture-s/20120919-1.c.s +++ b/test/torture-s/20120919-1.c.s @@ -7,12 +7,13 @@ init: # @init .param i32, i32 # BB#0: # %entry - block .LBB0_2 - br_if $0, .LBB0_2 + block + br_if $0, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push0=, 0 i32.store $discard=, 0($1), $pop0 .LBB0_2: # %if.end + end_block # label0: return .Lfunc_end0: .size init, .Lfunc_end0-init @@ -40,28 +41,28 @@ main: # @main call init@FUNCTION, $12, $13 i32.load $0=, 12($14) i32.const $8=, 0 - block .LBB1_9 + block i32.lt_s $push1=, $0, $8 - br_if $pop1, .LBB1_9 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %while.body.lr.ph i32.load $1=, pd($8) i32.load $2=, pi($8) i32.const $7=, -1 .LBB1_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_7 - block .LBB1_6 - br_if $7, .LBB1_6 + loop # label2: + block + br_if $7, 0 # 0: down to label4 # BB#3: # %if.then # in Loop: Header=BB1_2 Depth=1 f64.load $5=, 0($1) i32.load $3=, 0($2) - block .LBB1_5 + block f64.const $push2=, 0x0p0 f64.le $push3=, $5, $pop2 f64.ne $push4=, $5, $5 i32.or $push5=, $pop3, $pop4 - br_if $pop5, .LBB1_5 + br_if $pop5, 0 # 0: down to label5 # BB#4: # %if.then3 # in Loop: Header=BB1_2 Depth=1 i32.const $6=, 0 @@ -70,17 +71,20 @@ main: # @main i32.add $8=, $pop7, $8 .LBB1_5: # %if.end8 # in Loop: Header=BB1_2 Depth=1 + end_block # label5: f64.convert_s/i32 $push8=, $3 f64.store $discard=, 0($1), $pop8 .LBB1_6: # %if.end11 # in Loop: Header=BB1_2 Depth=1 + end_block # label4: i32.add $7=, $7, $4 i32.lt_s $push9=, $7, $0 - br_if $pop9, .LBB1_2 -.LBB1_7: # %while.end + br_if $pop9, 0 # 0: up to label2 +# BB#7: # %while.end + end_loop # label3: i32.const $push10=, 1234567890 i32.ne $push11=, $8, $pop10 - br_if $pop11, .LBB1_9 + br_if $pop11, 0 # 0: down to label1 # BB#8: # %if.end15 i32.const $push12=, 0 i32.const $11=, 6144 @@ -89,6 +93,7 @@ main: # @main i32.store $14=, 0($11), $14 return $pop12 .LBB1_9: # %if.then14 + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20121108-1.c.s b/test/torture-s/20121108-1.c.s index fd1d5a41a..c29106427 100644 --- a/test/torture-s/20121108-1.c.s +++ b/test/torture-s/20121108-1.c.s @@ -12,29 +12,30 @@ strtoul1: # @strtoul1 i32.add $push1=, $0, $pop0 i32.store $discard=, 0($1), $pop1 i32.const $1=, 192 - block .LBB0_5 + block i32.const $push2=, temp i32.eq $push3=, $0, $pop2 - br_if $pop3, .LBB0_5 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.else i32.const $1=, 168 i32.const $push4=, temp+4 i32.eq $push5=, $0, $pop4 - br_if $pop5, .LBB0_5 + br_if $pop5, 0 # 0: down to label0 # BB#2: # %if.else3 i32.const $1=, 190 i32.const $push6=, temp+8 i32.eq $push7=, $0, $pop6 - br_if $pop7, .LBB0_5 + br_if $pop7, 0 # 0: down to label0 # BB#3: # %if.else6 i32.const $1=, 160 i32.const $push8=, temp+12 i32.eq $push9=, $0, $pop8 - br_if $pop9, .LBB0_5 + br_if $pop9, 0 # 0: down to label0 # BB#4: # %if.end11 call abort@FUNCTION unreachable .LBB0_5: # %return + end_block # label0: return $1 .Lfunc_end0: .size strtoul1, .Lfunc_end0-strtoul1 @@ -55,10 +56,10 @@ string_to_ip: # @string_to_ip i32.const $7=, __stack_pointer i32.store $12=, 0($7), $12 i32.const $5=, 0 - block .LBB1_7 + block i32.const $push14=, 0 i32.eq $push15=, $0, $pop14 - br_if $pop15, .LBB1_7 + br_if $pop15, 0 # 0: down to label1 # BB#1: # %if.end9 i32.const $9=, 12 i32.add $9=, $12, $9 @@ -69,14 +70,14 @@ string_to_ip: # @string_to_ip i32.add $push1=, $0, $3 i32.select $1=, $pop0, $pop1, $0 i32.const $0=, 8 - block .LBB1_6 - block .LBB1_5 + block + block i32.shl $push2=, $5, $0 i32.const $push3=, 65280 i32.and $5=, $pop2, $pop3 i32.const $push16=, 0 i32.eq $push17=, $1, $pop16 - br_if $pop17, .LBB1_5 + br_if $pop17, 0 # 0: down to label3 # BB#2: # %if.end9.1 i32.const $10=, 12 i32.add $10=, $12, $10 @@ -90,7 +91,7 @@ string_to_ip: # @string_to_ip i32.or $5=, $pop4, $5 i32.const $push18=, 0 i32.eq $push19=, $2, $pop18 - br_if $pop19, .LBB1_5 + br_if $pop19, 0 # 0: down to label3 # BB#3: # %if.end9.2 i32.const $11=, 12 i32.add $11=, $12, $11 @@ -104,7 +105,7 @@ string_to_ip: # @string_to_ip i32.or $5=, $pop8, $pop7 i32.const $push20=, 0 i32.eq $push21=, $3, $pop20 - br_if $pop21, .LBB1_6 + br_if $pop21, 1 # 1: down to label2 # BB#4: # %if.then3.3 i32.const $12=, 12 i32.add $12=, $12, $12 @@ -112,12 +113,15 @@ string_to_ip: # @string_to_ip i32.and $push13=, $pop11, $1 i32.shl $push12=, $5, $0 i32.or $5=, $pop13, $pop12 - br .LBB1_7 + br 2 # 2: down to label1 .LBB1_5: # %if.end9.2.thread + end_block # label3: i32.shl $5=, $5, $0 .LBB1_6: # %cond.end.3 + end_block # label2: i32.shl $5=, $5, $0 .LBB1_7: # %cleanup + end_block # label1: i32.const $8=, 16 i32.add $12=, $12, $8 i32.const $8=, __stack_pointer @@ -173,10 +177,10 @@ main: # @main i32.add $14=, $9, $10 i32.const $10=, __stack_pointer i32.store $14=, 0($10), $14 - block .LBB2_2 + block i32.load $push2=, result($2) i32.ne $push3=, $0, $pop2 - br_if $pop3, .LBB2_2 + br_if $pop3, 0 # 0: down to label4 # BB#1: # %if.end i32.const $push4=, .Lstr i32.call $discard=, puts@FUNCTION, $pop4 @@ -186,6 +190,7 @@ main: # @main i32.store $14=, 0($13), $14 return $2 .LBB2_2: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/20140212-1.c.s b/test/torture-s/20140212-1.c.s index 48924cc7d..49a889ac8 100644 --- a/test/torture-s/20140212-1.c.s +++ b/test/torture-s/20140212-1.c.s @@ -23,28 +23,31 @@ fn1: # @fn1 i32.mul $2=, $1, $pop5 .LBB0_1: # %for.cond # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 - block .LBB0_4 - block .LBB0_3 + loop # label0: + block + block i32.const $push9=, 0 i32.eq $push10=, $3, $pop9 - br_if $pop10, .LBB0_3 + br_if $pop10, 0 # 0: down to label3 # BB#2: # %if.then # in Loop: Header=BB0_1 Depth=1 i32.const $push6=, 1 i32.store $discard=, c($5), $pop6 - br .LBB0_4 + br 1 # 1: down to label2 .LBB0_3: # %if.else # in Loop: Header=BB0_1 Depth=1 + end_block # label3: i32.const $push7=, 9 i32.store $push8=, i($5), $pop7 i32.store $discard=, h($5), $pop8 .LBB0_4: # %if.end # in Loop: Header=BB0_1 Depth=1 + end_block # label2: i32.const $push11=, 0 i32.eq $push12=, $4, $pop11 - br_if $pop12, .LBB0_1 -.LBB0_5: # %if.then15 + br_if $pop12, 0 # 0: up to label0 +# BB#5: # %if.then15 + end_loop # label1: i32.store $discard=, k($5), $0 i32.store8 $discard=, j($5), $1 i32.store8 $discard=, g($5), $2 @@ -74,43 +77,47 @@ main: # @main i32.select $1=, $0, $pop4, $5 .LBB1_1: # %for.cond.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_5 - block .LBB1_4 - block .LBB1_3 + loop # label4: + block + block i32.const $push13=, 0 i32.eq $push14=, $2, $pop13 - br_if $pop14, .LBB1_3 + br_if $pop14, 0 # 0: down to label7 # BB#2: # %if.then.i # in Loop: Header=BB1_1 Depth=1 i32.const $push6=, 0 i32.const $push5=, 1 i32.store $5=, c($pop6), $pop5 - br .LBB1_4 + br 1 # 1: down to label6 .LBB1_3: # %if.else.i # in Loop: Header=BB1_1 Depth=1 + end_block # label7: i32.const $4=, 0 i32.const $push7=, 9 i32.store $push8=, i($4), $pop7 i32.store $discard=, h($4), $pop8 .LBB1_4: # %if.end.i # in Loop: Header=BB1_1 Depth=1 + end_block # label6: i32.const $push15=, 0 i32.eq $push16=, $3, $pop15 - br_if $pop16, .LBB1_1 -.LBB1_5: # %fn1.exit + br_if $pop16, 0 # 0: up to label4 +# BB#5: # %fn1.exit + end_loop # label5: i32.const $4=, 0 i32.store $discard=, k($4), $0 i32.store8 $discard=, j($4), $1 - block .LBB1_7 + block i32.const $push9=, 147 i32.mul $push10=, $1, $pop9 i32.store8 $discard=, g($4), $pop10 i32.const $push11=, 1 i32.ne $push12=, $5, $pop11 - br_if $pop12, .LBB1_7 + br_if $pop12, 0 # 0: down to label8 # BB#6: # %if.end return $4 .LBB1_7: # %if.then + end_block # label8: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/20140425-1.c.s b/test/torture-s/20140425-1.c.s index 7c864543a..c21c7fad0 100644 --- a/test/torture-s/20140425-1.c.s +++ b/test/torture-s/20140425-1.c.s @@ -18,13 +18,13 @@ main: # @main i32.add $4=, $5, $4 call set@FUNCTION, $4 i32.load $0=, 12($5) - block .LBB0_2 + block i32.const $push0=, 2 i32.shl $push1=, $pop0, $0 i32.store $discard=, 12($5), $pop1 i32.const $push2=, 30 i32.le_u $push3=, $0, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 i32.const $3=, 16 @@ -33,6 +33,7 @@ main: # @main i32.store $5=, 0($3), $5 return $pop4 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/920428-1.c.s b/test/torture-s/920428-1.c.s index 858933073..41f2d8c77 100644 --- a/test/torture-s/920428-1.c.s +++ b/test/torture-s/920428-1.c.s @@ -20,16 +20,17 @@ x: # @x main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 1 i32.const $push2=, 0 i32.eq $push3=, $pop0, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push1=, 0 call exit@FUNCTION, $pop1 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/920501-1.c.s b/test/torture-s/920501-1.c.s index 6c092f54f..ce812bd2b 100644 --- a/test/torture-s/920501-1.c.s +++ b/test/torture-s/920501-1.c.s @@ -9,9 +9,9 @@ x: # @x .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, s($0) - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then i32.load $0=, s+4($0) i32.const $push2=, 2 @@ -22,6 +22,7 @@ x: # @x i32.add $push6=, $pop4, $pop5 i32.store $discard=, 0($pop6), $0 .LBB0_2: # %if.end + end_block # label0: i32.const $push7=, 1 return $pop7 .Lfunc_end0: diff --git a/test/torture-s/920501-2.c.s b/test/torture-s/920501-2.c.s index db3c14c4a..2e0b5f534 100644 --- a/test/torture-s/920501-2.c.s +++ b/test/torture-s/920501-2.c.s @@ -11,23 +11,25 @@ gcd_ll: # @gcd_ll # BB#0: # %entry i64.const $2=, 0 copy_local $3=, $0 - block .LBB0_3 + block i64.eq $push0=, $1, $2 - br_if $pop0, .LBB0_3 + br_if $pop0, 0 # 0: down to label0 .LBB0_1: # %if.end # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i64.rem_u $0=, $0, $1 copy_local $3=, $1 i64.eq $push1=, $0, $2 - br_if $pop1, .LBB0_3 + br_if $pop1, 1 # 1: down to label2 # BB#2: # %if.end5 # in Loop: Header=BB0_1 Depth=1 i64.rem_u $1=, $1, $0 copy_local $3=, $0 i64.ne $push2=, $1, $2 - br_if $pop2, .LBB0_1 + br_if $pop2, 0 # 0: up to label1 .LBB0_3: # %return + end_loop # label2: + end_block # label0: i32.wrap/i64 $push3=, $3 return $pop3 .Lfunc_end0: @@ -45,28 +47,29 @@ powmod_ll: # @powmod_ll i64.const $6=, 1 i32.const $4=, -1 copy_local $5=, $1 - block .LBB1_7 + block i32.const $push9=, 0 i32.eq $push10=, $1, $pop9 - br_if $pop10, .LBB1_7 + br_if $pop10, 0 # 0: down to label3 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label4: i32.const $3=, 1 i32.shr_u $5=, $5, $3 i32.add $4=, $4, $3 - br_if $5, .LBB1_1 -.LBB1_2: # %for.end + br_if $5, 0 # 0: up to label4 +# BB#2: # %for.end + end_loop # label5: copy_local $6=, $0 i32.lt_s $push0=, $4, $3 - br_if $pop0, .LBB1_7 + br_if $pop0, 0 # 0: down to label3 # BB#3: # %for.body4.preheader i32.add $5=, $4, $3 copy_local $6=, $0 .LBB1_4: # %for.body4 # =>This Inner Loop Header: Depth=1 - loop .LBB1_7 - block .LBB1_6 + loop # label6: + block i64.mul $push1=, $6, $6 i64.rem_u $6=, $pop1, $2 i32.const $push2=, -2 @@ -75,18 +78,21 @@ powmod_ll: # @powmod_ll i32.and $push5=, $pop4, $1 i32.const $push11=, 0 i32.eq $push12=, $pop5, $pop11 - br_if $pop12, .LBB1_6 + br_if $pop12, 0 # 0: down to label8 # BB#5: # %if.then5 # in Loop: Header=BB1_4 Depth=1 i64.mul $push6=, $6, $0 i64.rem_u $6=, $pop6, $2 .LBB1_6: # %for.inc9 # in Loop: Header=BB1_4 Depth=1 + end_block # label8: i32.const $push7=, -1 i32.add $5=, $5, $pop7 i32.gt_s $push8=, $5, $3 - br_if $pop8, .LBB1_4 + br_if $pop8, 0 # 0: up to label6 .LBB1_7: # %cleanup + end_loop # label7: + end_block # label3: return $6 .Lfunc_end1: .size powmod_ll, .Lfunc_end1-powmod_ll @@ -118,30 +124,31 @@ facts: # @facts # Child Loop BB2_16 Depth 2 # Child Loop BB2_19 Depth 2 # Child Loop BB2_24 Depth 2 - loop .LBB2_29 + loop # label9: copy_local $15=, $12 copy_local $12=, $5 copy_local $14=, $6 i32.const $13=, -1 copy_local $1=, $3 - block .LBB2_22 + block i32.const $push46=, 0 i32.eq $push47=, $3, $pop46 - br_if $pop47, .LBB2_22 + br_if $pop47, 0 # 0: down to label11 .LBB2_2: # %for.body.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_3 + loop # label12: i32.const $2=, 1 i32.shr_u $1=, $1, $2 i32.add $13=, $13, $2 - br_if $1, .LBB2_2 -.LBB2_3: # %for.end.i + br_if $1, 0 # 0: up to label12 +# BB#3: # %for.end.i # in Loop: Header=BB2_1 Depth=1 + end_loop # label13: copy_local $14=, $15 - block .LBB2_8 + block i32.lt_s $push0=, $13, $2 - br_if $pop0, .LBB2_8 + br_if $pop0, 0 # 0: down to label14 # BB#4: # %for.body4.i.preheader # in Loop: Header=BB2_1 Depth=1 i32.add $1=, $13, $2 @@ -149,8 +156,8 @@ facts: # @facts .LBB2_5: # %for.body4.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_8 - block .LBB2_7 + loop # label15: + block i64.mul $push1=, $14, $14 i64.rem_u $14=, $pop1, $0 i32.const $push2=, -2 @@ -159,35 +166,39 @@ facts: # @facts i32.and $push5=, $pop4, $3 i32.const $push48=, 0 i32.eq $push49=, $pop5, $pop48 - br_if $pop49, .LBB2_7 + br_if $pop49, 0 # 0: down to label17 # BB#6: # %if.then5.i # in Loop: Header=BB2_5 Depth=2 i64.mul $push6=, $14, $15 i64.rem_u $14=, $pop6, $0 .LBB2_7: # %for.inc9.i # in Loop: Header=BB2_5 Depth=2 + end_block # label17: i32.const $push7=, -1 i32.add $1=, $1, $pop7 i32.gt_s $push8=, $1, $2 - br_if $pop8, .LBB2_5 + br_if $pop8, 0 # 0: up to label15 .LBB2_8: # %for.body.i114.preheader # in Loop: Header=BB2_1 Depth=1 + end_loop # label16: + end_block # label14: i64.add $12=, $14, $4 i32.const $13=, -1 copy_local $1=, $3 .LBB2_9: # %for.body.i114 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_10 + loop # label18: i32.shr_u $1=, $1, $2 i32.add $13=, $13, $2 - br_if $1, .LBB2_9 -.LBB2_10: # %for.end.i116 + br_if $1, 0 # 0: up to label18 +# BB#10: # %for.end.i116 # in Loop: Header=BB2_1 Depth=1 + end_loop # label19: copy_local $14=, $11 - block .LBB2_15 + block i32.lt_s $push9=, $13, $2 - br_if $pop9, .LBB2_15 + br_if $pop9, 0 # 0: down to label20 # BB#11: # %for.body4.i125.preheader # in Loop: Header=BB2_1 Depth=1 i32.add $1=, $13, $2 @@ -195,8 +206,8 @@ facts: # @facts .LBB2_12: # %for.body4.i125 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_15 - block .LBB2_14 + loop # label21: + block i64.mul $push10=, $14, $14 i64.rem_u $14=, $pop10, $0 i32.const $push11=, -2 @@ -205,34 +216,38 @@ facts: # @facts i32.and $push14=, $pop13, $3 i32.const $push50=, 0 i32.eq $push51=, $pop14, $pop50 - br_if $pop51, .LBB2_14 + br_if $pop51, 0 # 0: down to label23 # BB#13: # %if.then5.i128 # in Loop: Header=BB2_12 Depth=2 i64.mul $push15=, $14, $11 i64.rem_u $14=, $pop15, $0 .LBB2_14: # %for.inc9.i131 # in Loop: Header=BB2_12 Depth=2 + end_block # label23: i32.const $push16=, -1 i32.add $1=, $1, $pop16 i32.gt_s $push17=, $1, $2 - br_if $pop17, .LBB2_12 + br_if $pop17, 0 # 0: up to label21 .LBB2_15: # %for.body.i88.preheader # in Loop: Header=BB2_1 Depth=1 + end_loop # label22: + end_block # label20: i64.add $15=, $14, $4 i32.const $13=, -1 copy_local $1=, $3 .LBB2_16: # %for.body.i88 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_17 + loop # label24: i32.shr_u $1=, $1, $2 i32.add $13=, $13, $2 - br_if $1, .LBB2_16 -.LBB2_17: # %for.end.i90 + br_if $1, 0 # 0: up to label24 +# BB#17: # %for.end.i90 # in Loop: Header=BB2_1 Depth=1 + end_loop # label25: copy_local $14=, $15 i32.lt_s $push18=, $13, $2 - br_if $pop18, .LBB2_22 + br_if $pop18, 0 # 0: down to label11 # BB#18: # %for.body4.i99.preheader # in Loop: Header=BB2_1 Depth=1 i32.add $1=, $13, $2 @@ -240,8 +255,8 @@ facts: # @facts .LBB2_19: # %for.body4.i99 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_22 - block .LBB2_21 + loop # label26: + block i64.mul $push19=, $14, $14 i64.rem_u $14=, $pop19, $0 i32.const $push20=, -2 @@ -250,22 +265,25 @@ facts: # @facts i32.and $push23=, $pop22, $3 i32.const $push52=, 0 i32.eq $push53=, $pop23, $pop52 - br_if $pop53, .LBB2_21 + br_if $pop53, 0 # 0: down to label28 # BB#20: # %if.then5.i102 # in Loop: Header=BB2_19 Depth=2 i64.mul $push24=, $14, $15 i64.rem_u $14=, $pop24, $0 .LBB2_21: # %for.inc9.i105 # in Loop: Header=BB2_19 Depth=2 + end_block # label28: i32.const $push25=, -1 i32.add $1=, $1, $pop25 i32.gt_s $push26=, $1, $2 - br_if $pop26, .LBB2_19 + br_if $pop26, 0 # 0: up to label26 .LBB2_22: # %powmod_ll.exit107 # in Loop: Header=BB2_1 Depth=1 + end_loop # label27: + end_block # label11: i64.add $11=, $14, $4 i64.const $7=, 4294967295 - block .LBB2_28 + block i64.gt_u $push27=, $12, $11 i64.sub $push28=, $12, $11 i64.sub $push29=, $11, $12 @@ -275,7 +293,7 @@ facts: # @facts i64.mul $push33=, $pop32, $pop31 i64.rem_u $10=, $pop33, $0 i32.ne $push34=, $9, $18 - br_if $pop34, .LBB2_28 + br_if $pop34, 0 # 0: down to label29 # BB#23: # %if.then19 # in Loop: Header=BB2_1 Depth=1 i32.const $2=, 1 @@ -284,29 +302,31 @@ facts: # @facts i64.const $8=, 0 copy_local $15=, $0 copy_local $16=, $14 - block .LBB2_26 + block i64.eq $push35=, $0, $8 - br_if $pop35, .LBB2_26 + br_if $pop35, 0 # 0: down to label30 .LBB2_24: # %if.end.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_26 + loop # label31: i64.rem_u $14=, $14, $15 copy_local $16=, $15 i64.eq $push36=, $14, $8 - br_if $pop36, .LBB2_26 + br_if $pop36, 1 # 1: down to label32 # BB#25: # %if.end5.i # in Loop: Header=BB2_24 Depth=2 i64.rem_u $15=, $15, $14 copy_local $16=, $14 i64.ne $push37=, $15, $8 - br_if $pop37, .LBB2_24 + br_if $pop37, 0 # 0: up to label31 .LBB2_26: # %gcd_ll.exit # in Loop: Header=BB2_1 Depth=1 + end_loop # label32: + end_block # label30: i32.add $18=, $19, $18 i32.wrap/i64 $1=, $16 i32.eq $push38=, $1, $2 - br_if $pop38, .LBB2_28 + br_if $pop38, 0 # 0: down to label29 # BB#27: # %if.then26 # in Loop: Header=BB2_1 Depth=1 i32.store $discard=, 0($17), $1 @@ -317,15 +337,17 @@ facts: # @facts copy_local $17=, $2 i64.const $push41=, 1 i64.eq $push42=, $0, $pop41 - br_if $pop42, .LBB2_29 + br_if $pop42, 2 # 2: down to label10 .LBB2_28: # %for.inc # in Loop: Header=BB2_1 Depth=1 + end_block # label29: i32.const $push43=, 1 i32.add $9=, $9, $pop43 i32.const $push44=, 10000 i32.lt_s $push45=, $9, $pop44 - br_if $pop45, .LBB2_1 + br_if $pop45, 0 # 0: up to label9 .LBB2_29: # %cleanup + end_loop # label10: return .Lfunc_end2: .size facts, .Lfunc_end2-facts @@ -345,26 +367,27 @@ main: # @main call facts@FUNCTION, $pop5, $pop4, $pop3, $pop2 i32.const $0=, 0 i64.load $1=, factab($0) - block .LBB3_4 + block i32.wrap/i64 $push6=, $1 i32.const $push7=, 7 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB3_4 + br_if $pop8, 0 # 0: down to label33 # BB#1: # %entry i64.const $push9=, -4294967296 i64.and $push0=, $1, $pop9 i64.const $push10=, 313532612608 i64.ne $push11=, $pop0, $pop10 - br_if $pop11, .LBB3_4 + br_if $pop11, 0 # 0: down to label33 # BB#2: # %entry i32.load $push1=, factab+8($0) i32.const $push12=, 262657 i32.ne $push13=, $pop1, $pop12 - br_if $pop13, .LBB3_4 + br_if $pop13, 0 # 0: down to label33 # BB#3: # %if.end call exit@FUNCTION, $0 unreachable .LBB3_4: # %if.then + end_block # label33: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/920501-9.c.s b/test/torture-s/920501-9.c.s index 8d517208a..c30f51eb8 100644 --- a/test/torture-s/920501-9.c.s +++ b/test/torture-s/920501-9.c.s @@ -79,11 +79,11 @@ print_longlong: # @print_longlong i64.shr_u $push1=, $0, $pop0 i32.wrap/i64 $2=, $pop1 i32.wrap/i64 $3=, $0 - block .LBB5_3 - block .LBB5_2 + block + block i32.const $push5=, 0 i32.eq $push6=, $2, $pop5 - br_if $pop6, .LBB5_2 + br_if $pop6, 0 # 0: down to label1 # BB#1: # %if.then i32.const $4=, __stack_pointer i32.load $4=, 0($4) @@ -103,8 +103,9 @@ print_longlong: # @print_longlong i32.add $13=, $6, $7 i32.const $7=, __stack_pointer i32.store $13=, 0($7), $13 - br .LBB5_3 + br 1 # 1: down to label0 .LBB5_2: # %if.else + end_block # label1: i32.const $8=, __stack_pointer i32.load $8=, 0($8) i32.const $9=, 4 @@ -121,6 +122,7 @@ print_longlong: # @print_longlong i32.const $11=, __stack_pointer i32.store $13=, 0($11), $13 .LBB5_3: # %if.end + end_block # label0: i32.const $14=, 16 i32.add $13=, $13, $14 i32.const $14=, __stack_pointer @@ -164,9 +166,9 @@ main: # @main i32.const $push1=, .L.str.2 i32.const $29=, 16 i32.add $29=, $38, $29 - block .LBB6_10 + block i32.call $1=, strcmp@FUNCTION, $pop1, $29 - br_if $1, .LBB6_10 + br_if $1, 0 # 0: down to label2 # BB#1: # %if.end i32.const $10=, __stack_pointer i32.load $10=, 0($10) @@ -188,9 +190,9 @@ main: # @main i32.const $push3=, .L.str.3 i32.const $31=, 16 i32.add $31=, $38, $31 - block .LBB6_9 + block i32.call $1=, strcmp@FUNCTION, $pop3, $31 - br_if $1, .LBB6_9 + br_if $1, 0 # 0: down to label3 # BB#2: # %if.end11 i32.const $14=, __stack_pointer i32.load $14=, 0($14) @@ -216,9 +218,9 @@ main: # @main i32.const $push5=, .L.str.4 i32.const $33=, 16 i32.add $33=, $38, $33 - block .LBB6_8 + block i32.call $2=, strcmp@FUNCTION, $pop5, $33 - br_if $2, .LBB6_8 + br_if $2, 0 # 0: down to label4 # BB#3: # %if.end19 i32.const $18=, __stack_pointer i32.load $18=, 0($18) @@ -242,9 +244,9 @@ main: # @main i32.const $push7=, .L.str.5 i32.const $35=, 16 i32.add $35=, $38, $35 - block .LBB6_7 + block i32.call $1=, strcmp@FUNCTION, $pop7, $35 - br_if $1, .LBB6_7 + br_if $1, 0 # 0: down to label5 # BB#4: # %if.end27 i32.const $22=, __stack_pointer i32.load $22=, 0($22) @@ -265,26 +267,31 @@ main: # @main i32.const $push8=, .L.str.6 i32.const $37=, 16 i32.add $37=, $38, $37 - block .LBB6_6 + block i32.call $0=, strcmp@FUNCTION, $pop8, $37 - br_if $0, .LBB6_6 + br_if $0, 0 # 0: down to label6 # BB#5: # %if.end35 i32.const $push9=, 0 call exit@FUNCTION, $pop9 unreachable .LBB6_6: # %if.then34 + end_block # label6: call abort@FUNCTION unreachable .LBB6_7: # %if.then26 + end_block # label5: call abort@FUNCTION unreachable .LBB6_8: # %if.then18 + end_block # label4: call abort@FUNCTION unreachable .LBB6_9: # %if.then10 + end_block # label3: call abort@FUNCTION unreachable .LBB6_10: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end6: diff --git a/test/torture-s/920506-1.c.s b/test/torture-s/920506-1.c.s index e12f30c84..fcd277bcf 100644 --- a/test/torture-s/920506-1.c.s +++ b/test/torture-s/920506-1.c.s @@ -9,13 +9,14 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, l($0) - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %sw.bb call exit@FUNCTION, $0 unreachable .LBB0_2: # %sw.epilog + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/920603-1.c.s b/test/torture-s/920603-1.c.s index 7de281063..dfb6d4f01 100644 --- a/test/torture-s/920603-1.c.s +++ b/test/torture-s/920603-1.c.s @@ -8,13 +8,14 @@ f: # @f .param i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 65535 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/920721-3.c.s b/test/torture-s/920721-3.c.s index 5c7a85f89..bc155412e 100644 --- a/test/torture-s/920721-3.c.s +++ b/test/torture-s/920721-3.c.s @@ -10,25 +10,27 @@ ru: # @ru .local i32 # BB#0: # %entry i32.const $1=, 65535 - block .LBB0_4 + block i32.and $push0=, $0, $1 i32.const $push1=, 5 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_4 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_3 + block i32.const $push3=, 2 i32.add $push4=, $0, $pop3 i32.and $push5=, $pop4, $1 i32.const $push6=, 7 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB0_3 + br_if $pop7, 0 # 0: down to label1 # BB#2: # %if.end8 return $0 .LBB0_3: # %if.then7 + end_block # label1: call abort@FUNCTION unreachable .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -42,15 +44,16 @@ rs: # @rs .param i32 .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 65535 i32.and $push1=, $0, $pop0 i32.const $push2=, 5 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label2 # BB#1: # %if.end8 return $0 .LBB1_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/920731-1.c.s b/test/torture-s/920731-1.c.s index 7f9de43b2..02b859f6b 100644 --- a/test/torture-s/920731-1.c.s +++ b/test/torture-s/920731-1.c.s @@ -11,24 +11,26 @@ f: # @f # BB#0: # %entry i32.const $1=, 1 i32.const $2=, 0 - block .LBB0_3 + block i32.and $push0=, $0, $1 - br_if $pop0, .LBB0_3 + br_if $pop0, 0 # 0: down to label0 .LBB0_1: # %for.inc # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.add $2=, $2, $1 i32.const $push2=, 7 i32.gt_s $push3=, $2, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 1 # 1: down to label2 # BB#2: # %for.inc # in Loop: Header=BB0_1 Depth=1 i32.shr_s $0=, $0, $1 i32.and $push1=, $0, $1 i32.const $push4=, 0 i32.eq $push5=, $pop1, $pop4 - br_if $pop5, .LBB0_1 + br_if $pop5, 0 # 0: up to label1 .LBB0_3: # %for.end + end_loop # label2: + end_block # label0: return $2 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/920829-1.c.s b/test/torture-s/920829-1.c.s index fe35b194e..04078d11e 100644 --- a/test/torture-s/920829-1.c.s +++ b/test/torture-s/920829-1.c.s @@ -9,17 +9,18 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i64.load $push0=, c($0) i64.const $push1=, 3 i64.mul $push2=, $pop0, $pop1 i64.load $push3=, c3($0) i64.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/920909-1.c.s b/test/torture-s/920909-1.c.s index f536471af..428d263d4 100644 --- a/test/torture-s/920909-1.c.s +++ b/test/torture-s/920909-1.c.s @@ -8,12 +8,12 @@ f: # @f .param i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, -1026 i32.add $0=, $0, $pop0 i32.const $push1=, 5 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 @@ f: # @f i32.load $push8=, 0($pop7) return $pop8 .LBB0_2: # %return + end_block # label0: i32.const $push3=, 0 return $pop3 .Lfunc_end0: diff --git a/test/torture-s/921013-1.c.s b/test/torture-s/921013-1.c.s index 40e6281af..c512b1800 100644 --- a/test/torture-s/921013-1.c.s +++ b/test/torture-s/921013-1.c.s @@ -9,13 +9,13 @@ f: # @f .result i32 .local i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push4=, 0 i32.eq $push5=, $3, $pop4 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: down to label0 .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: f32.load $push1=, 0($1) f32.load $push2=, 0($2) f32.eq $push3=, $pop1, $pop2 @@ -27,8 +27,10 @@ f: # @f i32.const $push0=, -1 i32.add $3=, $3, $pop0 copy_local $0=, $4 - br_if $3, .LBB0_1 + br_if $3, 0 # 0: up to label1 .LBB0_2: # %while.end + end_loop # label2: + end_block # label0: return $4 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/921019-1.c.s b/test/torture-s/921019-1.c.s index 6fd04ecc8..ce75f322a 100644 --- a/test/torture-s/921019-1.c.s +++ b/test/torture-s/921019-1.c.s @@ -9,16 +9,17 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, foo($0) i32.load8_u $push1=, 0($pop0) i32.const $push2=, 88 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/921113-1.c.s b/test/torture-s/921113-1.c.s index 576753a92..665ebe817 100644 --- a/test/torture-s/921113-1.c.s +++ b/test/torture-s/921113-1.c.s @@ -23,15 +23,16 @@ f1: # @f1 .local f32, i32 # BB#0: # %entry f32.const $2=, 0x0p0 - block .LBB1_3 + block f32.ne $push0=, $0, $2 - br_if $pop0, .LBB1_3 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %entry f32.ne $push1=, $1, $2 - br_if $pop1, .LBB1_3 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %if.end return $3 .LBB1_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: @@ -47,15 +48,16 @@ f2: # @f2 .local f32, i32 # BB#0: # %entry f32.const $2=, 0x1p0 - block .LBB2_3 + block f32.ne $push0=, $0, $2 - br_if $pop0, .LBB2_3 + br_if $pop0, 0 # 0: down to label1 # BB#1: # %entry f32.ne $push1=, $1, $2 - br_if $pop1, .LBB2_3 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %if.end return $3 .LBB2_3: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end2: @@ -71,35 +73,35 @@ gitter: # @gitter .local f32, f32, f64, f64 # BB#0: # %entry f32.const $7=, 0x0p0 - block .LBB3_9 + block f32.load $push1=, 0($4) f32.ne $push2=, $pop1, $7 - br_if $pop2, .LBB3_9 + br_if $pop2, 0 # 0: down to label2 # BB#1: # %entry f32.load $push0=, 4($4) f32.ne $push3=, $pop0, $7 - br_if $pop3, .LBB3_9 + br_if $pop3, 0 # 0: down to label2 # BB#2: # %f1.exit f32.const $6=, 0x1p0 - block .LBB3_8 + block f32.load $push5=, 8($4) f32.ne $push8=, $pop5, $6 - br_if $pop8, .LBB3_8 + br_if $pop8, 0 # 0: down to label3 # BB#3: # %f1.exit i32.const $push6=, 12 i32.add $push7=, $4, $pop6 f32.load $push4=, 0($pop7) f32.ne $push9=, $pop4, $6 - br_if $pop9, .LBB3_8 + br_if $pop9, 0 # 0: down to label3 # BB#4: # %f2.exit i32.const $push10=, 0 i32.store $discard=, 0($3), $pop10 f32.load $6=, 0($1) - block .LBB3_7 + block f32.gt $push11=, $6, $7 f32.ne $push12=, $6, $6 i32.or $push13=, $pop11, $pop12 - br_if $pop13, .LBB3_7 + br_if $pop13, 0 # 0: down to label4 # BB#5: # %if.then f64.promote/f32 $push14=, $5 f64.const $push15=, 0x1p-1 @@ -110,16 +112,19 @@ gitter: # @gitter f64.ne $push17=, $9, $9 i32.or $push19=, $pop18, $pop17 i32.or $push20=, $pop16, $pop19 - br_if $pop20, .LBB3_7 + br_if $pop20, 0 # 0: down to label4 # BB#6: # %if.then15 i32.const $push21=, 1065353216 i32.store $discard=, 0($2), $pop21 .LBB3_7: # %if.end18 + end_block # label4: return $4 .LBB3_8: # %if.then.i32 + end_block # label3: call abort@FUNCTION unreachable .LBB3_9: # %if.then.i + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end3: @@ -135,31 +140,33 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 f32.const $1=, 0x0p0 - block .LBB4_6 + block f32.load $push1=, limit($0) f32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB4_6 + br_if $pop2, 0 # 0: down to label5 # BB#1: # %entry f32.load $push0=, limit+4($0) f32.ne $push3=, $pop0, $1 - br_if $pop3, .LBB4_6 + br_if $pop3, 0 # 0: down to label5 # BB#2: # %f1.exit.i f32.const $1=, 0x1p0 - block .LBB4_5 + block f32.load $push5=, limit+8($0) f32.ne $push6=, $pop5, $1 - br_if $pop6, .LBB4_5 + br_if $pop6, 0 # 0: down to label6 # BB#3: # %f1.exit.i f32.load $push4=, limit+12($0) f32.ne $push7=, $pop4, $1 - br_if $pop7, .LBB4_5 + br_if $pop7, 0 # 0: down to label6 # BB#4: # %f2.exit.i call exit@FUNCTION, $0 unreachable .LBB4_5: # %if.then.i32.i + end_block # label6: call abort@FUNCTION unreachable .LBB4_6: # %if.then.i.i + end_block # label5: call abort@FUNCTION unreachable .Lfunc_end4: diff --git a/test/torture-s/921124-1.c.s b/test/torture-s/921124-1.c.s index e142b5c7b..4b805c1f9 100644 --- a/test/torture-s/921124-1.c.s +++ b/test/torture-s/921124-1.c.s @@ -20,25 +20,26 @@ g: # @g .param i32, i32, f64, f64, i32, i32 .result i32 # BB#0: # %entry - block .LBB1_5 + block f64.const $push0=, 0x1p0 f64.ne $push1=, $2, $pop0 - br_if $pop1, .LBB1_5 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry f64.const $push2=, 0x1p1 f64.ne $push3=, $3, $pop2 - br_if $pop3, .LBB1_5 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %entry i32.const $push4=, 3 i32.ne $push5=, $4, $pop4 - br_if $pop5, .LBB1_5 + br_if $pop5, 0 # 0: down to label0 # BB#3: # %entry i32.const $push6=, 4 i32.ne $push7=, $5, $pop6 - br_if $pop7, .LBB1_5 + br_if $pop7, 0 # 0: down to label0 # BB#4: # %if.end return $4 .LBB1_5: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/930111-1.c.s b/test/torture-s/930111-1.c.s index 340965472..0a9230a70 100644 --- a/test/torture-s/930111-1.c.s +++ b/test/torture-s/930111-1.c.s @@ -23,11 +23,11 @@ wwrite: # @wwrite .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB1_4 - block .LBB1_2 + block + block i64.const $push0=, 28 i64.gt_u $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %entry i64.const $push2=, 1 i64.shl $push3=, $pop2, $0 @@ -35,14 +35,16 @@ wwrite: # @wwrite i64.and $push5=, $pop3, $pop4 i64.const $push6=, 0 i64.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_4 + br_if $pop7, 1 # 1: down to label0 .LBB1_2: # %entry + end_block # label1: i64.const $push8=, 47 i64.eq $push9=, $0, $pop8 - br_if $pop9, .LBB1_4 + br_if $pop9, 0 # 0: down to label0 # BB#3: # %sw.default i32.const $1=, 123 .LBB1_4: # %return + end_block # label0: return $1 .Lfunc_end1: .size wwrite, .Lfunc_end1-wwrite diff --git a/test/torture-s/930408-1.c.s b/test/torture-s/930408-1.c.s index b330abf35..981ed91e7 100644 --- a/test/torture-s/930408-1.c.s +++ b/test/torture-s/930408-1.c.s @@ -20,15 +20,16 @@ f: # @f .result i32 .local i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 0 i32.load $push1=, s($pop0) i32.const $push2=, 0 i32.eq $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %sw.epilog return $0 .LBB1_2: # %sw.bb + end_block # label0: i32.call $discard=, p@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/930513-1.c.s b/test/torture-s/930513-1.c.s index 4965d0efd..7a25f1b18 100644 --- a/test/torture-s/930513-1.c.s +++ b/test/torture-s/930513-1.c.s @@ -72,20 +72,21 @@ main: # @main i32.const $4=, __stack_pointer i32.store $7=, 0($4), $7 i32.const $0=, 0 - block .LBB1_3 + block i32.load8_u $push4=, buf($0) i32.const $push5=, 53 i32.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB1_3 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %entry i32.load8_u $push0=, buf+1($0) i32.const $push7=, 255 i32.and $push8=, $pop0, $pop7 - br_if $pop8, .LBB1_3 + br_if $pop8, 0 # 0: down to label0 # BB#2: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/930513-2.c.s b/test/torture-s/930513-2.c.s index 2bb56a492..02d993573 100644 --- a/test/torture-s/930513-2.c.s +++ b/test/torture-s/930513-2.c.s @@ -23,16 +23,17 @@ eq: # @eq .local i32 # BB#0: # %entry i32.const $2=, 0 - block .LBB1_2 + block i32.load $push0=, eq.i($2) i32.ne $push1=, $pop0, $0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 1 i32.add $push3=, $0, $pop2 i32.store $discard=, eq.i($2), $pop3 return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: @@ -47,15 +48,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB2_2 + block i32.load $push0=, eq.i($0) - br_if $pop0, .LBB2_2 + br_if $pop0, 0 # 0: down to label1 # BB#1: # %eq.exit.3 i32.const $push1=, 4 i32.store $discard=, eq.i($0), $pop1 call exit@FUNCTION, $0 unreachable .LBB2_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/930603-2.c.s b/test/torture-s/930603-2.c.s index ddca6dd0b..3f00bd9d5 100644 --- a/test/torture-s/930603-2.c.s +++ b/test/torture-s/930603-2.c.s @@ -27,16 +27,17 @@ main: # @main i32.const $0=, 0 i32.load $1=, w+8($0) i32.load $2=, w+4($0) - block .LBB1_2 + block i32.const $push0=, 1 i32.store $push1=, w($0), $pop0 i32.store $discard=, w+12($0), $pop1 i32.or $push2=, $2, $1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/930603-3.c.s b/test/torture-s/930603-3.c.s index 3bd08e6da..4a1b96507 100644 --- a/test/torture-s/930603-3.c.s +++ b/test/torture-s/930603-3.c.s @@ -8,29 +8,32 @@ f: # @f .param i32, i32 .result i32 # BB#0: # %entry - block .LBB0_5 - block .LBB0_4 + block + block i32.const $push0=, 107 i32.eq $push1=, $1, $pop0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %entry - block .LBB0_3 + block i32.const $push2=, 100 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label2 # BB#2: # %sw.bb i32.load8_u $push6=, 0($0) i32.const $push7=, 1 i32.shr_u $1=, $pop6, $pop7 - br .LBB0_5 + br 2 # 2: down to label0 .LBB0_3: # %sw.default + end_block # label2: call abort@FUNCTION unreachable .LBB0_4: # %sw.bb3 + end_block # label1: i32.load8_u $push4=, 3($0) i32.const $push5=, 4 i32.shr_u $1=, $pop4, $pop5 .LBB0_5: # %sw.epilog + end_block # label0: return $1 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/930630-1.c.s b/test/torture-s/930630-1.c.s index cf0c483ae..b922613f0 100644 --- a/test/torture-s/930630-1.c.s +++ b/test/torture-s/930630-1.c.s @@ -21,13 +21,14 @@ f: # @f .param i32 .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 7 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/930702-1.c.s b/test/torture-s/930702-1.c.s index 53d521cda..d9192df77 100644 --- a/test/torture-s/930702-1.c.s +++ b/test/torture-s/930702-1.c.s @@ -8,17 +8,18 @@ fp: # @fp .param f64, i32 .result i32 # BB#0: # %entry - block .LBB0_3 + block f64.const $push0=, 0x1.08p5 f64.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.const $push2=, 11 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %if.end return $1 .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/930719-1.c.s b/test/torture-s/930719-1.c.s index 5668d5ebc..69fed9eaa 100644 --- a/test/torture-s/930719-1.c.s +++ b/test/torture-s/930719-1.c.s @@ -8,23 +8,26 @@ f: # @f .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB0_5 - br_if $0, .LBB0_5 + block + br_if $0, 0 # 0: down to label0 # BB#1: # %while.body.preheader - block .LBB0_4 + block i32.const $push0=, 1 i32.ne $push1=, $1, $pop0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %sw.bb.split - br_if $2, .LBB0_5 + br_if $2, 1 # 1: down to label0 # BB#3: # %if.end2 unreachable unreachable .LBB0_4: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 - br .LBB0_4 + end_block # label1: + loop # label2: + br 0 # 0: up to label2 .LBB0_5: # %cleanup + end_loop # label3: + end_block # label0: i32.const $push2=, 0 return $pop2 .Lfunc_end0: diff --git a/test/torture-s/930916-1.c.s b/test/torture-s/930916-1.c.s index c30f18cf7..91840492c 100644 --- a/test/torture-s/930916-1.c.s +++ b/test/torture-s/930916-1.c.s @@ -8,13 +8,14 @@ f: # @f .param i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 0 i32.ge_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/930921-1.c.s b/test/torture-s/930921-1.c.s index e45ae449f..eaabcb341 100644 --- a/test/torture-s/930921-1.c.s +++ b/test/torture-s/930921-1.c.s @@ -30,8 +30,8 @@ main: # @main i32.const $2=, 0 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB1_4 - loop .LBB1_3 + block + loop # label1: i32.const $push5=, 3 i32.div_u $1=, $2, $pop5 i64.extend_u/i32 $push0=, $2 @@ -40,19 +40,21 @@ main: # @main i64.shr_u $push3=, $pop1, $pop2 i32.wrap/i64 $push4=, $pop3 i32.ne $push6=, $pop4, $1 - br_if $pop6, .LBB1_4 + br_if $pop6, 2 # 2: down to label0 # BB#2: # %for.cond # in Loop: Header=BB1_1 Depth=1 i32.const $push7=, 1 i32.add $2=, $2, $pop7 i32.const $push8=, 9999 i32.le_u $push9=, $2, $pop8 - br_if $pop9, .LBB1_1 -.LBB1_3: # %for.end + br_if $pop9, 0 # 0: up to label1 +# BB#3: # %for.end + end_loop # label2: i32.const $push10=, 0 call exit@FUNCTION, $pop10 unreachable .LBB1_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/930930-1.c.s b/test/torture-s/930930-1.c.s index dfc4d926e..1e22b6688 100644 --- a/test/torture-s/930930-1.c.s +++ b/test/torture-s/930930-1.c.s @@ -10,20 +10,20 @@ f: # @f .local i32, i32 # BB#0: # %entry copy_local $6=, $0 - block .LBB0_7 + block i32.lt_u $push0=, $3, $4 - br_if $pop0, .LBB0_7 + br_if $pop0, 0 # 0: down to label0 .LBB0_1: # %if.end # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 + loop # label1: i32.load $5=, 0($3) - block .LBB0_4 + block i32.ge_u $push1=, $5, $2 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label3 # BB#2: # %if.end # in Loop: Header=BB0_1 Depth=1 i32.lt_u $push2=, $5, $1 - br_if $pop2, .LBB0_4 + br_if $pop2, 0 # 0: down to label3 # BB#3: # %if.then3 # in Loop: Header=BB0_1 Depth=1 i32.const $push3=, -4 @@ -31,17 +31,20 @@ f: # @f i32.store $discard=, 0($6), $5 .LBB0_4: # %if.end4 # in Loop: Header=BB0_1 Depth=1 + end_block # label3: i32.const $push4=, -4 i32.add $3=, $3, $pop4 i32.ge_u $push5=, $3, $4 - br_if $pop5, .LBB0_1 -.LBB0_5: # %out + br_if $pop5, 0 # 0: up to label1 +# BB#5: # %out + end_loop # label2: i32.eq $push6=, $6, $0 - br_if $pop6, .LBB0_7 + br_if $pop6, 0 # 0: down to label0 # BB#6: # %if.then7 call abort@FUNCTION unreachable .LBB0_7: # %if.end8 + end_block # label0: return $3 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/930930-2.c.s b/test/torture-s/930930-2.c.s index 3a427bda3..f338a8b04 100644 --- a/test/torture-s/930930-2.c.s +++ b/test/torture-s/930930-2.c.s @@ -53,16 +53,17 @@ main: # @main i32.sub $2=, $0, $1 i32.const $1=, __stack_pointer i32.store $2=, 0($1), $2 - block .LBB2_2 + block i64.const $push0=, 4621819117588971520 i64.store $discard=, 8($2), $pop0 i32.load $push1=, 8($2) - br_if $pop1, .LBB2_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 0 call exit@FUNCTION, $pop2 unreachable .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/931004-1.c.s b/test/torture-s/931004-1.c.s index e09ad3b79..247673047 100644 --- a/test/torture-s/931004-1.c.s +++ b/test/torture-s/931004-1.c.s @@ -8,37 +8,41 @@ f: # @f .param i32, i32, i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB0_8 + block i32.const $push0=, 10 i32.ne $push1=, $1, $pop0 - br_if $pop1, .LBB0_8 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_7 + block i32.const $push2=, 11 i32.ne $push3=, $2, $pop2 - br_if $pop3, .LBB0_7 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %if.end6 - block .LBB0_6 + block i32.const $push4=, 12 i32.ne $push5=, $3, $pop4 - br_if $pop5, .LBB0_6 + br_if $pop5, 0 # 0: down to label2 # BB#3: # %if.end10 - block .LBB0_5 + block i32.const $push6=, 123 i32.ne $push7=, $4, $pop6 - br_if $pop7, .LBB0_5 + br_if $pop7, 0 # 0: down to label3 # BB#4: # %if.end13 return $1 .LBB0_5: # %if.then12 + end_block # label3: call abort@FUNCTION unreachable .LBB0_6: # %if.then9 + end_block # label2: call abort@FUNCTION unreachable .LBB0_7: # %if.then5 + end_block # label1: call abort@FUNCTION unreachable .LBB0_8: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/931004-3.c.s b/test/torture-s/931004-3.c.s index 3e25bbbe1..370ba4d40 100644 --- a/test/torture-s/931004-3.c.s +++ b/test/torture-s/931004-3.c.s @@ -10,40 +10,44 @@ f: # @f .local i32 # BB#0: # %entry i32.const $5=, 65535 - block .LBB0_8 + block i32.and $push0=, $1, $5 i32.const $push1=, 10 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_8 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_7 + block i32.and $push3=, $2, $5 i32.const $push4=, 11 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB0_7 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %if.end9 - block .LBB0_6 + block i32.and $push6=, $3, $5 i32.const $push7=, 12 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_6 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %if.end15 - block .LBB0_5 + block i32.const $push9=, 123 i32.ne $push10=, $4, $pop9 - br_if $pop10, .LBB0_5 + br_if $pop10, 0 # 0: down to label3 # BB#4: # %if.end19 return $5 .LBB0_5: # %if.then18 + end_block # label3: call abort@FUNCTION unreachable .LBB0_6: # %if.then14 + end_block # label2: call abort@FUNCTION unreachable .LBB0_7: # %if.then8 + end_block # label1: call abort@FUNCTION unreachable .LBB0_8: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/931004-7.c.s b/test/torture-s/931004-7.c.s index 3678fb7cf..bc9de01b7 100644 --- a/test/torture-s/931004-7.c.s +++ b/test/torture-s/931004-7.c.s @@ -10,40 +10,44 @@ f: # @f .local i32 # BB#0: # %entry i32.const $5=, 255 - block .LBB0_8 + block i32.and $push0=, $1, $5 i32.const $push1=, 10 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_8 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_7 + block i32.and $push3=, $2, $5 i32.const $push4=, 11 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB0_7 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %if.end9 - block .LBB0_6 + block i32.and $push6=, $3, $5 i32.const $push7=, 12 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_6 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %if.end15 - block .LBB0_5 + block i32.const $push9=, 123 i32.ne $push10=, $4, $pop9 - br_if $pop10, .LBB0_5 + br_if $pop10, 0 # 0: down to label3 # BB#4: # %if.end19 return $5 .LBB0_5: # %if.then18 + end_block # label3: call abort@FUNCTION unreachable .LBB0_6: # %if.then14 + end_block # label2: call abort@FUNCTION unreachable .LBB0_7: # %if.then8 + end_block # label1: call abort@FUNCTION unreachable .LBB0_8: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/931017-1.c.s b/test/torture-s/931017-1.c.s index 1febeaccf..22c6b5eb8 100644 --- a/test/torture-s/931017-1.c.s +++ b/test/torture-s/931017-1.c.s @@ -33,14 +33,15 @@ h2: # @h2 .param i32 .result i32 # BB#0: # %entry - block .LBB2_2 + block i32.const $push0=, v i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB2_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 0 return $pop2 .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/931018-1.c.s b/test/torture-s/931018-1.c.s index bcc4ca14f..54fa98fd0 100644 --- a/test/torture-s/931018-1.c.s +++ b/test/torture-s/931018-1.c.s @@ -21,13 +21,14 @@ f: # @f .param i32 .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, -559038737 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/931102-1.c.s b/test/torture-s/931102-1.c.s index 4dd58f010..5a591ac35 100644 --- a/test/torture-s/931102-1.c.s +++ b/test/torture-s/931102-1.c.s @@ -11,12 +11,12 @@ f: # @f # BB#0: # %entry i32.const $1=, 1 i32.const $2=, 0 - block .LBB0_2 + block i32.and $push0=, $0, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.const $push1=, 24 i32.shl $push2=, $0, $pop1 i32.const $push3=, 25 @@ -25,8 +25,10 @@ f: # @f i32.and $push4=, $0, $1 i32.const $push5=, 0 i32.eq $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_1 + br_if $pop6, 0 # 0: up to label1 .LBB0_2: # %while.end + end_loop # label2: + end_block # label0: return $2 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/931102-2.c.s b/test/torture-s/931102-2.c.s index 0fdf9c810..9aa63a4c2 100644 --- a/test/torture-s/931102-2.c.s +++ b/test/torture-s/931102-2.c.s @@ -11,12 +11,12 @@ f: # @f # BB#0: # %entry i32.const $1=, 1 i32.const $2=, 0 - block .LBB0_2 + block i32.and $push0=, $0, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.const $push1=, 16 i32.shl $push2=, $0, $pop1 i32.const $push3=, 17 @@ -25,8 +25,10 @@ f: # @f i32.and $push4=, $0, $1 i32.const $push5=, 0 i32.eq $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_1 + br_if $pop6, 0 # 0: up to label1 .LBB0_2: # %while.end + end_loop # label2: + end_block # label0: return $2 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/940122-1.c.s b/test/torture-s/940122-1.c.s index d222bedec..17655ccff 100644 --- a/test/torture-s/940122-1.c.s +++ b/test/torture-s/940122-1.c.s @@ -10,16 +10,17 @@ g: # @g .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_2 + block i32.load $push0=, a($1) i32.ne $push1=, $pop0, $1 i32.load $push2=, b($1) i32.ne $push3=, $pop2, $1 i32.ne $push4=, $pop1, $pop3 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end return $1 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -35,16 +36,17 @@ f: # @f .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB1_2 + block i32.load $push0=, a($1) i32.ne $push1=, $pop0, $1 i32.load $push2=, b($1) i32.ne $push3=, $pop2, $1 i32.ne $push4=, $pop1, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label1 # BB#1: # %g.exit return $1 .LBB1_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: @@ -59,17 +61,18 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB2_2 + block i32.load $push0=, a($0) i32.ne $push1=, $pop0, $0 i32.load $push2=, b($0) i32.ne $push3=, $pop2, $0 i32.eq $push4=, $pop1, $pop3 - br_if $pop4, .LBB2_2 + br_if $pop4, 0 # 0: down to label2 # BB#1: # %if.then.i.i call abort@FUNCTION unreachable .LBB2_2: # %f.exit + end_block # label2: call exit@FUNCTION, $0 unreachable .Lfunc_end2: diff --git a/test/torture-s/941014-2.c.s b/test/torture-s/941014-2.c.s index 6f822c088..7f27b3e53 100644 --- a/test/torture-s/941014-2.c.s +++ b/test/torture-s/941014-2.c.s @@ -25,13 +25,13 @@ f: # @f i32.sub $9=, $6, $7 i32.const $7=, __stack_pointer i32.store $9=, 0($7), $9 - block .LBB1_2 + block i32.const $push0=, 4 i32.call $0=, malloc@FUNCTION, $pop0 i32.load16_u $push1=, 0($0) i32.const $push2=, 4096 i32.lt_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.then i32.load16_u $1=, 0($0) i32.const $2=, __stack_pointer @@ -50,6 +50,7 @@ f: # @f i32.const $5=, __stack_pointer i32.store $9=, 0($5), $9 .LBB1_2: # %if.end + end_block # label0: i32.const $push5=, 256 i32.store16 $discard=, 2($0), $pop5 i32.const $8=, 16 @@ -74,13 +75,13 @@ main: # @main i32.sub $8=, $6, $7 i32.const $7=, __stack_pointer i32.store $8=, 0($7), $8 - block .LBB2_2 + block i32.const $push0=, 4 i32.call $0=, malloc@FUNCTION, $pop0 i32.load16_u $push1=, 0($0) i32.const $push2=, 4096 i32.lt_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB2_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %if.then.i i32.load16_u $1=, 0($0) i32.const $2=, __stack_pointer @@ -99,17 +100,19 @@ main: # @main i32.const $5=, __stack_pointer i32.store $8=, 0($5), $8 .LBB2_2: # %f.exit - block .LBB2_4 + end_block # label1: + block i32.load16_u $push7=, 2($0) i32.const $push5=, 256 i32.store16 $push6=, 2($0), $pop5 i32.ne $push8=, $pop7, $pop6 - br_if $pop8, .LBB2_4 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %if.end i32.const $push9=, 0 call exit@FUNCTION, $pop9 unreachable .LBB2_4: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/941202-1.c.s b/test/torture-s/941202-1.c.s index 3bb03186c..2553858ac 100644 --- a/test/torture-s/941202-1.c.s +++ b/test/torture-s/941202-1.c.s @@ -8,13 +8,14 @@ g: # @g .param i32, i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 3 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/950221-1.c.s b/test/torture-s/950221-1.c.s index 7f3ecc6d7..430a44d1f 100644 --- a/test/torture-s/950221-1.c.s +++ b/test/torture-s/950221-1.c.s @@ -21,15 +21,16 @@ g2: # @g2 .param i32 .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, -559038737 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 0 call exit@FUNCTION, $pop2 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: @@ -44,18 +45,19 @@ f: # @f .local i32, i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB2_3 + block i32.load $push1=, parsefile($1) i32.load $0=, 0($pop1) - br_if $0, .LBB2_3 + br_if $0, 0 # 0: down to label1 # BB#1: # %entry i32.load $push0=, el($1) i32.const $push2=, 0 i32.eq $push3=, $pop0, $pop2 - br_if $pop3, .LBB2_3 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %if.end return $1 .LBB2_3: # %alabel + end_block # label1: i32.call $discard=, g2@FUNCTION, $0 unreachable .Lfunc_end2: diff --git a/test/torture-s/950605-1.c.s b/test/torture-s/950605-1.c.s index 1b8eb664c..07552c22f 100644 --- a/test/torture-s/950605-1.c.s +++ b/test/torture-s/950605-1.c.s @@ -10,13 +10,14 @@ f: # @f .local i32 # BB#0: # %entry i32.const $1=, 255 - block .LBB0_2 + block i32.and $push0=, $0, $1 i32.ne $push1=, $pop0, $1 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $1 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/950621-1.c.s b/test/torture-s/950621-1.c.s index 85ccd59ae..b2d23f0f6 100644 --- a/test/torture-s/950621-1.c.s +++ b/test/torture-s/950621-1.c.s @@ -10,19 +10,20 @@ f: # @f .local i32, i32 # BB#0: # %entry i32.const $2=, 0 - block .LBB0_3 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB0_3 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %land.lhs.true i32.const $1=, -1 i32.load $push0=, 0($0) i32.ne $push1=, $pop0, $1 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %land.rhs i32.load $push2=, 4($0) i32.eq $2=, $pop2, $1 .LBB0_3: # %land.end + end_block # label0: return $2 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/950704-1.c.s b/test/torture-s/950704-1.c.s index 5ef82f946..09c33c4e1 100644 --- a/test/torture-s/950704-1.c.s +++ b/test/torture-s/950704-1.c.s @@ -13,31 +13,34 @@ f: # @f i32.store $discard=, errflag($2), $2 i64.add $4=, $1, $0 i64.const $3=, 0 - block .LBB0_6 - block .LBB0_5 - block .LBB0_3 + block + block + block i64.lt_s $push0=, $0, $3 - br_if $pop0, .LBB0_3 + br_if $pop0, 0 # 0: down to label2 # BB#1: # %if.then i64.const $push3=, 0 i64.lt_s $push4=, $1, $pop3 - br_if $pop4, .LBB0_6 + br_if $pop4, 2 # 2: down to label0 # BB#2: # %if.then i64.const $push5=, -1 i64.le_s $push6=, $4, $pop5 - br_if $pop6, .LBB0_5 - br .LBB0_6 + br_if $pop6, 1 # 1: down to label1 + br 2 # 2: down to label0 .LBB0_3: # %if.else + end_block # label2: i64.gt_s $push1=, $1, $3 - br_if $pop1, .LBB0_6 + br_if $pop1, 1 # 1: down to label0 # BB#4: # %if.else i64.lt_s $push2=, $4, $3 - br_if $pop2, .LBB0_6 + br_if $pop2, 1 # 1: down to label0 .LBB0_5: # %if.end9 + end_block # label1: i32.const $push7=, 1 i32.store $discard=, errflag($2), $pop7 copy_local $4=, $3 .LBB0_6: # %cleanup + end_block # label0: return $4 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/950710-1.c.s b/test/torture-s/950710-1.c.s index 48ea9459b..8ea480473 100644 --- a/test/torture-s/950710-1.c.s +++ b/test/torture-s/950710-1.c.s @@ -30,18 +30,19 @@ main: # @main i32.const $5=, 16 i32.add $5=, $6, $5 i32.sub $0=, $4, $5 - block .LBB1_2 + block i32.const $push0=, 31 i32.shr_s $1=, $0, $pop0 i32.add $push1=, $0, $1 i32.xor $push2=, $pop1, $1 i32.const $push3=, 11 i32.gt_u $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.then.i call abort@FUNCTION unreachable .LBB1_2: # %f.exit + end_block # label0: i32.const $push5=, 0 call exit@FUNCTION, $pop5 unreachable diff --git a/test/torture-s/950714-1.c.s b/test/torture-s/950714-1.c.s index b54000b89..e67ce018f 100644 --- a/test/torture-s/950714-1.c.s +++ b/test/torture-s/950714-1.c.s @@ -20,59 +20,61 @@ main: # @main i32.load $8=, array+32($9) .LBB0_1: # %for.cond1.preheader # =>This Inner Loop Header: Depth=1 - block .LBB0_13 - loop .LBB0_11 + block + loop # label1: i32.eq $push0=, $0, $9 - br_if $pop0, .LBB0_11 + br_if $pop0, 1 # 1: down to label2 # BB#2: # %for.cond1.preheader # in Loop: Header=BB0_1 Depth=1 i32.eq $push1=, $1, $9 - br_if $pop1, .LBB0_11 + br_if $pop1, 1 # 1: down to label2 # BB#3: # %for.cond1.preheader # in Loop: Header=BB0_1 Depth=1 i32.eq $push2=, $2, $9 - br_if $pop2, .LBB0_11 + br_if $pop2, 1 # 1: down to label2 # BB#4: # %for.cond1.preheader # in Loop: Header=BB0_1 Depth=1 i32.eq $push3=, $3, $9 - br_if $pop3, .LBB0_11 + br_if $pop3, 1 # 1: down to label2 # BB#5: # %for.cond1.preheader # in Loop: Header=BB0_1 Depth=1 i32.eq $push4=, $4, $9 - br_if $pop4, .LBB0_11 + br_if $pop4, 1 # 1: down to label2 # BB#6: # %for.cond1.preheader # in Loop: Header=BB0_1 Depth=1 i32.eq $push5=, $5, $9 - br_if $pop5, .LBB0_11 + br_if $pop5, 1 # 1: down to label2 # BB#7: # %for.cond1.preheader # in Loop: Header=BB0_1 Depth=1 i32.eq $push6=, $6, $9 - br_if $pop6, .LBB0_11 + br_if $pop6, 1 # 1: down to label2 # BB#8: # %for.cond1.preheader # in Loop: Header=BB0_1 Depth=1 i32.eq $push7=, $7, $9 - br_if $pop7, .LBB0_11 + br_if $pop7, 1 # 1: down to label2 # BB#9: # %for.cond1.preheader # in Loop: Header=BB0_1 Depth=1 i32.eq $push8=, $8, $9 - br_if $pop8, .LBB0_11 + br_if $pop8, 1 # 1: down to label2 # BB#10: # %for.cond1.8 # in Loop: Header=BB0_1 Depth=1 i32.const $push9=, 1 i32.add $9=, $9, $pop9 i32.const $push10=, 10 i32.lt_s $push11=, $9, $pop10 - br_if $pop11, .LBB0_1 - br .LBB0_13 + br_if $pop11, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB0_11: # %label + end_loop # label2: i32.const $push12=, 1 i32.ne $push13=, $9, $pop12 - br_if $pop13, .LBB0_13 + br_if $pop13, 0 # 0: down to label0 # BB#12: # %if.end9 i32.const $push14=, 0 call exit@FUNCTION, $pop14 unreachable .LBB0_13: # %if.then8 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/950809-1.c.s b/test/torture-s/950809-1.c.s index 8ee1fa2e6..f78aaa982 100644 --- a/test/torture-s/950809-1.c.s +++ b/test/torture-s/950809-1.c.s @@ -37,17 +37,18 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, main.sc($0) - block .LBB1_2 + block i32.const $push1=, 11 i32.store $discard=, main.sc($0), $pop1 i32.store $push0=, main.sc+8($0), $1 i32.const $push2=, 2 i32.ne $push3=, $pop0, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/950915-1.c.s b/test/torture-s/950915-1.c.s index 64a972d93..95fe331e2 100644 --- a/test/torture-s/950915-1.c.s +++ b/test/torture-s/950915-1.c.s @@ -28,7 +28,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i64.load32_s $push1=, b($0) i64.load32_s $push0=, a($0) i64.mul $push2=, $pop1, $pop0 @@ -37,11 +37,12 @@ main: # @main i32.wrap/i64 $push5=, $pop4 i32.const $push6=, -1 i32.gt_s $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_2 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB1_2: # %if.end + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end1: diff --git a/test/torture-s/960116-1.c.s b/test/torture-s/960116-1.c.s index 5389ad983..6e4ce732a 100644 --- a/test/torture-s/960116-1.c.s +++ b/test/torture-s/960116-1.c.s @@ -10,16 +10,18 @@ f: # @f .local i32 # BB#0: # %entry i32.const $1=, 1 - block .LBB0_3 - block .LBB0_2 + block + block i32.and $push0=, $0, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label1 # BB#1: # %land.lhs.true i32.load $push1=, 0($0) - br_if $pop1, .LBB0_3 + br_if $pop1, 1 # 1: down to label0 .LBB0_2: # %if.end + end_block # label1: i32.const $1=, 0 .LBB0_3: # %return + end_block # label0: return $1 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/960209-1.c.s b/test/torture-s/960209-1.c.s index d9f22007d..ea72dde3b 100644 --- a/test/torture-s/960209-1.c.s +++ b/test/torture-s/960209-1.c.s @@ -10,11 +10,11 @@ f: # @f .local i32 # BB#0: # %entry i32.const $2=, 0 - block .LBB0_2 + block i32.const $push1=, -1 i32.select $1=, $1, $pop1, $2 i32.load $push0=, yabba($2) - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end24 i32.const $push4=, an_array i32.const $push2=, 255 @@ -22,6 +22,7 @@ f: # @f i32.add $push5=, $pop4, $pop3 i32.store $discard=, a_ptr($2), $pop5 .LBB0_2: # %cleanup + end_block # label0: return $1 .Lfunc_end0: .size f, .Lfunc_end0-f @@ -35,13 +36,14 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, yabba($0) - br_if $pop0, .LBB1_2 + br_if $pop0, 0 # 0: down to label1 # BB#1: # %if.end24.i i32.const $push1=, an_array+1 i32.store $discard=, a_ptr($0), $pop1 .LBB1_2: # %if.end + end_block # label1: call exit@FUNCTION, $0 unreachable .Lfunc_end1: diff --git a/test/torture-s/960215-1.c.s b/test/torture-s/960215-1.c.s index afc81ba88..ff9d34e54 100644 --- a/test/torture-s/960215-1.c.s +++ b/test/torture-s/960215-1.c.s @@ -200,16 +200,17 @@ main: # @main i64.load $push33=, 0($pop32) i64.store $discard=, Y1+8($0), $pop33 i64.store $discard=, Y1($0), $2 - block .LBB0_2 + block i64.const $push34=, 4612108230892453888 i32.call $push35=, __eqtf2@FUNCTION, $12, $13, $1, $pop34 i32.const $push36=, 0 i32.eq $push37=, $pop35, $pop36 - br_if $pop37, .LBB0_2 + br_if $pop37, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB0_2: # %if.end + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end0: diff --git a/test/torture-s/960218-1.c.s b/test/torture-s/960218-1.c.s index b350ddf18..01688ac2a 100644 --- a/test/torture-s/960218-1.c.s +++ b/test/torture-s/960218-1.c.s @@ -25,14 +25,15 @@ f: # @f .local i32 # BB#0: # %entry i32.const $1=, -1 - block .LBB1_2 + block i32.eq $push0=, $0, $1 - br_if $pop0, .LBB1_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %while.cond.while.end_crit_edge i32.const $push2=, 0 i32.xor $push1=, $0, $1 i32.store $discard=, glob($pop2), $pop1 .LBB1_2: # %while.end + end_block # label0: return $0 .Lfunc_end1: .size f, .Lfunc_end1-f diff --git a/test/torture-s/960219-1.c.s b/test/torture-s/960219-1.c.s index f9f67e116..923e21d97 100644 --- a/test/torture-s/960219-1.c.s +++ b/test/torture-s/960219-1.c.s @@ -8,11 +8,12 @@ f: # @f .param i32 .result i32 # BB#0: # %entry - block .LBB0_2 - br_if $0, .LBB0_2 + block + br_if $0, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/960302-1.c.s b/test/torture-s/960302-1.c.s index 5771417cb..8808b6774 100644 --- a/test/torture-s/960302-1.c.s +++ b/test/torture-s/960302-1.c.s @@ -35,7 +35,7 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, a($0) - block .LBB1_2 + block i32.const $push0=, 31 i32.shr_u $push1=, $1, $pop0 i32.add $push2=, $1, $pop1 @@ -44,11 +44,12 @@ main: # @main i32.sub $push5=, $1, $pop4 i32.const $push6=, 1 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_2 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/960311-1.c.s b/test/torture-s/960311-1.c.s index b0bacd880..9d746c546 100644 --- a/test/torture-s/960311-1.c.s +++ b/test/torture-s/960311-1.c.s @@ -24,12 +24,12 @@ b: # @b .param i32 .local i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 128 i32.and $push1=, $0, $pop0 i32.const $push15=, 0 i32.eq $push16=, $pop1, $pop15 - br_if $pop16, .LBB1_2 + br_if $pop16, 0 # 0: down to label0 # BB#1: # %if.then i32.const $1=, 0 i32.load $push2=, count($1) @@ -37,12 +37,13 @@ b: # @b i32.add $push4=, $pop2, $pop3 i32.store $discard=, count($1), $pop4 .LBB1_2: # %if.end - block .LBB1_4 + end_block # label0: + block i32.const $push5=, 64 i32.and $push6=, $0, $pop5 i32.const $push17=, 0 i32.eq $push18=, $pop6, $pop17 - br_if $pop18, .LBB1_4 + br_if $pop18, 0 # 0: down to label1 # BB#3: # %if.then6 i32.const $1=, 0 i32.load $push7=, count($1) @@ -50,12 +51,13 @@ b: # @b i32.add $push9=, $pop7, $pop8 i32.store $discard=, count($1), $pop9 .LBB1_4: # %if.end7 - block .LBB1_6 + end_block # label1: + block i32.const $push10=, 32 i32.and $push11=, $0, $pop10 i32.const $push19=, 0 i32.eq $push20=, $pop11, $pop19 - br_if $pop20, .LBB1_6 + br_if $pop20, 0 # 0: down to label2 # BB#5: # %if.then14 i32.const $0=, 0 i32.load $push12=, count($0) @@ -63,6 +65,7 @@ b: # @b i32.add $push14=, $pop12, $pop13 i32.store $discard=, count($0), $pop14 .LBB1_6: # %if.end15 + end_block # label2: return .Lfunc_end1: .size b, .Lfunc_end1-b diff --git a/test/torture-s/960311-2.c.s b/test/torture-s/960311-2.c.s index 928622b7c..f3d27805f 100644 --- a/test/torture-s/960311-2.c.s +++ b/test/torture-s/960311-2.c.s @@ -24,12 +24,12 @@ b: # @b .param i32 .local i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 32768 i32.and $push1=, $0, $pop0 i32.const $push15=, 0 i32.eq $push16=, $pop1, $pop15 - br_if $pop16, .LBB1_2 + br_if $pop16, 0 # 0: down to label0 # BB#1: # %if.then i32.const $1=, 0 i32.load $push2=, count($1) @@ -37,12 +37,13 @@ b: # @b i32.add $push4=, $pop2, $pop3 i32.store $discard=, count($1), $pop4 .LBB1_2: # %if.end - block .LBB1_4 + end_block # label0: + block i32.const $push5=, 16384 i32.and $push6=, $0, $pop5 i32.const $push17=, 0 i32.eq $push18=, $pop6, $pop17 - br_if $pop18, .LBB1_4 + br_if $pop18, 0 # 0: down to label1 # BB#3: # %if.then6 i32.const $1=, 0 i32.load $push7=, count($1) @@ -50,12 +51,13 @@ b: # @b i32.add $push9=, $pop7, $pop8 i32.store $discard=, count($1), $pop9 .LBB1_4: # %if.end7 - block .LBB1_6 + end_block # label1: + block i32.const $push10=, 8192 i32.and $push11=, $0, $pop10 i32.const $push19=, 0 i32.eq $push20=, $pop11, $pop19 - br_if $pop20, .LBB1_6 + br_if $pop20, 0 # 0: down to label2 # BB#5: # %if.then14 i32.const $0=, 0 i32.load $push12=, count($0) @@ -63,6 +65,7 @@ b: # @b i32.add $push14=, $pop12, $pop13 i32.store $discard=, count($0), $pop14 .LBB1_6: # %if.end15 + end_block # label2: return .Lfunc_end1: .size b, .Lfunc_end1-b diff --git a/test/torture-s/960311-3.c.s b/test/torture-s/960311-3.c.s index 0b9101767..6490066e2 100644 --- a/test/torture-s/960311-3.c.s +++ b/test/torture-s/960311-3.c.s @@ -24,10 +24,10 @@ b: # @b .param i32 .local i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, -1 i32.gt_s $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.then i32.const $1=, 0 i32.load $push2=, count($1) @@ -35,12 +35,13 @@ b: # @b i32.add $push4=, $pop2, $pop3 i32.store $discard=, count($1), $pop4 .LBB1_2: # %if.end - block .LBB1_4 + end_block # label0: + block i32.const $push5=, 1073741824 i32.and $push6=, $0, $pop5 i32.const $push15=, 0 i32.eq $push16=, $pop6, $pop15 - br_if $pop16, .LBB1_4 + br_if $pop16, 0 # 0: down to label1 # BB#3: # %if.then3 i32.const $1=, 0 i32.load $push7=, count($1) @@ -48,12 +49,13 @@ b: # @b i32.add $push9=, $pop7, $pop8 i32.store $discard=, count($1), $pop9 .LBB1_4: # %if.end4 - block .LBB1_6 + end_block # label1: + block i32.const $push10=, 536870912 i32.and $push11=, $0, $pop10 i32.const $push17=, 0 i32.eq $push18=, $pop11, $pop17 - br_if $pop18, .LBB1_6 + br_if $pop18, 0 # 0: down to label2 # BB#5: # %if.then8 i32.const $0=, 0 i32.load $push12=, count($0) @@ -61,6 +63,7 @@ b: # @b i32.add $push14=, $pop12, $pop13 i32.store $discard=, count($0), $pop14 .LBB1_6: # %if.end9 + end_block # label2: return .Lfunc_end1: .size b, .Lfunc_end1-b diff --git a/test/torture-s/960312-1.c.s b/test/torture-s/960312-1.c.s index e521056f3..ecba93239 100644 --- a/test/torture-s/960312-1.c.s +++ b/test/torture-s/960312-1.c.s @@ -43,17 +43,18 @@ main: # @main i32.load $3=, main.sc($2) #APP #NO_APP - block .LBB1_2 + block i32.const $push1=, 11 i32.store $discard=, main.sc($2), $pop1 i32.store $push0=, main.sc+8($2), $3 i32.const $push2=, 2 i32.ne $push3=, $pop0, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $2 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/960317-1.c.s b/test/torture-s/960317-1.c.s index a7f3e0bee..dbc60630e 100644 --- a/test/torture-s/960317-1.c.s +++ b/test/torture-s/960317-1.c.s @@ -12,18 +12,19 @@ f: # @f i32.const $3=, -1 i32.shl $2=, $3, $0 i32.const $0=, 0 - block .LBB0_2 + block i32.sub $push0=, $0, $2 i32.and $push1=, $1, $pop0 i32.const $push5=, 0 i32.eq $push6=, $pop1, $pop5 - br_if $pop6, .LBB0_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end i32.xor $push2=, $2, $3 i32.and $push3=, $1, $pop2 i32.ne $push4=, $pop3, $0 return $pop4 .LBB0_2: # %cleanup + end_block # label0: return $0 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/960321-1.c.s b/test/torture-s/960321-1.c.s index 0f3a7e871..14efa5839 100644 --- a/test/torture-s/960321-1.c.s +++ b/test/torture-s/960321-1.c.s @@ -26,15 +26,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load8_u $push0=, a($0) i32.const $push1=, 100 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/960326-1.c.s b/test/torture-s/960326-1.c.s index e1c480a1b..cfd95b5e1 100644 --- a/test/torture-s/960326-1.c.s +++ b/test/torture-s/960326-1.c.s @@ -9,15 +9,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, s+4($0) i32.const $push1=, 3 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/960327-1.c.s b/test/torture-s/960327-1.c.s index c2161a503..3d9aad348 100644 --- a/test/torture-s/960327-1.c.s +++ b/test/torture-s/960327-1.c.s @@ -105,7 +105,7 @@ f: # @f i32.add $8=, $14, $pop56 .LBB1_1: # %while.cond # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label0: i32.const $push57=, -2 i32.add $7=, $8, $pop57 i32.const $push61=, -1 @@ -113,16 +113,17 @@ f: # @f i32.load8_u $push58=, 0($7) i32.const $push59=, 48 i32.eq $push60=, $pop58, $pop59 - br_if $pop60, .LBB1_1 -.LBB1_2: # %while.end - block .LBB1_4 + br_if $pop60, 0 # 0: up to label0 +# BB#2: # %while.end + end_loop # label1: + block i32.const $push62=, 88 i32.store8 $7=, 0($8), $pop62 i32.add $push63=, $8, $0 i32.store8 $discard=, 0($pop63), $1 i32.load8_u $push64=, 0($2) i32.ne $push65=, $pop64, $7 - br_if $pop65, .LBB1_4 + br_if $pop65, 0 # 0: down to label2 # BB#3: # %if.end i32.const $11=, 16 i32.add $15=, $15, $11 @@ -130,6 +131,7 @@ f: # @f i32.store $15=, 0($11), $15 return $8 .LBB1_4: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: @@ -228,7 +230,7 @@ main: # @main i32.add $8=, $13, $pop56 .LBB2_1: # %while.cond.i # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label3: i32.const $push57=, -2 i32.add $7=, $8, $pop57 i32.const $push61=, -1 @@ -236,20 +238,22 @@ main: # @main i32.load8_u $push58=, 0($7) i32.const $push59=, 48 i32.eq $push60=, $pop58, $pop59 - br_if $pop60, .LBB2_1 -.LBB2_2: # %while.end.i - block .LBB2_4 + br_if $pop60, 0 # 0: up to label3 +# BB#2: # %while.end.i + end_loop # label4: + block i32.const $push62=, 88 i32.store8 $7=, 0($8), $pop62 i32.add $push63=, $8, $0 i32.store8 $8=, 0($pop63), $1 i32.load8_u $push64=, 0($2) i32.ne $push65=, $pop64, $7 - br_if $pop65, .LBB2_4 + br_if $pop65, 0 # 0: down to label5 # BB#3: # %f.exit call exit@FUNCTION, $8 unreachable .LBB2_4: # %if.then.i + end_block # label5: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/960405-1.c.s b/test/torture-s/960405-1.c.s index 7ce0256df..0c21b92f0 100644 --- a/test/torture-s/960405-1.c.s +++ b/test/torture-s/960405-1.c.s @@ -9,7 +9,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i64.load $push1=, x($0) i64.load $push0=, x+8($0) i64.load $push3=, y($0) @@ -17,11 +17,12 @@ main: # @main i32.call $push4=, __eqtf2@FUNCTION, $pop1, $pop0, $pop3, $pop2 i32.const $push5=, 0 i32.eq $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB0_2: # %if.end + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end0: diff --git a/test/torture-s/960419-1.c.s b/test/torture-s/960419-1.c.s index 1a904d883..5e82b2877 100644 --- a/test/torture-s/960419-1.c.s +++ b/test/torture-s/960419-1.c.s @@ -7,13 +7,14 @@ check: # @check .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 0 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/960521-1.c.s b/test/torture-s/960521-1.c.s index d2832cf47..ef96ec059 100644 --- a/test/torture-s/960521-1.c.s +++ b/test/torture-s/960521-1.c.s @@ -10,17 +10,17 @@ foo: # @foo # BB#0: # %entry i32.const $4=, 0 i32.const $0=, 1 - block .LBB0_3 + block i32.load $push0=, n($4) i32.lt_s $push1=, $pop0, $0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %for.body.lr.ph i32.const $1=, 0 i32.load $2=, a($1) copy_local $3=, $1 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.const $push2=, -1 i32.store $discard=, 0($2), $pop2 i32.const $push4=, 4 @@ -28,12 +28,14 @@ foo: # @foo i32.add $3=, $3, $0 i32.load $push3=, n($1) i32.lt_s $push5=, $3, $pop3 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: up to label1 .LBB0_3: # %for.cond1.preheader + end_loop # label2: + end_block # label0: i32.load $2=, b($4) .LBB0_4: # %for.body3 # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 + loop # label3: i32.add $push6=, $2, $4 i32.const $push7=, -1 i32.store $discard=, 0($pop6), $pop7 @@ -41,8 +43,9 @@ foo: # @foo i32.add $4=, $4, $pop8 i32.const $push9=, 131068 i32.ne $push10=, $4, $pop9 - br_if $pop10, .LBB0_4 -.LBB0_5: # %for.end7 + br_if $pop10, 0 # 0: up to label3 +# BB#5: # %for.end7 + end_loop # label4: return $4 .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -69,37 +72,40 @@ main: # @main i32.store $discard=, b($4), $pop2 .LBB1_1: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label5: i32.const $push4=, 1 i32.add $5=, $5, $pop4 i32.const $push3=, -1 i32.store $4=, 0($1), $pop3 i32.add $1=, $1, $3 i32.lt_s $push5=, $5, $0 - br_if $pop5, .LBB1_1 -.LBB1_2: # %for.cond1.preheader.i + br_if $pop5, 0 # 0: up to label5 +# BB#2: # %for.cond1.preheader.i + end_loop # label6: i32.const $5=, 0 i32.load $1=, b($5) .LBB1_3: # %for.body3.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_4 + loop # label7: i32.add $push6=, $1, $5 i32.store $discard=, 0($pop6), $4 i32.add $5=, $5, $3 i32.const $push7=, 131068 i32.ne $push8=, $5, $pop7 - br_if $pop8, .LBB1_3 -.LBB1_4: # %foo.exit - block .LBB1_6 + br_if $pop8, 0 # 0: up to label7 +# BB#4: # %foo.exit + end_loop # label8: + block i32.const $push9=, -4 i32.add $push10=, $1, $pop9 i32.load $push11=, 0($pop10) - br_if $pop11, .LBB1_6 + br_if $pop11, 0 # 0: down to label9 # BB#5: # %if.end i32.const $push12=, 0 call exit@FUNCTION, $pop12 unreachable .LBB1_6: # %if.then + end_block # label9: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/960909-1.c.s b/test/torture-s/960909-1.c.s index 5254e8bb7..19fcc78ab 100644 --- a/test/torture-s/960909-1.c.s +++ b/test/torture-s/960909-1.c.s @@ -10,26 +10,28 @@ ffs: # @ffs .local i32, i32, i32 # BB#0: # %entry i32.const $3=, 0 - block .LBB0_3 + block i32.const $push2=, 0 i32.eq $push3=, $0, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %for.cond.preheader i32.const $1=, 1 copy_local $2=, $1 copy_local $3=, $1 i32.and $push0=, $0, $1 - br_if $pop0, .LBB0_3 + br_if $pop0, 0 # 0: down to label0 .LBB0_2: # %for.inc # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.add $3=, $3, $1 i32.shl $2=, $2, $1 i32.and $push1=, $2, $0 i32.const $push4=, 0 i32.eq $push5=, $pop1, $pop4 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: up to label1 .LBB0_3: # %cleanup + end_loop # label2: + end_block # label0: return $3 .Lfunc_end0: .size ffs, .Lfunc_end0-ffs @@ -42,13 +44,14 @@ f: # @f .param i32 .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 0 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label3 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/961004-1.c.s b/test/torture-s/961004-1.c.s index 710ffc232..8f86bd72b 100644 --- a/test/torture-s/961004-1.c.s +++ b/test/torture-s/961004-1.c.s @@ -9,13 +9,14 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, k($0) - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.else i32.const $push1=, 1 i32.store $discard=, k($0), $pop1 .LBB0_2: # %for.inc.1 + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end0: diff --git a/test/torture-s/961017-2.c.s b/test/torture-s/961017-2.c.s index d09fb691a..264cde163 100644 --- a/test/torture-s/961017-2.c.s +++ b/test/torture-s/961017-2.c.s @@ -11,11 +11,12 @@ main: # @main i32.const $0=, 0 .LBB0_1: # %do.cond # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $push0=, 16384 i32.add $0=, $0, $pop0 - br_if $0, .LBB0_1 -.LBB0_2: # %do.end + br_if $0, 0 # 0: up to label0 +# BB#2: # %do.end + end_loop # label1: i32.const $push1=, 0 call exit@FUNCTION, $pop1 unreachable diff --git a/test/torture-s/961125-1.c.s b/test/torture-s/961125-1.c.s index bd3813ab9..d414cd050 100644 --- a/test/torture-s/961125-1.c.s +++ b/test/torture-s/961125-1.c.s @@ -13,38 +13,41 @@ main: # @main .LBB0_1: # %land.rhs.i # =>This Loop Header: Depth=1 # Child Loop BB0_3 Depth 2 - loop .LBB0_6 + loop # label0: i32.const $push13=, 0 i32.eq $push14=, $3, $pop13 - br_if $pop14, .LBB0_6 + br_if $pop14, 1 # 1: down to label1 # BB#2: # %while.cond2.preheader.i # in Loop: Header=BB0_1 Depth=1 i32.const $0=, -1 i32.const $1=, .L.str+3 - block .LBB0_5 + block i32.ge_u $push0=, $4, $1 - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label2 .LBB0_3: # %land.rhs4.i # Parent Loop BB0_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB0_5 + loop # label3: i32.load8_u $2=, 0($4) i32.const $push1=, 1 i32.add $4=, $4, $pop1 i32.const $push2=, 58 i32.eq $push3=, $2, $pop2 - br_if $pop3, .LBB0_5 + br_if $pop3, 1 # 1: down to label4 # BB#4: # %land.rhs4.i # in Loop: Header=BB0_3 Depth=2 i32.lt_u $push4=, $4, $1 - br_if $pop4, .LBB0_3 + br_if $pop4, 0 # 0: up to label3 .LBB0_5: # %while.end.thread.i # in Loop: Header=BB0_1 Depth=1 + end_loop # label4: + end_block # label2: i32.add $3=, $3, $0 i32.lt_u $push5=, $4, $1 - br_if $pop5, .LBB0_1 + br_if $pop5, 0 # 0: up to label0 .LBB0_6: # %begfield.exit - block .LBB0_8 + end_loop # label1: + block i32.const $push6=, 1 i32.add $2=, $4, $pop6 i32.const $push7=, .L.str+3 @@ -52,12 +55,13 @@ main: # @main i32.select $push9=, $pop8, $4, $2 i32.const $push10=, .L.str+2 i32.ne $push11=, $pop9, $pop10 - br_if $pop11, .LBB0_8 + br_if $pop11, 0 # 0: down to label5 # BB#7: # %if.end i32.const $push12=, 0 call exit@FUNCTION, $pop12 unreachable .LBB0_8: # %if.then + end_block # label5: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/961213-1.c.s b/test/torture-s/961213-1.c.s index 63690a837..09f6154e9 100644 --- a/test/torture-s/961213-1.c.s +++ b/test/torture-s/961213-1.c.s @@ -9,18 +9,18 @@ g: # @g .result i32 .local i64, i64, i64 # BB#0: # %entry - block .LBB0_4 + block i64.const $push0=, 0 i64.store $6=, 0($0), $pop0 i32.const $push1=, 1 i32.lt_s $push2=, $1, $pop1 - br_if $pop2, .LBB0_4 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %for.body.lr.ph i64.extend_s/i32 $4=, $3 copy_local $3=, $1 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i64.load32_u $5=, 0($2) i32.const $push4=, 4 i32.add $2=, $2, $pop4 @@ -28,10 +28,12 @@ g: # @g i32.add $3=, $3, $pop5 i64.mul $push3=, $6, $4 i64.add $6=, $5, $pop3 - br_if $3, .LBB0_2 -.LBB0_3: # %for.cond.for.end_crit_edge + br_if $3, 0 # 0: up to label1 +# BB#3: # %for.cond.for.end_crit_edge + end_loop # label2: i64.store $discard=, 0($0), $6 .LBB0_4: # %for.end + end_block # label0: return $1 .Lfunc_end0: .size g, .Lfunc_end0-g diff --git a/test/torture-s/980424-1.c.s b/test/torture-s/980424-1.c.s index de0759cef..565e10da1 100644 --- a/test/torture-s/980424-1.c.s +++ b/test/torture-s/980424-1.c.s @@ -7,13 +7,14 @@ f: # @f .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -25,7 +26,7 @@ f: # @f .type g,@function g: # @g # BB#0: # %entry - block .LBB1_2 + block i32.const $push6=, a i32.const $push0=, 0 i32.load $push1=, i($pop0) @@ -37,10 +38,11 @@ g: # @g i32.load $push8=, 0($pop7) i32.const $push9=, 1 i32.ne $push10=, $pop8, $pop9 - br_if $pop10, .LBB1_2 + br_if $pop10, 0 # 0: down to label1 # BB#1: # %f.exit return .LBB1_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/980526-2.c.s b/test/torture-s/980526-2.c.s index 582f3bca1..b3d715963 100644 --- a/test/torture-s/980526-2.c.s +++ b/test/torture-s/980526-2.c.s @@ -7,15 +7,16 @@ do_mknod: # @do_mknod .param i32, i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 360710264 i32.ne $push1=, $2, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push2=, 0 call exit@FUNCTION, $pop2 unreachable .LBB0_2: # %if.else + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -80,7 +81,7 @@ sys_mknod: # @sys_mknod .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB2_2 + block i32.const $push0=, 14 i32.shl $push1=, $2, $pop0 i32.const $push2=, -4194304 @@ -90,12 +91,13 @@ sys_mknod: # @sys_mknod i32.or $push6=, $pop3, $pop5 i32.const $push7=, 360710264 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB2_2 + br_if $pop8, 0 # 0: down to label1 # BB#1: # %if.then.i i32.const $push9=, 0 call exit@FUNCTION, $pop9 unreachable .LBB2_2: # %if.else.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/980602-2.c.s b/test/torture-s/980602-2.c.s index fbec5062a..8abf39a3c 100644 --- a/test/torture-s/980602-2.c.s +++ b/test/torture-s/980602-2.c.s @@ -11,7 +11,7 @@ main: # @main i32.const $0=, 0 i32.load $1=, t($0) i32.const $2=, 1073741823 - block .LBB0_2 + block i32.const $push1=, 1 i32.add $push2=, $1, $pop1 i32.and $push3=, $pop2, $2 @@ -20,11 +20,12 @@ main: # @main i32.or $push6=, $pop3, $pop5 i32.store $discard=, t($0), $pop6 i32.and $push0=, $1, $2 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.else + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/980604-1.c.s b/test/torture-s/980604-1.c.s index ce85d9420..e38c1490a 100644 --- a/test/torture-s/980604-1.c.s +++ b/test/torture-s/980604-1.c.s @@ -9,7 +9,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push2=, a($0) i32.load $push3=, b($0) i32.lt_s $push4=, $pop2, $pop3 @@ -17,11 +17,12 @@ main: # @main i32.const $push1=, d i32.select $push5=, $pop4, $pop0, $pop1 i32.load $push6=, 0($pop5) - br_if $pop6, .LBB0_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/980605-1.c.s b/test/torture-s/980605-1.c.s index 6b601e981..8719f8566 100644 --- a/test/torture-s/980605-1.c.s +++ b/test/torture-s/980605-1.c.s @@ -77,10 +77,10 @@ f: # @f i32.add $10=, $5, $6 i32.const $6=, __stack_pointer i32.store $10=, 0($6), $10 - block .LBB2_2 + block i32.const $push6=, 227 i32.ne $push7=, $0, $pop6 - br_if $pop7, .LBB2_2 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %if.end i32.const $9=, 16 i32.add $10=, $10, $9 @@ -88,6 +88,7 @@ f: # @f i32.store $10=, 0($9), $10 return .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: @@ -131,14 +132,15 @@ main: # @main i32.add $9=, $5, $6 i32.const $6=, __stack_pointer i32.store $9=, 0($6), $9 - block .LBB3_2 + block i32.const $push6=, 227 i32.ne $push7=, $1, $pop6 - br_if $pop7, .LBB3_2 + br_if $pop7, 0 # 0: down to label1 # BB#1: # %f.exit call exit@FUNCTION, $0 unreachable .LBB3_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/980612-1.c.s b/test/torture-s/980612-1.c.s index 8d20c5f01..7f78fded9 100644 --- a/test/torture-s/980612-1.c.s +++ b/test/torture-s/980612-1.c.s @@ -34,18 +34,19 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load8_u $1=, f($0) - block .LBB2_2 + block i32.const $push0=, 255 i32.store8 $discard=, f+1($0), $pop0 i32.const $push1=, 111 i32.and $push2=, $1, $pop1 i32.const $push3=, 2 i32.gt_u $push4=, $pop2, $pop3 - br_if $pop4, .LBB2_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB2_2: # %if.end + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end2: diff --git a/test/torture-s/980617-1.c.s b/test/torture-s/980617-1.c.s index 78845affc..5a9fe73a4 100644 --- a/test/torture-s/980617-1.c.s +++ b/test/torture-s/980617-1.c.s @@ -7,16 +7,17 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.load8_s $push0=, 0($0) i32.const $push1=, -17 i32.add $push2=, $pop0, $pop1 i32.const $push3=, 1 i32.gt_u $push4=, $pop2, $pop3 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.then return .LBB0_2: # %if.else + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/980618-1.c.s b/test/torture-s/980618-1.c.s index 45846b7cb..ff9632b0f 100644 --- a/test/torture-s/980618-1.c.s +++ b/test/torture-s/980618-1.c.s @@ -20,12 +20,13 @@ main: # @main func: # @func .param i32, i32 # BB#0: # %entry - block .LBB1_2 + block i32.ne $push0=, $0, $1 - br_if $pop0, .LBB1_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then return .LBB1_2: # %if.else + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/980701-1.c.s b/test/torture-s/980701-1.c.s index 95af94da9..fa97bbc30 100644 --- a/test/torture-s/980701-1.c.s +++ b/test/torture-s/980701-1.c.s @@ -35,13 +35,14 @@ dn_skipname: # @dn_skipname main: # @main .result i32 # BB#0: # %entry - block .LBB2_2 + block i32.const $push0=, a - br_if $pop0, .LBB2_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB2_2: # %if.end + end_block # label0: i32.const $push1=, 0 call exit@FUNCTION, $pop1 unreachable diff --git a/test/torture-s/980929-1.c.s b/test/torture-s/980929-1.c.s index 6ceb98116..164ace8ce 100644 --- a/test/torture-s/980929-1.c.s +++ b/test/torture-s/980929-1.c.s @@ -7,13 +7,14 @@ f: # @f .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 1000 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/981001-1.c.s b/test/torture-s/981001-1.c.s index 0836f0d06..69594fcab 100644 --- a/test/torture-s/981001-1.c.s +++ b/test/torture-s/981001-1.c.s @@ -9,19 +9,19 @@ sub: # @sub .result i32 .local i32, i32 # BB#0: # %entry - block .LBB0_4 + block i32.const $push0=, 2 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.then i32.const $2=, 1 - block .LBB0_3 + block i32.const $push3=, 31 i32.shr_u $push4=, $0, $pop3 i32.add $push5=, $0, $pop4 i32.shr_s $1=, $pop5, $2 i32.and $push2=, $0, $2 - br_if $pop2, .LBB0_3 + br_if $pop2, 0 # 0: down to label1 # BB#2: # %if.then2 i32.call $0=, sub@FUNCTION, $1 i32.const $push10=, -1 @@ -32,6 +32,7 @@ sub: # @sub i32.mul $push15=, $pop14, $0 return $pop15 .LBB0_3: # %if.else + end_block # label1: i32.add $push6=, $1, $2 i32.call $0=, sub@FUNCTION, $pop6 i32.call $2=, sub@FUNCTION, $1 @@ -40,6 +41,7 @@ sub: # @sub i32.add $push9=, $pop8, $pop7 return $pop9 .LBB0_4: # %cleanup + end_block # label0: return $0 .Lfunc_end0: .size sub, .Lfunc_end0-sub @@ -56,21 +58,23 @@ main: # @main i32.call $1=, sub@FUNCTION, $pop0 i32.const $2=, 0 i32.load $0=, flg($2) - block .LBB1_4 - block .LBB1_3 + block + block i32.const $push1=, 832040 i32.ne $push2=, $1, $pop1 - br_if $pop2, .LBB1_3 + br_if $pop2, 0 # 0: down to label3 # BB#1: # %if.end - br_if $0, .LBB1_4 + br_if $0, 1 # 1: down to label2 # BB#2: # %if.end2 call exit@FUNCTION, $2 unreachable .LBB1_3: # %if.end.thread + end_block # label3: i32.const $push3=, 256 i32.or $push4=, $0, $pop3 i32.store $discard=, flg($2), $pop4 .LBB1_4: # %if.then1 + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/981019-1.c.s b/test/torture-s/981019-1.c.s index 61e674d96..119297b38 100644 --- a/test/torture-s/981019-1.c.s +++ b/test/torture-s/981019-1.c.s @@ -8,43 +8,47 @@ ff: # @ff .param i32, i32, i32 .local i32, i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push0=, 0 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.const $push2=, 0 i32.eq $push3=, $2, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %if.then2 call f1@FUNCTION unreachable .LBB0_3: # %while.cond.preheader + end_block # label0: i32.const $3=, 0 i32.load $4=, f3.x($3) .LBB0_4: # %while.cond # =>This Inner Loop Header: Depth=1 - block .LBB0_7 - loop .LBB0_6 + block + loop # label2: copy_local $0=, $4 i32.eq $4=, $0, $3 - br_if $0, .LBB0_7 + br_if $0, 2 # 2: down to label1 # BB#5: # %while.body # in Loop: Header=BB0_4 Depth=1 i32.const $push4=, 0 i32.eq $push5=, $2, $pop4 - br_if $pop5, .LBB0_4 -.LBB0_6: # %land.lhs.true + br_if $pop5, 0 # 0: up to label2 +# BB#6: # %land.lhs.true + end_loop # label3: i32.store $discard=, f3.x($3), $4 i32.call $discard=, f2@FUNCTION unreachable .LBB0_7: # %while.end + end_block # label1: i32.store $discard=, f3.x($3), $4 - block .LBB0_9 - br_if $2, .LBB0_9 + block + br_if $2, 0 # 0: down to label4 # BB#8: # %if.end16 return .LBB0_9: # %if.then15 + end_block # label4: call f1@FUNCTION unreachable .Lfunc_end0: @@ -101,13 +105,14 @@ main: # @main i32.load $2=, f3.x($1) .LBB4_1: # %while.cond.i # =>This Inner Loop Header: Depth=1 - loop .LBB4_2 + loop # label5: copy_local $0=, $2 i32.eq $2=, $0, $1 i32.const $push0=, 0 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB4_1 -.LBB4_2: # %ff.exit + br_if $pop1, 0 # 0: up to label5 +# BB#2: # %ff.exit + end_loop # label6: i32.store $discard=, f3.x($1), $2 return $1 .Lfunc_end4: diff --git a/test/torture-s/981130-1.c.s b/test/torture-s/981130-1.c.s index f9c80d339..3bf2f3f00 100644 --- a/test/torture-s/981130-1.c.s +++ b/test/torture-s/981130-1.c.s @@ -7,14 +7,15 @@ check: # @check .param i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.ne $push0=, $0, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push1=, 0 call exit@FUNCTION, $pop1 unreachable .LBB0_2: # %if.else + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -29,17 +30,18 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i64.load $push0=, s2($0) i64.store $push1=, s1($0), $pop0 i32.wrap/i64 $push2=, $pop1 i32.const $push3=, 1 i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label1 # BB#1: # %if.then.i call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.else.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/990127-2.c.s b/test/torture-s/990127-2.c.s index a918d9101..6ef5a215d 100644 --- a/test/torture-s/990127-2.c.s +++ b/test/torture-s/990127-2.c.s @@ -7,12 +7,13 @@ fpEq: # @fpEq .param f64, f64 # BB#0: # %entry - block .LBB0_2 + block f64.ne $push0=, $0, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -25,16 +26,17 @@ fpEq: # @fpEq fpTest: # @fpTest .param f64, f64 # BB#0: # %entry - block .LBB1_2 + block f64.const $push0=, 0x1.9p6 f64.mul $push1=, $0, $pop0 f64.div $push2=, $pop1, $1 f64.const $push3=, 0x1.3d55555555556p6 f64.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label1 # BB#1: # %fpEq.exit return .LBB1_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/990128-1.c.s b/test/torture-s/990128-1.c.s index d6e0f9b1f..2cd44e39e 100644 --- a/test/torture-s/990128-1.c.s +++ b/test/torture-s/990128-1.c.s @@ -36,33 +36,36 @@ main: # @main .LBB0_1: # %for.inc.i.preheader.i # =>This Loop Header: Depth=1 # Child Loop BB0_2 Depth 2 - loop .LBB0_4 + loop # label0: copy_local $0=, $3 copy_local $3=, $2 .LBB0_2: # %for.inc.i.i # Parent Loop BB0_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB0_3 + loop # label2: i32.load $3=, 0($3) - br_if $3, .LBB0_2 -.LBB0_3: # %if.then.i + br_if $3, 0 # 0: up to label2 +# BB#3: # %if.then.i # in Loop: Header=BB0_1 Depth=1 + end_loop # label3: i32.load $2=, 0($2) i32.const $push11=, 1 i32.add $3=, $0, $pop11 - br_if $2, .LBB0_1 -.LBB0_4: # %sub.exit - block .LBB0_6 + br_if $2, 0 # 0: up to label0 +# BB#4: # %sub.exit + end_loop # label1: + block i32.const $push12=, 2 i32.add $push13=, $0, $pop12 i32.store $push14=, count($1), $pop13 i32.const $push15=, 12 i32.ne $push16=, $pop14, $pop15 - br_if $pop16, .LBB0_6 + br_if $pop16, 0 # 0: down to label4 # BB#5: # %if.end call exit@FUNCTION, $1 unreachable .LBB0_6: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end0: @@ -78,31 +81,34 @@ sub: # @sub # BB#0: # %entry i32.const $2=, 0 i32.load $3=, count($2) - block .LBB1_5 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB1_5 + br_if $pop4, 0 # 0: down to label5 .LBB1_1: # %for.inc.i.preheader # =>This Loop Header: Depth=1 # Child Loop BB1_2 Depth 2 - loop .LBB1_4 + loop # label6: copy_local $4=, $0 .LBB1_2: # %for.inc.i # Parent Loop BB1_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB1_3 + loop # label8: i32.load $4=, 0($4) - br_if $4, .LBB1_2 -.LBB1_3: # %if.then + br_if $4, 0 # 0: up to label8 +# BB#3: # %if.then # in Loop: Header=BB1_1 Depth=1 + end_loop # label9: i32.store $4=, 0($1), $2 i32.load $0=, 0($0) i32.const $push0=, 1 i32.add $3=, $3, $pop0 - br_if $0, .LBB1_1 -.LBB1_4: # %for.cond.look.exit.thread_crit_edge + br_if $0, 0 # 0: up to label6 +# BB#4: # %for.cond.look.exit.thread_crit_edge + end_loop # label7: i32.store $discard=, count($4), $3 .LBB1_5: # %for.end + end_block # label5: i32.store $4=, 0($1), $2 i32.const $push1=, 1 i32.add $push2=, $3, $pop1 @@ -119,16 +125,18 @@ look: # @look .param i32, i32 .result i32 # BB#0: # %entry - block .LBB2_2 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB2_2 + br_if $pop4, 0 # 0: down to label10 .LBB2_1: # %for.inc # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label11: i32.load $0=, 0($0) - br_if $0, .LBB2_1 + br_if $0, 0 # 0: up to label11 .LBB2_2: # %for.end + end_loop # label12: + end_block # label10: i32.const $push0=, 0 i32.store $0=, 0($1), $pop0 i32.const $1=, 1 diff --git a/test/torture-s/990130-1.c.s b/test/torture-s/990130-1.c.s index 87f4ef8fc..b426e21f8 100644 --- a/test/torture-s/990130-1.c.s +++ b/test/torture-s/990130-1.c.s @@ -17,12 +17,13 @@ main: # @main #APP #NO_APP i32.store $discard=, dummy($1), $0 - block .LBB0_2 - br_if $2, .LBB0_2 + block + br_if $2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $1 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/990222-1.c.s b/test/torture-s/990222-1.c.s index b045e0cfb..e1eaaca6b 100644 --- a/test/torture-s/990222-1.c.s +++ b/test/torture-s/990222-1.c.s @@ -17,13 +17,13 @@ main: # @main i32.shl $push1=, $4, $2 i32.shr_s $3=, $pop1, $2 i32.const $4=, line+1 - block .LBB0_3 + block i32.const $push2=, 58 i32.lt_s $push3=, $3, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.load8_u $3=, 0($4) i32.add $push4=, $4, $1 i32.const $push5=, 48 @@ -36,29 +36,32 @@ main: # @main i32.shr_s $push7=, $pop6, $2 i32.const $push8=, 57 i32.gt_s $push9=, $pop7, $pop8 - br_if $pop9, .LBB0_1 -.LBB0_2: # %while.end.loopexit + br_if $pop9, 0 # 0: up to label1 +# BB#2: # %while.end.loopexit + end_loop # label2: i32.load8_u $3=, line+2($0) .LBB0_3: # %while.end - block .LBB0_7 + end_block # label0: + block i32.load8_u $push12=, line($0) i32.const $push13=, 50 i32.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB0_7 + br_if $pop14, 0 # 0: down to label3 # BB#4: # %while.end i32.const $4=, 255 i32.const $2=, 48 i32.load8_u $push11=, line+1($0) i32.and $push15=, $pop11, $4 i32.ne $push16=, $pop15, $2 - br_if $pop16, .LBB0_7 + br_if $pop16, 0 # 0: down to label3 # BB#5: # %while.end i32.and $push17=, $3, $4 i32.ne $push18=, $pop17, $2 - br_if $pop18, .LBB0_7 + br_if $pop18, 0 # 0: down to label3 # BB#6: # %if.end return $0 .LBB0_7: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/990324-1.c.s b/test/torture-s/990324-1.c.s index 3b4bea930..3e06a7ffa 100644 --- a/test/torture-s/990324-1.c.s +++ b/test/torture-s/990324-1.c.s @@ -9,15 +9,16 @@ f: # @f .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_2 + block i32.const $push0=, 24 i32.shl $push1=, $0, $pop0 i32.gt_s $push2=, $pop1, $1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB0_2: # %if.else + end_block # label0: call exit@FUNCTION, $1 unreachable .Lfunc_end0: diff --git a/test/torture-s/990404-1.c.s b/test/torture-s/990404-1.c.s index dbe0875a0..b97447e47 100644 --- a/test/torture-s/990404-1.c.s +++ b/test/torture-s/990404-1.c.s @@ -12,8 +12,8 @@ main: # @main # implicit-def: %vreg66 .LBB0_1: # %for.cond # =>This Inner Loop Header: Depth=1 - block .LBB0_4 - loop .LBB0_3 + block + loop # label1: i32.const $0=, 0 i32.load $1=, x($0) i32.load $3=, x+4($0) @@ -47,7 +47,7 @@ main: # @main i32.select $push16=, $5, $12, $1 i32.const $push22=, 0 i32.eq $push23=, $pop16, $pop22 - br_if $pop23, .LBB0_4 + br_if $pop23, 2 # 2: down to label0 # BB#2: # %if.end7 # in Loop: Header=BB0_1 Depth=1 i32.const $1=, 1 @@ -76,11 +76,13 @@ main: # @main i32.add $13=, $13, $1 i32.const $push20=, 10 i32.lt_s $push21=, $13, $pop20 - br_if $pop21, .LBB0_1 -.LBB0_3: # %if.then11 + br_if $pop21, 0 # 0: up to label1 +# BB#3: # %if.then11 + end_loop # label2: call abort@FUNCTION unreachable .LBB0_4: # %for.end15 + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end0: diff --git a/test/torture-s/990513-1.c.s b/test/torture-s/990513-1.c.s index 5198e4ef4..ee56ddeee 100644 --- a/test/torture-s/990513-1.c.s +++ b/test/torture-s/990513-1.c.s @@ -11,7 +11,7 @@ foo: # @foo i32.const $5=, 1024 .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.add $2=, $0, $5 i32.const $push0=, -4 i32.add $push1=, $2, $pop0 @@ -26,8 +26,9 @@ foo: # @foo i32.add $push6=, $2, $4 i32.store $discard=, 0($pop6), $3 i32.add $5=, $5, $4 - br_if $5, .LBB0_1 -.LBB0_2: # %while.end + br_if $5, 0 # 0: up to label0 +# BB#2: # %while.end + end_loop # label1: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -53,7 +54,7 @@ main: # @main call memset@FUNCTION, $8, $0, $4 .LBB1_1: # %while.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label2: i32.const $9=, 0 i32.add $9=, $10, $9 i32.add $1=, $9, $4 @@ -71,12 +72,13 @@ main: # @main i32.add $push7=, $1, $3 i32.store $1=, 0($pop7), $2 i32.add $4=, $4, $3 - br_if $4, .LBB1_1 -.LBB1_2: # %foo.exit - block .LBB1_4 + br_if $4, 0 # 0: up to label2 +# BB#2: # %foo.exit + end_loop # label3: + block i32.load $push8=, 0($10) i32.ne $push9=, $pop8, $1 - br_if $pop9, .LBB1_4 + br_if $pop9, 0 # 0: down to label4 # BB#3: # %if.end i32.const $7=, 1024 i32.add $10=, $10, $7 @@ -84,6 +86,7 @@ main: # @main i32.store $10=, 0($7), $10 return $0 .LBB1_4: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/990524-1.c.s b/test/torture-s/990524-1.c.s index 1ea4587ae..4d085e828 100644 --- a/test/torture-s/990524-1.c.s +++ b/test/torture-s/990524-1.c.s @@ -10,7 +10,7 @@ loop: # @loop # BB#0: # %entry .LBB0_1: # %for.cond # =>This Inner Loop Header: Depth=1 - loop .LBB0_8 + loop # label0: i32.load8_u $push0=, 0($1) i32.store8 $4=, 0($0), $pop0 i32.const $5=, 24 @@ -18,35 +18,37 @@ loop: # @loop i32.shr_s $3=, $pop1, $5 i32.const $5=, 1 i32.add $2=, $1, $5 - block .LBB0_7 + block i32.const $push2=, 34 i32.eq $push3=, $4, $pop2 - br_if $pop3, .LBB0_7 + br_if $pop3, 0 # 0: down to label2 # BB#2: # %for.cond # in Loop: Header=BB0_1 Depth=1 i32.const $push4=, 92 i32.eq $push5=, $3, $pop4 - br_if $pop5, .LBB0_7 + br_if $pop5, 0 # 0: down to label2 # BB#3: # %for.cond # in Loop: Header=BB0_1 Depth=1 i32.add $0=, $0, $5 copy_local $1=, $2 - br_if $3, .LBB0_1 + br_if $3, 1 # 1: up to label0 # BB#4: # %loopDone2 - block .LBB0_6 + block i32.const $push10=, a i32.sub $push11=, $pop10, $0 i32.const $push12=, b i32.sub $push13=, $pop12, $2 i32.ne $push14=, $pop11, $pop13 - br_if $pop14, .LBB0_6 + br_if $pop14, 0 # 0: down to label3 # BB#5: # %if.end return .LBB0_6: # %if.then + end_block # label3: call abort@FUNCTION unreachable .LBB0_7: # %sw.bb2 # in Loop: Header=BB0_1 Depth=1 + end_block # label2: i32.const $push6=, 92 i32.store8 $discard=, 0($0), $pop6 i32.const $push8=, 2 @@ -56,8 +58,9 @@ loop: # @loop i32.store8 $discard=, 0($pop9), $pop7 copy_local $0=, $4 copy_local $1=, $2 - br .LBB0_1 + br 0 # 0: up to label0 .LBB0_8: + end_loop # label1: .Lfunc_end0: .size loop, .Lfunc_end0-loop @@ -73,7 +76,7 @@ main: # @main i32.const $4=, a .LBB1_1: # %for.cond.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_8 + loop # label4: i32.load8_u $push0=, 0($0) i32.store8 $2=, 0($4), $pop0 i32.const $3=, 24 @@ -81,36 +84,38 @@ main: # @main i32.shr_s $1=, $pop1, $3 i32.const $3=, 1 i32.add $0=, $0, $3 - block .LBB1_7 + block i32.const $push2=, 34 i32.eq $push3=, $2, $pop2 - br_if $pop3, .LBB1_7 + br_if $pop3, 0 # 0: down to label6 # BB#2: # %for.cond.i # in Loop: Header=BB1_1 Depth=1 i32.const $push4=, 92 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB1_7 + br_if $pop5, 0 # 0: down to label6 # BB#3: # %for.cond.i # in Loop: Header=BB1_1 Depth=1 i32.add $4=, $4, $3 - br_if $1, .LBB1_1 + br_if $1, 1 # 1: up to label4 # BB#4: # %loopDone2.i - block .LBB1_6 + block i32.const $push9=, a i32.sub $push10=, $pop9, $4 i32.const $push11=, b i32.sub $push12=, $pop11, $0 i32.ne $push13=, $pop10, $pop12 - br_if $pop13, .LBB1_6 + br_if $pop13, 0 # 0: down to label7 # BB#5: # %loop.exit i32.const $push14=, 0 call exit@FUNCTION, $pop14 unreachable .LBB1_6: # %if.then.i + end_block # label7: call abort@FUNCTION unreachable .LBB1_7: # %sw.bb2.i # in Loop: Header=BB1_1 Depth=1 + end_block # label6: i32.const $push6=, 92 i32.store8 $discard=, 0($4), $pop6 i32.const $push7=, 2 @@ -118,8 +123,9 @@ main: # @main i32.add $push8=, $4, $3 i32.store8 $discard=, 0($pop8), $2 copy_local $4=, $1 - br .LBB1_1 + br 0 # 0: up to label4 .LBB1_8: + end_loop # label5: .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/990527-1.c.s b/test/torture-s/990527-1.c.s index 5789dc970..52188e3c7 100644 --- a/test/torture-s/990527-1.c.s +++ b/test/torture-s/990527-1.c.s @@ -44,15 +44,16 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, sum($0) - block .LBB2_2 + block i32.const $push0=, 81 i32.add $push1=, $1, $pop0 i32.store $discard=, sum($0), $pop1 - br_if $1, .LBB2_2 + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/990604-1.c.s b/test/torture-s/990604-1.c.s index 8c75f091e..c39529ab0 100644 --- a/test/torture-s/990604-1.c.s +++ b/test/torture-s/990604-1.c.s @@ -8,13 +8,14 @@ f: # @f .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, b($0) - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %do.body.preheader i32.const $push1=, 9 i32.store $discard=, b($0), $pop1 .LBB0_2: # %if.end + end_block # label0: return .Lfunc_end0: .size f, .Lfunc_end0-f @@ -30,19 +31,21 @@ main: # @main i32.const $1=, 0 i32.load $0=, b($1) i32.const $2=, 9 - block .LBB1_4 + block i32.eq $push0=, $0, $2 - br_if $pop0, .LBB1_4 + br_if $pop0, 0 # 0: down to label1 # BB#1: # %entry - block .LBB1_3 - br_if $0, .LBB1_3 + block + br_if $0, 0 # 0: down to label2 # BB#2: # %f.exit.thread i32.store $discard=, b($1), $2 - br .LBB1_4 + br 1 # 1: down to label1 .LBB1_3: # %if.then + end_block # label2: call abort@FUNCTION unreachable .LBB1_4: # %if.end + end_block # label1: return $1 .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/990628-1.c.s b/test/torture-s/990628-1.c.s index d5f05f831..6debfaad3 100644 --- a/test/torture-s/990628-1.c.s +++ b/test/torture-s/990628-1.c.s @@ -58,13 +58,13 @@ load_data: # @load_data i32.store $discard=, fetch.fetch_count($2), $pop2 i32.gt_s $0=, $7, $2 i32.const $6=, 100 - block .LBB2_3 + block i32.select $push3=, $0, $6, $2 i32.store $discard=, sqlca($2), $pop3 - br_if $0, .LBB2_3 + br_if $0, 0 # 0: down to label0 .LBB2_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label1: copy_local $0=, $7 i32.add $7=, $8, $1 call memcpy@FUNCTION, $8, $3, $1 @@ -72,13 +72,15 @@ load_data: # @load_data copy_local $8=, $7 i32.add $7=, $0, $5 i32.lt_s $push5=, $7, $5 - br_if $pop5, .LBB2_1 -.LBB2_2: # %while.cond.while.end_crit_edge + br_if $pop5, 0 # 0: up to label1 +# BB#2: # %while.cond.while.end_crit_edge + end_loop # label2: i32.const $push4=, 2 i32.add $push0=, $0, $pop4 i32.store $discard=, fetch.fetch_count($2), $pop0 i32.store $discard=, sqlca($2), $6 .LBB2_3: # %while.end + end_block # label0: return .Lfunc_end2: .size load_data, .Lfunc_end2-load_data @@ -106,36 +108,39 @@ main: # @main i32.store $discard=, fetch.fetch_count($3), $pop1 i32.gt_s $9=, $8, $3 i32.const $7=, 100 - block .LBB3_4 + block i32.select $push2=, $9, $7, $3 i32.store $discard=, sqlca($3), $pop2 - br_if $9, .LBB3_4 + br_if $9, 0 # 0: down to label3 # BB#1: # %while.body.lr.ph.i copy_local $9=, $0 .LBB3_2: # %while.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB3_3 + loop # label4: i32.add $1=, $9, $2 call memcpy@FUNCTION, $9, $4, $2 call memset@FUNCTION, $4, $5, $2 i32.add $8=, $8, $6 copy_local $9=, $1 i32.lt_s $push3=, $8, $6 - br_if $pop3, .LBB3_2 -.LBB3_3: # %while.cond.while.end_crit_edge.i + br_if $pop3, 0 # 0: up to label4 +# BB#3: # %while.cond.while.end_crit_edge.i + end_loop # label5: i32.const $push4=, 2 i32.store $discard=, fetch.fetch_count($3), $pop4 i32.store $discard=, sqlca($3), $7 .LBB3_4: # %load_data.exit - block .LBB3_6 + end_block # label3: + block i32.load $push5=, 0($0) i32.const $push6=, 1431655765 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB3_6 + br_if $pop7, 0 # 0: down to label6 # BB#5: # %if.end call exit@FUNCTION, $3 unreachable .LBB3_6: # %if.then + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/990811-1.c.s b/test/torture-s/990811-1.c.s index 99bb66953..0c51d5ffd 100644 --- a/test/torture-s/990811-1.c.s +++ b/test/torture-s/990811-1.c.s @@ -8,31 +8,35 @@ foo: # @foo .param i32, i32 .result i32 # BB#0: # %entry - block .LBB0_7 - block .LBB0_6 + block + block i32.const $push0=, 2 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB0_6 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %entry - block .LBB0_5 + block i32.const $push2=, 1 i32.eq $push3=, $0, $pop2 - br_if $pop3, .LBB0_5 + br_if $pop3, 0 # 0: down to label2 # BB#2: # %entry - block .LBB0_4 - br_if $0, .LBB0_4 + block + br_if $0, 0 # 0: down to label3 # BB#3: # %sw.bb i32.load $0=, 0($1) - br .LBB0_7 + br 3 # 3: down to label0 .LBB0_4: # %sw.epilog + end_block # label3: call abort@FUNCTION unreachable .LBB0_5: # %sw.bb1 + end_block # label2: i32.load8_s $0=, 0($1) - br .LBB0_7 + br 1 # 1: down to label0 .LBB0_6: # %sw.bb2 + end_block # label1: i32.load16_s $0=, 0($1) .LBB0_7: # %return + end_block # label0: return $0 .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/991016-1.c.s b/test/torture-s/991016-1.c.s index f9506a764..72aac0683 100644 --- a/test/torture-s/991016-1.c.s +++ b/test/torture-s/991016-1.c.s @@ -9,71 +9,78 @@ doit: # @doit .result i32 .local i32, i64, i32, i64 # BB#0: # %entry - block .LBB0_13 - block .LBB0_10 + block + block i32.const $push11=, 0 i32.eq $push12=, $0, $pop11 - br_if $pop12, .LBB0_10 + br_if $pop12, 0 # 0: down to label1 # BB#1: # %entry i32.const $5=, 1 - block .LBB0_7 + block i32.eq $push0=, $0, $5 - br_if $pop0, .LBB0_7 + br_if $pop0, 0 # 0: down to label2 # BB#2: # %entry - block .LBB0_6 + block i32.const $push1=, 2 i32.ne $push2=, $0, $pop1 - br_if $pop2, .LBB0_6 + br_if $pop2, 0 # 0: down to label3 # BB#3: # %do.body11.preheader i64.load $6=, 0($2) .LBB0_4: # %do.body11 # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 + loop # label4: i32.const $push4=, -1 i32.add $1=, $1, $pop4 copy_local $4=, $6 i64.const $push3=, 1 i64.shl $6=, $4, $pop3 - br_if $1, .LBB0_4 -.LBB0_5: # %do.end16 + br_if $1, 0 # 0: up to label4 +# BB#5: # %do.end16 + end_loop # label5: i64.store $discard=, 0($2), $6 i64.const $push5=, 0 i64.eq $1=, $4, $pop5 - br .LBB0_13 + br 3 # 3: down to label0 .LBB0_6: # %sw.default + end_block # label3: call abort@FUNCTION unreachable .LBB0_7: # %do.body2.preheader + end_block # label2: i32.load $0=, 0($2) .LBB0_8: # %do.body2 # =>This Inner Loop Header: Depth=1 - loop .LBB0_9 + loop # label6: i32.const $push6=, -1 i32.add $1=, $1, $pop6 copy_local $3=, $0 i32.shl $0=, $3, $5 - br_if $1, .LBB0_8 -.LBB0_9: # %do.end7 + br_if $1, 0 # 0: up to label6 +# BB#9: # %do.end7 + end_loop # label7: i32.store $discard=, 0($2), $0 i32.const $push7=, 0 i32.eq $1=, $3, $pop7 - br .LBB0_13 + br 1 # 1: down to label0 .LBB0_10: # %do.body.preheader + end_block # label1: i32.load $0=, 0($2) .LBB0_11: # %do.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_12 + loop # label8: i32.const $push9=, -1 i32.add $1=, $1, $pop9 copy_local $3=, $0 i32.const $push8=, 1 i32.shl $0=, $3, $pop8 - br_if $1, .LBB0_11 -.LBB0_12: # %do.end + br_if $1, 0 # 0: up to label8 +# BB#12: # %do.end + end_loop # label9: i32.store $discard=, 0($2), $0 i32.const $push10=, 0 i32.eq $1=, $3, $pop10 .LBB0_13: # %cleanup + end_block # label0: return $1 .Lfunc_end0: .size doit, .Lfunc_end0-doit diff --git a/test/torture-s/991030-1.c.s b/test/torture-s/991030-1.c.s index 4498cae40..d995492e5 100644 --- a/test/torture-s/991030-1.c.s +++ b/test/torture-s/991030-1.c.s @@ -9,15 +9,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block f64.load $push0=, x($0) f64.const $push1=, 0x1.fp1 f64.eq $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB0_2: # %if.end + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end0: diff --git a/test/torture-s/991112-1.c.s b/test/torture-s/991112-1.c.s index f135de173..6401323fe 100644 --- a/test/torture-s/991112-1.c.s +++ b/test/torture-s/991112-1.c.s @@ -36,24 +36,26 @@ rl_character_len: # @rl_character_len main: # @main .result i32 # BB#0: # %entry - block .LBB2_4 + block i32.const $push0=, 97 i32.call $push1=, isprint@FUNCTION, $pop0 i32.const $push5=, 0 i32.eq $push6=, $pop1, $pop5 - br_if $pop6, .LBB2_4 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB2_3 + block i32.const $push2=, 2 i32.call $push3=, isprint@FUNCTION, $pop2 - br_if $pop3, .LBB2_3 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %if.end4 i32.const $push4=, 0 return $pop4 .LBB2_3: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB2_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/991201-1.c.s b/test/torture-s/991201-1.c.s index f70b15aad..f130685ee 100644 --- a/test/torture-s/991201-1.c.s +++ b/test/torture-s/991201-1.c.s @@ -16,7 +16,7 @@ reset_palette: # @reset_palette i32.const $0=, -64 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $2=, 64 i32.load $push7=, 0($1) i32.add $push8=, $pop7, $3 @@ -47,8 +47,9 @@ reset_palette: # @reset_palette i32.add $3=, $3, $pop25 i32.const $push26=, 4 i32.add $0=, $0, $pop26 - br_if $0, .LBB0_1 -.LBB0_2: # %bar.exit + br_if $0, 0 # 0: up to label0 +# BB#2: # %bar.exit + end_loop # label1: return .Lfunc_end0: .size reset_palette, .Lfunc_end0-reset_palette @@ -60,13 +61,14 @@ reset_palette: # @reset_palette bar: # @bar .param i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 48 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label2 # BB#1: # %if.end return .LBB1_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: @@ -85,7 +87,7 @@ main: # @main copy_local $1=, $0 .LBB2_1: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label3: i32.load $push3=, vc_cons($0) i32.add $push4=, $pop3, $2 i32.const $push5=, -2 @@ -114,8 +116,9 @@ main: # @main i32.add $1=, $1, $pop20 i32.const $push21=, 54 i32.ne $push22=, $2, $pop21 - br_if $pop22, .LBB2_1 -.LBB2_2: # %reset_palette.exit + br_if $pop22, 0 # 0: up to label3 +# BB#2: # %reset_palette.exit + end_loop # label4: i32.const $push23=, 0 call exit@FUNCTION, $pop23 unreachable diff --git a/test/torture-s/991216-1.c.s b/test/torture-s/991216-1.c.s index 5b0893a4b..a5cd68427 100644 --- a/test/torture-s/991216-1.c.s +++ b/test/torture-s/991216-1.c.s @@ -7,21 +7,22 @@ test1: # @test1 .param i32, i64, i32 # BB#0: # %entry - block .LBB0_4 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i64.const $push2=, 81985529216486895 i64.ne $push3=, $1, $pop2 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %entry i32.const $push4=, 85 i32.ne $push5=, $2, $pop4 - br_if $pop5, .LBB0_4 + br_if $pop5, 0 # 0: down to label0 # BB#3: # %if.end return .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -34,25 +35,26 @@ test1: # @test1 test2: # @test2 .param i32, i32, i64, i32 # BB#0: # %entry - block .LBB1_5 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB1_5 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %entry i32.const $push2=, 2 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB1_5 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %entry i64.const $push4=, 81985529216486895 i64.ne $push5=, $2, $pop4 - br_if $pop5, .LBB1_5 + br_if $pop5, 0 # 0: down to label1 # BB#3: # %entry i32.const $push6=, 85 i32.ne $push7=, $3, $pop6 - br_if $pop7, .LBB1_5 + br_if $pop7, 0 # 0: down to label1 # BB#4: # %if.end return .LBB1_5: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: @@ -65,29 +67,30 @@ test2: # @test2 test3: # @test3 .param i32, i32, i32, i64, i32 # BB#0: # %entry - block .LBB2_6 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB2_6 + br_if $pop1, 0 # 0: down to label2 # BB#1: # %entry i32.const $push2=, 2 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB2_6 + br_if $pop3, 0 # 0: down to label2 # BB#2: # %entry i32.const $push4=, 3 i32.ne $push5=, $2, $pop4 - br_if $pop5, .LBB2_6 + br_if $pop5, 0 # 0: down to label2 # BB#3: # %entry i64.const $push6=, 81985529216486895 i64.ne $push7=, $3, $pop6 - br_if $pop7, .LBB2_6 + br_if $pop7, 0 # 0: down to label2 # BB#4: # %entry i32.const $push8=, 85 i32.ne $push9=, $4, $pop8 - br_if $pop9, .LBB2_6 + br_if $pop9, 0 # 0: down to label2 # BB#5: # %if.end return .LBB2_6: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end2: @@ -100,33 +103,34 @@ test3: # @test3 test4: # @test4 .param i32, i32, i32, i32, i64, i32 # BB#0: # %entry - block .LBB3_7 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB3_7 + br_if $pop1, 0 # 0: down to label3 # BB#1: # %entry i32.const $push2=, 2 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB3_7 + br_if $pop3, 0 # 0: down to label3 # BB#2: # %entry i32.const $push4=, 3 i32.ne $push5=, $2, $pop4 - br_if $pop5, .LBB3_7 + br_if $pop5, 0 # 0: down to label3 # BB#3: # %entry i32.const $push6=, 4 i32.ne $push7=, $3, $pop6 - br_if $pop7, .LBB3_7 + br_if $pop7, 0 # 0: down to label3 # BB#4: # %entry i64.const $push8=, 81985529216486895 i64.ne $push9=, $4, $pop8 - br_if $pop9, .LBB3_7 + br_if $pop9, 0 # 0: down to label3 # BB#5: # %entry i32.const $push10=, 85 i32.ne $push11=, $5, $pop10 - br_if $pop11, .LBB3_7 + br_if $pop11, 0 # 0: down to label3 # BB#6: # %if.end return .LBB3_7: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end3: @@ -139,37 +143,38 @@ test4: # @test4 test5: # @test5 .param i32, i32, i32, i32, i32, i64, i32 # BB#0: # %entry - block .LBB4_8 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB4_8 + br_if $pop1, 0 # 0: down to label4 # BB#1: # %entry i32.const $push2=, 2 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB4_8 + br_if $pop3, 0 # 0: down to label4 # BB#2: # %entry i32.const $push4=, 3 i32.ne $push5=, $2, $pop4 - br_if $pop5, .LBB4_8 + br_if $pop5, 0 # 0: down to label4 # BB#3: # %entry i32.const $push6=, 4 i32.ne $push7=, $3, $pop6 - br_if $pop7, .LBB4_8 + br_if $pop7, 0 # 0: down to label4 # BB#4: # %entry i32.const $push8=, 5 i32.ne $push9=, $4, $pop8 - br_if $pop9, .LBB4_8 + br_if $pop9, 0 # 0: down to label4 # BB#5: # %entry i64.const $push10=, 81985529216486895 i64.ne $push11=, $5, $pop10 - br_if $pop11, .LBB4_8 + br_if $pop11, 0 # 0: down to label4 # BB#6: # %entry i32.const $push12=, 85 i32.ne $push13=, $6, $pop12 - br_if $pop13, .LBB4_8 + br_if $pop13, 0 # 0: down to label4 # BB#7: # %if.end return .LBB4_8: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end4: @@ -182,41 +187,42 @@ test5: # @test5 test6: # @test6 .param i32, i32, i32, i32, i32, i32, i64, i32 # BB#0: # %entry - block .LBB5_9 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB5_9 + br_if $pop1, 0 # 0: down to label5 # BB#1: # %entry i32.const $push2=, 2 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB5_9 + br_if $pop3, 0 # 0: down to label5 # BB#2: # %entry i32.const $push4=, 3 i32.ne $push5=, $2, $pop4 - br_if $pop5, .LBB5_9 + br_if $pop5, 0 # 0: down to label5 # BB#3: # %entry i32.const $push6=, 4 i32.ne $push7=, $3, $pop6 - br_if $pop7, .LBB5_9 + br_if $pop7, 0 # 0: down to label5 # BB#4: # %entry i32.const $push8=, 5 i32.ne $push9=, $4, $pop8 - br_if $pop9, .LBB5_9 + br_if $pop9, 0 # 0: down to label5 # BB#5: # %entry i32.const $push10=, 6 i32.ne $push11=, $5, $pop10 - br_if $pop11, .LBB5_9 + br_if $pop11, 0 # 0: down to label5 # BB#6: # %entry i64.const $push12=, 81985529216486895 i64.ne $push13=, $6, $pop12 - br_if $pop13, .LBB5_9 + br_if $pop13, 0 # 0: down to label5 # BB#7: # %entry i32.const $push14=, 85 i32.ne $push15=, $7, $pop14 - br_if $pop15, .LBB5_9 + br_if $pop15, 0 # 0: down to label5 # BB#8: # %if.end return .LBB5_9: # %if.then + end_block # label5: call abort@FUNCTION unreachable .Lfunc_end5: @@ -229,45 +235,46 @@ test6: # @test6 test7: # @test7 .param i32, i32, i32, i32, i32, i32, i32, i64, i32 # BB#0: # %entry - block .LBB6_10 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB6_10 + br_if $pop1, 0 # 0: down to label6 # BB#1: # %entry i32.const $push2=, 2 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB6_10 + br_if $pop3, 0 # 0: down to label6 # BB#2: # %entry i32.const $push4=, 3 i32.ne $push5=, $2, $pop4 - br_if $pop5, .LBB6_10 + br_if $pop5, 0 # 0: down to label6 # BB#3: # %entry i32.const $push6=, 4 i32.ne $push7=, $3, $pop6 - br_if $pop7, .LBB6_10 + br_if $pop7, 0 # 0: down to label6 # BB#4: # %entry i32.const $push8=, 5 i32.ne $push9=, $4, $pop8 - br_if $pop9, .LBB6_10 + br_if $pop9, 0 # 0: down to label6 # BB#5: # %entry i32.const $push10=, 6 i32.ne $push11=, $5, $pop10 - br_if $pop11, .LBB6_10 + br_if $pop11, 0 # 0: down to label6 # BB#6: # %entry i32.const $push12=, 7 i32.ne $push13=, $6, $pop12 - br_if $pop13, .LBB6_10 + br_if $pop13, 0 # 0: down to label6 # BB#7: # %entry i64.const $push14=, 81985529216486895 i64.ne $push15=, $7, $pop14 - br_if $pop15, .LBB6_10 + br_if $pop15, 0 # 0: down to label6 # BB#8: # %entry i32.const $push16=, 85 i32.ne $push17=, $8, $pop16 - br_if $pop17, .LBB6_10 + br_if $pop17, 0 # 0: down to label6 # BB#9: # %if.end return .LBB6_10: # %if.then + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end6: @@ -280,49 +287,50 @@ test7: # @test7 test8: # @test8 .param i32, i32, i32, i32, i32, i32, i32, i32, i64, i32 # BB#0: # %entry - block .LBB7_11 + block i32.const $push0=, 1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB7_11 + br_if $pop1, 0 # 0: down to label7 # BB#1: # %entry i32.const $push2=, 2 i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB7_11 + br_if $pop3, 0 # 0: down to label7 # BB#2: # %entry i32.const $push4=, 3 i32.ne $push5=, $2, $pop4 - br_if $pop5, .LBB7_11 + br_if $pop5, 0 # 0: down to label7 # BB#3: # %entry i32.const $push6=, 4 i32.ne $push7=, $3, $pop6 - br_if $pop7, .LBB7_11 + br_if $pop7, 0 # 0: down to label7 # BB#4: # %entry i32.const $push8=, 5 i32.ne $push9=, $4, $pop8 - br_if $pop9, .LBB7_11 + br_if $pop9, 0 # 0: down to label7 # BB#5: # %entry i32.const $push10=, 6 i32.ne $push11=, $5, $pop10 - br_if $pop11, .LBB7_11 + br_if $pop11, 0 # 0: down to label7 # BB#6: # %entry i32.const $push12=, 7 i32.ne $push13=, $6, $pop12 - br_if $pop13, .LBB7_11 + br_if $pop13, 0 # 0: down to label7 # BB#7: # %entry i32.const $push14=, 8 i32.ne $push15=, $7, $pop14 - br_if $pop15, .LBB7_11 + br_if $pop15, 0 # 0: down to label7 # BB#8: # %entry i64.const $push16=, 81985529216486895 i64.ne $push17=, $8, $pop16 - br_if $pop17, .LBB7_11 + br_if $pop17, 0 # 0: down to label7 # BB#9: # %entry i32.const $push18=, 85 i32.ne $push19=, $9, $pop18 - br_if $pop19, .LBB7_11 + br_if $pop19, 0 # 0: down to label7 # BB#10: # %if.end return .LBB7_11: # %if.then + end_block # label7: call abort@FUNCTION unreachable .Lfunc_end7: diff --git a/test/torture-s/991228-1.c.s b/test/torture-s/991228-1.c.s index 847f79041..e42048bd7 100644 --- a/test/torture-s/991228-1.c.s +++ b/test/torture-s/991228-1.c.s @@ -49,7 +49,7 @@ main: # @main i32.const $3=, __stack_pointer i32.store $5=, 0($3), $5 i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, endianness_test($0) i32.const $push1=, 2 i32.shl $1=, $pop0, $pop1 @@ -57,24 +57,26 @@ main: # @main i32.add $push3=, $pop2, $1 i32.load $push4=, 0($pop3) i32.lt_s $push5=, $pop4, $0 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.then call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.end + end_block # label0: i64.const $push6=, -4625196817309499392 i64.store $discard=, 8($5), $pop6 i32.const $4=, 8 i32.add $4=, $5, $4 - block .LBB1_4 + block i32.add $push7=, $4, $1 i32.load $push8=, 0($pop7) i32.lt_s $push9=, $pop8, $0 - br_if $pop9, .LBB1_4 + br_if $pop9, 0 # 0: down to label1 # BB#3: # %if.then1 call abort@FUNCTION unreachable .LBB1_4: # %if.end2 + end_block # label1: call exit@FUNCTION, $0 unreachable .Lfunc_end1: diff --git a/test/torture-s/align-2.c.s b/test/torture-s/align-2.c.s index 5a0dd45da..1dc0d8972 100644 --- a/test/torture-s/align-2.c.s +++ b/test/torture-s/align-2.c.s @@ -9,263 +9,291 @@ main: # @main .local i32, i64 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_56 + block i32.load8_u $push0=, s_c_s($0) i32.const $push1=, 97 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_56 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_55 + block i32.load16_u $push3=, s_c_s+2($0) i32.const $push4=, 13 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB0_55 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %if.end6 - block .LBB0_54 + block i32.load8_u $push6=, s_c_i($0) i32.const $push7=, 98 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_54 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %if.end11 - block .LBB0_53 + block i32.load $push9=, s_c_i+4($0) i32.const $push10=, 14 i32.ne $push11=, $pop9, $pop10 - br_if $pop11, .LBB0_53 + br_if $pop11, 0 # 0: down to label3 # BB#4: # %if.end15 - block .LBB0_52 + block i32.load16_u $push12=, s_s_i($0) i32.const $push13=, 15 i32.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB0_52 + br_if $pop14, 0 # 0: down to label4 # BB#5: # %if.end20 - block .LBB0_51 + block i32.load $push15=, s_s_i+4($0) i32.const $push16=, 16 i32.ne $push17=, $pop15, $pop16 - br_if $pop17, .LBB0_51 + br_if $pop17, 0 # 0: down to label5 # BB#6: # %if.end24 - block .LBB0_50 + block i32.load8_u $push18=, s_c_f($0) i32.const $push19=, 99 i32.ne $push20=, $pop18, $pop19 - br_if $pop20, .LBB0_50 + br_if $pop20, 0 # 0: down to label6 # BB#7: # %if.end29 - block .LBB0_49 + block f32.load $push21=, s_c_f+4($0) f32.const $push22=, 0x1.1p4 f32.ne $push23=, $pop21, $pop22 - br_if $pop23, .LBB0_49 + br_if $pop23, 0 # 0: down to label7 # BB#8: # %if.end34 - block .LBB0_48 + block i32.load16_u $push24=, s_s_f($0) i32.const $push25=, 18 i32.ne $push26=, $pop24, $pop25 - br_if $pop26, .LBB0_48 + br_if $pop26, 0 # 0: down to label8 # BB#9: # %if.end39 - block .LBB0_47 + block f32.load $push27=, s_s_f+4($0) f32.const $push28=, 0x1.3p4 f32.ne $push29=, $pop27, $pop28 - br_if $pop29, .LBB0_47 + br_if $pop29, 0 # 0: down to label9 # BB#10: # %if.end44 - block .LBB0_46 + block i32.load8_u $push30=, s_c_d($0) i32.const $push31=, 100 i32.ne $push32=, $pop30, $pop31 - br_if $pop32, .LBB0_46 + br_if $pop32, 0 # 0: down to label10 # BB#11: # %if.end49 - block .LBB0_45 + block f64.load $push33=, s_c_d+8($0) f64.const $push34=, 0x1.4p4 f64.ne $push35=, $pop33, $pop34 - br_if $pop35, .LBB0_45 + br_if $pop35, 0 # 0: down to label11 # BB#12: # %if.end53 - block .LBB0_44 + block i32.load16_u $push36=, s_s_d($0) i32.const $push37=, 21 i32.ne $push38=, $pop36, $pop37 - br_if $pop38, .LBB0_44 + br_if $pop38, 0 # 0: down to label12 # BB#13: # %if.end58 - block .LBB0_43 + block f64.load $push39=, s_s_d+8($0) f64.const $push40=, 0x1.6p4 f64.ne $push41=, $pop39, $pop40 - br_if $pop41, .LBB0_43 + br_if $pop41, 0 # 0: down to label13 # BB#14: # %if.end62 - block .LBB0_42 + block i32.load $push42=, s_i_d($0) i32.const $push43=, 23 i32.ne $push44=, $pop42, $pop43 - br_if $pop44, .LBB0_42 + br_if $pop44, 0 # 0: down to label14 # BB#15: # %if.end66 - block .LBB0_41 + block f64.load $push45=, s_i_d+8($0) f64.const $push46=, 0x1.8p4 f64.ne $push47=, $pop45, $pop46 - br_if $pop47, .LBB0_41 + br_if $pop47, 0 # 0: down to label15 # BB#16: # %if.end70 - block .LBB0_40 + block f32.load $push48=, s_f_d($0) f32.const $push49=, 0x1.9p4 f32.ne $push50=, $pop48, $pop49 - br_if $pop50, .LBB0_40 + br_if $pop50, 0 # 0: down to label16 # BB#17: # %if.end75 - block .LBB0_39 + block f64.load $push51=, s_f_d+8($0) f64.const $push52=, 0x1.ap4 f64.ne $push53=, $pop51, $pop52 - br_if $pop53, .LBB0_39 + br_if $pop53, 0 # 0: down to label17 # BB#18: # %if.end79 - block .LBB0_38 + block i32.load8_u $push54=, s_c_ld($0) i32.const $push55=, 101 i32.ne $push56=, $pop54, $pop55 - br_if $pop56, .LBB0_38 + br_if $pop56, 0 # 0: down to label18 # BB#19: # %if.end84 i64.const $1=, 0 - block .LBB0_37 + block i64.load $push58=, s_c_ld+16($0) i64.load $push57=, s_c_ld+24($0) i64.const $push59=, 4612723957404008448 i32.call $push60=, __eqtf2@FUNCTION, $pop58, $pop57, $1, $pop59 - br_if $pop60, .LBB0_37 + br_if $pop60, 0 # 0: down to label19 # BB#20: # %if.end88 - block .LBB0_36 + block i32.load16_u $push61=, s_s_ld($0) i32.const $push62=, 28 i32.ne $push63=, $pop61, $pop62 - br_if $pop63, .LBB0_36 + br_if $pop63, 0 # 0: down to label20 # BB#21: # %if.end93 - block .LBB0_35 + block i64.load $push65=, s_s_ld+16($0) i64.load $push64=, s_s_ld+24($0) i64.const $push66=, 4612759141776097280 i32.call $push67=, __eqtf2@FUNCTION, $pop65, $pop64, $1, $pop66 - br_if $pop67, .LBB0_35 + br_if $pop67, 0 # 0: down to label21 # BB#22: # %if.end97 - block .LBB0_34 + block i32.load $push68=, s_i_ld($0) i32.const $push69=, 30 i32.ne $push70=, $pop68, $pop69 - br_if $pop70, .LBB0_34 + br_if $pop70, 0 # 0: down to label22 # BB#23: # %if.end101 - block .LBB0_33 + block i64.load $push72=, s_i_ld+16($0) i64.load $push71=, s_i_ld+24($0) i64.const $push73=, 4612794326148186112 i32.call $push74=, __eqtf2@FUNCTION, $pop72, $pop71, $1, $pop73 - br_if $pop74, .LBB0_33 + br_if $pop74, 0 # 0: down to label23 # BB#24: # %if.end105 - block .LBB0_32 + block f32.load $push75=, s_f_ld($0) f32.const $push76=, 0x1p5 f32.ne $push77=, $pop75, $pop76 - br_if $pop77, .LBB0_32 + br_if $pop77, 0 # 0: down to label24 # BB#25: # %if.end110 - block .LBB0_31 + block i64.load $push79=, s_f_ld+16($0) i64.load $push78=, s_f_ld+24($0) i64.const $push80=, 4612820714427252736 i32.call $push81=, __eqtf2@FUNCTION, $pop79, $pop78, $1, $pop80 - br_if $pop81, .LBB0_31 + br_if $pop81, 0 # 0: down to label25 # BB#26: # %if.end114 - block .LBB0_30 + block f64.load $push82=, s_d_ld($0) f64.const $push83=, 0x1.1p5 f64.ne $push84=, $pop82, $pop83 - br_if $pop84, .LBB0_30 + br_if $pop84, 0 # 0: down to label26 # BB#27: # %if.end118 - block .LBB0_29 + block i64.load $push86=, s_d_ld+16($0) i64.load $push85=, s_d_ld+24($0) i64.const $push87=, 4612838306613297152 i32.call $push88=, __eqtf2@FUNCTION, $pop86, $pop85, $1, $pop87 - br_if $pop88, .LBB0_29 + br_if $pop88, 0 # 0: down to label27 # BB#28: # %if.end122 return $0 .LBB0_29: # %if.then121 + end_block # label27: call abort@FUNCTION unreachable .LBB0_30: # %if.then117 + end_block # label26: call abort@FUNCTION unreachable .LBB0_31: # %if.then113 + end_block # label25: call abort@FUNCTION unreachable .LBB0_32: # %if.then109 + end_block # label24: call abort@FUNCTION unreachable .LBB0_33: # %if.then104 + end_block # label23: call abort@FUNCTION unreachable .LBB0_34: # %if.then100 + end_block # label22: call abort@FUNCTION unreachable .LBB0_35: # %if.then96 + end_block # label21: call abort@FUNCTION unreachable .LBB0_36: # %if.then92 + end_block # label20: call abort@FUNCTION unreachable .LBB0_37: # %if.then87 + end_block # label19: call abort@FUNCTION unreachable .LBB0_38: # %if.then83 + end_block # label18: call abort@FUNCTION unreachable .LBB0_39: # %if.then78 + end_block # label17: call abort@FUNCTION unreachable .LBB0_40: # %if.then74 + end_block # label16: call abort@FUNCTION unreachable .LBB0_41: # %if.then69 + end_block # label15: call abort@FUNCTION unreachable .LBB0_42: # %if.then65 + end_block # label14: call abort@FUNCTION unreachable .LBB0_43: # %if.then61 + end_block # label13: call abort@FUNCTION unreachable .LBB0_44: # %if.then57 + end_block # label12: call abort@FUNCTION unreachable .LBB0_45: # %if.then52 + end_block # label11: call abort@FUNCTION unreachable .LBB0_46: # %if.then48 + end_block # label10: call abort@FUNCTION unreachable .LBB0_47: # %if.then43 + end_block # label9: call abort@FUNCTION unreachable .LBB0_48: # %if.then38 + end_block # label8: call abort@FUNCTION unreachable .LBB0_49: # %if.then33 + end_block # label7: call abort@FUNCTION unreachable .LBB0_50: # %if.then28 + end_block # label6: call abort@FUNCTION unreachable .LBB0_51: # %if.then23 + end_block # label5: call abort@FUNCTION unreachable .LBB0_52: # %if.then19 + end_block # label4: call abort@FUNCTION unreachable .LBB0_53: # %if.then14 + end_block # label3: call abort@FUNCTION unreachable .LBB0_54: # %if.then10 + end_block # label2: call abort@FUNCTION unreachable .LBB0_55: # %if.then5 + end_block # label1: call abort@FUNCTION unreachable .LBB0_56: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/alloca-1.c.s b/test/torture-s/alloca-1.c.s index 2dd24858b..0fd5d786a 100644 --- a/test/torture-s/alloca-1.c.s +++ b/test/torture-s/alloca-1.c.s @@ -45,9 +45,9 @@ main: # @main i32.const $push0=, 15 i32.const $3=, 0 i32.add $3=, $4, $3 - block .LBB1_2 + block i32.and $push1=, $3, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 0 i32.const $2=, 32 @@ -56,6 +56,7 @@ main: # @main i32.store $4=, 0($2), $4 return $pop2 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/arith-rand-ll.c.s b/test/torture-s/arith-rand-ll.c.s index 1ab4f5a9a..a5bc9aeda 100644 --- a/test/torture-s/arith-rand-ll.c.s +++ b/test/torture-s/arith-rand-ll.c.s @@ -34,7 +34,7 @@ random_bitstring: # @random_bitstring i64.const $4=, 0 .LBB1_1: # %for.cond # =>This Inner Loop Header: Depth=1 - loop .LBB1_5 + loop # label0: i64.const $push0=, 1103515245 i64.mul $push1=, $2, $pop0 i64.const $push2=, 12345 @@ -46,19 +46,19 @@ random_bitstring: # @random_bitstring i32.and $1=, $pop4, $pop5 i32.const $push20=, 0 i32.eq $push21=, $1, $pop20 - br_if $pop21, .LBB1_5 + br_if $pop21, 1 # 1: down to label1 # BB#2: # %if.else # in Loop: Header=BB1_1 Depth=1 i64.const $push6=, 15 i64.and $push7=, $0, $pop6 i64.shl $4=, $4, $pop7 i32.add $3=, $1, $3 - block .LBB1_4 + block i64.const $push8=, 256 i64.and $push9=, $2, $pop8 i64.const $push10=, 0 i64.eq $push11=, $pop9, $pop10 - br_if $pop11, .LBB1_4 + br_if $pop11, 0 # 0: down to label2 # BB#3: # %if.then2 # in Loop: Header=BB1_1 Depth=1 i32.const $push12=, 1 @@ -69,10 +69,12 @@ random_bitstring: # @random_bitstring i64.or $4=, $pop16, $4 .LBB1_4: # %if.end # in Loop: Header=BB1_1 Depth=1 + end_block # label2: i32.const $push17=, 71 i32.lt_u $push18=, $3, $pop17 - br_if $pop18, .LBB1_1 + br_if $pop18, 0 # 0: up to label0 .LBB1_5: # %cleanup + end_loop # label1: i32.const $push19=, 0 i64.store $discard=, simple_rand.seed($pop19), $2 return $4 @@ -96,13 +98,13 @@ main: # @main # =>This Loop Header: Depth=1 # Child Loop BB2_2 Depth 2 # Child Loop BB2_7 Depth 2 - loop .LBB2_32 + loop # label3: copy_local $20=, $7 copy_local $19=, $8 .LBB2_2: # %for.cond.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_6 + loop # label5: i64.const $9=, 1103515245 i64.const $10=, 12345 i64.mul $push0=, $2, $9 @@ -113,19 +115,19 @@ main: # @main i32.and $1=, $pop1, $12 i32.const $push92=, 0 i32.eq $push93=, $1, $pop92 - br_if $pop93, .LBB2_6 + br_if $pop93, 1 # 1: down to label6 # BB#3: # %if.else.i # in Loop: Header=BB2_2 Depth=2 i64.const $push2=, 15 i64.and $push3=, $21, $pop2 i64.shl $20=, $20, $pop3 i32.add $19=, $1, $19 - block .LBB2_5 + block i64.const $push4=, 256 i64.and $push5=, $2, $pop4 i64.const $push6=, 0 i64.eq $push7=, $pop5, $pop6 - br_if $pop7, .LBB2_5 + br_if $pop7, 0 # 0: down to label7 # BB#4: # %if.then2.i # in Loop: Header=BB2_2 Depth=2 i32.const $push8=, 1 @@ -136,17 +138,19 @@ main: # @main i64.or $20=, $pop12, $20 .LBB2_5: # %if.end.i # in Loop: Header=BB2_2 Depth=2 + end_block # label7: i32.const $push13=, 71 i32.lt_u $push14=, $19, $pop13 - br_if $pop14, .LBB2_2 + br_if $pop14, 0 # 0: up to label5 .LBB2_6: # %random_bitstring.exit # in Loop: Header=BB2_1 Depth=1 + end_loop # label6: i64.const $21=, 0 i32.const $19=, 0 .LBB2_7: # %for.cond.i452 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_11 + loop # label8: i64.mul $push15=, $2, $9 i64.add $2=, $pop15, $10 i64.shr_u $3=, $2, $11 @@ -154,19 +158,19 @@ main: # @main i32.and $1=, $pop16, $12 i32.const $push94=, 0 i32.eq $push95=, $1, $pop94 - br_if $pop95, .LBB2_11 + br_if $pop95, 1 # 1: down to label9 # BB#8: # %if.else.i457 # in Loop: Header=BB2_7 Depth=2 i64.const $push17=, 15 i64.and $push18=, $3, $pop17 i64.shl $21=, $21, $pop18 i32.add $19=, $1, $19 - block .LBB2_10 + block i64.const $push19=, 256 i64.and $push20=, $2, $pop19 i64.const $push21=, 0 i64.eq $push22=, $pop20, $pop21 - br_if $pop22, .LBB2_10 + br_if $pop22, 0 # 0: down to label10 # BB#9: # %if.then2.i462 # in Loop: Header=BB2_7 Depth=2 i32.const $push23=, 1 @@ -177,90 +181,95 @@ main: # @main i64.or $21=, $pop27, $21 .LBB2_10: # %if.end.i465 # in Loop: Header=BB2_7 Depth=2 + end_block # label10: i32.const $push28=, 71 i32.lt_u $push29=, $19, $pop28 - br_if $pop29, .LBB2_7 + br_if $pop29, 0 # 0: up to label8 .LBB2_11: # %random_bitstring.exit467 # in Loop: Header=BB2_1 Depth=1 + end_loop # label9: i64.const $9=, 0 - block .LBB2_31 + block i64.eq $push30=, $21, $9 - br_if $pop30, .LBB2_31 + br_if $pop30, 0 # 0: down to label11 # BB#12: # %cleanup.cont # in Loop: Header=BB2_1 Depth=1 - block .LBB2_14 + block i64.const $push31=, 9223372036854775807 i64.and $push32=, $20, $pop31 i64.ne $push33=, $pop32, $9 - br_if $pop33, .LBB2_14 + br_if $pop33, 0 # 0: down to label12 # BB#13: # %cleanup.cont # in Loop: Header=BB2_1 Depth=1 i64.const $push34=, -1 i64.eq $push35=, $21, $pop34 - br_if $pop35, .LBB2_31 + br_if $pop35, 1 # 1: down to label11 .LBB2_14: # %if.end17 # in Loop: Header=BB2_1 Depth=1 + end_block # label12: i64.const $9=, 63 i64.shr_s $10=, $21, $9 i64.rem_s $11=, $20, $21 i64.shr_s $9=, $11, $9 - block .LBB2_30 + block i64.add $push38=, $11, $9 i64.xor $push39=, $pop38, $9 i64.add $push36=, $21, $10 i64.xor $push37=, $pop36, $10 i64.ge_u $push40=, $pop39, $pop37 - br_if $pop40, .LBB2_30 + br_if $pop40, 0 # 0: down to label13 # BB#15: # %save_time # in Loop: Header=BB2_1 Depth=1 i32.wrap/i64 $1=, $21 i32.const $push96=, 0 i32.eq $push97=, $1, $pop96 - br_if $pop97, .LBB2_31 + br_if $pop97, 1 # 1: down to label11 # BB#16: # %cleanup.cont65 # in Loop: Header=BB2_1 Depth=1 i32.wrap/i64 $19=, $20 - block .LBB2_18 + block i32.const $push42=, 2147483647 i32.and $push43=, $19, $pop42 - br_if $pop43, .LBB2_18 + br_if $pop43, 0 # 0: down to label14 # BB#17: # %cleanup.cont65 # in Loop: Header=BB2_1 Depth=1 i32.const $push44=, -1 i32.eq $push45=, $1, $pop44 - br_if $pop45, .LBB2_31 + br_if $pop45, 2 # 2: down to label11 .LBB2_18: # %if.end79 # in Loop: Header=BB2_1 Depth=1 + end_block # label14: i32.const $5=, 31 i32.shr_s $13=, $1, $5 i32.rem_s $15=, $19, $1 i32.shr_s $5=, $15, $5 - block .LBB2_29 + block i32.add $push48=, $15, $5 i32.xor $push49=, $pop48, $5 i32.add $push46=, $1, $13 i32.xor $push47=, $pop46, $13 i32.ge_u $push50=, $pop49, $pop47 - br_if $pop50, .LBB2_29 + br_if $pop50, 0 # 0: down to label15 # BB#19: # %lor.lhs.false103 # in Loop: Header=BB2_1 Depth=1 - block .LBB2_21 + block i32.const $push98=, 0 i32.eq $push99=, $15, $pop98 - br_if $pop99, .LBB2_21 + br_if $pop99, 0 # 0: down to label16 # BB#20: # %lor.lhs.false103 # in Loop: Header=BB2_1 Depth=1 i32.xor $push51=, $15, $19 i32.const $push52=, -1 i32.le_s $push53=, $pop51, $pop52 - br_if $pop53, .LBB2_29 + br_if $pop53, 1 # 1: down to label15 .LBB2_21: # %cleanup.cont118 # in Loop: Header=BB2_1 Depth=1 + end_block # label16: i32.const $14=, 65535 i32.and $push54=, $1, $14 i32.const $push100=, 0 i32.eq $push101=, $pop54, $pop100 - br_if $pop101, .LBB2_31 + br_if $pop101, 2 # 2: down to label11 # BB#22: # %cleanup.cont158 # in Loop: Header=BB2_1 Depth=1 i32.const $15=, 16 @@ -273,7 +282,7 @@ main: # @main i32.shr_s $6=, $17, $15 i32.const $18=, -65536 i32.const $13=, 0 - block .LBB2_28 + block i32.gt_s $push57=, $17, $18 i32.sub $push58=, $13, $6 i32.select $push59=, $pop57, $6, $pop58 @@ -282,7 +291,7 @@ main: # @main i32.select $push62=, $pop60, $5, $pop61 i32.and $push63=, $pop62, $14 i32.ge_s $push64=, $pop59, $pop63 - br_if $pop64, .LBB2_28 + br_if $pop64, 0 # 0: down to label17 # BB#23: # %lor.lhs.false197 # in Loop: Header=BB2_1 Depth=1 i32.div_s $push65=, $4, $5 @@ -291,14 +300,14 @@ main: # @main i32.shl $push68=, $pop67, $15 i32.shr_s $push69=, $pop68, $15 i32.ne $push70=, $pop69, $4 - br_if $pop70, .LBB2_28 + br_if $pop70, 0 # 0: down to label17 # BB#24: # %if.end209 # in Loop: Header=BB2_1 Depth=1 i32.const $5=, 255 i32.and $push71=, $1, $5 i32.const $push102=, 0 i32.eq $push103=, $pop71, $pop102 - br_if $pop103, .LBB2_31 + br_if $pop103, 3 # 3: down to label11 # BB#25: # %cleanup.cont249 # in Loop: Header=BB2_1 Depth=1 i32.const $15=, 24 @@ -310,7 +319,7 @@ main: # @main i32.shl $4=, $pop73, $15 i32.shr_s $19=, $4, $15 i32.const $16=, -16777216 - block .LBB2_27 + block i32.gt_s $push74=, $4, $16 i32.sub $push75=, $13, $19 i32.select $push76=, $pop74, $19, $pop75 @@ -319,7 +328,7 @@ main: # @main i32.select $push79=, $pop77, $1, $pop78 i32.and $push80=, $pop79, $5 i32.ge_s $push81=, $pop76, $pop80 - br_if $pop81, .LBB2_27 + br_if $pop81, 0 # 0: down to label18 # BB#26: # %lor.lhs.false288 # in Loop: Header=BB2_1 Depth=1 i32.div_s $push82=, $14, $1 @@ -328,33 +337,39 @@ main: # @main i32.shl $push85=, $pop84, $15 i32.shr_s $push86=, $pop85, $15 i32.eq $push87=, $pop86, $14 - br_if $pop87, .LBB2_31 + br_if $pop87, 4 # 4: down to label11 .LBB2_27: # %if.then299 + end_block # label18: i64.store $discard=, simple_rand.seed($13), $2 call abort@FUNCTION unreachable .LBB2_28: # %if.then208 + end_block # label17: i64.store $discard=, simple_rand.seed($13), $2 call abort@FUNCTION unreachable .LBB2_29: # %if.then111 + end_block # label15: i32.const $push88=, 0 i64.store $discard=, simple_rand.seed($pop88), $2 call abort@FUNCTION unreachable .LBB2_30: # %if.then32 + end_block # label13: i32.const $push41=, 0 i64.store $discard=, simple_rand.seed($pop41), $2 call abort@FUNCTION unreachable .LBB2_31: # %cleanup301 # in Loop: Header=BB2_1 Depth=1 + end_block # label11: i64.const $push89=, 1 i64.add $0=, $0, $pop89 i64.const $push90=, 10000 i64.lt_s $push91=, $0, $pop90 - br_if $pop91, .LBB2_1 -.LBB2_32: # %for.end + br_if $pop91, 0 # 0: up to label3 +# BB#32: # %for.end + end_loop # label4: i32.const $1=, 0 i64.store $discard=, simple_rand.seed($1), $2 call exit@FUNCTION, $1 diff --git a/test/torture-s/arith-rand.c.s b/test/torture-s/arith-rand.c.s index 743737574..23ded4937 100644 --- a/test/torture-s/arith-rand.c.s +++ b/test/torture-s/arith-rand.c.s @@ -34,7 +34,7 @@ random_bitstring: # @random_bitstring copy_local $2=, $3 .LBB1_1: # %for.cond # =>This Inner Loop Header: Depth=1 - loop .LBB1_5 + loop # label0: i32.const $push0=, 1103515245 i32.mul $push1=, $1, $pop0 i32.const $push2=, 12345 @@ -45,17 +45,17 @@ random_bitstring: # @random_bitstring i32.and $0=, $pop4, $pop5 i32.const $push15=, 0 i32.eq $push16=, $0, $pop15 - br_if $pop16, .LBB1_5 + br_if $pop16, 1 # 1: down to label1 # BB#2: # %if.else # in Loop: Header=BB1_1 Depth=1 i32.add $2=, $0, $2 i32.shl $3=, $3, $0 - block .LBB1_4 + block i32.const $push6=, 256 i32.and $push7=, $1, $pop6 i32.const $push17=, 0 i32.eq $push18=, $pop7, $pop17 - br_if $pop18, .LBB1_4 + br_if $pop18, 0 # 0: down to label2 # BB#3: # %if.then1 # in Loop: Header=BB1_1 Depth=1 i32.const $push8=, 1 @@ -65,10 +65,12 @@ random_bitstring: # @random_bitstring i32.or $3=, $pop11, $3 .LBB1_4: # %if.end # in Loop: Header=BB1_1 Depth=1 + end_block # label2: i32.const $push12=, 39 i32.lt_u $push13=, $2, $pop12 - br_if $pop13, .LBB1_1 + br_if $pop13, 0 # 0: up to label0 .LBB1_5: # %cleanup + end_loop # label1: i32.const $push14=, 0 i32.store $discard=, simple_rand.seed($pop14), $1 return $3 @@ -90,13 +92,13 @@ main: # @main # =>This Loop Header: Depth=1 # Child Loop BB2_2 Depth 2 # Child Loop BB2_7 Depth 2 - loop .LBB2_25 + loop # label3: copy_local $11=, $3 copy_local $13=, $3 .LBB2_2: # %for.cond.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_6 + loop # label5: i32.const $4=, 1103515245 i32.const $5=, 12345 i32.mul $push0=, $2, $4 @@ -107,17 +109,17 @@ main: # @main i32.and $1=, $pop1, $7 i32.const $push67=, 0 i32.eq $push68=, $1, $pop67 - br_if $pop68, .LBB2_6 + br_if $pop68, 1 # 1: down to label6 # BB#3: # %if.else.i # in Loop: Header=BB2_2 Depth=2 i32.add $13=, $1, $13 i32.shl $11=, $11, $1 - block .LBB2_5 + block i32.const $push2=, 256 i32.and $push3=, $2, $pop2 i32.const $push69=, 0 i32.eq $push70=, $pop3, $pop69 - br_if $pop70, .LBB2_5 + br_if $pop70, 0 # 0: down to label7 # BB#4: # %if.then1.i # in Loop: Header=BB2_2 Depth=2 i32.const $push4=, 1 @@ -127,34 +129,36 @@ main: # @main i32.or $11=, $pop7, $11 .LBB2_5: # %if.end.i # in Loop: Header=BB2_2 Depth=2 + end_block # label7: i32.const $push8=, 39 i32.lt_u $push9=, $13, $pop8 - br_if $pop9, .LBB2_2 + br_if $pop9, 0 # 0: up to label5 .LBB2_6: # %random_bitstring.exit # in Loop: Header=BB2_1 Depth=1 + end_loop # label6: i32.const $13=, 0 copy_local $12=, $13 .LBB2_7: # %for.cond.i339 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_11 + loop # label8: i32.mul $push10=, $2, $4 i32.add $2=, $pop10, $5 i32.shr_u $push11=, $2, $6 i32.and $1=, $pop11, $7 i32.const $push71=, 0 i32.eq $push72=, $1, $pop71 - br_if $pop72, .LBB2_11 + br_if $pop72, 1 # 1: down to label9 # BB#8: # %if.else.i343 # in Loop: Header=BB2_7 Depth=2 i32.add $12=, $1, $12 i32.shl $13=, $13, $1 - block .LBB2_10 + block i32.const $push12=, 256 i32.and $push13=, $2, $pop12 i32.const $push73=, 0 i32.eq $push74=, $pop13, $pop73 - br_if $pop74, .LBB2_10 + br_if $pop74, 0 # 0: down to label10 # BB#9: # %if.then1.i347 # in Loop: Header=BB2_7 Depth=2 i32.const $push14=, 1 @@ -164,46 +168,49 @@ main: # @main i32.or $13=, $pop17, $13 .LBB2_10: # %if.end.i350 # in Loop: Header=BB2_7 Depth=2 + end_block # label10: i32.const $push18=, 39 i32.lt_u $push19=, $12, $pop18 - br_if $pop19, .LBB2_7 + br_if $pop19, 0 # 0: up to label8 .LBB2_11: # %random_bitstring.exit352 # in Loop: Header=BB2_1 Depth=1 - block .LBB2_24 + end_loop # label9: + block i32.const $push75=, 0 i32.eq $push76=, $13, $pop75 - br_if $pop76, .LBB2_24 + br_if $pop76, 0 # 0: down to label11 # BB#12: # %cleanup.cont # in Loop: Header=BB2_1 Depth=1 - block .LBB2_14 + block i32.const $push20=, 2147483647 i32.and $push21=, $11, $pop20 - br_if $pop21, .LBB2_14 + br_if $pop21, 0 # 0: down to label12 # BB#13: # %cleanup.cont # in Loop: Header=BB2_1 Depth=1 i32.const $push22=, -1 i32.eq $push23=, $13, $pop22 - br_if $pop23, .LBB2_24 + br_if $pop23, 1 # 1: down to label11 .LBB2_14: # %if.end25 # in Loop: Header=BB2_1 Depth=1 + end_block # label12: i32.const $1=, 31 i32.shr_s $4=, $13, $1 i32.rem_s $5=, $11, $13 i32.shr_s $1=, $5, $1 - block .LBB2_23 + block i32.add $push26=, $5, $1 i32.xor $push27=, $pop26, $1 i32.add $push24=, $13, $4 i32.xor $push25=, $pop24, $4 i32.ge_u $push28=, $pop27, $pop25 - br_if $pop28, .LBB2_23 + br_if $pop28, 0 # 0: down to label13 # BB#15: # %cleanup.cont47 # in Loop: Header=BB2_1 Depth=1 i32.const $6=, 65535 i32.and $push30=, $13, $6 i32.const $push77=, 0 i32.eq $push78=, $pop30, $pop77 - br_if $pop78, .LBB2_24 + br_if $pop78, 1 # 1: down to label11 # BB#16: # %cleanup.cont86 # in Loop: Header=BB2_1 Depth=1 i32.const $1=, 16 @@ -216,7 +223,7 @@ main: # @main i32.shr_s $7=, $9, $1 i32.const $10=, -65536 i32.const $5=, 0 - block .LBB2_22 + block i32.gt_s $push33=, $9, $10 i32.sub $push34=, $5, $7 i32.select $push35=, $pop33, $7, $pop34 @@ -225,7 +232,7 @@ main: # @main i32.select $push38=, $pop36, $4, $pop37 i32.and $push39=, $pop38, $6 i32.ge_s $push40=, $pop35, $pop39 - br_if $pop40, .LBB2_22 + br_if $pop40, 0 # 0: down to label14 # BB#17: # %lor.lhs.false125 # in Loop: Header=BB2_1 Depth=1 i32.div_s $push41=, $12, $4 @@ -234,14 +241,14 @@ main: # @main i32.shl $push44=, $pop43, $1 i32.shr_s $push45=, $pop44, $1 i32.ne $push46=, $pop45, $12 - br_if $pop46, .LBB2_22 + br_if $pop46, 0 # 0: down to label14 # BB#18: # %if.end137 # in Loop: Header=BB2_1 Depth=1 i32.const $4=, 255 i32.and $push47=, $13, $4 i32.const $push79=, 0 i32.eq $push80=, $pop47, $pop79 - br_if $pop80, .LBB2_24 + br_if $pop80, 2 # 2: down to label11 # BB#19: # %cleanup.cont177 # in Loop: Header=BB2_1 Depth=1 i32.const $1=, 24 @@ -253,7 +260,7 @@ main: # @main i32.shl $12=, $pop49, $1 i32.shr_s $11=, $12, $1 i32.const $8=, -16777216 - block .LBB2_21 + block i32.gt_s $push50=, $12, $8 i32.sub $push51=, $5, $11 i32.select $push52=, $pop50, $11, $pop51 @@ -262,7 +269,7 @@ main: # @main i32.select $push55=, $pop53, $13, $pop54 i32.and $push56=, $pop55, $4 i32.ge_s $push57=, $pop52, $pop56 - br_if $pop57, .LBB2_21 + br_if $pop57, 0 # 0: down to label15 # BB#20: # %lor.lhs.false216 # in Loop: Header=BB2_1 Depth=1 i32.div_s $push58=, $6, $13 @@ -271,28 +278,33 @@ main: # @main i32.shl $push61=, $pop60, $1 i32.shr_s $push62=, $pop61, $1 i32.eq $push63=, $pop62, $6 - br_if $pop63, .LBB2_24 + br_if $pop63, 3 # 3: down to label11 .LBB2_21: # %if.then227 + end_block # label15: i32.store $discard=, simple_rand.seed($5), $2 call abort@FUNCTION unreachable .LBB2_22: # %if.then136 + end_block # label14: i32.store $discard=, simple_rand.seed($5), $2 call abort@FUNCTION unreachable .LBB2_23: # %if.then40 + end_block # label13: i32.const $push29=, 0 i32.store $discard=, simple_rand.seed($pop29), $2 call abort@FUNCTION unreachable .LBB2_24: # %cleanup229 # in Loop: Header=BB2_1 Depth=1 + end_block # label11: i32.const $push64=, 1 i32.add $0=, $0, $pop64 i32.const $push65=, 1000 i32.lt_s $push66=, $0, $pop65 - br_if $pop66, .LBB2_1 -.LBB2_25: # %for.end + br_if $pop66, 0 # 0: up to label3 +# BB#25: # %for.end + end_loop # label4: i32.const $1=, 0 i32.store $discard=, simple_rand.seed($1), $2 call exit@FUNCTION, $1 diff --git a/test/torture-s/ashldi-1.c.s b/test/torture-s/ashldi-1.c.s deleted file mode 100644 index d2cfba9b7..000000000 --- a/test/torture-s/ashldi-1.c.s +++ /dev/null @@ -1,133 +0,0 @@ - .text - .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/ashldi-1.c" - .section .text.main,"ax",@progbits - .hidden main - .globl main - .type main,@function -main: # @main - .result i32 - .local i32, i32, i64, i32, i32 -# BB#0: # %entry - i64.const $2=, 0 - i32.const $1=, .Lswitch.table -.LBB0_1: # %for.body - # =>This Inner Loop Header: Depth=1 - block .LBB0_7 - loop .LBB0_3 - i64.const $push0=, 81985529216486895 - i64.shl $push1=, $pop0, $2 - i64.load $push2=, 0($1) - i64.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_7 -# BB#2: # %for.cond - # in Loop: Header=BB0_1 Depth=1 - i64.const $push4=, 1 - i64.add $2=, $2, $pop4 - i32.const $0=, 8 - i32.add $1=, $1, $0 - i32.const $4=, 0 - i32.const $3=, .Lswitch.table - i64.const $push5=, 63 - i64.le_s $push6=, $2, $pop5 - br_if $pop6, .LBB0_1 -.LBB0_3: # %constant_shift.exit - # =>This Inner Loop Header: Depth=1 - block .LBB0_6 - loop .LBB0_5 - i32.const $1=, 1 - i32.const $push10=, 0 - i32.eq $push11=, $1, $pop10 - br_if $pop11, .LBB0_6 -# BB#4: # %for.cond2 - # in Loop: Header=BB0_3 Depth=1 - i32.add $4=, $4, $1 - i32.add $3=, $3, $0 - i32.const $push7=, 63 - i32.le_s $push8=, $4, $pop7 - br_if $pop8, .LBB0_3 -.LBB0_5: # %for.end13 - i32.const $push9=, 0 - call exit@FUNCTION, $pop9 - unreachable -.LBB0_6: # %if.then9 - call abort@FUNCTION - unreachable -.LBB0_7: # %if.then - call abort@FUNCTION - unreachable -.Lfunc_end0: - .size main, .Lfunc_end0-main - - .type .Lswitch.table,@object # @switch.table - .section .rodata..Lswitch.table,"a",@progbits - .align 4 -.Lswitch.table: - .int64 81985529216486895 # 0x123456789abcdef - .int64 163971058432973790 # 0x2468acf13579bde - .int64 327942116865947580 # 0x48d159e26af37bc - .int64 655884233731895160 # 0x91a2b3c4d5e6f78 - .int64 1311768467463790320 # 0x123456789abcdef0 - .int64 2623536934927580640 # 0x2468acf13579bde0 - .int64 5247073869855161280 # 0x48d159e26af37bc0 - .int64 -7952596333999229056 # 0x91a2b3c4d5e6f780 - .int64 2541551405711093504 # 0x23456789abcdef00 - .int64 5083102811422187008 # 0x468acf13579bde00 - .int64 -8280538450865177600 # 0x8d159e26af37bc00 - .int64 1885667171979196416 # 0x1a2b3c4d5e6f7800 - .int64 3771334343958392832 # 0x3456789abcdef000 - .int64 7542668687916785664 # 0x68acf13579bde000 - .int64 -3361406697875980288 # 0xd159e26af37bc000 - .int64 -6722813395751960576 # 0xa2b3c4d5e6f78000 - .int64 5001117282205630464 # 0x456789abcdef0000 - .int64 -8444509509298290688 # 0x8acf13579bde0000 - .int64 1557725055112970240 # 0x159e26af37bc0000 - .int64 3115450110225940480 # 0x2b3c4d5e6f780000 - .int64 6230900220451880960 # 0x56789abcdef00000 - .int64 -5984943632805789696 # 0xacf13579bde00000 - .int64 6476856808097972224 # 0x59e26af37bc00000 - .int64 -5493030457513607168 # 0xb3c4d5e6f7800000 - .int64 7460683158682337280 # 0x6789abcdef000000 - .int64 -3525377756344877056 # 0xcf13579bde000000 - .int64 -7050755512689754112 # 0x9e26af37bc000000 - .int64 4345233048330043392 # 0x3c4d5e6f78000000 - .int64 8690466096660086784 # 0x789abcdef0000000 - .int64 -1065811880389378048 # 0xf13579bde0000000 - .int64 -2131623760778756096 # 0xe26af37bc0000000 - .int64 -4263247521557512192 # 0xc4d5e6f780000000 - .int64 -8526495043115024384 # 0x89abcdef00000000 - .int64 1393753987479502848 # 0x13579bde00000000 - .int64 2787507974959005696 # 0x26af37bc00000000 - .int64 5575015949918011392 # 0x4d5e6f7800000000 - .int64 -7296712173873528832 # 0x9abcdef000000000 - .int64 3853319725962493952 # 0x3579bde000000000 - .int64 7706639451924987904 # 0x6af37bc000000000 - .int64 -3033465169859575808 # 0xd5e6f78000000000 - .int64 -6066930339719151616 # 0xabcdef0000000000 - .int64 6312883394271248384 # 0x579bde0000000000 - .int64 -5820977285167054848 # 0xaf37bc0000000000 - .int64 6804789503375441920 # 0x5e6f780000000000 - .int64 -4837165066958667776 # 0xbcdef00000000000 - .int64 8772413939792216064 # 0x79bde00000000000 - .int64 -901916194125119488 # 0xf37bc00000000000 - .int64 -1803832388250238976 # 0xe6f7800000000000 - .int64 -3607664776500477952 # 0xcdef000000000000 - .int64 -7215329553000955904 # 0x9bde000000000000 - .int64 4016084967707639808 # 0x37bc000000000000 - .int64 8032169935415279616 # 0x6f78000000000000 - .int64 -2382404202878992384 # 0xdef0000000000000 - .int64 -4764808405757984768 # 0xbde0000000000000 - .int64 8917127262193582080 # 0x7bc0000000000000 - .int64 -612489549322387456 # 0xf780000000000000 - .int64 -1224979098644774912 # 0xef00000000000000 - .int64 -2449958197289549824 # 0xde00000000000000 - .int64 -4899916394579099648 # 0xbc00000000000000 - .int64 8646911284551352320 # 0x7800000000000000 - .int64 -1152921504606846976 # 0xf000000000000000 - .int64 -2305843009213693952 # 0xe000000000000000 - .int64 -4611686018427387904 # 0xc000000000000000 - .int64 -9223372036854775808 # 0x8000000000000000 - .size .Lswitch.table, 512 - - - .ident "clang version 3.8.0 " - .section ".note.GNU-stack","",@progbits diff --git a/test/torture-s/ashrdi-1.c.s b/test/torture-s/ashrdi-1.c.s deleted file mode 100644 index 10e602afe..000000000 --- a/test/torture-s/ashrdi-1.c.s +++ /dev/null @@ -1,578 +0,0 @@ - .text - .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/ashrdi-1.c" - .section .text.main,"ax",@progbits - .hidden main - .globl main - .type main,@function -main: # @main - .result i32 - .local i64, i64, i32, i64, i64, i32, i32, i64, i32, i32, i32, i32 -# BB#0: # %entry - i64.const $4=, 0 - i32.const $10=, zext -.LBB0_1: # %for.body - # =>This Inner Loop Header: Depth=1 - block .LBB0_13 - loop .LBB0_3 - i64.const $0=, 8526495107234113920 - i64.shr_u $push0=, $0, $4 - i64.load $push1=, 0($10) - i64.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_13 -# BB#2: # %for.cond - # in Loop: Header=BB0_1 Depth=1 - i64.const $1=, 1 - i64.add $4=, $4, $1 - i32.const $2=, 8 - i32.add $10=, $10, $2 - i64.const $7=, 0 - i64.const $3=, 63 - i32.const $11=, sext - i64.le_s $push3=, $4, $3 - br_if $pop3, .LBB0_1 -.LBB0_3: # %for.body4 - # =>This Inner Loop Header: Depth=1 - block .LBB0_12 - loop .LBB0_5 - i64.const $4=, -8152436031399644656 - i64.shr_s $push4=, $4, $7 - i64.load $push5=, 0($11) - i64.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_12 -# BB#4: # %for.cond2 - # in Loop: Header=BB0_3 Depth=1 - i64.add $7=, $7, $1 - i32.add $11=, $11, $2 - i32.const $9=, 0 - i32.const $8=, zext - i64.le_s $push7=, $7, $3 - br_if $pop7, .LBB0_3 -.LBB0_5: # %for.body16 - # =>This Inner Loop Header: Depth=1 - block .LBB0_11 - loop .LBB0_7 - i64.call $push8=, constant_shift@FUNCTION, $0, $9 - i64.load $push9=, 0($8) - i64.ne $push10=, $pop8, $pop9 - br_if $pop10, .LBB0_11 -# BB#6: # %for.cond14 - # in Loop: Header=BB0_5 Depth=1 - i32.const $5=, 1 - i32.add $9=, $9, $5 - i32.add $8=, $8, $2 - i32.const $11=, 0 - i32.const $10=, sext - i32.const $6=, 63 - i32.le_s $push11=, $9, $6 - br_if $pop11, .LBB0_5 -.LBB0_7: # %for.body28 - # =>This Inner Loop Header: Depth=1 - block .LBB0_10 - loop .LBB0_9 - i64.call $push12=, constant_shift@FUNCTION, $4, $11 - i64.load $push13=, 0($10) - i64.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB0_10 -# BB#8: # %for.cond26 - # in Loop: Header=BB0_7 Depth=1 - i32.add $11=, $11, $5 - i32.add $10=, $10, $2 - i32.le_s $push15=, $11, $6 - br_if $pop15, .LBB0_7 -.LBB0_9: # %for.end37 - i32.const $push16=, 0 - call exit@FUNCTION, $pop16 - unreachable -.LBB0_10: # %if.then33 - call abort@FUNCTION - unreachable -.LBB0_11: # %if.then21 - call abort@FUNCTION - unreachable -.LBB0_12: # %if.then9 - call abort@FUNCTION - unreachable -.LBB0_13: # %if.then - call abort@FUNCTION - unreachable -.Lfunc_end0: - .size main, .Lfunc_end0-main - - .section .text.constant_shift,"ax",@progbits - .type constant_shift,@function -constant_shift: # @constant_shift - .param i64, i32 - .result i64 -# BB#0: # %entry - block .LBB1_66 - i32.const $push0=, 63 - i32.gt_u $push1=, $1, $pop0 - br_if $pop1, .LBB1_66 -# BB#1: # %entry - block .LBB1_65 - block .LBB1_64 - block .LBB1_63 - block .LBB1_62 - block .LBB1_61 - block .LBB1_60 - block .LBB1_59 - block .LBB1_58 - block .LBB1_57 - block .LBB1_56 - block .LBB1_55 - block .LBB1_54 - block .LBB1_53 - block .LBB1_52 - block .LBB1_51 - block .LBB1_50 - block .LBB1_49 - block .LBB1_48 - block .LBB1_47 - block .LBB1_46 - block .LBB1_45 - block .LBB1_44 - block .LBB1_43 - block .LBB1_42 - block .LBB1_41 - block .LBB1_40 - block .LBB1_39 - block .LBB1_38 - block .LBB1_37 - block .LBB1_36 - block .LBB1_35 - block .LBB1_34 - block .LBB1_33 - block .LBB1_32 - block .LBB1_31 - block .LBB1_30 - block .LBB1_29 - block .LBB1_28 - block .LBB1_27 - block .LBB1_26 - block .LBB1_25 - block .LBB1_24 - block .LBB1_23 - block .LBB1_22 - block .LBB1_21 - block .LBB1_20 - block .LBB1_19 - block .LBB1_18 - block .LBB1_17 - block .LBB1_16 - block .LBB1_15 - block .LBB1_14 - block .LBB1_13 - block .LBB1_12 - block .LBB1_11 - block .LBB1_10 - block .LBB1_9 - block .LBB1_8 - block .LBB1_7 - block .LBB1_6 - block .LBB1_5 - block .LBB1_4 - block .LBB1_3 - block .LBB1_2 - tableswitch $1, .LBB1_65, .LBB1_65, .LBB1_2, .LBB1_3, .LBB1_4, .LBB1_5, .LBB1_6, .LBB1_7, .LBB1_8, .LBB1_9, .LBB1_10, .LBB1_11, .LBB1_12, .LBB1_13, .LBB1_14, .LBB1_15, .LBB1_16, .LBB1_17, .LBB1_18, .LBB1_19, .LBB1_20, .LBB1_21, .LBB1_22, .LBB1_23, .LBB1_24, .LBB1_25, .LBB1_26, .LBB1_27, .LBB1_28, .LBB1_29, .LBB1_30, .LBB1_31, .LBB1_32, .LBB1_33, .LBB1_34, .LBB1_35, .LBB1_36, .LBB1_37, .LBB1_38, .LBB1_39, .LBB1_40, .LBB1_41, .LBB1_42, .LBB1_43, .LBB1_44, .LBB1_45, .LBB1_46, .LBB1_47, .LBB1_48, .LBB1_49, .LBB1_50, .LBB1_51, .LBB1_52, .LBB1_53, .LBB1_54, .LBB1_55, .LBB1_56, .LBB1_57, .LBB1_58, .LBB1_59, .LBB1_60, .LBB1_61, .LBB1_62, .LBB1_63, .LBB1_64 -.LBB1_2: # %sw.bb1 - i64.const $push64=, 1 - i64.shr_s $0=, $0, $pop64 - br .LBB1_65 -.LBB1_3: # %sw.bb3 - i64.const $push63=, 2 - i64.shr_s $0=, $0, $pop63 - br .LBB1_65 -.LBB1_4: # %sw.bb5 - i64.const $push62=, 3 - i64.shr_s $0=, $0, $pop62 - br .LBB1_65 -.LBB1_5: # %sw.bb7 - i64.const $push61=, 4 - i64.shr_s $0=, $0, $pop61 - br .LBB1_65 -.LBB1_6: # %sw.bb9 - i64.const $push60=, 5 - i64.shr_s $0=, $0, $pop60 - br .LBB1_65 -.LBB1_7: # %sw.bb11 - i64.const $push59=, 6 - i64.shr_s $0=, $0, $pop59 - br .LBB1_65 -.LBB1_8: # %sw.bb13 - i64.const $push58=, 7 - i64.shr_s $0=, $0, $pop58 - br .LBB1_65 -.LBB1_9: # %sw.bb15 - i64.const $push57=, 8 - i64.shr_s $0=, $0, $pop57 - br .LBB1_65 -.LBB1_10: # %sw.bb17 - i64.const $push56=, 9 - i64.shr_s $0=, $0, $pop56 - br .LBB1_65 -.LBB1_11: # %sw.bb19 - i64.const $push55=, 10 - i64.shr_s $0=, $0, $pop55 - br .LBB1_65 -.LBB1_12: # %sw.bb21 - i64.const $push54=, 11 - i64.shr_s $0=, $0, $pop54 - br .LBB1_65 -.LBB1_13: # %sw.bb23 - i64.const $push53=, 12 - i64.shr_s $0=, $0, $pop53 - br .LBB1_65 -.LBB1_14: # %sw.bb25 - i64.const $push52=, 13 - i64.shr_s $0=, $0, $pop52 - br .LBB1_65 -.LBB1_15: # %sw.bb27 - i64.const $push51=, 14 - i64.shr_s $0=, $0, $pop51 - br .LBB1_65 -.LBB1_16: # %sw.bb29 - i64.const $push50=, 15 - i64.shr_s $0=, $0, $pop50 - br .LBB1_65 -.LBB1_17: # %sw.bb31 - i64.const $push49=, 16 - i64.shr_s $0=, $0, $pop49 - br .LBB1_65 -.LBB1_18: # %sw.bb33 - i64.const $push48=, 17 - i64.shr_s $0=, $0, $pop48 - br .LBB1_65 -.LBB1_19: # %sw.bb35 - i64.const $push47=, 18 - i64.shr_s $0=, $0, $pop47 - br .LBB1_65 -.LBB1_20: # %sw.bb37 - i64.const $push46=, 19 - i64.shr_s $0=, $0, $pop46 - br .LBB1_65 -.LBB1_21: # %sw.bb39 - i64.const $push45=, 20 - i64.shr_s $0=, $0, $pop45 - br .LBB1_65 -.LBB1_22: # %sw.bb41 - i64.const $push44=, 21 - i64.shr_s $0=, $0, $pop44 - br .LBB1_65 -.LBB1_23: # %sw.bb43 - i64.const $push43=, 22 - i64.shr_s $0=, $0, $pop43 - br .LBB1_65 -.LBB1_24: # %sw.bb45 - i64.const $push42=, 23 - i64.shr_s $0=, $0, $pop42 - br .LBB1_65 -.LBB1_25: # %sw.bb47 - i64.const $push41=, 24 - i64.shr_s $0=, $0, $pop41 - br .LBB1_65 -.LBB1_26: # %sw.bb49 - i64.const $push40=, 25 - i64.shr_s $0=, $0, $pop40 - br .LBB1_65 -.LBB1_27: # %sw.bb51 - i64.const $push39=, 26 - i64.shr_s $0=, $0, $pop39 - br .LBB1_65 -.LBB1_28: # %sw.bb53 - i64.const $push38=, 27 - i64.shr_s $0=, $0, $pop38 - br .LBB1_65 -.LBB1_29: # %sw.bb55 - i64.const $push37=, 28 - i64.shr_s $0=, $0, $pop37 - br .LBB1_65 -.LBB1_30: # %sw.bb57 - i64.const $push36=, 29 - i64.shr_s $0=, $0, $pop36 - br .LBB1_65 -.LBB1_31: # %sw.bb59 - i64.const $push35=, 30 - i64.shr_s $0=, $0, $pop35 - br .LBB1_65 -.LBB1_32: # %sw.bb61 - i64.const $push34=, 31 - i64.shr_s $0=, $0, $pop34 - br .LBB1_65 -.LBB1_33: # %sw.bb63 - i64.const $push33=, 32 - i64.shr_s $0=, $0, $pop33 - br .LBB1_65 -.LBB1_34: # %sw.bb65 - i64.const $push32=, 33 - i64.shr_s $0=, $0, $pop32 - br .LBB1_65 -.LBB1_35: # %sw.bb67 - i64.const $push31=, 34 - i64.shr_s $0=, $0, $pop31 - br .LBB1_65 -.LBB1_36: # %sw.bb69 - i64.const $push30=, 35 - i64.shr_s $0=, $0, $pop30 - br .LBB1_65 -.LBB1_37: # %sw.bb71 - i64.const $push29=, 36 - i64.shr_s $0=, $0, $pop29 - br .LBB1_65 -.LBB1_38: # %sw.bb73 - i64.const $push28=, 37 - i64.shr_s $0=, $0, $pop28 - br .LBB1_65 -.LBB1_39: # %sw.bb75 - i64.const $push27=, 38 - i64.shr_s $0=, $0, $pop27 - br .LBB1_65 -.LBB1_40: # %sw.bb77 - i64.const $push26=, 39 - i64.shr_s $0=, $0, $pop26 - br .LBB1_65 -.LBB1_41: # %sw.bb79 - i64.const $push25=, 40 - i64.shr_s $0=, $0, $pop25 - br .LBB1_65 -.LBB1_42: # %sw.bb81 - i64.const $push24=, 41 - i64.shr_s $0=, $0, $pop24 - br .LBB1_65 -.LBB1_43: # %sw.bb83 - i64.const $push23=, 42 - i64.shr_s $0=, $0, $pop23 - br .LBB1_65 -.LBB1_44: # %sw.bb85 - i64.const $push22=, 43 - i64.shr_s $0=, $0, $pop22 - br .LBB1_65 -.LBB1_45: # %sw.bb87 - i64.const $push21=, 44 - i64.shr_s $0=, $0, $pop21 - br .LBB1_65 -.LBB1_46: # %sw.bb89 - i64.const $push20=, 45 - i64.shr_s $0=, $0, $pop20 - br .LBB1_65 -.LBB1_47: # %sw.bb91 - i64.const $push19=, 46 - i64.shr_s $0=, $0, $pop19 - br .LBB1_65 -.LBB1_48: # %sw.bb93 - i64.const $push18=, 47 - i64.shr_s $0=, $0, $pop18 - br .LBB1_65 -.LBB1_49: # %sw.bb95 - i64.const $push17=, 48 - i64.shr_s $0=, $0, $pop17 - br .LBB1_65 -.LBB1_50: # %sw.bb97 - i64.const $push16=, 49 - i64.shr_s $0=, $0, $pop16 - br .LBB1_65 -.LBB1_51: # %sw.bb99 - i64.const $push15=, 50 - i64.shr_s $0=, $0, $pop15 - br .LBB1_65 -.LBB1_52: # %sw.bb101 - i64.const $push14=, 51 - i64.shr_s $0=, $0, $pop14 - br .LBB1_65 -.LBB1_53: # %sw.bb103 - i64.const $push13=, 52 - i64.shr_s $0=, $0, $pop13 - br .LBB1_65 -.LBB1_54: # %sw.bb105 - i64.const $push12=, 53 - i64.shr_s $0=, $0, $pop12 - br .LBB1_65 -.LBB1_55: # %sw.bb107 - i64.const $push11=, 54 - i64.shr_s $0=, $0, $pop11 - br .LBB1_65 -.LBB1_56: # %sw.bb109 - i64.const $push10=, 55 - i64.shr_s $0=, $0, $pop10 - br .LBB1_65 -.LBB1_57: # %sw.bb111 - i64.const $push9=, 56 - i64.shr_s $0=, $0, $pop9 - br .LBB1_65 -.LBB1_58: # %sw.bb113 - i64.const $push8=, 57 - i64.shr_s $0=, $0, $pop8 - br .LBB1_65 -.LBB1_59: # %sw.bb115 - i64.const $push7=, 58 - i64.shr_s $0=, $0, $pop7 - br .LBB1_65 -.LBB1_60: # %sw.bb117 - i64.const $push6=, 59 - i64.shr_s $0=, $0, $pop6 - br .LBB1_65 -.LBB1_61: # %sw.bb119 - i64.const $push5=, 60 - i64.shr_s $0=, $0, $pop5 - br .LBB1_65 -.LBB1_62: # %sw.bb121 - i64.const $push4=, 61 - i64.shr_s $0=, $0, $pop4 - br .LBB1_65 -.LBB1_63: # %sw.bb123 - i64.const $push3=, 62 - i64.shr_s $0=, $0, $pop3 - br .LBB1_65 -.LBB1_64: # %sw.bb125 - i64.const $push2=, 63 - i64.shr_s $0=, $0, $pop2 -.LBB1_65: # %sw.epilog - return $0 -.LBB1_66: # %sw.default - call abort@FUNCTION - unreachable -.Lfunc_end1: - .size constant_shift, .Lfunc_end1-constant_shift - - .type zext,@object # @zext - .section .rodata.zext,"a",@progbits - .align 4 -zext: - .int64 8526495107234113920 # 0x7654321fedcba980 - .int64 4263247553617056960 # 0x3b2a190ff6e5d4c0 - .int64 2131623776808528480 # 0x1d950c87fb72ea60 - .int64 1065811888404264240 # 0xeca8643fdb97530 - .int64 532905944202132120 # 0x7654321fedcba98 - .int64 266452972101066060 # 0x3b2a190ff6e5d4c - .int64 133226486050533030 # 0x1d950c87fb72ea6 - .int64 66613243025266515 # 0xeca8643fdb9753 - .int64 33306621512633257 # 0x7654321fedcba9 - .int64 16653310756316628 # 0x3b2a190ff6e5d4 - .int64 8326655378158314 # 0x1d950c87fb72ea - .int64 4163327689079157 # 0xeca8643fdb975 - .int64 2081663844539578 # 0x7654321fedcba - .int64 1040831922269789 # 0x3b2a190ff6e5d - .int64 520415961134894 # 0x1d950c87fb72e - .int64 260207980567447 # 0xeca8643fdb97 - .int64 130103990283723 # 0x7654321fedcb - .int64 65051995141861 # 0x3b2a190ff6e5 - .int64 32525997570930 # 0x1d950c87fb72 - .int64 16262998785465 # 0xeca8643fdb9 - .int64 8131499392732 # 0x7654321fedc - .int64 4065749696366 # 0x3b2a190ff6e - .int64 2032874848183 # 0x1d950c87fb7 - .int64 1016437424091 # 0xeca8643fdb - .int64 508218712045 # 0x7654321fed - .int64 254109356022 # 0x3b2a190ff6 - .int64 127054678011 # 0x1d950c87fb - .int64 63527339005 # 0xeca8643fd - .int64 31763669502 # 0x7654321fe - .int64 15881834751 # 0x3b2a190ff - .int64 7940917375 # 0x1d950c87f - .int64 3970458687 # 0xeca8643f - .int64 1985229343 # 0x7654321f - .int64 992614671 # 0x3b2a190f - .int64 496307335 # 0x1d950c87 - .int64 248153667 # 0xeca8643 - .int64 124076833 # 0x7654321 - .int64 62038416 # 0x3b2a190 - .int64 31019208 # 0x1d950c8 - .int64 15509604 # 0xeca864 - .int64 7754802 # 0x765432 - .int64 3877401 # 0x3b2a19 - .int64 1938700 # 0x1d950c - .int64 969350 # 0xeca86 - .int64 484675 # 0x76543 - .int64 242337 # 0x3b2a1 - .int64 121168 # 0x1d950 - .int64 60584 # 0xeca8 - .int64 30292 # 0x7654 - .int64 15146 # 0x3b2a - .int64 7573 # 0x1d95 - .int64 3786 # 0xeca - .int64 1893 # 0x765 - .int64 946 # 0x3b2 - .int64 473 # 0x1d9 - .int64 236 # 0xec - .int64 118 # 0x76 - .int64 59 # 0x3b - .int64 29 # 0x1d - .int64 14 # 0xe - .int64 7 # 0x7 - .int64 3 # 0x3 - .int64 1 # 0x1 - .int64 0 # 0x0 - .size zext, 512 - - .type sext,@object # @sext - .section .rodata.sext,"a",@progbits - .align 4 -sext: - .int64 -8152436031399644656 # 0x8edcba9f76543210 - .int64 -4076218015699822328 # 0xc76e5d4fbb2a1908 - .int64 -2038109007849911164 # 0xe3b72ea7dd950c84 - .int64 -1019054503924955582 # 0xf1db9753eeca8642 - .int64 -509527251962477791 # 0xf8edcba9f7654321 - .int64 -254763625981238896 # 0xfc76e5d4fbb2a190 - .int64 -127381812990619448 # 0xfe3b72ea7dd950c8 - .int64 -63690906495309724 # 0xff1db9753eeca864 - .int64 -31845453247654862 # 0xff8edcba9f765432 - .int64 -15922726623827431 # 0xffc76e5d4fbb2a19 - .int64 -7961363311913716 # 0xffe3b72ea7dd950c - .int64 -3980681655956858 # 0xfff1db9753eeca86 - .int64 -1990340827978429 # 0xfff8edcba9f76543 - .int64 -995170413989215 # 0xfffc76e5d4fbb2a1 - .int64 -497585206994608 # 0xfffe3b72ea7dd950 - .int64 -248792603497304 # 0xffff1db9753eeca8 - .int64 -124396301748652 # 0xffff8edcba9f7654 - .int64 -62198150874326 # 0xffffc76e5d4fbb2a - .int64 -31099075437163 # 0xffffe3b72ea7dd95 - .int64 -15549537718582 # 0xfffff1db9753eeca - .int64 -7774768859291 # 0xfffff8edcba9f765 - .int64 -3887384429646 # 0xfffffc76e5d4fbb2 - .int64 -1943692214823 # 0xfffffe3b72ea7dd9 - .int64 -971846107412 # 0xffffff1db9753eec - .int64 -485923053706 # 0xffffff8edcba9f76 - .int64 -242961526853 # 0xffffffc76e5d4fbb - .int64 -121480763427 # 0xffffffe3b72ea7dd - .int64 -60740381714 # 0xfffffff1db9753ee - .int64 -30370190857 # 0xfffffff8edcba9f7 - .int64 -15185095429 # 0xfffffffc76e5d4fb - .int64 -7592547715 # 0xfffffffe3b72ea7d - .int64 -3796273858 # 0xffffffff1db9753e - .int64 -1898136929 # 0xffffffff8edcba9f - .int64 -949068465 # 0xffffffffc76e5d4f - .int64 -474534233 # 0xffffffffe3b72ea7 - .int64 -237267117 # 0xfffffffff1db9753 - .int64 -118633559 # 0xfffffffff8edcba9 - .int64 -59316780 # 0xfffffffffc76e5d4 - .int64 -29658390 # 0xfffffffffe3b72ea - .int64 -14829195 # 0xffffffffff1db975 - .int64 -7414598 # 0xffffffffff8edcba - .int64 -3707299 # 0xffffffffffc76e5d - .int64 -1853650 # 0xffffffffffe3b72e - .int64 -926825 # 0xfffffffffff1db97 - .int64 -463413 # 0xfffffffffff8edcb - .int64 -231707 # 0xfffffffffffc76e5 - .int64 -115854 # 0xfffffffffffe3b72 - .int64 -57927 # 0xffffffffffff1db9 - .int64 -28964 # 0xffffffffffff8edc - .int64 -14482 # 0xffffffffffffc76e - .int64 -7241 # 0xffffffffffffe3b7 - .int64 -3621 # 0xfffffffffffff1db - .int64 -1811 # 0xfffffffffffff8ed - .int64 -906 # 0xfffffffffffffc76 - .int64 -453 # 0xfffffffffffffe3b - .int64 -227 # 0xffffffffffffff1d - .int64 -114 # 0xffffffffffffff8e - .int64 -57 # 0xffffffffffffffc7 - .int64 -29 # 0xffffffffffffffe3 - .int64 -15 # 0xfffffffffffffff1 - .int64 -8 # 0xfffffffffffffff8 - .int64 -4 # 0xfffffffffffffffc - .int64 -2 # 0xfffffffffffffffe - .int64 -1 # 0xffffffffffffffff - .size sext, 512 - - - .ident "clang version 3.8.0 " - .section ".note.GNU-stack","",@progbits diff --git a/test/torture-s/bcp-1.c.s b/test/torture-s/bcp-1.c.s index a570930c4..bd8b37d5a 100644 --- a/test/torture-s/bcp-1.c.s +++ b/test/torture-s/bcp-1.c.s @@ -218,108 +218,113 @@ main: # @main .local i32, i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB17_22 + block i32.load $push0=, bad_t0($0) i32.call_indirect $push1=, $pop0 - br_if $pop1, .LBB17_22 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %for.cond i32.load $push2=, bad_t0+4($0) i32.call_indirect $push3=, $pop2 - br_if $pop3, .LBB17_22 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %for.cond.1 i32.load $push4=, bad_t0+8($0) i32.call_indirect $push5=, $pop4 - br_if $pop5, .LBB17_22 + br_if $pop5, 0 # 0: down to label0 # BB#3: # %for.cond.2 i32.load $push6=, bad_t0+12($0) i32.call_indirect $push7=, $pop6 - br_if $pop7, .LBB17_22 + br_if $pop7, 0 # 0: down to label0 # BB#4: # %for.cond.3 i32.load $push8=, bad_t0+16($0) i32.call_indirect $push9=, $pop8 - br_if $pop9, .LBB17_22 + br_if $pop9, 0 # 0: down to label0 # BB#5: # %for.cond.4 i32.load $push10=, bad_t0+20($0) i32.call_indirect $push11=, $pop10 - br_if $pop11, .LBB17_22 + br_if $pop11, 0 # 0: down to label0 # BB#6: # %for.cond.5 i32.load $1=, bad_t1($0) i32.const $2=, 1 - block .LBB17_21 + block i32.call_indirect $push12=, $1, $2 - br_if $pop12, .LBB17_21 + br_if $pop12, 0 # 0: down to label1 # BB#7: # %for.cond1 i32.load $push13=, bad_t1+4($0) i32.call_indirect $push14=, $pop13, $2 - br_if $pop14, .LBB17_21 + br_if $pop14, 0 # 0: down to label1 # BB#8: # %for.cond1.1 i32.load $push15=, bad_t1+8($0) i32.call_indirect $push16=, $pop15, $2 - br_if $pop16, .LBB17_21 + br_if $pop16, 0 # 0: down to label1 # BB#9: # %for.cond1.2 i32.load $1=, bad_t2($0) i32.const $2=, .L.str - block .LBB17_20 + block i32.call_indirect $push17=, $1, $2 - br_if $pop17, .LBB17_20 + br_if $pop17, 0 # 0: down to label2 # BB#10: # %for.cond12 i32.load $push18=, bad_t2+4($0) i32.call_indirect $push19=, $pop18, $2 - br_if $pop19, .LBB17_20 + br_if $pop19, 0 # 0: down to label2 # BB#11: # %for.cond12.1 - block .LBB17_19 + block i32.load $push20=, good_t0($0) i32.call_indirect $push21=, $pop20 i32.const $push32=, 0 i32.eq $push33=, $pop21, $pop32 - br_if $pop33, .LBB17_19 + br_if $pop33, 0 # 0: down to label3 # BB#12: # %for.cond23 i32.load $push22=, good_t0+4($0) i32.call_indirect $push23=, $pop22 i32.const $push34=, 0 i32.eq $push35=, $pop23, $pop34 - br_if $pop35, .LBB17_19 + br_if $pop35, 0 # 0: down to label3 # BB#13: # %for.cond23.1 i32.load $push24=, good_t0+8($0) i32.call_indirect $push25=, $pop24 i32.const $push36=, 0 i32.eq $push37=, $pop25, $pop36 - br_if $pop37, .LBB17_19 + br_if $pop37, 0 # 0: down to label3 # BB#14: # %for.cond23.2 - block .LBB17_18 + block i32.load $push26=, opt_t0($0) i32.call_indirect $push27=, $pop26 i32.const $push38=, 0 i32.eq $push39=, $pop27, $pop38 - br_if $pop39, .LBB17_18 + br_if $pop39, 0 # 0: down to label4 # BB#15: # %for.cond34 i32.load $push28=, opt_t0+4($0) i32.call_indirect $push29=, $pop28 i32.const $push40=, 0 i32.eq $push41=, $pop29, $pop40 - br_if $pop41, .LBB17_18 + br_if $pop41, 0 # 0: down to label4 # BB#16: # %for.cond34.1 i32.load $push30=, opt_t0+8($0) i32.call_indirect $push31=, $pop30 i32.const $push42=, 0 i32.eq $push43=, $pop31, $pop42 - br_if $pop43, .LBB17_18 + br_if $pop43, 0 # 0: down to label4 # BB#17: # %for.cond34.2 call exit@FUNCTION, $0 unreachable .LBB17_18: # %if.then40 + end_block # label4: call abort@FUNCTION unreachable .LBB17_19: # %if.then29 + end_block # label3: call abort@FUNCTION unreachable .LBB17_20: # %if.then18 + end_block # label2: call abort@FUNCTION unreachable .LBB17_21: # %if.then7 + end_block # label1: call abort@FUNCTION unreachable .LBB17_22: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end17: diff --git a/test/torture-s/bf-pack-1.c.s b/test/torture-s/bf-pack-1.c.s index b9e7f0715..0bf763d3e 100644 --- a/test/torture-s/bf-pack-1.c.s +++ b/test/torture-s/bf-pack-1.c.s @@ -9,7 +9,7 @@ f: # @f .result i32 .local i64 # BB#0: # %entry - block .LBB0_4 + block i32.const $push0=, 4 i32.add $push1=, $0, $pop0 i64.load32_u $push2=, 0($pop1) @@ -21,20 +21,22 @@ f: # @f i64.and $push7=, $1, $pop6 i64.const $push8=, 4660 i64.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB0_4 + br_if $pop9, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_3 + block i64.const $push10=, 281474976645120 i64.and $push11=, $1, $pop10 i64.const $push12=, 95075992076288 i64.ne $push13=, $pop11, $pop12 - br_if $pop13, .LBB0_3 + br_if $pop13, 0 # 0: down to label1 # BB#2: # %if.end6 return $0 .LBB0_3: # %if.then5 + end_block # label1: call abort@FUNCTION unreachable .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/bf-sign-2.c.s b/test/torture-s/bf-sign-2.c.s index 354942f11..e23f85216 100644 --- a/test/torture-s/bf-sign-2.c.s +++ b/test/torture-s/bf-sign-2.c.s @@ -12,17 +12,18 @@ main: # @main i64.load $0=, x($1) i32.const $2=, 7 i32.const $3=, -2 - block .LBB0_2 + block i32.wrap/i64 $push0=, $0 i32.and $push1=, $pop0, $2 i32.add $push2=, $pop1, $3 i32.lt_s $push3=, $pop2, $1 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB0_2: # %if.end - block .LBB0_4 + end_block # label0: + block i64.const $push4=, 31 i64.shr_u $push5=, $0, $pop4 i32.wrap/i64 $push6=, $pop5 @@ -30,22 +31,24 @@ main: # @main i32.shr_s $push8=, $pop6, $pop7 i32.add $push9=, $pop8, $3 i32.lt_s $push10=, $pop9, $1 - br_if $pop10, .LBB0_4 + br_if $pop10, 0 # 0: down to label1 # BB#3: # %if.then4 call abort@FUNCTION unreachable .LBB0_4: # %if.end5 + end_block # label1: i64.load $0=, x+8($1) - block .LBB0_6 + block i32.wrap/i64 $push11=, $0 i32.add $push12=, $pop11, $3 i32.lt_s $push13=, $pop12, $1 - br_if $pop13, .LBB0_6 + br_if $pop13, 0 # 0: down to label2 # BB#5: # %if.then12 call abort@FUNCTION unreachable .LBB0_6: # %if.end13 - block .LBB0_8 + end_block # label2: + block i64.load $push14=, x+24($1) i64.const $push15=, 35 i64.shr_u $push16=, $pop14, $pop15 @@ -54,12 +57,13 @@ main: # @main i32.and $push19=, $pop17, $pop18 i32.add $push20=, $pop19, $3 i32.lt_s $push21=, $pop20, $1 - br_if $pop21, .LBB0_8 + br_if $pop21, 0 # 0: down to label3 # BB#7: # %if.then19 call abort@FUNCTION unreachable .LBB0_8: # %if.end20 - block .LBB0_10 + end_block # label3: + block i64.const $push22=, 32 i64.shr_u $push23=, $0, $pop22 i32.wrap/i64 $push24=, $pop23 @@ -67,21 +71,23 @@ main: # @main i32.and $push26=, $pop24, $pop25 i32.add $push27=, $pop26, $3 i32.lt_s $push28=, $pop27, $1 - br_if $pop28, .LBB0_10 + br_if $pop28, 0 # 0: down to label4 # BB#9: # %if.then27 call abort@FUNCTION unreachable .LBB0_10: # %if.end35 - block .LBB0_12 + end_block # label4: + block i32.load $push29=, x+20($1) i32.and $push30=, $pop29, $2 i32.add $push31=, $pop30, $3 i32.lt_s $push32=, $pop31, $1 - br_if $pop32, .LBB0_12 + br_if $pop32, 0 # 0: down to label5 # BB#11: # %if.then42 call abort@FUNCTION unreachable .LBB0_12: # %if.end50 + end_block # label5: call exit@FUNCTION, $1 unreachable .Lfunc_end0: diff --git a/test/torture-s/bitfld-3.c.s b/test/torture-s/bitfld-3.c.s index 8e6ba0757..1f7c2cf42 100644 --- a/test/torture-s/bitfld-3.c.s +++ b/test/torture-s/bitfld-3.c.s @@ -13,10 +13,10 @@ main: # @main i64.const $push1=, 8589934591 i64.and $0=, $pop0, $pop1 i64.const $2=, 0 - block .LBB0_3 + block i64.mul $push2=, $0, $0 i64.ne $push3=, $pop2, $2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i64.load $push4=, a+8($1) i64.const $push5=, 1099511627775 @@ -25,11 +25,12 @@ main: # @main i64.mul $push7=, $3, $3 i64.or $push8=, $pop6, $pop7 i64.ne $push9=, $pop8, $2 - br_if $pop9, .LBB0_3 + br_if $pop9, 0 # 0: down to label0 # BB#2: # %if.end call abort@FUNCTION unreachable .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/bitfld-4.c.s b/test/torture-s/bitfld-4.c.s index 56362cb6a..135717251 100644 --- a/test/torture-s/bitfld-4.c.s +++ b/test/torture-s/bitfld-4.c.s @@ -9,14 +9,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, x($0) i32.const $push1=, -1863803 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/bswap-1.c.s b/test/torture-s/bswap-1.c.s index a48cc1331..6aebb31cf 100644 --- a/test/torture-s/bswap-1.c.s +++ b/test/torture-s/bswap-1.c.s @@ -95,86 +95,94 @@ f: # @f main: # @main .result i32 # BB#0: # %entry - block .LBB2_16 + block i64.const $push0=, 18 i64.call $push1=, g@FUNCTION, $pop0 i64.const $push2=, 1297036692682702848 i64.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB2_16 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB2_15 + block i64.const $push4=, 4660 i64.call $push5=, g@FUNCTION, $pop4 i64.const $push6=, 3752061439553044480 i64.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB2_15 + br_if $pop7, 0 # 0: down to label1 # BB#2: # %if.end6 - block .LBB2_14 + block i64.const $push8=, 1193046 i64.call $push9=, g@FUNCTION, $pop8 i64.const $push10=, 6211609577260056576 i64.ne $push11=, $pop9, $pop10 - br_if $pop11, .LBB2_14 + br_if $pop11, 0 # 0: down to label2 # BB#3: # %if.end11 - block .LBB2_13 + block i64.const $push12=, 305419896 i64.call $push13=, g@FUNCTION, $pop12 i64.const $push14=, 8671175384462524416 i64.ne $push15=, $pop13, $pop14 - br_if $pop15, .LBB2_13 + br_if $pop15, 0 # 0: down to label3 # BB#4: # %if.end16 - block .LBB2_12 + block i64.const $push16=, 78187493520 i64.call $push17=, g@FUNCTION, $pop16 i64.const $push18=, -8036578753402372096 i64.ne $push19=, $pop17, $pop18 - br_if $pop19, .LBB2_12 + br_if $pop19, 0 # 0: down to label4 # BB#5: # %if.end21 - block .LBB2_11 + block i64.const $push20=, 20015998341138 i64.call $push21=, g@FUNCTION, $pop20 i64.const $push22=, 1337701400965152768 i64.ne $push23=, $pop21, $pop22 - br_if $pop23, .LBB2_11 + br_if $pop23, 0 # 0: down to label5 # BB#6: # %if.end26 - block .LBB2_10 + block i64.const $push24=, 5124095575331380 i64.call $push25=, g@FUNCTION, $pop24 i64.const $push26=, 3752220286069772800 i64.ne $push27=, $pop25, $pop26 - br_if $pop27, .LBB2_10 + br_if $pop27, 0 # 0: down to label6 # BB#7: # %if.end31 - block .LBB2_9 + block i64.const $push28=, 1311768467284833366 i64.call $push29=, g@FUNCTION, $pop28 i64.const $push30=, 6211610197754262546 i64.ne $push31=, $pop29, $pop30 - br_if $pop31, .LBB2_9 + br_if $pop31, 0 # 0: down to label7 # BB#8: # %if.end36 i32.const $push32=, 0 return $pop32 .LBB2_9: # %if.then35 + end_block # label7: call abort@FUNCTION unreachable .LBB2_10: # %if.then30 + end_block # label6: call abort@FUNCTION unreachable .LBB2_11: # %if.then25 + end_block # label5: call abort@FUNCTION unreachable .LBB2_12: # %if.then20 + end_block # label4: call abort@FUNCTION unreachable .LBB2_13: # %if.then15 + end_block # label3: call abort@FUNCTION unreachable .LBB2_14: # %if.then10 + end_block # label2: call abort@FUNCTION unreachable .LBB2_15: # %if.then5 + end_block # label1: call abort@FUNCTION unreachable .LBB2_16: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/builtin-bitops-1.c.s b/test/torture-s/builtin-bitops-1.c.s deleted file mode 100644 index d71323ad2..000000000 --- a/test/torture-s/builtin-bitops-1.c.s +++ /dev/null @@ -1,1644 +0,0 @@ - .text - .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/builtin-bitops-1.c" - .section .text.my_ffs,"ax",@progbits - .hidden my_ffs - .globl my_ffs - .type my_ffs,@function -my_ffs: # @my_ffs - .param i32 - .result i32 - .local i32, i32 -# BB#0: # %entry - i32.const $2=, 0 - block .LBB0_4 - i32.const $push4=, 0 - i32.eq $push5=, $0, $pop4 - br_if $pop5, .LBB0_4 -.LBB0_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 - i32.const $1=, 1 - i32.shl $push0=, $1, $2 - i32.and $push1=, $pop0, $0 - br_if $pop1, .LBB0_3 -# BB#2: # %for.inc - # in Loop: Header=BB0_1 Depth=1 - i32.add $2=, $2, $1 - i32.const $push2=, 32 - i32.lt_u $push3=, $2, $pop2 - br_if $pop3, .LBB0_1 -.LBB0_3: # %for.end - i32.add $2=, $2, $1 -.LBB0_4: # %cleanup - return $2 -.Lfunc_end0: - .size my_ffs, .Lfunc_end0-my_ffs - - .section .text.my_ctz,"ax",@progbits - .hidden my_ctz - .globl my_ctz - .type my_ctz,@function -my_ctz: # @my_ctz - .param i32 - .result i32 - .local i32, i32 -# BB#0: # %entry - i32.const $2=, 0 -.LBB1_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 - i32.const $1=, 1 - i32.shl $push0=, $1, $2 - i32.and $push1=, $pop0, $0 - br_if $pop1, .LBB1_3 -# BB#2: # %for.inc - # in Loop: Header=BB1_1 Depth=1 - i32.add $2=, $2, $1 - i32.const $push2=, 32 - i32.lt_u $push3=, $2, $pop2 - br_if $pop3, .LBB1_1 -.LBB1_3: # %for.end - return $2 -.Lfunc_end1: - .size my_ctz, .Lfunc_end1-my_ctz - - .section .text.my_clz,"ax",@progbits - .hidden my_clz - .globl my_clz - .type my_clz,@function -my_clz: # @my_clz - .param i32 - .result i32 - .local i32, i32, i32 -# BB#0: # %entry - i32.const $3=, 0 - i32.const $2=, 31 -.LBB2_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB2_3 - i32.const $1=, 1 - i32.shl $push0=, $1, $2 - i32.and $push1=, $pop0, $0 - br_if $pop1, .LBB2_3 -# BB#2: # %for.inc - # in Loop: Header=BB2_1 Depth=1 - i32.add $3=, $3, $1 - i32.const $push2=, -1 - i32.add $2=, $2, $pop2 - i32.const $push3=, 32 - i32.lt_u $push4=, $3, $pop3 - br_if $pop4, .LBB2_1 -.LBB2_3: # %for.end - return $3 -.Lfunc_end2: - .size my_clz, .Lfunc_end2-my_clz - - .section .text.my_clrsb,"ax",@progbits - .hidden my_clrsb - .globl my_clrsb - .type my_clrsb,@function -my_clrsb: # @my_clrsb - .param i32 - .result i32 - .local i32, i32, i32, i32 -# BB#0: # %entry - i32.const $push0=, 31 - i32.shr_u $1=, $0, $pop0 - i32.const $2=, 1 - i32.const $3=, 30 - copy_local $4=, $2 -.LBB3_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB3_3 - i32.shr_u $push1=, $0, $3 - i32.and $push2=, $pop1, $2 - i32.ne $push3=, $pop2, $1 - br_if $pop3, .LBB3_3 -# BB#2: # %for.inc - # in Loop: Header=BB3_1 Depth=1 - i32.const $push4=, 1 - i32.add $4=, $4, $pop4 - i32.const $push5=, -1 - i32.add $3=, $3, $pop5 - i32.const $push6=, 32 - i32.lt_u $push7=, $4, $pop6 - br_if $pop7, .LBB3_1 -.LBB3_3: # %for.end - i32.const $push8=, -1 - i32.add $push9=, $4, $pop8 - return $pop9 -.Lfunc_end3: - .size my_clrsb, .Lfunc_end3-my_clrsb - - .section .text.my_popcount,"ax",@progbits - .hidden my_popcount - .globl my_popcount - .type my_popcount,@function -my_popcount: # @my_popcount - .param i32 - .result i32 - .local i32, i32, i32, i32 -# BB#0: # %entry - i32.const $1=, 0 - copy_local $3=, $1 - copy_local $4=, $1 -.LBB4_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB4_2 - i32.const $2=, 1 - i32.shl $push0=, $2, $4 - i32.and $push1=, $pop0, $0 - i32.ne $push2=, $pop1, $1 - i32.add $3=, $pop2, $3 - i32.add $4=, $4, $2 - i32.const $push3=, 32 - i32.ne $push4=, $4, $pop3 - br_if $pop4, .LBB4_1 -.LBB4_2: # %for.end - return $3 -.Lfunc_end4: - .size my_popcount, .Lfunc_end4-my_popcount - - .section .text.my_parity,"ax",@progbits - .hidden my_parity - .globl my_parity - .type my_parity,@function -my_parity: # @my_parity - .param i32 - .result i32 - .local i32, i32, i32, i32 -# BB#0: # %entry - i32.const $1=, 0 - copy_local $3=, $1 - copy_local $4=, $1 -.LBB5_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB5_2 - i32.const $2=, 1 - i32.shl $push0=, $2, $4 - i32.and $push1=, $pop0, $0 - i32.ne $push2=, $pop1, $1 - i32.add $3=, $pop2, $3 - i32.add $4=, $4, $2 - i32.const $push3=, 32 - i32.ne $push4=, $4, $pop3 - br_if $pop4, .LBB5_1 -.LBB5_2: # %for.end - i32.and $push5=, $3, $2 - return $pop5 -.Lfunc_end5: - .size my_parity, .Lfunc_end5-my_parity - - .section .text.my_ffsl,"ax",@progbits - .hidden my_ffsl - .globl my_ffsl - .type my_ffsl,@function -my_ffsl: # @my_ffsl - .param i32 - .result i32 - .local i32, i32 -# BB#0: # %entry - i32.const $2=, 0 - block .LBB6_4 - i32.const $push4=, 0 - i32.eq $push5=, $0, $pop4 - br_if $pop5, .LBB6_4 -.LBB6_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB6_3 - i32.const $1=, 1 - i32.shl $push0=, $1, $2 - i32.and $push1=, $pop0, $0 - br_if $pop1, .LBB6_3 -# BB#2: # %for.inc - # in Loop: Header=BB6_1 Depth=1 - i32.add $2=, $2, $1 - i32.const $push2=, 32 - i32.lt_u $push3=, $2, $pop2 - br_if $pop3, .LBB6_1 -.LBB6_3: # %for.end - i32.add $2=, $2, $1 -.LBB6_4: # %cleanup - return $2 -.Lfunc_end6: - .size my_ffsl, .Lfunc_end6-my_ffsl - - .section .text.my_ctzl,"ax",@progbits - .hidden my_ctzl - .globl my_ctzl - .type my_ctzl,@function -my_ctzl: # @my_ctzl - .param i32 - .result i32 - .local i32, i32 -# BB#0: # %entry - i32.const $2=, 0 -.LBB7_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB7_3 - i32.const $1=, 1 - i32.shl $push0=, $1, $2 - i32.and $push1=, $pop0, $0 - br_if $pop1, .LBB7_3 -# BB#2: # %for.inc - # in Loop: Header=BB7_1 Depth=1 - i32.add $2=, $2, $1 - i32.const $push2=, 32 - i32.lt_u $push3=, $2, $pop2 - br_if $pop3, .LBB7_1 -.LBB7_3: # %for.end - return $2 -.Lfunc_end7: - .size my_ctzl, .Lfunc_end7-my_ctzl - - .section .text.my_clzl,"ax",@progbits - .hidden my_clzl - .globl my_clzl - .type my_clzl,@function -my_clzl: # @my_clzl - .param i32 - .result i32 - .local i32, i32, i32 -# BB#0: # %entry - i32.const $3=, 0 - i32.const $2=, 31 -.LBB8_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB8_3 - i32.const $1=, 1 - i32.shl $push0=, $1, $2 - i32.and $push1=, $pop0, $0 - br_if $pop1, .LBB8_3 -# BB#2: # %for.inc - # in Loop: Header=BB8_1 Depth=1 - i32.add $3=, $3, $1 - i32.const $push2=, -1 - i32.add $2=, $2, $pop2 - i32.const $push3=, 32 - i32.lt_u $push4=, $3, $pop3 - br_if $pop4, .LBB8_1 -.LBB8_3: # %for.end - return $3 -.Lfunc_end8: - .size my_clzl, .Lfunc_end8-my_clzl - - .section .text.my_clrsbl,"ax",@progbits - .hidden my_clrsbl - .globl my_clrsbl - .type my_clrsbl,@function -my_clrsbl: # @my_clrsbl - .param i32 - .result i32 - .local i32, i32, i32, i32 -# BB#0: # %entry - i32.const $push0=, 31 - i32.shr_u $1=, $0, $pop0 - i32.const $2=, 1 - i32.const $3=, 30 - copy_local $4=, $2 -.LBB9_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB9_3 - i32.shr_u $push1=, $0, $3 - i32.and $push2=, $pop1, $2 - i32.ne $push3=, $pop2, $1 - br_if $pop3, .LBB9_3 -# BB#2: # %for.inc - # in Loop: Header=BB9_1 Depth=1 - i32.const $push4=, 1 - i32.add $4=, $4, $pop4 - i32.const $push5=, -1 - i32.add $3=, $3, $pop5 - i32.const $push6=, 32 - i32.lt_u $push7=, $4, $pop6 - br_if $pop7, .LBB9_1 -.LBB9_3: # %for.end - i32.const $push8=, -1 - i32.add $push9=, $4, $pop8 - return $pop9 -.Lfunc_end9: - .size my_clrsbl, .Lfunc_end9-my_clrsbl - - .section .text.my_popcountl,"ax",@progbits - .hidden my_popcountl - .globl my_popcountl - .type my_popcountl,@function -my_popcountl: # @my_popcountl - .param i32 - .result i32 - .local i32, i32, i32, i32 -# BB#0: # %entry - i32.const $1=, 0 - copy_local $3=, $1 - copy_local $4=, $1 -.LBB10_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB10_2 - i32.const $2=, 1 - i32.shl $push0=, $2, $4 - i32.and $push1=, $pop0, $0 - i32.ne $push2=, $pop1, $1 - i32.add $3=, $pop2, $3 - i32.add $4=, $4, $2 - i32.const $push3=, 32 - i32.ne $push4=, $4, $pop3 - br_if $pop4, .LBB10_1 -.LBB10_2: # %for.end - return $3 -.Lfunc_end10: - .size my_popcountl, .Lfunc_end10-my_popcountl - - .section .text.my_parityl,"ax",@progbits - .hidden my_parityl - .globl my_parityl - .type my_parityl,@function -my_parityl: # @my_parityl - .param i32 - .result i32 - .local i32, i32, i32, i32 -# BB#0: # %entry - i32.const $1=, 0 - copy_local $3=, $1 - copy_local $4=, $1 -.LBB11_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB11_2 - i32.const $2=, 1 - i32.shl $push0=, $2, $4 - i32.and $push1=, $pop0, $0 - i32.ne $push2=, $pop1, $1 - i32.add $3=, $pop2, $3 - i32.add $4=, $4, $2 - i32.const $push3=, 32 - i32.ne $push4=, $4, $pop3 - br_if $pop4, .LBB11_1 -.LBB11_2: # %for.end - i32.and $push5=, $3, $2 - return $pop5 -.Lfunc_end11: - .size my_parityl, .Lfunc_end11-my_parityl - - .section .text.my_ffsll,"ax",@progbits - .hidden my_ffsll - .globl my_ffsll - .type my_ffsll,@function -my_ffsll: # @my_ffsll - .param i64 - .result i32 - .local i64, i64, i64, i32 -# BB#0: # %entry - i64.const $1=, 0 - copy_local $3=, $1 - i32.const $4=, 0 - block .LBB12_4 - i64.eq $push0=, $0, $1 - br_if $pop0, .LBB12_4 -.LBB12_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB12_3 - i64.const $2=, 1 - i64.shl $push1=, $2, $3 - i64.and $push2=, $pop1, $0 - i64.ne $push3=, $pop2, $1 - br_if $pop3, .LBB12_3 -# BB#2: # %for.inc - # in Loop: Header=BB12_1 Depth=1 - i32.const $push4=, 1 - i32.add $4=, $4, $pop4 - i64.add $3=, $3, $2 - i64.const $push5=, 64 - i64.lt_u $push6=, $3, $pop5 - br_if $pop6, .LBB12_1 -.LBB12_3: # %for.end - i32.const $push7=, 1 - i32.add $4=, $4, $pop7 -.LBB12_4: # %cleanup - return $4 -.Lfunc_end12: - .size my_ffsll, .Lfunc_end12-my_ffsll - - .section .text.my_ctzll,"ax",@progbits - .hidden my_ctzll - .globl my_ctzll - .type my_ctzll,@function -my_ctzll: # @my_ctzll - .param i64 - .result i32 - .local i64, i64, i64, i32 -# BB#0: # %entry - i64.const $1=, 0 - copy_local $3=, $1 - i32.const $4=, 0 -.LBB13_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB13_3 - i64.const $2=, 1 - i64.shl $push0=, $2, $3 - i64.and $push1=, $pop0, $0 - i64.ne $push2=, $pop1, $1 - br_if $pop2, .LBB13_3 -# BB#2: # %for.inc - # in Loop: Header=BB13_1 Depth=1 - i32.const $push3=, 1 - i32.add $4=, $4, $pop3 - i64.add $3=, $3, $2 - i64.const $push4=, 64 - i64.lt_u $push5=, $3, $pop4 - br_if $pop5, .LBB13_1 -.LBB13_3: # %for.end - return $4 -.Lfunc_end13: - .size my_ctzll, .Lfunc_end13-my_ctzll - - .section .text.my_clzll,"ax",@progbits - .hidden my_clzll - .globl my_clzll - .type my_clzll,@function -my_clzll: # @my_clzll - .param i64 - .result i32 - .local i64, i64, i64, i64, i32 -# BB#0: # %entry - i64.const $1=, 0 - i64.const $3=, 63 - copy_local $4=, $1 - i32.const $5=, 0 -.LBB14_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB14_3 - i64.const $2=, 1 - i64.const $push0=, 4294967295 - i64.and $push1=, $3, $pop0 - i64.shl $push2=, $2, $pop1 - i64.and $push3=, $pop2, $0 - i64.ne $push4=, $pop3, $1 - br_if $pop4, .LBB14_3 -# BB#2: # %for.inc - # in Loop: Header=BB14_1 Depth=1 - i32.const $push5=, 1 - i32.add $5=, $5, $pop5 - i64.add $4=, $4, $2 - i64.const $push6=, -1 - i64.add $3=, $3, $pop6 - i64.const $push7=, 64 - i64.lt_u $push8=, $4, $pop7 - br_if $pop8, .LBB14_1 -.LBB14_3: # %for.end - return $5 -.Lfunc_end14: - .size my_clzll, .Lfunc_end14-my_clzll - - .section .text.my_clrsbll,"ax",@progbits - .hidden my_clrsbll - .globl my_clrsbll - .type my_clrsbll,@function -my_clrsbll: # @my_clrsbll - .param i64 - .result i32 - .local i64, i64, i64, i64, i32 -# BB#0: # %entry - i64.const $push0=, 63 - i64.shr_u $1=, $0, $pop0 - i64.const $2=, 1 - i64.const $3=, 62 - copy_local $4=, $2 - i32.const $5=, 1 -.LBB15_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB15_3 - i64.shr_u $push1=, $0, $3 - i64.and $push2=, $pop1, $2 - i64.ne $push3=, $pop2, $1 - br_if $pop3, .LBB15_3 -# BB#2: # %for.inc - # in Loop: Header=BB15_1 Depth=1 - i32.const $push5=, 1 - i32.add $5=, $5, $pop5 - i64.const $push4=, 1 - i64.add $4=, $4, $pop4 - i64.const $push6=, -1 - i64.add $3=, $3, $pop6 - i64.const $push7=, 64 - i64.lt_u $push8=, $4, $pop7 - br_if $pop8, .LBB15_1 -.LBB15_3: # %for.end - i32.const $push9=, -1 - i32.add $push10=, $5, $pop9 - return $pop10 -.Lfunc_end15: - .size my_clrsbll, .Lfunc_end15-my_clrsbll - - .section .text.my_popcountll,"ax",@progbits - .hidden my_popcountll - .globl my_popcountll - .type my_popcountll,@function -my_popcountll: # @my_popcountll - .param i64 - .result i32 - .local i64, i64, i64, i32 -# BB#0: # %entry - i64.const $1=, 0 - copy_local $3=, $1 - i32.const $4=, 0 -.LBB16_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB16_2 - i64.const $2=, 1 - i64.shl $push0=, $2, $3 - i64.and $push1=, $pop0, $0 - i64.ne $push2=, $pop1, $1 - i32.add $4=, $pop2, $4 - i64.add $3=, $3, $2 - i64.const $push3=, 64 - i64.ne $push4=, $3, $pop3 - br_if $pop4, .LBB16_1 -.LBB16_2: # %for.end - return $4 -.Lfunc_end16: - .size my_popcountll, .Lfunc_end16-my_popcountll - - .section .text.my_parityll,"ax",@progbits - .hidden my_parityll - .globl my_parityll - .type my_parityll,@function -my_parityll: # @my_parityll - .param i64 - .result i32 - .local i64, i64, i64, i32 -# BB#0: # %entry - i64.const $1=, 0 - copy_local $3=, $1 - i32.const $4=, 0 -.LBB17_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB17_2 - i64.const $2=, 1 - i64.shl $push0=, $2, $3 - i64.and $push1=, $pop0, $0 - i64.ne $push2=, $pop1, $1 - i32.add $4=, $pop2, $4 - i64.add $3=, $3, $2 - i64.const $push3=, 64 - i64.ne $push4=, $3, $pop3 - br_if $pop4, .LBB17_1 -.LBB17_2: # %for.end - i32.const $push5=, 1 - i32.and $push6=, $4, $pop5 - return $pop6 -.Lfunc_end17: - .size my_parityll, .Lfunc_end17-my_parityll - - .section .text.main,"ax",@progbits - .hidden main - .globl main - .type main,@function -main: # @main - .result i32 - .local i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i32, i64, i64, i64, i32, i32, i32, i64, i64 -# BB#0: # %entry - i32.const $3=, 0 - copy_local $11=, $3 -.LBB18_1: # %for.body - # =>This Loop Header: Depth=1 - # Child Loop BB18_2 Depth 2 - # Child Loop BB18_8 Depth 2 - # Child Loop BB18_12 Depth 2 - # Child Loop BB18_18 Depth 2 - # Child Loop BB18_21 Depth 2 - # Child Loop BB18_23 Depth 2 - block .LBB18_166 - block .LBB18_165 - block .LBB18_164 - block .LBB18_163 - loop .LBB18_26 - i32.const $4=, 2 - i32.const $push1=, ints - i32.shl $push0=, $11, $4 - i32.add $1=, $pop1, $pop0 - i32.load $10=, 0($1) - i32.ctz $18=, $10 - i32.const $14=, 1 - i32.add $push2=, $18, $14 - i32.select $20=, $10, $pop2, $3 - copy_local $7=, $3 - copy_local $19=, $3 - block .LBB18_5 - i32.const $push222=, 0 - i32.eq $push223=, $10, $pop222 - br_if $pop223, .LBB18_5 -.LBB18_2: # %for.body.i - # Parent Loop BB18_1 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_4 - i32.shl $push3=, $14, $7 - i32.and $push4=, $pop3, $10 - br_if $pop4, .LBB18_4 -# BB#3: # %for.inc.i - # in Loop: Header=BB18_2 Depth=2 - i32.add $7=, $7, $14 - i32.const $push5=, 32 - i32.lt_u $push6=, $7, $pop5 - br_if $pop6, .LBB18_2 -.LBB18_4: # %for.end.i - # in Loop: Header=BB18_1 Depth=1 - i32.add $19=, $7, $14 -.LBB18_5: # %my_ffs.exit - # in Loop: Header=BB18_1 Depth=1 - i32.ne $push7=, $20, $19 - br_if $pop7, .LBB18_166 -# BB#6: # %if.end - # in Loop: Header=BB18_1 Depth=1 - block .LBB18_17 - i32.const $push224=, 0 - i32.eq $push225=, $10, $pop224 - br_if $pop225, .LBB18_17 -# BB#7: # %land.lhs.true - # in Loop: Header=BB18_1 Depth=1 - i32.clz $20=, $10 - i32.const $7=, 0 - i32.const $19=, 31 -.LBB18_8: # %for.body.i822 - # Parent Loop BB18_1 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_10 - i32.shl $push8=, $14, $19 - i32.and $push9=, $pop8, $10 - br_if $pop9, .LBB18_10 -# BB#9: # %for.inc.i825 - # in Loop: Header=BB18_8 Depth=2 - i32.const $push10=, -1 - i32.add $19=, $19, $pop10 - i32.add $7=, $7, $14 - i32.const $push11=, 32 - i32.lt_u $push12=, $7, $pop11 - br_if $pop12, .LBB18_8 -.LBB18_10: # %my_clz.exit - # in Loop: Header=BB18_1 Depth=1 - block .LBB18_16 - i32.ne $push13=, $20, $7 - br_if $pop13, .LBB18_16 -# BB#11: # %land.lhs.true13 - # in Loop: Header=BB18_1 Depth=1 - i32.const $7=, 0 -.LBB18_12: # %for.body.i889 - # Parent Loop BB18_1 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_14 - i32.shl $push14=, $14, $7 - i32.and $push15=, $pop14, $10 - br_if $pop15, .LBB18_14 -# BB#13: # %for.inc.i892 - # in Loop: Header=BB18_12 Depth=2 - i32.add $7=, $7, $14 - i32.const $push16=, 32 - i32.lt_u $push17=, $7, $pop16 - br_if $pop17, .LBB18_12 -.LBB18_14: # %my_ctz.exit - # in Loop: Header=BB18_1 Depth=1 - i32.eq $push18=, $18, $7 - br_if $pop18, .LBB18_17 -# BB#15: # %if.then18 - call abort@FUNCTION - unreachable -.LBB18_16: # %if.then9 - call abort@FUNCTION - unreachable -.LBB18_17: # %if.end19 - # in Loop: Header=BB18_1 Depth=1 - i32.call $20=, __builtin_clrsb@FUNCTION, $10 - i32.load $19=, 0($1) - i32.const $5=, 31 - i32.shr_u $1=, $19, $5 - i32.const $10=, 30 - copy_local $7=, $14 -.LBB18_18: # %for.body.i974 - # Parent Loop BB18_1 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_20 - i32.shr_u $push19=, $19, $10 - i32.and $push20=, $pop19, $14 - i32.ne $push21=, $pop20, $1 - br_if $pop21, .LBB18_20 -# BB#19: # %for.inc.i977 - # in Loop: Header=BB18_18 Depth=2 - i32.const $push22=, 1 - i32.add $7=, $7, $pop22 - i32.const $push23=, -1 - i32.add $10=, $10, $pop23 - i32.const $push24=, 32 - i32.lt_u $push25=, $7, $pop24 - br_if $pop25, .LBB18_18 -.LBB18_20: # %my_clrsb.exit - # in Loop: Header=BB18_1 Depth=1 - i32.const $6=, -1 - i32.const $18=, 0 - copy_local $1=, $18 - copy_local $10=, $18 - i32.add $push26=, $7, $6 - i32.ne $push27=, $20, $pop26 - br_if $pop27, .LBB18_165 -.LBB18_21: # %for.body.i1069 - # Parent Loop BB18_1 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_22 - i32.const $14=, 1 - i32.shl $push28=, $14, $10 - i32.and $push29=, $pop28, $19 - i32.ne $push30=, $pop29, $18 - i32.add $1=, $pop30, $1 - i32.add $10=, $10, $14 - i32.const $7=, 32 - i32.ne $push31=, $10, $7 - br_if $pop31, .LBB18_21 -.LBB18_22: # %my_popcount.exit - # in Loop: Header=BB18_1 Depth=1 - i32.const $20=, 0 - copy_local $18=, $20 - copy_local $10=, $20 - i32.popcnt $push32=, $19 - i32.ne $push33=, $pop32, $1 - br_if $pop33, .LBB18_164 -.LBB18_23: # %for.body.i1161 - # Parent Loop BB18_1 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_24 - i32.shl $push34=, $14, $10 - i32.and $push35=, $pop34, $19 - i32.ne $push36=, $pop35, $20 - i32.add $18=, $pop36, $18 - i32.add $10=, $10, $14 - i32.ne $push37=, $10, $7 - br_if $pop37, .LBB18_23 -.LBB18_24: # %my_parity.exit - # in Loop: Header=BB18_1 Depth=1 - i32.xor $push38=, $18, $1 - i32.and $push39=, $pop38, $14 - br_if $pop39, .LBB18_163 -# BB#25: # %for.cond - # in Loop: Header=BB18_1 Depth=1 - i32.add $11=, $11, $14 - i32.const $8=, 0 - i32.const $9=, 12 - copy_local $0=, $8 - i32.le_u $push40=, $11, $9 - br_if $pop40, .LBB18_1 -.LBB18_26: # %for.body41 - # =>This Loop Header: Depth=1 - # Child Loop BB18_27 Depth 2 - # Child Loop BB18_33 Depth 2 - # Child Loop BB18_37 Depth 2 - # Child Loop BB18_43 Depth 2 - # Child Loop BB18_46 Depth 2 - # Child Loop BB18_48 Depth 2 - block .LBB18_162 - block .LBB18_161 - block .LBB18_160 - block .LBB18_159 - loop .LBB18_51 - i32.const $push42=, longs - i32.shl $push41=, $0, $4 - i32.add $18=, $pop42, $pop41 - i32.load $19=, 0($18) - i32.ctz $20=, $19 - i32.add $push43=, $20, $14 - i32.select $11=, $19, $pop43, $8 - copy_local $10=, $8 - copy_local $1=, $8 - block .LBB18_30 - i32.const $push226=, 0 - i32.eq $push227=, $19, $pop226 - br_if $pop227, .LBB18_30 -.LBB18_27: # %for.body.i1251 - # Parent Loop BB18_26 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_29 - i32.shl $push44=, $14, $10 - i32.and $push45=, $pop44, $19 - br_if $pop45, .LBB18_29 -# BB#28: # %for.inc.i1254 - # in Loop: Header=BB18_27 Depth=2 - i32.add $10=, $10, $14 - i32.lt_u $push46=, $10, $7 - br_if $pop46, .LBB18_27 -.LBB18_29: # %for.end.i1257 - # in Loop: Header=BB18_26 Depth=1 - i32.add $1=, $10, $14 -.LBB18_30: # %my_ffsl.exit - # in Loop: Header=BB18_26 Depth=1 - i32.ne $push47=, $11, $1 - br_if $pop47, .LBB18_162 -# BB#31: # %if.end49 - # in Loop: Header=BB18_26 Depth=1 - block .LBB18_42 - i32.const $push228=, 0 - i32.eq $push229=, $19, $pop228 - br_if $pop229, .LBB18_42 -# BB#32: # %land.lhs.true52 - # in Loop: Header=BB18_26 Depth=1 - i32.clz $11=, $19 - i32.const $10=, 0 - copy_local $1=, $5 -.LBB18_33: # %for.body.i1346 - # Parent Loop BB18_26 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_35 - i32.shl $push48=, $14, $1 - i32.and $push49=, $pop48, $19 - br_if $pop49, .LBB18_35 -# BB#34: # %for.inc.i1349 - # in Loop: Header=BB18_33 Depth=2 - i32.add $10=, $10, $14 - i32.add $1=, $1, $6 - i32.lt_u $push50=, $10, $7 - br_if $pop50, .LBB18_33 -.LBB18_35: # %my_clzl.exit - # in Loop: Header=BB18_26 Depth=1 - block .LBB18_41 - i32.ne $push51=, $11, $10 - br_if $pop51, .LBB18_41 -# BB#36: # %land.lhs.true61 - # in Loop: Header=BB18_26 Depth=1 - i32.const $10=, 0 -.LBB18_37: # %for.body.i1438 - # Parent Loop BB18_26 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_39 - i32.shl $push52=, $14, $10 - i32.and $push53=, $pop52, $19 - br_if $pop53, .LBB18_39 -# BB#38: # %for.inc.i1441 - # in Loop: Header=BB18_37 Depth=2 - i32.add $10=, $10, $14 - i32.lt_u $push54=, $10, $7 - br_if $pop54, .LBB18_37 -.LBB18_39: # %my_ctzl.exit - # in Loop: Header=BB18_26 Depth=1 - i32.eq $push55=, $20, $10 - br_if $pop55, .LBB18_42 -# BB#40: # %if.then66 - call abort@FUNCTION - unreachable -.LBB18_41: # %if.then57 - call abort@FUNCTION - unreachable -.LBB18_42: # %if.end67 - # in Loop: Header=BB18_26 Depth=1 - i32.call $11=, __builtin_clrsbl@FUNCTION, $19 - i32.load $1=, 0($18) - i32.const $3=, 31 - i32.shr_u $18=, $1, $3 - i32.const $19=, 30 - copy_local $10=, $14 -.LBB18_43: # %for.body.i1532 - # Parent Loop BB18_26 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_45 - i32.shr_u $push56=, $1, $19 - i32.and $push57=, $pop56, $14 - i32.ne $push58=, $pop57, $18 - br_if $pop58, .LBB18_45 -# BB#44: # %for.inc.i1535 - # in Loop: Header=BB18_43 Depth=2 - i32.const $push59=, 1 - i32.add $10=, $10, $pop59 - i32.add $19=, $19, $6 - i32.lt_u $push60=, $10, $7 - br_if $pop60, .LBB18_43 -.LBB18_45: # %my_clrsbl.exit - # in Loop: Header=BB18_26 Depth=1 - i32.const $20=, 0 - copy_local $18=, $20 - copy_local $19=, $20 - i32.add $push61=, $10, $6 - i32.ne $push62=, $11, $pop61 - br_if $pop62, .LBB18_161 -.LBB18_46: # %for.body.i1630 - # Parent Loop BB18_26 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_47 - i32.const $10=, 1 - i32.shl $push63=, $10, $19 - i32.and $push64=, $pop63, $1 - i32.ne $push65=, $pop64, $20 - i32.add $18=, $pop65, $18 - i32.add $19=, $19, $10 - i32.ne $push66=, $19, $7 - br_if $pop66, .LBB18_46 -.LBB18_47: # %my_popcountl.exit - # in Loop: Header=BB18_26 Depth=1 - i32.const $11=, 0 - copy_local $20=, $11 - copy_local $19=, $11 - i32.popcnt $push67=, $1 - i32.ne $push68=, $pop67, $18 - br_if $pop68, .LBB18_160 -.LBB18_48: # %for.body.i1723 - # Parent Loop BB18_26 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_49 - i32.shl $push69=, $10, $19 - i32.and $push70=, $pop69, $1 - i32.ne $push71=, $pop70, $11 - i32.add $20=, $pop71, $20 - i32.add $19=, $19, $10 - i32.ne $push72=, $19, $7 - br_if $pop72, .LBB18_48 -.LBB18_49: # %my_parityl.exit - # in Loop: Header=BB18_26 Depth=1 - i32.xor $push73=, $20, $18 - i32.and $push74=, $pop73, $10 - br_if $pop74, .LBB18_159 -# BB#50: # %for.cond39 - # in Loop: Header=BB18_26 Depth=1 - i32.add $0=, $0, $10 - i32.const $1=, 0 - copy_local $18=, $1 - i32.le_u $push75=, $0, $9 - br_if $pop75, .LBB18_26 -.LBB18_51: # %for.body92 - # =>This Loop Header: Depth=1 - # Child Loop BB18_52 Depth 2 - # Child Loop BB18_58 Depth 2 - # Child Loop BB18_62 Depth 2 - # Child Loop BB18_68 Depth 2 - # Child Loop BB18_72 Depth 2 - # Child Loop BB18_74 Depth 2 - block .LBB18_158 - block .LBB18_157 - block .LBB18_156 - block .LBB18_155 - loop .LBB18_77 - i32.const $push78=, longlongs - i32.const $push76=, 3 - i32.shl $push77=, $18, $pop76 - i32.add $20=, $pop78, $pop77 - i64.load $17=, 0($20) - i64.ctz $16=, $17 - i64.const $21=, 1 - i64.const $12=, 0 - i64.eq $19=, $17, $12 - i64.add $push79=, $16, $21 - i32.wrap/i64 $push80=, $pop79 - i32.select $8=, $19, $1, $pop80 - copy_local $22=, $12 - copy_local $14=, $1 - copy_local $11=, $1 - block .LBB18_55 - br_if $19, .LBB18_55 -.LBB18_52: # %for.body.i1814 - # Parent Loop BB18_51 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_54 - i64.shl $push81=, $21, $22 - i64.and $push82=, $pop81, $17 - i64.ne $push83=, $pop82, $12 - br_if $pop83, .LBB18_54 -# BB#53: # %for.inc.i1818 - # in Loop: Header=BB18_52 Depth=2 - i64.add $22=, $22, $21 - i32.add $14=, $14, $10 - i64.const $push84=, 64 - i64.lt_u $push85=, $22, $pop84 - br_if $pop85, .LBB18_52 -.LBB18_54: # %for.end.i1821 - # in Loop: Header=BB18_51 Depth=1 - i32.add $11=, $14, $10 -.LBB18_55: # %my_ffsll.exit1823 - # in Loop: Header=BB18_51 Depth=1 - i32.ne $push86=, $8, $11 - br_if $pop86, .LBB18_158 -# BB#56: # %if.end100 - # in Loop: Header=BB18_51 Depth=1 - i64.const $13=, 0 - block .LBB18_67 - i64.eq $push87=, $17, $13 - br_if $pop87, .LBB18_67 -# BB#57: # %land.lhs.true103 - # in Loop: Header=BB18_51 Depth=1 - i64.const $22=, 63 - copy_local $12=, $13 - i64.clz $push88=, $17 - i32.wrap/i64 $19=, $pop88 - i32.const $14=, 0 -.LBB18_58: # %for.body.i1902 - # Parent Loop BB18_51 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_60 - i64.const $push89=, 4294967295 - i64.and $push90=, $22, $pop89 - i64.shl $push91=, $21, $pop90 - i64.and $push92=, $pop91, $17 - i64.ne $push93=, $pop92, $13 - br_if $pop93, .LBB18_60 -# BB#59: # %for.inc.i1906 - # in Loop: Header=BB18_58 Depth=2 - i64.const $push94=, -1 - i64.add $22=, $22, $pop94 - i64.add $12=, $12, $21 - i32.add $14=, $14, $10 - i64.const $push95=, 64 - i64.lt_u $push96=, $12, $pop95 - br_if $pop96, .LBB18_58 -.LBB18_60: # %my_clzll.exit1909 - # in Loop: Header=BB18_51 Depth=1 - block .LBB18_66 - i32.ne $push97=, $19, $14 - br_if $pop97, .LBB18_66 -# BB#61: # %land.lhs.true113 - # in Loop: Header=BB18_51 Depth=1 - i64.const $12=, 0 - copy_local $22=, $12 - i32.wrap/i64 $19=, $16 - i32.const $14=, 0 -.LBB18_62: # %for.body.i1948 - # Parent Loop BB18_51 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_64 - i64.shl $push98=, $21, $22 - i64.and $push99=, $pop98, $17 - i64.ne $push100=, $pop99, $12 - br_if $pop100, .LBB18_64 -# BB#63: # %for.inc.i1952 - # in Loop: Header=BB18_62 Depth=2 - i64.add $22=, $22, $21 - i32.add $14=, $14, $10 - i64.const $push101=, 64 - i64.lt_u $push102=, $22, $pop101 - br_if $pop102, .LBB18_62 -.LBB18_64: # %my_ctzll.exit1955 - # in Loop: Header=BB18_51 Depth=1 - i32.eq $push103=, $19, $14 - br_if $pop103, .LBB18_67 -# BB#65: # %if.then119 - call abort@FUNCTION - unreachable -.LBB18_66: # %if.then109 - call abort@FUNCTION - unreachable -.LBB18_67: # %if.end120 - # in Loop: Header=BB18_51 Depth=1 - i32.call $19=, __builtin_clrsbll@FUNCTION, $17 - i64.load $17=, 0($20) - i64.const $16=, 63 - i64.shr_u $13=, $17, $16 - i64.const $22=, 62 - copy_local $12=, $21 - copy_local $14=, $10 -.LBB18_68: # %for.body.i2018 - # Parent Loop BB18_51 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_70 - i64.shr_u $push104=, $17, $22 - i64.and $push105=, $pop104, $21 - i64.ne $push106=, $pop105, $13 - br_if $pop106, .LBB18_70 -# BB#69: # %for.inc.i2022 - # in Loop: Header=BB18_68 Depth=2 - i32.const $push108=, 1 - i32.add $14=, $14, $pop108 - i64.const $push107=, 1 - i64.add $12=, $12, $pop107 - i64.const $push109=, -1 - i64.add $22=, $22, $pop109 - i64.const $push110=, 64 - i64.lt_u $push111=, $12, $pop110 - br_if $pop111, .LBB18_68 -.LBB18_70: # %my_clrsbll.exit2026 - # in Loop: Header=BB18_51 Depth=1 - i32.add $push112=, $14, $6 - i32.ne $push113=, $19, $pop112 - br_if $pop113, .LBB18_157 -# BB#71: # %if.end127 - # in Loop: Header=BB18_51 Depth=1 - i64.const $13=, 0 - i64.popcnt $2=, $17 - copy_local $22=, $13 - i32.const $14=, 0 -.LBB18_72: # %for.body.i2110 - # Parent Loop BB18_51 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_73 - i64.const $21=, 1 - i64.shl $push114=, $21, $22 - i64.and $push115=, $pop114, $17 - i64.ne $push116=, $pop115, $13 - i32.add $14=, $pop116, $14 - i64.add $22=, $22, $21 - i64.const $12=, 64 - i64.ne $push117=, $22, $12 - br_if $pop117, .LBB18_72 -.LBB18_73: # %my_popcountll.exit2112 - # in Loop: Header=BB18_51 Depth=1 - i64.const $13=, 0 - copy_local $22=, $13 - i32.const $19=, 0 - i32.wrap/i64 $push118=, $2 - i32.ne $push119=, $pop118, $14 - br_if $pop119, .LBB18_156 -.LBB18_74: # %for.body.i2196 - # Parent Loop BB18_51 Depth=1 - # => This Inner Loop Header: Depth=2 - loop .LBB18_75 - i64.shl $push120=, $21, $22 - i64.and $push121=, $pop120, $17 - i64.ne $push122=, $pop121, $13 - i32.add $19=, $pop122, $19 - i64.add $22=, $22, $21 - i64.ne $push123=, $22, $12 - br_if $pop123, .LBB18_74 -.LBB18_75: # %my_parityll.exit2199 - # in Loop: Header=BB18_51 Depth=1 - i32.const $20=, 1 - i32.xor $push124=, $19, $14 - i32.and $push125=, $pop124, $20 - br_if $pop125, .LBB18_155 -# BB#76: # %for.cond90 - # in Loop: Header=BB18_51 Depth=1 - i32.add $18=, $18, $20 - i32.le_u $push126=, $18, $9 - br_if $pop126, .LBB18_51 -.LBB18_77: # %if.end148 - i32.const $19=, 0 - block .LBB18_154 - i32.call $push127=, __builtin_clrsb@FUNCTION, $19 - i32.ne $push128=, $pop127, $3 - br_if $pop128, .LBB18_154 -# BB#78: # %my_clrsb.exit2770 - i32.call $10=, __builtin_clrsb@FUNCTION, $20 - i32.const $14=, 30 - block .LBB18_153 - i32.ne $push129=, $10, $14 - br_if $pop129, .LBB18_153 -# BB#79: # %if.end198 - block .LBB18_152 - i32.const $push130=, -2147483648 - i32.call $push131=, __builtin_clrsb@FUNCTION, $pop130 - br_if $pop131, .LBB18_152 -# BB#80: # %my_clrsb.exit2597 - block .LBB18_151 - i32.const $push132=, 1073741824 - i32.call $push133=, __builtin_clrsb@FUNCTION, $pop132 - br_if $pop133, .LBB18_151 -# BB#81: # %my_clrsb.exit2514 - block .LBB18_150 - i32.const $push134=, 65536 - i32.call $push135=, __builtin_clrsb@FUNCTION, $pop134 - i32.const $push136=, 14 - i32.ne $push137=, $pop135, $pop136 - br_if $pop137, .LBB18_150 -# BB#82: # %my_clrsb.exit2432 - i32.const $push138=, 32768 - i32.call $10=, __builtin_clrsb@FUNCTION, $pop138 - i32.const $1=, 15 - block .LBB18_149 - i32.ne $push139=, $10, $1 - br_if $pop139, .LBB18_149 -# BB#83: # %my_clrsb.exit2348 - block .LBB18_148 - i32.const $push140=, -1515870811 - i32.call $push141=, __builtin_clrsb@FUNCTION, $pop140 - br_if $pop141, .LBB18_148 -# BB#84: # %my_clrsb.exit2273 - block .LBB18_147 - i32.const $push142=, 1515870810 - i32.call $push143=, __builtin_clrsb@FUNCTION, $pop142 - br_if $pop143, .LBB18_147 -# BB#85: # %for.body.i2179 - block .LBB18_146 - i32.const $push144=, -889323520 - i32.call $push145=, __builtin_clrsb@FUNCTION, $pop144 - i32.ne $push146=, $pop145, $20 - br_if $pop146, .LBB18_146 -# BB#86: # %for.body.i2093 - block .LBB18_145 - i32.const $push147=, 13303296 - i32.call $push148=, __builtin_clrsb@FUNCTION, $pop147 - i32.const $push149=, 7 - i32.ne $push150=, $pop148, $pop149 - br_if $pop150, .LBB18_145 -# BB#87: # %for.body.i2004 - block .LBB18_144 - i32.const $push151=, 51966 - i32.call $push152=, __builtin_clrsb@FUNCTION, $pop151 - i32.ne $push153=, $pop152, $1 - br_if $pop153, .LBB18_144 -# BB#88: # %if.end423 - i32.call $18=, __builtin_clrsb@FUNCTION, $6 - copy_local $10=, $20 -.LBB18_89: # %for.body.i1935 - # =>This Inner Loop Header: Depth=1 - loop .LBB18_91 - i32.shr_u $push154=, $6, $14 - i32.and $push155=, $pop154, $20 - i32.const $push230=, 0 - i32.eq $push231=, $pop155, $pop230 - br_if $pop231, .LBB18_91 -# BB#90: # %for.inc.i1938 - # in Loop: Header=BB18_89 Depth=1 - i32.const $push156=, 1 - i32.add $10=, $10, $pop156 - i32.add $14=, $14, $6 - i32.lt_u $push157=, $10, $7 - br_if $pop157, .LBB18_89 -.LBB18_91: # %my_clrsb.exit1942 - block .LBB18_143 - i32.add $push158=, $10, $6 - i32.ne $push159=, $18, $pop158 - br_if $pop159, .LBB18_143 -# BB#92: # %if.end440 - i64.const $22=, 0 - i32.call $14=, __builtin_clrsbll@FUNCTION, $22 - i32.const $10=, 63 - block .LBB18_142 - i32.ne $push160=, $14, $10 - br_if $pop160, .LBB18_142 -.LBB18_93: # %for.body.i1844 - # =>This Inner Loop Header: Depth=1 - loop .LBB18_95 - i32.wrap/i64 $push161=, $16 - i32.const $push232=, 0 - i32.eq $push233=, $pop161, $pop232 - br_if $pop233, .LBB18_95 -# BB#94: # %for.inc.i1848 - # in Loop: Header=BB18_93 Depth=1 - i32.const $push162=, 1 - i32.add $19=, $19, $pop162 - i64.const $push163=, -1 - i64.add $16=, $16, $pop163 - i64.add $22=, $22, $21 - i64.lt_u $push164=, $22, $12 - br_if $pop164, .LBB18_93 -.LBB18_95: # %my_clzll.exit1851 - block .LBB18_141 - i32.ne $push165=, $19, $10 - br_if $pop165, .LBB18_141 -# BB#96: # %if.end465 - i32.call $19=, __builtin_clrsbll@FUNCTION, $21 -.LBB18_97: # %for.body.i1799 - # =>This Inner Loop Header: Depth=1 - loop .LBB18_99 - i64.const $22=, 63 - i32.const $14=, 62 - i64.eq $push166=, $21, $22 - br_if $pop166, .LBB18_99 -# BB#98: # %for.inc.i1803 - # in Loop: Header=BB18_97 Depth=1 - i64.const $push167=, 1 - i64.add $21=, $21, $pop167 - copy_local $14=, $10 - i64.lt_u $push168=, $21, $12 - br_if $pop168, .LBB18_97 -.LBB18_99: # %my_clrsbll.exit1807 - i64.const $21=, 0 - copy_local $17=, $21 - block .LBB18_140 - i32.ne $push169=, $19, $14 - br_if $pop169, .LBB18_140 -.LBB18_100: # %for.body.i1759 - # =>This Inner Loop Header: Depth=1 - block .LBB18_103 - loop .LBB18_102 - i64.eq $push170=, $17, $22 - br_if $pop170, .LBB18_103 -# BB#101: # %for.inc.i1763 - # in Loop: Header=BB18_100 Depth=1 - i64.const $push171=, 1 - i64.add $17=, $17, $pop171 - i64.lt_u $push172=, $17, $12 - br_if $pop172, .LBB18_100 -.LBB18_102: # %if.then481 - call abort@FUNCTION - unreachable -.LBB18_103: # %for.body.i1731 - # =>This Inner Loop Header: Depth=1 - block .LBB18_106 - loop .LBB18_105 - i64.eq $push173=, $21, $22 - br_if $pop173, .LBB18_106 -# BB#104: # %for.inc.i1735 - # in Loop: Header=BB18_103 Depth=1 - i64.const $push174=, 1 - i64.add $21=, $21, $pop174 - i64.lt_u $push175=, $21, $12 - br_if $pop175, .LBB18_103 -.LBB18_105: # %if.then489 - call abort@FUNCTION - unreachable -.LBB18_106: # %if.end490 - block .LBB18_139 - i64.const $push176=, -9223372036854775808 - i32.call $push177=, __builtin_clrsbll@FUNCTION, $pop176 - br_if $pop177, .LBB18_139 -# BB#107: # %for.body.i1665 - i64.const $16=, -1 - copy_local $21=, $16 - i32.const $14=, 1 -.LBB18_108: # %for.body.i1652 - # =>This Inner Loop Header: Depth=1 - loop .LBB18_109 - i64.const $13=, 1 - i64.add $21=, $21, $13 - i64.add $17=, $22, $16 - i32.wrap/i64 $10=, $22 - copy_local $22=, $17 - i32.ne $push178=, $10, $14 - br_if $pop178, .LBB18_108 -.LBB18_109: # %my_clzll.exit1659 - block .LBB18_138 - i32.wrap/i64 $push179=, $21 - i32.const $push180=, 62 - i32.ne $push181=, $pop179, $pop180 - br_if $pop181, .LBB18_138 -# BB#110: # %for.body.i1612 - block .LBB18_137 - i64.const $push182=, 2 - i32.call $push183=, __builtin_clrsbll@FUNCTION, $pop182 - i32.const $push184=, 61 - i32.ne $push185=, $pop183, $pop184 - br_if $pop185, .LBB18_137 -# BB#111: # %my_clrsbll.exit1525 - block .LBB18_136 - i64.const $push186=, 4611686018427387904 - i32.call $push187=, __builtin_clrsbll@FUNCTION, $pop186 - br_if $pop187, .LBB18_136 -# BB#112: # %for.body.i1425 - block .LBB18_135 - i64.const $push188=, 4294967296 - i32.call $push189=, __builtin_clrsbll@FUNCTION, $pop188 - i32.const $push190=, 30 - i32.ne $push191=, $pop189, $pop190 - br_if $pop191, .LBB18_135 -# BB#113: # %for.body.i1332 - block .LBB18_134 - i64.const $push192=, 2147483648 - i32.call $push193=, __builtin_clrsbll@FUNCTION, $pop192 - i32.ne $push194=, $pop193, $3 - br_if $pop194, .LBB18_134 -# BB#114: # %my_clrsbll.exit1245 - block .LBB18_133 - i64.const $push195=, -6510615555426900571 - i32.call $push196=, __builtin_clrsbll@FUNCTION, $pop195 - br_if $pop196, .LBB18_133 -# BB#115: # %my_clrsbll.exit1152 - block .LBB18_132 - i64.const $push197=, 6510615555426900570 - i32.call $push198=, __builtin_clrsbll@FUNCTION, $pop197 - br_if $pop198, .LBB18_132 -# BB#116: # %for.body.i1053 - block .LBB18_131 - i64.const $push199=, -3819392241693097984 - i32.call $push200=, __builtin_clrsbll@FUNCTION, $pop199 - i32.ne $push201=, $pop200, $14 - br_if $pop201, .LBB18_131 -# BB#117: # %for.body.i964 - block .LBB18_130 - i64.const $push202=, 223195676147712 - i32.call $push203=, __builtin_clrsbll@FUNCTION, $pop202 - i32.ne $push204=, $pop203, $1 - br_if $pop204, .LBB18_130 -# BB#118: # %for.body.i925 - i64.const $15=, -1 - i64.const $21=, 63 - copy_local $22=, $15 -.LBB18_119: # %for.body.i913 - # =>This Inner Loop Header: Depth=1 - loop .LBB18_120 - i64.const $push205=, 4294967295 - i64.and $2=, $21, $pop205 - i64.const $17=, 3405695742 - i64.add $22=, $22, $13 - i64.add $21=, $21, $15 - i64.const $16=, 0 - i64.shl $push206=, $13, $2 - i64.and $push207=, $pop206, $17 - i64.eq $push208=, $pop207, $16 - br_if $pop208, .LBB18_119 -.LBB18_120: # %my_clzll.exit - block .LBB18_129 - i32.wrap/i64 $push209=, $22 - i32.ne $push210=, $pop209, $7 - br_if $pop210, .LBB18_129 -# BB#121: # %for.body.i877 - block .LBB18_128 - i32.call $push211=, __builtin_clrsbll@FUNCTION, $17 - i32.ne $push212=, $pop211, $3 - br_if $pop212, .LBB18_128 -# BB#122: # %if.end740 - i64.const $17=, -1 - i32.call $7=, __builtin_clrsbll@FUNCTION, $17 - i64.const $21=, 62 - copy_local $22=, $13 -.LBB18_123: # %for.body.i812 - # =>This Inner Loop Header: Depth=1 - loop .LBB18_125 - i64.shr_u $push213=, $17, $21 - i64.and $push214=, $pop213, $13 - i64.eq $push215=, $pop214, $16 - br_if $pop215, .LBB18_125 -# BB#124: # %for.inc.i816 - # in Loop: Header=BB18_123 Depth=1 - i32.const $push217=, 1 - i32.add $14=, $14, $pop217 - i64.const $push216=, 1 - i64.add $22=, $22, $pop216 - i64.add $21=, $21, $17 - i64.lt_u $push218=, $22, $12 - br_if $pop218, .LBB18_123 -.LBB18_125: # %my_clrsbll.exit - block .LBB18_127 - i32.add $push219=, $14, $6 - i32.ne $push220=, $7, $pop219 - br_if $pop220, .LBB18_127 -# BB#126: # %if.end753 - i32.const $push221=, 0 - call exit@FUNCTION, $pop221 - unreachable -.LBB18_127: # %if.then744 - call abort@FUNCTION - unreachable -.LBB18_128: # %if.then719 - call abort@FUNCTION - unreachable -.LBB18_129: # %if.then710 - call abort@FUNCTION - unreachable -.LBB18_130: # %if.then694 - call abort@FUNCTION - unreachable -.LBB18_131: # %if.then669 - call abort@FUNCTION - unreachable -.LBB18_132: # %if.then644 - call abort@FUNCTION - unreachable -.LBB18_133: # %if.then619 - call abort@FUNCTION - unreachable -.LBB18_134: # %if.then594 - call abort@FUNCTION - unreachable -.LBB18_135: # %if.then569 - call abort@FUNCTION - unreachable -.LBB18_136: # %if.then544 - call abort@FUNCTION - unreachable -.LBB18_137: # %if.then519 - call abort@FUNCTION - unreachable -.LBB18_138: # %if.then510 - call abort@FUNCTION - unreachable -.LBB18_139: # %if.then494 - call abort@FUNCTION - unreachable -.LBB18_140: # %if.then469 - call abort@FUNCTION - unreachable -.LBB18_141: # %if.then460 - call abort@FUNCTION - unreachable -.LBB18_142: # %if.then444 - call abort@FUNCTION - unreachable -.LBB18_143: # %if.then427 - call abort@FUNCTION - unreachable -.LBB18_144: # %if.then402 - call abort@FUNCTION - unreachable -.LBB18_145: # %if.then377 - call abort@FUNCTION - unreachable -.LBB18_146: # %if.then352 - call abort@FUNCTION - unreachable -.LBB18_147: # %if.then327 - call abort@FUNCTION - unreachable -.LBB18_148: # %if.then302 - call abort@FUNCTION - unreachable -.LBB18_149: # %if.then277 - call abort@FUNCTION - unreachable -.LBB18_150: # %if.then252 - call abort@FUNCTION - unreachable -.LBB18_151: # %if.then227 - call abort@FUNCTION - unreachable -.LBB18_152: # %if.then202 - call abort@FUNCTION - unreachable -.LBB18_153: # %if.then177 - call abort@FUNCTION - unreachable -.LBB18_154: # %if.then152 - call abort@FUNCTION - unreachable -.LBB18_155: # %if.then140 - call abort@FUNCTION - unreachable -.LBB18_156: # %if.then133 - call abort@FUNCTION - unreachable -.LBB18_157: # %if.then126 - call abort@FUNCTION - unreachable -.LBB18_158: # %if.then99 - call abort@FUNCTION - unreachable -.LBB18_159: # %if.then85 - call abort@FUNCTION - unreachable -.LBB18_160: # %if.then79 - call abort@FUNCTION - unreachable -.LBB18_161: # %if.then73 - call abort@FUNCTION - unreachable -.LBB18_162: # %if.then48 - call abort@FUNCTION - unreachable -.LBB18_163: # %if.then37 - call abort@FUNCTION - unreachable -.LBB18_164: # %if.then31 - call abort@FUNCTION - unreachable -.LBB18_165: # %if.then25 - call abort@FUNCTION - unreachable -.LBB18_166: # %if.then - call abort@FUNCTION - unreachable -.Lfunc_end18: - .size main, .Lfunc_end18-main - - .hidden ints # @ints - .type ints,@object - .section .data.ints,"aw",@progbits - .globl ints - .align 4 -ints: - .int32 0 # 0x0 - .int32 1 # 0x1 - .int32 2147483648 # 0x80000000 - .int32 2 # 0x2 - .int32 1073741824 # 0x40000000 - .int32 65536 # 0x10000 - .int32 32768 # 0x8000 - .int32 2779096485 # 0xa5a5a5a5 - .int32 1515870810 # 0x5a5a5a5a - .int32 3405643776 # 0xcafe0000 - .int32 13303296 # 0xcafe00 - .int32 51966 # 0xcafe - .int32 4294967295 # 0xffffffff - .size ints, 52 - - .hidden longs # @longs - .type longs,@object - .section .data.longs,"aw",@progbits - .globl longs - .align 4 -longs: - .int32 0 # 0x0 - .int32 1 # 0x1 - .int32 2147483648 # 0x80000000 - .int32 2 # 0x2 - .int32 1073741824 # 0x40000000 - .int32 65536 # 0x10000 - .int32 32768 # 0x8000 - .int32 2779096485 # 0xa5a5a5a5 - .int32 1515870810 # 0x5a5a5a5a - .int32 3405643776 # 0xcafe0000 - .int32 13303296 # 0xcafe00 - .int32 51966 # 0xcafe - .int32 4294967295 # 0xffffffff - .size longs, 52 - - .hidden longlongs # @longlongs - .type longlongs,@object - .section .data.longlongs,"aw",@progbits - .globl longlongs - .align 4 -longlongs: - .int64 0 # 0x0 - .int64 1 # 0x1 - .int64 -9223372036854775808 # 0x8000000000000000 - .int64 2 # 0x2 - .int64 4611686018427387904 # 0x4000000000000000 - .int64 4294967296 # 0x100000000 - .int64 2147483648 # 0x80000000 - .int64 -6510615555426900571 # 0xa5a5a5a5a5a5a5a5 - .int64 6510615555426900570 # 0x5a5a5a5a5a5a5a5a - .int64 -3819392241693097984 # 0xcafecafe00000000 - .int64 223195676147712 # 0xcafecafe0000 - .int64 3405695742 # 0xcafecafe - .int64 -1 # 0xffffffffffffffff - .size longlongs, 104 - - - .ident "clang version 3.8.0 " - .section ".note.GNU-stack","",@progbits diff --git a/test/torture-s/builtin-constant.c.s b/test/torture-s/builtin-constant.c.s index eb421adcf..744aa2046 100644 --- a/test/torture-s/builtin-constant.c.s +++ b/test/torture-s/builtin-constant.c.s @@ -7,14 +7,15 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.load8_u $push0=, 0($0) i32.const $push1=, 48 i32.eq $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/builtin-prefetch-4.c.s b/test/torture-s/builtin-prefetch-4.c.s index f7c39c34e..ed929d762 100644 --- a/test/torture-s/builtin-prefetch-4.c.s +++ b/test/torture-s/builtin-prefetch-4.c.s @@ -395,133 +395,145 @@ main: # @main # BB#0: # %entry i32.const $1=, 0 i32.load $0=, ptr($1) - block .LBB24_24 + block i32.ne $push4=, $0, $0 - br_if $pop4, .LBB24_24 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end4 i32.load $0=, arrindex($1) - block .LBB24_23 + block i32.ne $push5=, $0, $0 - br_if $pop5, .LBB24_23 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %if.end12 i32.const $2=, 4 i32.load $push6=, ptr($1) i32.add $push0=, $pop6, $2 i32.store $discard=, ptr($1), $pop0 i32.const $0=, 1 - block .LBB24_22 + block i32.const $push34=, 0 i32.eq $push35=, $0, $pop34 - br_if $pop35, .LBB24_22 + br_if $pop35, 0 # 0: down to label2 # BB#3: # %if.end20 - block .LBB24_21 + block i32.load $push1=, ptr($1) i32.add $push7=, $pop1, $2 i32.store $discard=, ptr($1), $pop7 i32.const $push36=, 0 i32.eq $push37=, $0, $pop36 - br_if $pop37, .LBB24_21 + br_if $pop37, 0 # 0: down to label3 # BB#4: # %if.end28 i32.const $2=, -4 - block .LBB24_20 + block i32.load $push8=, ptr($1) i32.add $push2=, $pop8, $2 i32.store $discard=, ptr($1), $pop2 i32.const $push38=, 0 i32.eq $push39=, $0, $pop38 - br_if $pop39, .LBB24_20 + br_if $pop39, 0 # 0: down to label4 # BB#5: # %if.end36 - block .LBB24_19 + block i32.load $push3=, ptr($1) i32.add $push9=, $pop3, $2 i32.store $discard=, ptr($1), $pop9 i32.const $push40=, 0 i32.eq $push41=, $0, $pop40 - br_if $pop41, .LBB24_19 + br_if $pop41, 0 # 0: down to label5 # BB#6: # %if.end44 - block .LBB24_18 + block i32.load $push10=, arrindex($1) i32.add $push11=, $pop10, $0 i32.store $2=, arrindex($1), $pop11 i32.load $push12=, arrindex($1) i32.ne $push13=, $pop12, $2 - br_if $pop13, .LBB24_18 + br_if $pop13, 0 # 0: down to label6 # BB#7: # %if.end52 - block .LBB24_17 + block i32.load $push14=, arrindex($1) i32.add $push15=, $pop14, $0 i32.store $2=, arrindex($1), $pop15 i32.load $push16=, arrindex($1) i32.ne $push17=, $pop16, $2 - br_if $pop17, .LBB24_17 + br_if $pop17, 0 # 0: down to label7 # BB#8: # %if.end64 i32.const $2=, -1 - block .LBB24_16 + block i32.load $push18=, arrindex($1) i32.add $push19=, $pop18, $2 i32.store $3=, arrindex($1), $pop19 i32.load $push20=, arrindex($1) i32.ne $push21=, $pop20, $3 - br_if $pop21, .LBB24_16 + br_if $pop21, 0 # 0: down to label8 # BB#9: # %if.end72 - block .LBB24_15 + block i32.load $push22=, arrindex($1) i32.add $push23=, $pop22, $2 i32.store $2=, arrindex($1), $pop23 i32.load $push24=, arrindex($1) i32.ne $push25=, $pop24, $2 - br_if $pop25, .LBB24_15 + br_if $pop25, 0 # 0: down to label9 # BB#10: # %if.end76 - block .LBB24_14 + block i32.load $push26=, getptrcnt($1) i32.add $push27=, $pop26, $0 i32.store $push28=, getptrcnt($1), $pop27 i32.ne $push29=, $pop28, $0 - br_if $pop29, .LBB24_14 + br_if $pop29, 0 # 0: down to label10 # BB#11: # %if.end80 - block .LBB24_13 + block i32.load $push30=, getintcnt($1) i32.add $push31=, $pop30, $0 i32.store $push32=, getintcnt($1), $pop31 i32.ne $push33=, $pop32, $0 - br_if $pop33, .LBB24_13 + br_if $pop33, 0 # 0: down to label11 # BB#12: # %if.end84 call exit@FUNCTION, $1 unreachable .LBB24_13: # %if.then83 + end_block # label11: call abort@FUNCTION unreachable .LBB24_14: # %if.then79 + end_block # label10: call abort@FUNCTION unreachable .LBB24_15: # %if.then75 + end_block # label9: call abort@FUNCTION unreachable .LBB24_16: # %if.then67 + end_block # label8: call abort@FUNCTION unreachable .LBB24_17: # %if.then59 + end_block # label7: call abort@FUNCTION unreachable .LBB24_18: # %if.then51 + end_block # label6: call abort@FUNCTION unreachable .LBB24_19: # %if.then43 + end_block # label5: call abort@FUNCTION unreachable .LBB24_20: # %if.then35 + end_block # label4: call abort@FUNCTION unreachable .LBB24_21: # %if.then27 + end_block # label3: call abort@FUNCTION unreachable .LBB24_22: # %if.then19 + end_block # label2: call abort@FUNCTION unreachable .LBB24_23: # %if.then11 + end_block # label1: call abort@FUNCTION unreachable .LBB24_24: # %if.then3 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end24: diff --git a/test/torture-s/builtin-prefetch-6.c.s b/test/torture-s/builtin-prefetch-6.c.s index e4384ea07..2396d4668 100644 --- a/test/torture-s/builtin-prefetch-6.c.s +++ b/test/torture-s/builtin-prefetch-6.c.s @@ -78,11 +78,12 @@ prefetch_for_read: # @prefetch_for_read i32.const $0=, -260 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label0: i32.const $push0=, 4 i32.add $0=, $0, $pop0 - br_if $0, .LBB1_1 -.LBB1_2: # %for.end + br_if $0, 0 # 0: up to label0 +# BB#2: # %for.end + end_loop # label1: return .Lfunc_end1: .size prefetch_for_read, .Lfunc_end1-prefetch_for_read @@ -97,11 +98,12 @@ prefetch_for_write: # @prefetch_for_write i32.const $0=, -260 .LBB2_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label2: i32.const $push0=, 4 i32.add $0=, $0, $pop0 - br_if $0, .LBB2_1 -.LBB2_2: # %for.end + br_if $0, 0 # 0: up to label2 +# BB#2: # %for.end + end_loop # label3: return .Lfunc_end2: .size prefetch_for_write, .Lfunc_end2-prefetch_for_write @@ -175,19 +177,21 @@ main: # @main copy_local $2=, $0 .LBB3_1: # %for.body.i5.for.body.i5_crit_edge # =>This Inner Loop Header: Depth=1 - loop .LBB3_2 + loop # label4: i32.add $2=, $2, $0 i32.const $3=, -260 i32.const $push28=, 260 i32.ne $push29=, $2, $pop28 - br_if $pop29, .LBB3_1 + br_if $pop29, 0 # 0: up to label4 .LBB3_2: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB3_3 + end_loop # label5: + loop # label6: i32.const $push30=, 4 i32.add $3=, $3, $pop30 - br_if $3, .LBB3_2 -.LBB3_3: # %prefetch_for_write.exit + br_if $3, 0 # 0: up to label6 +# BB#3: # %prefetch_for_write.exit + end_loop # label7: call exit@FUNCTION, $1 unreachable .Lfunc_end3: diff --git a/test/torture-s/cbrt.c.s b/test/torture-s/cbrt.c.s index fae7f3ceb..047b6ab22 100644 --- a/test/torture-s/cbrt.c.s +++ b/test/torture-s/cbrt.c.s @@ -25,31 +25,32 @@ cbrtl: # @cbrtl i32.const $push2=, -2147483648 i32.and $2=, $4, $pop2 i32.xor $4=, $2, $4 - block .LBB0_7 - block .LBB0_2 + block + block i32.const $push3=, 2146435072 i32.lt_s $push4=, $4, $pop3 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: down to label1 # BB#1: # %if.then f64.add $0=, $0, $0 - br .LBB0_7 + br 1 # 1: down to label0 .LBB0_2: # %if.end + end_block # label1: i32.wrap/i64 $push5=, $1 i32.or $push6=, $pop5, $4 i32.const $push62=, 0 i32.eq $push63=, $pop6, $pop62 - br_if $pop63, .LBB0_7 + br_if $pop63, 0 # 0: down to label0 # BB#3: # %if.end13 i32.const $5=, 4 i32.const $12=, 0 i32.add $12=, $15, $12 - block .LBB0_6 - block .LBB0_5 + block + block i32.or $push7=, $12, $5 i32.store $discard=, 0($pop7), $4 i32.const $push8=, 1048575 i32.gt_s $push9=, $4, $pop8 - br_if $pop9, .LBB0_5 + br_if $pop9, 0 # 0: down to label3 # BB#4: # %if.then18 i32.const $13=, 8 i32.add $13=, $15, $13 @@ -67,8 +68,9 @@ cbrtl: # @cbrtl i32.const $push23=, 696219795 i32.add $push24=, $pop22, $pop23 i32.store $discard=, 0($4), $pop24 - br .LBB0_6 + br 1 # 1: down to label2 .LBB0_5: # %if.else + end_block # label3: i32.const $push10=, 3 i32.div_s $4=, $4, $pop10 i32.const $15=, 8 @@ -78,6 +80,7 @@ cbrtl: # @cbrtl i32.add $push12=, $4, $pop11 i32.store $discard=, 0($pop13), $pop12 .LBB0_6: # %if.end31 + end_block # label2: f64.load $8=, 8($15) f64.load $6=, 0($15) f64.mul $push25=, $8, $8 @@ -130,6 +133,7 @@ cbrtl: # @cbrtl f64.mul $push61=, $pop59, $pop60 f64.add $0=, $8, $pop61 .LBB0_7: # %cleanup + end_block # label0: i32.const $11=, 16 i32.add $15=, $15, $11 i32.const $11=, __stack_pointer diff --git a/test/torture-s/cmpdi-1.c.s b/test/torture-s/cmpdi-1.c.s index 2bdf232b7..ea2b4383f 100644 --- a/test/torture-s/cmpdi-1.c.s +++ b/test/torture-s/cmpdi-1.c.s @@ -174,17 +174,17 @@ main: # @main .LBB10_1: # %for.body # =>This Loop Header: Depth=1 # Child Loop BB10_2 Depth 2 - block .LBB10_24 - block .LBB10_23 - block .LBB10_22 - block .LBB10_21 - block .LBB10_20 - block .LBB10_19 - block .LBB10_18 - block .LBB10_17 - block .LBB10_16 - block .LBB10_15 - loop .LBB10_14 + block + block + block + block + block + block + block + block + block + block + loop # label10: i32.const $2=, args i32.const $push0=, 3 i32.shl $push1=, $0, $pop0 @@ -194,7 +194,7 @@ main: # @main .LBB10_2: # %for.body3 # Parent Loop BB10_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB10_13 + loop # label12: i64.load $5=, 0($2) i64.eq $10=, $1, $5 i32.const $7=, 140 @@ -202,7 +202,7 @@ main: # @main i32.select $push3=, $10, $8, $7 i32.load $push4=, 0($4) i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB10_24 + br_if $pop5, 13 # 13: down to label0 # BB#3: # %if.end # in Loop: Header=BB10_2 Depth=2 i32.select $push6=, $10, $7, $8 @@ -210,7 +210,7 @@ main: # @main i32.add $push8=, $4, $pop7 i32.load $push9=, 0($pop8) i32.ne $push10=, $pop6, $pop9 - br_if $pop10, .LBB10_23 + br_if $pop10, 12 # 12: down to label1 # BB#4: # %if.end10 # in Loop: Header=BB10_2 Depth=2 i32.const $10=, 8 @@ -219,7 +219,7 @@ main: # @main i32.add $push12=, $4, $10 i32.load $push13=, 0($pop12) i32.ne $push14=, $pop11, $pop13 - br_if $pop14, .LBB10_22 + br_if $pop14, 11 # 11: down to label2 # BB#5: # %if.end15 # in Loop: Header=BB10_2 Depth=2 i32.select $push15=, $9, $7, $8 @@ -227,7 +227,7 @@ main: # @main i32.add $push17=, $4, $pop16 i32.load $push18=, 0($pop17) i32.ne $push19=, $pop15, $pop18 - br_if $pop19, .LBB10_21 + br_if $pop19, 10 # 10: down to label3 # BB#6: # %if.end20 # in Loop: Header=BB10_2 Depth=2 i64.gt_s $9=, $1, $5 @@ -236,7 +236,7 @@ main: # @main i32.add $push22=, $4, $pop21 i32.load $push23=, 0($pop22) i32.ne $push24=, $pop20, $pop23 - br_if $pop24, .LBB10_20 + br_if $pop24, 9 # 9: down to label4 # BB#7: # %if.end25 # in Loop: Header=BB10_2 Depth=2 i32.select $push25=, $9, $7, $8 @@ -244,7 +244,7 @@ main: # @main i32.add $push27=, $4, $pop26 i32.load $push28=, 0($pop27) i32.ne $push29=, $pop25, $pop28 - br_if $pop29, .LBB10_19 + br_if $pop29, 8 # 8: down to label5 # BB#8: # %if.end30 # in Loop: Header=BB10_2 Depth=2 i64.lt_u $9=, $1, $5 @@ -253,7 +253,7 @@ main: # @main i32.add $push32=, $4, $pop31 i32.load $push33=, 0($pop32) i32.ne $push34=, $pop30, $pop33 - br_if $pop34, .LBB10_18 + br_if $pop34, 7 # 7: down to label6 # BB#9: # %if.end35 # in Loop: Header=BB10_2 Depth=2 i32.select $push35=, $9, $7, $8 @@ -261,7 +261,7 @@ main: # @main i32.add $push37=, $4, $pop36 i32.load $push38=, 0($pop37) i32.ne $push39=, $pop35, $pop38 - br_if $pop39, .LBB10_17 + br_if $pop39, 6 # 6: down to label7 # BB#10: # %if.end40 # in Loop: Header=BB10_2 Depth=2 i64.gt_u $9=, $1, $5 @@ -270,7 +270,7 @@ main: # @main i32.add $push42=, $4, $pop41 i32.load $push43=, 0($pop42) i32.ne $push44=, $pop40, $pop43 - br_if $pop44, .LBB10_16 + br_if $pop44, 5 # 5: down to label8 # BB#11: # %if.end45 # in Loop: Header=BB10_2 Depth=2 i32.select $push45=, $9, $7, $8 @@ -278,7 +278,7 @@ main: # @main i32.add $push47=, $4, $pop46 i32.load $push48=, 0($pop47) i32.ne $push49=, $pop45, $pop48 - br_if $pop49, .LBB10_15 + br_if $pop49, 4 # 4: down to label9 # BB#12: # %if.end50 # in Loop: Header=BB10_2 Depth=2 i32.const $push50=, 40 @@ -287,44 +287,56 @@ main: # @main i32.add $3=, $3, $7 i32.add $2=, $2, $10 i32.lt_s $push51=, $3, $10 - br_if $pop51, .LBB10_2 -.LBB10_13: # %for.end + br_if $pop51, 0 # 0: up to label12 +# BB#13: # %for.end # in Loop: Header=BB10_1 Depth=1 + end_loop # label13: i32.add $0=, $0, $7 i32.lt_s $push52=, $0, $10 - br_if $pop52, .LBB10_1 -.LBB10_14: # %for.end53 + br_if $pop52, 0 # 0: up to label10 +# BB#14: # %for.end53 + end_loop # label11: i32.const $push53=, 0 call exit@FUNCTION, $pop53 unreachable .LBB10_15: # %if.then49 + end_block # label9: call abort@FUNCTION unreachable .LBB10_16: # %if.then44 + end_block # label8: call abort@FUNCTION unreachable .LBB10_17: # %if.then39 + end_block # label7: call abort@FUNCTION unreachable .LBB10_18: # %if.then34 + end_block # label6: call abort@FUNCTION unreachable .LBB10_19: # %if.then29 + end_block # label5: call abort@FUNCTION unreachable .LBB10_20: # %if.then24 + end_block # label4: call abort@FUNCTION unreachable .LBB10_21: # %if.then19 + end_block # label3: call abort@FUNCTION unreachable .LBB10_22: # %if.then14 + end_block # label2: call abort@FUNCTION unreachable .LBB10_23: # %if.then9 + end_block # label1: call abort@FUNCTION unreachable .LBB10_24: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end10: diff --git a/test/torture-s/cmpsf-1.c.s b/test/torture-s/cmpsf-1.c.s index 23d8cf87e..7b977b190 100644 --- a/test/torture-s/cmpsf-1.c.s +++ b/test/torture-s/cmpsf-1.c.s @@ -118,13 +118,13 @@ main: # @main .LBB6_1: # %for.body # =>This Loop Header: Depth=1 # Child Loop BB6_2 Depth 2 - block .LBB6_16 - block .LBB6_15 - block .LBB6_14 - block .LBB6_13 - block .LBB6_12 - block .LBB6_11 - loop .LBB6_10 + block + block + block + block + block + block + loop # label6: i32.const $2=, args i32.const $push0=, 2 i32.shl $push1=, $0, $pop0 @@ -134,7 +134,7 @@ main: # @main .LBB6_2: # %for.body3 # Parent Loop BB6_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB6_9 + loop # label8: f32.load $5=, 0($2) i32.const $7=, 140 i32.const $8=, 13 @@ -142,7 +142,7 @@ main: # @main i32.select $push4=, $pop3, $8, $7 i32.load $push5=, 0($4) i32.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB6_16 + br_if $pop6, 9 # 9: down to label0 # BB#3: # %if.end # in Loop: Header=BB6_2 Depth=2 i32.const $9=, 4 @@ -151,7 +151,7 @@ main: # @main i32.add $push9=, $4, $9 i32.load $push10=, 0($pop9) i32.ne $push11=, $pop8, $pop10 - br_if $pop11, .LBB6_15 + br_if $pop11, 8 # 8: down to label1 # BB#4: # %if.end10 # in Loop: Header=BB6_2 Depth=2 i32.const $11=, 8 @@ -160,7 +160,7 @@ main: # @main i32.add $push13=, $4, $11 i32.load $push14=, 0($pop13) i32.ne $push15=, $pop12, $pop14 - br_if $pop15, .LBB6_14 + br_if $pop15, 7 # 7: down to label2 # BB#5: # %if.end15 # in Loop: Header=BB6_2 Depth=2 f32.ne $push17=, $1, $1 @@ -172,7 +172,7 @@ main: # @main i32.add $push21=, $4, $pop20 i32.load $push22=, 0($pop21) i32.ne $push23=, $pop19, $pop22 - br_if $pop23, .LBB6_13 + br_if $pop23, 6 # 6: down to label3 # BB#6: # %if.end20 # in Loop: Header=BB6_2 Depth=2 f32.gt $10=, $1, $5 @@ -181,7 +181,7 @@ main: # @main i32.add $push26=, $4, $pop25 i32.load $push27=, 0($pop26) i32.ne $push28=, $pop24, $pop27 - br_if $pop28, .LBB6_12 + br_if $pop28, 5 # 5: down to label4 # BB#7: # %if.end25 # in Loop: Header=BB6_2 Depth=2 i32.or $push29=, $10, $12 @@ -190,7 +190,7 @@ main: # @main i32.add $push32=, $4, $pop31 i32.load $push33=, 0($pop32) i32.ne $push34=, $pop30, $pop33 - br_if $pop34, .LBB6_11 + br_if $pop34, 4 # 4: down to label5 # BB#8: # %if.end30 # in Loop: Header=BB6_2 Depth=2 i32.const $push35=, 24 @@ -199,32 +199,40 @@ main: # @main i32.const $7=, 1 i32.add $3=, $3, $7 i32.lt_s $push36=, $3, $11 - br_if $pop36, .LBB6_2 -.LBB6_9: # %for.end + br_if $pop36, 0 # 0: up to label8 +# BB#9: # %for.end # in Loop: Header=BB6_1 Depth=1 + end_loop # label9: i32.add $0=, $0, $7 i32.lt_s $push37=, $0, $11 - br_if $pop37, .LBB6_1 -.LBB6_10: # %for.end33 + br_if $pop37, 0 # 0: up to label6 +# BB#10: # %for.end33 + end_loop # label7: i32.const $push38=, 0 call exit@FUNCTION, $pop38 unreachable .LBB6_11: # %if.then29 + end_block # label5: call abort@FUNCTION unreachable .LBB6_12: # %if.then24 + end_block # label4: call abort@FUNCTION unreachable .LBB6_13: # %if.then19 + end_block # label3: call abort@FUNCTION unreachable .LBB6_14: # %if.then14 + end_block # label2: call abort@FUNCTION unreachable .LBB6_15: # %if.then9 + end_block # label1: call abort@FUNCTION unreachable .LBB6_16: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end6: diff --git a/test/torture-s/cmpsi-1.c.s b/test/torture-s/cmpsi-1.c.s index 6762ca989..42242cfbd 100644 --- a/test/torture-s/cmpsi-1.c.s +++ b/test/torture-s/cmpsi-1.c.s @@ -9,13 +9,14 @@ f1: # @f1 .result i32 # BB#0: # %entry i32.sub $1=, $0, $1 - block .LBB0_2 + block i32.const $push0=, 0 i32.ge_s $push1=, $1, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end3 return $1 .LBB0_2: # %if.then2 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -30,13 +31,14 @@ f2: # @f2 .result i32 # BB#0: # %entry i32.sub $1=, $0, $1 - block .LBB1_2 + block i32.const $push0=, 0 i32.ge_s $push1=, $1, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %if.end3 return $1 .LBB1_2: # %if.then2 + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/cmpsi-2.c.s b/test/torture-s/cmpsi-2.c.s index 48e305a30..b6d45bd7d 100644 --- a/test/torture-s/cmpsi-2.c.s +++ b/test/torture-s/cmpsi-2.c.s @@ -174,17 +174,17 @@ main: # @main .LBB10_1: # %for.body # =>This Loop Header: Depth=1 # Child Loop BB10_2 Depth 2 - block .LBB10_24 - block .LBB10_23 - block .LBB10_22 - block .LBB10_21 - block .LBB10_20 - block .LBB10_19 - block .LBB10_18 - block .LBB10_17 - block .LBB10_16 - block .LBB10_15 - loop .LBB10_14 + block + block + block + block + block + block + block + block + block + block + loop # label10: i32.const $2=, args i32.const $push0=, 2 i32.shl $push1=, $0, $pop0 @@ -194,7 +194,7 @@ main: # @main .LBB10_2: # %for.body3 # Parent Loop BB10_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB10_13 + loop # label12: i32.load $5=, 0($2) i32.eq $11=, $1, $5 i32.const $7=, 140 @@ -202,7 +202,7 @@ main: # @main i32.select $push3=, $11, $8, $7 i32.load $push4=, 0($4) i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB10_24 + br_if $pop5, 13 # 13: down to label0 # BB#3: # %if.end # in Loop: Header=BB10_2 Depth=2 i32.const $9=, 4 @@ -210,7 +210,7 @@ main: # @main i32.add $push7=, $4, $9 i32.load $push8=, 0($pop7) i32.ne $push9=, $pop6, $pop8 - br_if $pop9, .LBB10_23 + br_if $pop9, 12 # 12: down to label1 # BB#4: # %if.end10 # in Loop: Header=BB10_2 Depth=2 i32.const $11=, 8 @@ -219,7 +219,7 @@ main: # @main i32.add $push11=, $4, $11 i32.load $push12=, 0($pop11) i32.ne $push13=, $pop10, $pop12 - br_if $pop13, .LBB10_22 + br_if $pop13, 11 # 11: down to label2 # BB#5: # %if.end15 # in Loop: Header=BB10_2 Depth=2 i32.select $push14=, $10, $7, $8 @@ -227,7 +227,7 @@ main: # @main i32.add $push16=, $4, $pop15 i32.load $push17=, 0($pop16) i32.ne $push18=, $pop14, $pop17 - br_if $pop18, .LBB10_21 + br_if $pop18, 10 # 10: down to label3 # BB#6: # %if.end20 # in Loop: Header=BB10_2 Depth=2 i32.gt_s $10=, $1, $5 @@ -236,7 +236,7 @@ main: # @main i32.add $push21=, $4, $pop20 i32.load $push22=, 0($pop21) i32.ne $push23=, $pop19, $pop22 - br_if $pop23, .LBB10_20 + br_if $pop23, 9 # 9: down to label4 # BB#7: # %if.end25 # in Loop: Header=BB10_2 Depth=2 i32.select $push24=, $10, $7, $8 @@ -244,7 +244,7 @@ main: # @main i32.add $push26=, $4, $pop25 i32.load $push27=, 0($pop26) i32.ne $push28=, $pop24, $pop27 - br_if $pop28, .LBB10_19 + br_if $pop28, 8 # 8: down to label5 # BB#8: # %if.end30 # in Loop: Header=BB10_2 Depth=2 i32.lt_u $10=, $1, $5 @@ -253,7 +253,7 @@ main: # @main i32.add $push31=, $4, $pop30 i32.load $push32=, 0($pop31) i32.ne $push33=, $pop29, $pop32 - br_if $pop33, .LBB10_18 + br_if $pop33, 7 # 7: down to label6 # BB#9: # %if.end35 # in Loop: Header=BB10_2 Depth=2 i32.select $push34=, $10, $7, $8 @@ -261,7 +261,7 @@ main: # @main i32.add $push36=, $4, $pop35 i32.load $push37=, 0($pop36) i32.ne $push38=, $pop34, $pop37 - br_if $pop38, .LBB10_17 + br_if $pop38, 6 # 6: down to label7 # BB#10: # %if.end40 # in Loop: Header=BB10_2 Depth=2 i32.gt_u $5=, $1, $5 @@ -270,7 +270,7 @@ main: # @main i32.add $push41=, $4, $pop40 i32.load $push42=, 0($pop41) i32.ne $push43=, $pop39, $pop42 - br_if $pop43, .LBB10_16 + br_if $pop43, 5 # 5: down to label8 # BB#11: # %if.end45 # in Loop: Header=BB10_2 Depth=2 i32.select $push44=, $5, $7, $8 @@ -278,7 +278,7 @@ main: # @main i32.add $push46=, $4, $pop45 i32.load $push47=, 0($pop46) i32.ne $push48=, $pop44, $pop47 - br_if $pop48, .LBB10_15 + br_if $pop48, 4 # 4: down to label9 # BB#12: # %if.end50 # in Loop: Header=BB10_2 Depth=2 i32.const $push49=, 40 @@ -287,44 +287,56 @@ main: # @main i32.const $7=, 1 i32.add $3=, $3, $7 i32.lt_s $push50=, $3, $11 - br_if $pop50, .LBB10_2 -.LBB10_13: # %for.end + br_if $pop50, 0 # 0: up to label12 +# BB#13: # %for.end # in Loop: Header=BB10_1 Depth=1 + end_loop # label13: i32.add $0=, $0, $7 i32.lt_s $push51=, $0, $11 - br_if $pop51, .LBB10_1 -.LBB10_14: # %for.end53 + br_if $pop51, 0 # 0: up to label10 +# BB#14: # %for.end53 + end_loop # label11: i32.const $push52=, 0 call exit@FUNCTION, $pop52 unreachable .LBB10_15: # %if.then49 + end_block # label9: call abort@FUNCTION unreachable .LBB10_16: # %if.then44 + end_block # label8: call abort@FUNCTION unreachable .LBB10_17: # %if.then39 + end_block # label7: call abort@FUNCTION unreachable .LBB10_18: # %if.then34 + end_block # label6: call abort@FUNCTION unreachable .LBB10_19: # %if.then29 + end_block # label5: call abort@FUNCTION unreachable .LBB10_20: # %if.then24 + end_block # label4: call abort@FUNCTION unreachable .LBB10_21: # %if.then19 + end_block # label3: call abort@FUNCTION unreachable .LBB10_22: # %if.then14 + end_block # label2: call abort@FUNCTION unreachable .LBB10_23: # %if.then9 + end_block # label1: call abort@FUNCTION unreachable .LBB10_24: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end10: diff --git a/test/torture-s/compare-1.c.s b/test/torture-s/compare-1.c.s index 1303ff8df..91277dea1 100644 --- a/test/torture-s/compare-1.c.s +++ b/test/torture-s/compare-1.c.s @@ -9,77 +9,89 @@ ieq: # @ieq .result i32 # BB#0: # %entry i32.ne $1=, $0, $1 - block .LBB0_20 - block .LBB0_4 - block .LBB0_3 + block + block + block i32.const $push0=, 0 i32.eq $push1=, $1, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label2 # BB#1: # %if.else i32.const $push2=, 0 i32.eq $push3=, $2, $pop2 - br_if $pop3, .LBB0_4 + br_if $pop3, 1 # 1: down to label1 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB0_3: # %if.then + end_block # label2: i32.const $push4=, 0 i32.eq $push5=, $2, $pop4 - br_if $pop5, .LBB0_20 + br_if $pop5, 1 # 1: down to label0 .LBB0_4: # %if.end6 - block .LBB0_19 - block .LBB0_8 - block .LBB0_7 - br_if $1, .LBB0_7 + end_block # label1: + block + block + block + br_if $1, 0 # 0: down to label5 # BB#5: # %if.then10 - br_if $2, .LBB0_8 + br_if $2, 1 # 1: down to label4 # BB#6: # %if.then12 call abort@FUNCTION unreachable .LBB0_7: # %if.else14 - br_if $2, .LBB0_19 + end_block # label5: + br_if $2, 1 # 1: down to label3 .LBB0_8: # %if.end18 - block .LBB0_18 - block .LBB0_12 - block .LBB0_11 + end_block # label4: + block + block + block i32.const $push6=, 0 i32.eq $push7=, $1, $pop6 - br_if $pop7, .LBB0_11 + br_if $pop7, 0 # 0: down to label8 # BB#9: # %if.else26 i32.const $push8=, 0 i32.eq $push9=, $2, $pop8 - br_if $pop9, .LBB0_12 + br_if $pop9, 1 # 1: down to label7 # BB#10: # %if.then28 call abort@FUNCTION unreachable .LBB0_11: # %if.then22 + end_block # label8: i32.const $push10=, 0 i32.eq $push11=, $2, $pop10 - br_if $pop11, .LBB0_18 + br_if $pop11, 1 # 1: down to label6 .LBB0_12: # %if.end30 - block .LBB0_17 - block .LBB0_16 - block .LBB0_15 - br_if $1, .LBB0_15 + end_block # label7: + block + block + block + br_if $1, 0 # 0: down to label11 # BB#13: # %if.then34 - br_if $2, .LBB0_16 + br_if $2, 1 # 1: down to label10 # BB#14: # %if.then36 call abort@FUNCTION unreachable .LBB0_15: # %if.else38 - br_if $2, .LBB0_17 + end_block # label11: + br_if $2, 1 # 1: down to label9 .LBB0_16: # %if.end42 + end_block # label10: return $2 .LBB0_17: # %if.then40 + end_block # label9: call abort@FUNCTION unreachable .LBB0_18: # %if.then24 + end_block # label6: call abort@FUNCTION unreachable .LBB0_19: # %if.then16 + end_block # label3: call abort@FUNCTION unreachable .LBB0_20: # %if.then2 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -93,25 +105,28 @@ ine: # @ine .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB1_5 - block .LBB1_4 - block .LBB1_3 + block + block + block i32.ne $push0=, $0, $1 - br_if $pop0, .LBB1_3 + br_if $pop0, 0 # 0: down to label14 # BB#1: # %if.else i32.const $push1=, 0 i32.eq $push2=, $2, $pop1 - br_if $pop2, .LBB1_4 + br_if $pop2, 1 # 1: down to label13 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB1_3: # %if.then + end_block # label14: i32.const $push3=, 0 i32.eq $push4=, $2, $pop3 - br_if $pop4, .LBB1_5 + br_if $pop4, 1 # 1: down to label12 .LBB1_4: # %if.end6 + end_block # label13: return $2 .LBB1_5: # %if.then2 + end_block # label12: call abort@FUNCTION unreachable .Lfunc_end1: @@ -125,21 +140,24 @@ ilt: # @ilt .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB2_5 - block .LBB2_4 - block .LBB2_3 + block + block + block i32.ge_s $push0=, $0, $1 - br_if $pop0, .LBB2_3 + br_if $pop0, 0 # 0: down to label17 # BB#1: # %if.then - br_if $2, .LBB2_4 + br_if $2, 1 # 1: down to label16 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB2_3: # %if.else - br_if $2, .LBB2_5 + end_block # label17: + br_if $2, 1 # 1: down to label15 .LBB2_4: # %if.end6 + end_block # label16: return $2 .LBB2_5: # %if.then4 + end_block # label15: call abort@FUNCTION unreachable .Lfunc_end2: @@ -153,25 +171,28 @@ ile: # @ile .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB3_5 - block .LBB3_4 - block .LBB3_3 + block + block + block i32.le_s $push0=, $0, $1 - br_if $pop0, .LBB3_3 + br_if $pop0, 0 # 0: down to label20 # BB#1: # %if.else i32.const $push1=, 0 i32.eq $push2=, $2, $pop1 - br_if $pop2, .LBB3_4 + br_if $pop2, 1 # 1: down to label19 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB3_3: # %if.then + end_block # label20: i32.const $push3=, 0 i32.eq $push4=, $2, $pop3 - br_if $pop4, .LBB3_5 + br_if $pop4, 1 # 1: down to label18 .LBB3_4: # %if.end6 + end_block # label19: return $2 .LBB3_5: # %if.then2 + end_block # label18: call abort@FUNCTION unreachable .Lfunc_end3: @@ -185,21 +206,24 @@ igt: # @igt .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB4_5 - block .LBB4_4 - block .LBB4_3 + block + block + block i32.le_s $push0=, $0, $1 - br_if $pop0, .LBB4_3 + br_if $pop0, 0 # 0: down to label23 # BB#1: # %if.then - br_if $2, .LBB4_4 + br_if $2, 1 # 1: down to label22 # BB#2: # %if.then2 call abort@FUNCTION unreachable .LBB4_3: # %if.else - br_if $2, .LBB4_5 + end_block # label23: + br_if $2, 1 # 1: down to label21 .LBB4_4: # %if.end6 + end_block # label22: return $2 .LBB4_5: # %if.then4 + end_block # label21: call abort@FUNCTION unreachable .Lfunc_end4: @@ -213,25 +237,28 @@ ige: # @ige .param i32, i32, i32 .result i32 # BB#0: # %entry - block .LBB5_5 - block .LBB5_4 - block .LBB5_3 + block + block + block i32.ge_s $push0=, $0, $1 - br_if $pop0, .LBB5_3 + br_if $pop0, 0 # 0: down to label26 # BB#1: # %if.else i32.const $push1=, 0 i32.eq $push2=, $2, $pop1 - br_if $pop2, .LBB5_4 + br_if $pop2, 1 # 1: down to label25 # BB#2: # %if.then4 call abort@FUNCTION unreachable .LBB5_3: # %if.then + end_block # label26: i32.const $push3=, 0 i32.eq $push4=, $2, $pop3 - br_if $pop4, .LBB5_5 + br_if $pop4, 1 # 1: down to label24 .LBB5_4: # %if.end6 + end_block # label25: return $2 .LBB5_5: # %if.then2 + end_block # label24: call abort@FUNCTION unreachable .Lfunc_end5: diff --git a/test/torture-s/compndlit-1.c.s b/test/torture-s/compndlit-1.c.s index 308f4a95b..a973b43d9 100644 --- a/test/torture-s/compndlit-1.c.s +++ b/test/torture-s/compndlit-1.c.s @@ -9,7 +9,7 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, x($0) i32.const $push1=, 7 i32.and $push2=, $pop0, $pop1 @@ -21,11 +21,12 @@ main: # @main i32.store $discard=, x($0), $pop6 i32.const $push7=, 0 i32.eq $push8=, $1, $pop7 - br_if $pop8, .LBB0_2 + br_if $pop8, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/const-addr-expr-1.c.s b/test/torture-s/const-addr-expr-1.c.s index 2469724c2..0b82b61d4 100644 --- a/test/torture-s/const-addr-expr-1.c.s +++ b/test/torture-s/const-addr-expr-1.c.s @@ -10,25 +10,27 @@ main: # @main .local i32 # BB#0: # %entry i32.const $2=, 0 - block .LBB0_4 + block i32.load $push0=, Upgd_minor_ID($2) i32.load $push1=, 0($pop0) i32.const $push2=, 2 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_3 + block i32.load $push4=, Upgd_minor_ID1($2) i32.load $push5=, 0($pop4) i32.const $push6=, 1 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB0_3 + br_if $pop7, 0 # 0: down to label1 # BB#2: # %if.end3 return $2 .LBB0_3: # %if.then2 + end_block # label1: call abort@FUNCTION unreachable .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/conversion.c.s b/test/torture-s/conversion.c.s index c9aa7cf38..a36d2d5f5 100644 --- a/test/torture-s/conversion.c.s +++ b/test/torture-s/conversion.c.s @@ -131,15 +131,16 @@ fnear: # @fnear # BB#0: # %entry f32.sub $1=, $0, $1 i32.const $2=, 1 - block .LBB6_2 + block f32.const $push0=, 0x0p0 f32.eq $push1=, $1, $pop0 - br_if $pop1, .LBB6_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %lor.rhs f32.div $push2=, $0, $1 f32.const $push3=, 0x1.e848p19 f32.gt $2=, $pop2, $pop3 .LBB6_2: # %lor.end + end_block # label0: return $2 .Lfunc_end6: .size fnear, .Lfunc_end6-fnear @@ -155,15 +156,16 @@ dnear: # @dnear # BB#0: # %entry f64.sub $1=, $0, $1 i32.const $2=, 1 - block .LBB7_2 + block f64.const $push0=, 0x0p0 f64.eq $push1=, $1, $pop0 - br_if $pop1, .LBB7_2 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %lor.rhs f64.div $push2=, $0, $1 f64.const $push3=, 0x1.6bcc41e9p46 f64.gt $2=, $pop2, $pop3 .LBB7_2: # %lor.end + end_block # label1: return $2 .Lfunc_end7: .size dnear, .Lfunc_end7-dnear @@ -195,10 +197,10 @@ ldnear: # @ldnear i64.const $3=, 0 i32.call $6=, __eqtf2@FUNCTION, $4, $2, $3, $3 i32.const $7=, 1 - block .LBB8_2 + block i32.const $push8=, 0 i32.eq $push9=, $6, $pop8 - br_if $pop9, .LBB8_2 + br_if $pop9, 0 # 0: down to label2 # BB#1: # %lor.rhs i32.const $13=, 0 i32.add $13=, $11, $13 @@ -214,6 +216,7 @@ ldnear: # @ldnear i32.const $push7=, 0 i32.gt_s $7=, $pop6, $pop7 .LBB8_2: # %lor.end + end_block # label2: i32.const $10=, 32 i32.add $11=, $11, $10 i32.const $10=, __stack_pointer diff --git a/test/torture-s/dbra-1.c.s b/test/torture-s/dbra-1.c.s index 51df86652..6c256dcec 100644 --- a/test/torture-s/dbra-1.c.s +++ b/test/torture-s/dbra-1.c.s @@ -10,42 +10,42 @@ f1: # @f1 .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_10 + block i32.const $push11=, 0 i32.eq $push12=, $0, $pop11 - br_if $pop12, .LBB0_10 + br_if $pop12, 0 # 0: down to label0 # BB#1: # %for.inc i32.const $1=, 1 i32.eq $push0=, $0, $1 - br_if $pop0, .LBB0_10 + br_if $pop0, 0 # 0: down to label0 # BB#2: # %for.inc.1 i32.const $1=, 2 i32.eq $push1=, $0, $1 - br_if $pop1, .LBB0_10 + br_if $pop1, 0 # 0: down to label0 # BB#3: # %for.inc.2 i32.const $1=, 3 i32.eq $push2=, $0, $1 - br_if $pop2, .LBB0_10 + br_if $pop2, 0 # 0: down to label0 # BB#4: # %for.inc.3 i32.const $1=, 4 i32.eq $push3=, $0, $1 - br_if $pop3, .LBB0_10 + br_if $pop3, 0 # 0: down to label0 # BB#5: # %for.inc.4 i32.const $1=, 5 i32.eq $push4=, $0, $1 - br_if $pop4, .LBB0_10 + br_if $pop4, 0 # 0: down to label0 # BB#6: # %for.inc.5 i32.const $1=, 6 i32.eq $push5=, $0, $1 - br_if $pop5, .LBB0_10 + br_if $pop5, 0 # 0: down to label0 # BB#7: # %for.inc.6 i32.const $1=, 7 i32.eq $push6=, $0, $1 - br_if $pop6, .LBB0_10 + br_if $pop6, 0 # 0: down to label0 # BB#8: # %for.inc.7 i32.const $1=, 8 i32.eq $push7=, $0, $1 - br_if $pop7, .LBB0_10 + br_if $pop7, 0 # 0: down to label0 # BB#9: # %for.inc.8 i32.const $1=, 9 i32.eq $push8=, $0, $1 @@ -53,6 +53,7 @@ f1: # @f1 i32.select $push10=, $pop8, $1, $pop9 return $pop10 .LBB0_10: # %cleanup + end_block # label0: return $1 .Lfunc_end0: .size f1, .Lfunc_end0-f1 @@ -82,49 +83,49 @@ f3: # @f3 # BB#0: # %entry i32.const $1=, 1 i32.const $2=, 0 - block .LBB2_10 + block i32.eq $push0=, $0, $1 - br_if $pop0, .LBB2_10 + br_if $pop0, 0 # 0: down to label1 # BB#1: # %for.inc copy_local $2=, $1 i32.const $1=, 2 i32.eq $push1=, $0, $1 - br_if $pop1, .LBB2_10 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %for.inc.1 copy_local $2=, $1 i32.const $1=, 3 i32.eq $push2=, $0, $1 - br_if $pop2, .LBB2_10 + br_if $pop2, 0 # 0: down to label1 # BB#3: # %for.inc.2 copy_local $2=, $1 i32.const $1=, 4 i32.eq $push3=, $0, $1 - br_if $pop3, .LBB2_10 + br_if $pop3, 0 # 0: down to label1 # BB#4: # %for.inc.3 copy_local $2=, $1 i32.const $1=, 5 i32.eq $push4=, $0, $1 - br_if $pop4, .LBB2_10 + br_if $pop4, 0 # 0: down to label1 # BB#5: # %for.inc.4 copy_local $2=, $1 i32.const $1=, 6 i32.eq $push5=, $0, $1 - br_if $pop5, .LBB2_10 + br_if $pop5, 0 # 0: down to label1 # BB#6: # %for.inc.5 copy_local $2=, $1 i32.const $1=, 7 i32.eq $push6=, $0, $1 - br_if $pop6, .LBB2_10 + br_if $pop6, 0 # 0: down to label1 # BB#7: # %for.inc.6 copy_local $2=, $1 i32.const $1=, 8 i32.eq $push7=, $0, $1 - br_if $pop7, .LBB2_10 + br_if $pop7, 0 # 0: down to label1 # BB#8: # %for.inc.7 copy_local $2=, $1 i32.const $1=, 9 i32.eq $push8=, $0, $1 - br_if $pop8, .LBB2_10 + br_if $pop8, 0 # 0: down to label1 # BB#9: # %for.inc.8 i32.const $push9=, 10 i32.eq $push10=, $0, $pop9 @@ -132,6 +133,7 @@ f3: # @f3 i32.select $push12=, $pop10, $1, $pop11 return $pop12 .LBB2_10: # %cleanup + end_block # label1: return $2 .Lfunc_end2: .size f3, .Lfunc_end2-f3 @@ -161,49 +163,49 @@ f5: # @f5 # BB#0: # %entry i32.const $1=, -1 i32.const $2=, 0 - block .LBB4_10 + block i32.eq $push0=, $0, $1 - br_if $pop0, .LBB4_10 + br_if $pop0, 0 # 0: down to label2 # BB#1: # %for.inc i32.const $2=, 1 i32.const $push1=, -2 i32.eq $push2=, $0, $pop1 - br_if $pop2, .LBB4_10 + br_if $pop2, 0 # 0: down to label2 # BB#2: # %for.inc.1 i32.const $2=, 2 i32.const $push3=, -3 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB4_10 + br_if $pop4, 0 # 0: down to label2 # BB#3: # %for.inc.2 i32.const $2=, 3 i32.const $push5=, -4 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB4_10 + br_if $pop6, 0 # 0: down to label2 # BB#4: # %for.inc.3 i32.const $2=, 4 i32.const $push7=, -5 i32.eq $push8=, $0, $pop7 - br_if $pop8, .LBB4_10 + br_if $pop8, 0 # 0: down to label2 # BB#5: # %for.inc.4 i32.const $2=, 5 i32.const $push9=, -6 i32.eq $push10=, $0, $pop9 - br_if $pop10, .LBB4_10 + br_if $pop10, 0 # 0: down to label2 # BB#6: # %for.inc.5 i32.const $2=, 6 i32.const $push11=, -7 i32.eq $push12=, $0, $pop11 - br_if $pop12, .LBB4_10 + br_if $pop12, 0 # 0: down to label2 # BB#7: # %for.inc.6 i32.const $2=, 7 i32.const $push13=, -8 i32.eq $push14=, $0, $pop13 - br_if $pop14, .LBB4_10 + br_if $pop14, 0 # 0: down to label2 # BB#8: # %for.inc.7 i32.const $2=, 8 i32.const $push15=, -9 i32.eq $push16=, $0, $pop15 - br_if $pop16, .LBB4_10 + br_if $pop16, 0 # 0: down to label2 # BB#9: # %for.inc.8 i32.const $push17=, -10 i32.eq $push18=, $0, $pop17 @@ -211,6 +213,7 @@ f5: # @f5 i32.select $push20=, $pop18, $pop19, $1 return $pop20 .LBB4_10: # %cleanup + end_block # label2: return $2 .Lfunc_end4: .size f5, .Lfunc_end4-f5 diff --git a/test/torture-s/divcmp-3.c.s b/test/torture-s/divcmp-3.c.s index 4920dae6c..ec60d50fa 100644 --- a/test/torture-s/divcmp-3.c.s +++ b/test/torture-s/divcmp-3.c.s @@ -174,15 +174,15 @@ main: # @main i32.const $0=, -2147483648 .LBB12_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB12_4 - loop .LBB12_3 + block + loop # label1: i32.const $push0=, 24 i32.shr_s $push1=, $0, $pop0 i32.const $push2=, -300 i32.add $push3=, $pop1, $pop2 i32.const $push5=, 99 i32.le_u $push6=, $pop3, $pop5 - br_if $pop6, .LBB12_4 + br_if $pop6, 2 # 2: down to label0 # BB#2: # %for.cond # in Loop: Header=BB12_1 Depth=1 i32.const $push4=, 1 @@ -191,11 +191,13 @@ main: # @main i32.add $0=, $0, $pop7 i32.const $push8=, 255 i32.le_s $push9=, $1, $pop8 - br_if $pop9, .LBB12_1 -.LBB12_3: # %for.end + br_if $pop9, 0 # 0: up to label1 +# BB#3: # %for.end + end_loop # label2: i32.const $push10=, 0 return $pop10 .LBB12_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end12: diff --git a/test/torture-s/divconst-2.c.s b/test/torture-s/divconst-2.c.s index ee6d1e6ad..19fa7efaa 100644 --- a/test/torture-s/divconst-2.c.s +++ b/test/torture-s/divconst-2.c.s @@ -66,7 +66,7 @@ main: # @main i32.const $3=, 31 i32.const $4=, 1 i32.const $2=, -2147483648 - block .LBB3_4 + block i32.eq $push0=, $1, $2 i32.shl $push8=, $pop0, $3 i32.shr_s $push1=, $1, $3 @@ -78,7 +78,7 @@ main: # @main i32.sub $push7=, $1, $pop6 i32.add $push9=, $pop8, $pop7 i32.ne $push10=, $pop9, $1 - br_if $pop10, .LBB3_4 + br_if $pop10, 0 # 0: down to label0 # BB#1: # %for.cond i32.load $1=, nums+4($0) i32.eq $push11=, $1, $2 @@ -92,7 +92,7 @@ main: # @main i32.sub $push18=, $1, $pop17 i32.add $push20=, $pop19, $pop18 i32.ne $push21=, $pop20, $1 - br_if $pop21, .LBB3_4 + br_if $pop21, 0 # 0: down to label0 # BB#2: # %for.cond.1 i32.load $1=, nums+8($0) i32.eq $push22=, $1, $2 @@ -106,11 +106,12 @@ main: # @main i32.sub $push29=, $1, $pop28 i32.add $push31=, $pop30, $pop29 i32.ne $push32=, $pop31, $1 - br_if $pop32, .LBB3_4 + br_if $pop32, 0 # 0: down to label0 # BB#3: # %for.cond.2 call exit@FUNCTION, $0 unreachable .LBB3_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/doloop-1.c.s b/test/torture-s/doloop-1.c.s index 6fc8b241e..68baf036a 100644 --- a/test/torture-s/doloop-1.c.s +++ b/test/torture-s/doloop-1.c.s @@ -12,7 +12,7 @@ main: # @main copy_local $1=, $0 .LBB0_1: # %do.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.load $push0=, i($0) i32.const $push1=, 1 i32.add $push2=, $pop0, $pop1 @@ -21,18 +21,20 @@ main: # @main i32.add $1=, $1, $pop3 i32.const $push4=, 255 i32.and $push5=, $1, $pop4 - br_if $pop5, .LBB0_1 -.LBB0_2: # %do.end + br_if $pop5, 0 # 0: up to label0 +# BB#2: # %do.end + end_loop # label1: i32.const $1=, 0 - block .LBB0_4 + block i32.load $push6=, i($1) i32.const $push7=, 256 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %if.end call exit@FUNCTION, $1 unreachable .LBB0_4: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/doloop-2.c.s b/test/torture-s/doloop-2.c.s index 7175d94b6..80ac999e9 100644 --- a/test/torture-s/doloop-2.c.s +++ b/test/torture-s/doloop-2.c.s @@ -12,7 +12,7 @@ main: # @main copy_local $1=, $0 .LBB0_1: # %do.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.load $push0=, i($0) i32.const $push1=, 1 i32.add $push2=, $pop0, $pop1 @@ -21,18 +21,20 @@ main: # @main i32.add $1=, $1, $pop3 i32.const $push4=, 65535 i32.and $push5=, $1, $pop4 - br_if $pop5, .LBB0_1 -.LBB0_2: # %do.end + br_if $pop5, 0 # 0: up to label0 +# BB#2: # %do.end + end_loop # label1: i32.const $1=, 0 - block .LBB0_4 + block i32.load $push6=, i($1) i32.const $push7=, 65536 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %if.end call exit@FUNCTION, $1 unreachable .LBB0_4: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/eeprof-1.c.s b/test/torture-s/eeprof-1.c.s index 49b1d8b24..31e71391d 100644 --- a/test/torture-s/eeprof-1.c.s +++ b/test/torture-s/eeprof-1.c.s @@ -6,15 +6,16 @@ .type foo,@function foo: # @foo # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 0 i32.load $push1=, last_fn_entered($pop0) i32.const $push2=, foo@FUNCTION i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -29,65 +30,71 @@ nfoo: # @nfoo # BB#0: # %entry i32.const $0=, 0 i32.const $1=, 2 - block .LBB1_14 + block i32.load $push1=, entry_calls($0) i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB1_14 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %entry i32.load $push0=, exit_calls($0) i32.ne $push3=, $pop0, $1 - br_if $pop3, .LBB1_14 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %if.end i32.const $1=, foo@FUNCTION - block .LBB1_13 + block i32.load $push4=, last_fn_entered($0) i32.ne $push5=, $pop4, $1 - br_if $pop5, .LBB1_13 + br_if $pop5, 0 # 0: down to label2 # BB#3: # %if.end4 - block .LBB1_12 + block i32.load $push6=, last_fn_exited($0) i32.const $push7=, foo2@FUNCTION i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB1_12 + br_if $pop8, 0 # 0: down to label3 # BB#4: # %if.end7 call foo@FUNCTION i32.const $2=, 3 - block .LBB1_11 + block i32.load $push10=, entry_calls($0) i32.ne $push11=, $pop10, $2 - br_if $pop11, .LBB1_11 + br_if $pop11, 0 # 0: down to label4 # BB#5: # %if.end7 i32.load $push9=, exit_calls($0) i32.ne $push12=, $pop9, $2 - br_if $pop12, .LBB1_11 + br_if $pop12, 0 # 0: down to label4 # BB#6: # %if.end12 - block .LBB1_10 + block i32.load $push13=, last_fn_entered($0) i32.ne $push14=, $pop13, $1 - br_if $pop14, .LBB1_10 + br_if $pop14, 0 # 0: down to label5 # BB#7: # %if.end15 - block .LBB1_9 + block i32.load $push15=, last_fn_exited($0) i32.ne $push16=, $pop15, $1 - br_if $pop16, .LBB1_9 + br_if $pop16, 0 # 0: down to label6 # BB#8: # %if.end18 return .LBB1_9: # %if.then17 + end_block # label6: call abort@FUNCTION unreachable .LBB1_10: # %if.then14 + end_block # label5: call abort@FUNCTION unreachable .LBB1_11: # %if.then11 + end_block # label4: call abort@FUNCTION unreachable .LBB1_12: # %if.then6 + end_block # label3: call abort@FUNCTION unreachable .LBB1_13: # %if.then3 + end_block # label2: call abort@FUNCTION unreachable .LBB1_14: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: @@ -102,68 +109,74 @@ main: # @main .local i32, i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB2_14 + block i32.load $push1=, exit_calls($0) i32.load $push0=, entry_calls($0) i32.or $push2=, $pop1, $pop0 - br_if $pop2, .LBB2_14 + br_if $pop2, 0 # 0: down to label7 # BB#1: # %if.end call foo2@FUNCTION i32.const $1=, 2 - block .LBB2_13 + block i32.load $push4=, entry_calls($0) i32.ne $push5=, $pop4, $1 - br_if $pop5, .LBB2_13 + br_if $pop5, 0 # 0: down to label8 # BB#2: # %if.end i32.load $push3=, exit_calls($0) i32.ne $push6=, $pop3, $1 - br_if $pop6, .LBB2_13 + br_if $pop6, 0 # 0: down to label8 # BB#3: # %if.end6 i32.const $1=, foo@FUNCTION - block .LBB2_12 + block i32.load $push7=, last_fn_entered($0) i32.ne $push8=, $pop7, $1 - br_if $pop8, .LBB2_12 + br_if $pop8, 0 # 0: down to label9 # BB#4: # %if.end9 - block .LBB2_11 + block i32.load $push9=, last_fn_exited($0) i32.const $push10=, foo2@FUNCTION i32.ne $push11=, $pop9, $pop10 - br_if $pop11, .LBB2_11 + br_if $pop11, 0 # 0: down to label10 # BB#5: # %if.end12 call nfoo@FUNCTION i32.const $2=, 3 - block .LBB2_10 + block i32.load $push13=, entry_calls($0) i32.ne $push14=, $pop13, $2 - br_if $pop14, .LBB2_10 + br_if $pop14, 0 # 0: down to label11 # BB#6: # %if.end12 i32.load $push12=, exit_calls($0) i32.ne $push15=, $pop12, $2 - br_if $pop15, .LBB2_10 + br_if $pop15, 0 # 0: down to label11 # BB#7: # %if.end17 - block .LBB2_9 + block i32.load $push16=, last_fn_entered($0) i32.ne $push17=, $pop16, $1 - br_if $pop17, .LBB2_9 + br_if $pop17, 0 # 0: down to label12 # BB#8: # %if.end20 return $0 .LBB2_9: # %if.then19 + end_block # label12: call abort@FUNCTION unreachable .LBB2_10: # %if.then16 + end_block # label11: call abort@FUNCTION unreachable .LBB2_11: # %if.then11 + end_block # label10: call abort@FUNCTION unreachable .LBB2_12: # %if.then8 + end_block # label9: call abort@FUNCTION unreachable .LBB2_13: # %if.then5 + end_block # label8: call abort@FUNCTION unreachable .LBB2_14: # %if.then + end_block # label7: call abort@FUNCTION unreachable .Lfunc_end2: @@ -212,56 +225,61 @@ foo2: # @foo2 # BB#0: # %entry i32.const $0=, 0 i32.const $1=, 1 - block .LBB5_12 + block i32.load $push1=, entry_calls($0) i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB5_12 + br_if $pop2, 0 # 0: down to label13 # BB#1: # %entry i32.load $push0=, exit_calls($0) - br_if $pop0, .LBB5_12 + br_if $pop0, 0 # 0: down to label13 # BB#2: # %if.end - block .LBB5_11 + block i32.load $push3=, last_fn_entered($0) i32.const $push4=, foo2@FUNCTION i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB5_11 + br_if $pop5, 0 # 0: down to label14 # BB#3: # %if.end4 call foo@FUNCTION - block .LBB5_10 + block i32.load $push7=, entry_calls($0) i32.const $push8=, 2 i32.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB5_10 + br_if $pop9, 0 # 0: down to label15 # BB#4: # %if.end4 i32.load $push6=, exit_calls($0) i32.ne $push10=, $pop6, $1 - br_if $pop10, .LBB5_10 + br_if $pop10, 0 # 0: down to label15 # BB#5: # %if.end9 i32.const $1=, foo@FUNCTION - block .LBB5_9 + block i32.load $push11=, last_fn_entered($0) i32.ne $push12=, $pop11, $1 - br_if $pop12, .LBB5_9 + br_if $pop12, 0 # 0: down to label16 # BB#6: # %if.end12 - block .LBB5_8 + block i32.load $push13=, last_fn_exited($0) i32.ne $push14=, $pop13, $1 - br_if $pop14, .LBB5_8 + br_if $pop14, 0 # 0: down to label17 # BB#7: # %if.end15 return .LBB5_8: # %if.then14 + end_block # label17: call abort@FUNCTION unreachable .LBB5_9: # %if.then11 + end_block # label16: call abort@FUNCTION unreachable .LBB5_10: # %if.then8 + end_block # label15: call abort@FUNCTION unreachable .LBB5_11: # %if.then3 + end_block # label14: call abort@FUNCTION unreachable .LBB5_12: # %if.then + end_block # label13: call abort@FUNCTION unreachable .Lfunc_end5: diff --git a/test/torture-s/ffs-1.c.s b/test/torture-s/ffs-1.c.s index 33279da10..701419006 100644 --- a/test/torture-s/ffs-1.c.s +++ b/test/torture-s/ffs-1.c.s @@ -9,13 +9,14 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, a($0) - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/ffs-2.c.s b/test/torture-s/ffs-2.c.s index 483ab3ee2..a53924e87 100644 --- a/test/torture-s/ffs-2.c.s +++ b/test/torture-s/ffs-2.c.s @@ -13,14 +13,14 @@ main: # @main i32.wrap/i64 $2=, $1 i32.const $3=, 1 i64.const $4=, 32 - block .LBB0_9 + block i32.ctz $push0=, $2 i32.add $push1=, $pop0, $3 i32.select $push2=, $2, $pop1, $0 i64.shr_u $push3=, $1, $4 i32.wrap/i64 $push4=, $pop3 i32.ne $push5=, $pop2, $pop4 - br_if $pop5, .LBB0_9 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %for.cond i64.load $1=, ffstesttab+8($0) i32.wrap/i64 $2=, $1 @@ -30,7 +30,7 @@ main: # @main i64.shr_u $push9=, $1, $4 i32.wrap/i64 $push10=, $pop9 i32.ne $push11=, $pop8, $pop10 - br_if $pop11, .LBB0_9 + br_if $pop11, 0 # 0: down to label0 # BB#2: # %for.cond.1 i64.load $1=, ffstesttab+16($0) i32.wrap/i64 $2=, $1 @@ -40,7 +40,7 @@ main: # @main i64.shr_u $push15=, $1, $4 i32.wrap/i64 $push16=, $pop15 i32.ne $push17=, $pop14, $pop16 - br_if $pop17, .LBB0_9 + br_if $pop17, 0 # 0: down to label0 # BB#3: # %for.cond.2 i64.load $1=, ffstesttab+24($0) i32.wrap/i64 $2=, $1 @@ -50,7 +50,7 @@ main: # @main i64.shr_u $push21=, $1, $4 i32.wrap/i64 $push22=, $pop21 i32.ne $push23=, $pop20, $pop22 - br_if $pop23, .LBB0_9 + br_if $pop23, 0 # 0: down to label0 # BB#4: # %for.cond.3 i64.load $1=, ffstesttab+32($0) i32.wrap/i64 $2=, $1 @@ -60,7 +60,7 @@ main: # @main i64.shr_u $push27=, $1, $4 i32.wrap/i64 $push28=, $pop27 i32.ne $push29=, $pop26, $pop28 - br_if $pop29, .LBB0_9 + br_if $pop29, 0 # 0: down to label0 # BB#5: # %for.cond.4 i64.load $1=, ffstesttab+40($0) i32.wrap/i64 $2=, $1 @@ -70,7 +70,7 @@ main: # @main i64.shr_u $push33=, $1, $4 i32.wrap/i64 $push34=, $pop33 i32.ne $push35=, $pop32, $pop34 - br_if $pop35, .LBB0_9 + br_if $pop35, 0 # 0: down to label0 # BB#6: # %for.cond.5 i64.load $1=, ffstesttab+48($0) i32.wrap/i64 $2=, $1 @@ -80,7 +80,7 @@ main: # @main i64.shr_u $push39=, $1, $4 i32.wrap/i64 $push40=, $pop39 i32.ne $push41=, $pop38, $pop40 - br_if $pop41, .LBB0_9 + br_if $pop41, 0 # 0: down to label0 # BB#7: # %for.cond.6 i64.load $1=, ffstesttab+56($0) i32.wrap/i64 $2=, $1 @@ -90,11 +90,12 @@ main: # @main i64.shr_u $push45=, $1, $4 i32.wrap/i64 $push46=, $pop45 i32.ne $push47=, $pop44, $pop46 - br_if $pop47, .LBB0_9 + br_if $pop47, 0 # 0: down to label0 # BB#8: # %for.cond.7 call exit@FUNCTION, $0 unreachable .LBB0_9: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/float-floor.c.s b/test/torture-s/float-floor.c.s index cc72446f0..b268ac03d 100644 --- a/test/torture-s/float-floor.c.s +++ b/test/torture-s/float-floor.c.s @@ -13,17 +13,18 @@ main: # @main f64.floor $0=, $pop0 i32.trunc_s/f64 $2=, $0 i32.const $3=, 1023 - block .LBB0_3 + block i32.ne $push1=, $2, $3 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %lor.lhs.false f32.demote/f64 $push2=, $0 i32.trunc_s/f32 $push3=, $pop2 i32.ne $push4=, $pop3, $3 - br_if $pop4, .LBB0_3 + br_if $pop4, 0 # 0: down to label0 # BB#2: # %if.end return $1 .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/floatunsisf-1.c.s b/test/torture-s/floatunsisf-1.c.s index 3c9074668..935baa614 100644 --- a/test/torture-s/floatunsisf-1.c.s +++ b/test/torture-s/floatunsisf-1.c.s @@ -9,7 +9,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, u($0) f32.convert_u/i32 $push1=, $pop0 f32.store $discard=, f1($0), $pop1 @@ -18,11 +18,12 @@ main: # @main f32.load $push3=, f1($0) f32.load $push4=, f2($0) f32.eq $push5=, $pop3, $pop4 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB0_2: # %if.end + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end0: diff --git a/test/torture-s/fprintf-1.c.s b/test/torture-s/fprintf-1.c.s index 00bebc4a3..0005e2f9f 100644 --- a/test/torture-s/fprintf-1.c.s +++ b/test/torture-s/fprintf-1.c.s @@ -18,39 +18,39 @@ main: # @main i32.const $1=, .L.str i32.const $2=, 1 i32.const $3=, 5 - block .LBB0_22 + block i32.load $push0=, stdout($0) i32.call $discard=, fwrite@FUNCTION, $1, $3, $2, $pop0 i32.load $push1=, stdout($0) i32.call $4=, fiprintf@FUNCTION, $pop1, $1 i32.ne $push2=, $4, $3 - br_if $pop2, .LBB0_22 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $4=, .L.str.1 i32.const $5=, 6 - block .LBB0_21 + block i32.load $push3=, stdout($0) i32.call $discard=, fwrite@FUNCTION, $4, $5, $2, $pop3 i32.load $push4=, stdout($0) i32.call $10=, fiprintf@FUNCTION, $pop4, $4 i32.ne $push5=, $10, $5 - br_if $pop5, .LBB0_21 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %if.end6 i32.const $6=, 97 i32.load $push6=, stdout($0) i32.call $discard=, fputc@FUNCTION, $6, $pop6 i32.const $7=, .L.str.2 - block .LBB0_20 + block i32.load $push7=, stdout($0) i32.call $10=, fiprintf@FUNCTION, $pop7, $7 i32.ne $push8=, $10, $2 - br_if $pop8, .LBB0_20 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %if.end11 i32.const $8=, .L.str.3 - block .LBB0_19 + block i32.load $push9=, stdout($0) i32.call $10=, fiprintf@FUNCTION, $pop9, $8 - br_if $10, .LBB0_19 + br_if $10, 0 # 0: down to label3 # BB#4: # %if.end16 i32.load $push10=, stdout($0) i32.call $discard=, fwrite@FUNCTION, $1, $3, $2, $pop10 @@ -70,9 +70,9 @@ main: # @main i32.add $50=, $13, $14 i32.const $14=, __stack_pointer i32.store $50=, 0($14), $50 - block .LBB0_18 + block i32.ne $push11=, $1, $3 - br_if $pop11, .LBB0_18 + br_if $pop11, 0 # 0: down to label4 # BB#5: # %if.end21 i32.load $push12=, stdout($0) i32.call $discard=, fwrite@FUNCTION, $4, $5, $2, $pop12 @@ -91,9 +91,9 @@ main: # @main i32.add $50=, $17, $18 i32.const $18=, __stack_pointer i32.store $50=, 0($18), $50 - block .LBB0_17 + block i32.ne $push13=, $1, $5 - br_if $pop13, .LBB0_17 + br_if $pop13, 0 # 0: down to label5 # BB#6: # %if.end26 i32.load $push14=, stdout($0) i32.call $discard=, fputc@FUNCTION, $6, $pop14 @@ -112,9 +112,9 @@ main: # @main i32.add $50=, $21, $22 i32.const $22=, __stack_pointer i32.store $50=, 0($22), $50 - block .LBB0_16 + block i32.ne $push15=, $1, $2 - br_if $pop15, .LBB0_16 + br_if $pop15, 0 # 0: down to label6 # BB#7: # %if.end31 i32.load $1=, stdout($0) i32.const $23=, __stack_pointer @@ -131,8 +131,8 @@ main: # @main i32.add $50=, $25, $26 i32.const $26=, __stack_pointer i32.store $50=, 0($26), $50 - block .LBB0_15 - br_if $1, .LBB0_15 + block + br_if $1, 0 # 0: down to label7 # BB#8: # %if.end36 i32.const $1=, 120 i32.load $push16=, stdout($0) @@ -153,9 +153,9 @@ main: # @main i32.add $50=, $29, $30 i32.const $30=, __stack_pointer i32.store $50=, 0($30), $50 - block .LBB0_14 + block i32.ne $push18=, $1, $2 - br_if $pop18, .LBB0_14 + br_if $pop18, 0 # 0: down to label8 # BB#9: # %if.end41 i32.load $1=, stdout($0) i32.const $31=, __stack_pointer @@ -188,10 +188,10 @@ main: # @main i32.add $50=, $37, $38 i32.const $38=, __stack_pointer i32.store $50=, 0($38), $50 - block .LBB0_13 + block i32.const $push19=, 7 i32.ne $push20=, $2, $pop19 - br_if $pop20, .LBB0_13 + br_if $pop20, 0 # 0: down to label9 # BB#10: # %if.end46 i32.load $1=, stdout($0) i32.const $39=, __stack_pointer @@ -224,10 +224,10 @@ main: # @main i32.add $50=, $45, $46 i32.const $46=, __stack_pointer i32.store $50=, 0($46), $50 - block .LBB0_12 + block i32.const $push21=, 2 i32.ne $push22=, $0, $pop21 - br_if $pop22, .LBB0_12 + br_if $pop22, 0 # 0: down to label10 # BB#11: # %if.end51 i32.const $49=, 16 i32.add $50=, $50, $49 @@ -235,36 +235,47 @@ main: # @main i32.store $50=, 0($49), $50 return $3 .LBB0_12: # %if.then50 + end_block # label10: call abort@FUNCTION unreachable .LBB0_13: # %if.then45 + end_block # label9: call abort@FUNCTION unreachable .LBB0_14: # %if.then40 + end_block # label8: call abort@FUNCTION unreachable .LBB0_15: # %if.then35 + end_block # label7: call abort@FUNCTION unreachable .LBB0_16: # %if.then30 + end_block # label6: call abort@FUNCTION unreachable .LBB0_17: # %if.then25 + end_block # label5: call abort@FUNCTION unreachable .LBB0_18: # %if.then20 + end_block # label4: call abort@FUNCTION unreachable .LBB0_19: # %if.then15 + end_block # label3: call abort@FUNCTION unreachable .LBB0_20: # %if.then10 + end_block # label2: call abort@FUNCTION unreachable .LBB0_21: # %if.then5 + end_block # label1: call abort@FUNCTION unreachable .LBB0_22: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/gofast.c.s b/test/torture-s/gofast.c.s index 6677d9b88..ddc03d5d1 100644 --- a/test/torture-s/gofast.c.s +++ b/test/torture-s/gofast.c.s @@ -443,13 +443,14 @@ main: # @main .local i32 # BB#0: # %if.end11 i32.const $0=, 0 - block .LBB31_2 + block i32.load $push0=, fail_count($0) - br_if $pop0, .LBB31_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end202 call exit@FUNCTION, $0 unreachable .LBB31_2: # %if.then201 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end31: diff --git a/test/torture-s/ifcvt-onecmpl-abs-1.c.s b/test/torture-s/ifcvt-onecmpl-abs-1.c.s index fdbce480e..928e7d370 100644 --- a/test/torture-s/ifcvt-onecmpl-abs-1.c.s +++ b/test/torture-s/ifcvt-onecmpl-abs-1.c.s @@ -22,14 +22,15 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, -1 i32.call $push1=, foo@FUNCTION, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 0 return $pop2 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/index-1.c.s b/test/torture-s/index-1.c.s index a30729382..cebf45686 100644 --- a/test/torture-s/index-1.c.s +++ b/test/torture-s/index-1.c.s @@ -28,15 +28,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, a+120($0) i32.const $push1=, 30 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/inst-check.c.s b/test/torture-s/inst-check.c.s index ab9cbfc50..13945bdcb 100644 --- a/test/torture-s/inst-check.c.s +++ b/test/torture-s/inst-check.c.s @@ -10,10 +10,10 @@ f: # @f .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_2 + block i32.const $push0=, 1 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $1=, -1 i32.add $push2=, $0, $1 @@ -28,6 +28,7 @@ f: # @f i32.add $push11=, $pop10, $0 i32.add $1=, $pop11, $1 .LBB0_2: # %for.end + end_block # label0: return $1 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/int-compare.c.s b/test/torture-s/int-compare.c.s index 23bd09b06..2281e864f 100644 --- a/test/torture-s/int-compare.c.s +++ b/test/torture-s/int-compare.c.s @@ -59,13 +59,14 @@ le: # @le true: # @true .param i32 # BB#0: # %entry - block .LBB4_2 + block i32.const $push0=, 0 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB4_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB4_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end4: @@ -78,11 +79,12 @@ true: # @true false: # @false .param i32 # BB#0: # %entry - block .LBB5_2 - br_if $0, .LBB5_2 + block + br_if $0, 0 # 0: down to label1 # BB#1: # %if.end return .LBB5_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end5: diff --git a/test/torture-s/longlong.c.s b/test/torture-s/longlong.c.s index 1b9e3e83b..697d4c17f 100644 --- a/test/torture-s/longlong.c.s +++ b/test/torture-s/longlong.c.s @@ -11,9 +11,9 @@ alpha_ep_extbl_i_eq_0: # @alpha_ep_extbl_i_eq_0 i32.load $0=, pars($2) i32.const $3=, 31 i32.and $1=, $0, $3 - block .LBB0_2 + block i32.eq $push0=, $1, $3 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then i32.load $3=, r($2) i32.const $2=, 248 @@ -39,6 +39,7 @@ alpha_ep_extbl_i_eq_0: # @alpha_ep_extbl_i_eq_0 i64.and $push17=, $pop15, $pop16 i64.store $discard=, 0($pop20), $pop17 .LBB0_2: # %if.end + end_block # label0: return .Lfunc_end0: .size alpha_ep_extbl_i_eq_0, .Lfunc_end0-alpha_ep_extbl_i_eq_0 @@ -55,7 +56,7 @@ main: # @main i32.const $push2=, -2013265854 i32.store $discard=, pars($0), $pop2 i32.load $1=, r($0) - block .LBB1_2 + block i64.const $push0=, 3160194 i64.store $discard=, b+136($0), $pop0 i64.const $push1=, 6003104017374052362 @@ -73,11 +74,12 @@ main: # @main i64.load $push12=, b+16($0) i64.const $push13=, 77 i64.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB1_2 + br_if $pop14, 0 # 0: down to label1 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/loop-10.c.s b/test/torture-s/loop-10.c.s index 74fe83e91..e0781d6c0 100644 --- a/test/torture-s/loop-10.c.s +++ b/test/torture-s/loop-10.c.s @@ -10,14 +10,15 @@ main: # @main # BB#0: # %while.end i32.const $0=, 0 i32.load $1=, count($0) - block .LBB0_2 + block i32.const $push0=, 2 i32.add $push1=, $1, $pop0 i32.store $discard=, count($0), $pop1 - br_if $1, .LBB0_2 + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end4 return $0 .LBB0_2: # %if.then3 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/loop-11.c.s b/test/torture-s/loop-11.c.s deleted file mode 100644 index 3919a7171..000000000 --- a/test/torture-s/loop-11.c.s +++ /dev/null @@ -1,54 +0,0 @@ - .text - .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/loop-11.c" - .section .text.main,"ax",@progbits - .hidden main - .globl main - .type main,@function -main: # @main - .result i32 - .local i32, i32, i32, i32 -# BB#0: # %entry - i32.const $1=, 199 - i32.const $0=, a+792 -.LBB0_1: # %for.body.i - # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 - i32.const $push1=, -1 - i32.add $push0=, $1, $pop1 - i32.store $1=, 0($0), $pop0 - i32.const $push2=, -4 - i32.add $0=, $0, $pop2 - i32.const $3=, 0 - i32.const $2=, a - i32.gt_s $push3=, $1, $3 - br_if $pop3, .LBB0_1 -.LBB0_2: # %for.body - # =>This Inner Loop Header: Depth=1 - block .LBB0_5 - loop .LBB0_4 - i32.load $push4=, 0($2) - i32.ne $push5=, $3, $pop4 - br_if $pop5, .LBB0_5 -# BB#3: # %for.cond - # in Loop: Header=BB0_2 Depth=1 - i32.const $push6=, 1 - i32.add $3=, $3, $pop6 - i32.const $push7=, 4 - i32.add $2=, $2, $pop7 - i32.const $push8=, 198 - i32.le_s $push9=, $3, $pop8 - br_if $pop9, .LBB0_2 -.LBB0_4: # %for.end - i32.const $push10=, 0 - return $pop10 -.LBB0_5: # %if.then - call abort@FUNCTION - unreachable -.Lfunc_end0: - .size main, .Lfunc_end0-main - - .type a,@object # @a - .lcomm a,796,4 - - .ident "clang version 3.8.0 " - .section ".note.GNU-stack","",@progbits diff --git a/test/torture-s/loop-12.c.s b/test/torture-s/loop-12.c.s index 256bfdb47..4f1e709c8 100644 --- a/test/torture-s/loop-12.c.s +++ b/test/torture-s/loop-12.c.s @@ -12,8 +12,8 @@ foo: # @foo i64.const $2=, 562949961809921 .LBB0_1: # %while.cond # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 - block .LBB0_4 + loop # label0: + block i32.load8_u $push2=, 0($3) i32.const $push3=, -10 i32.add $push0=, $pop2, $pop3 @@ -21,7 +21,7 @@ foo: # @foo i32.and $1=, $pop0, $pop4 i32.const $push5=, 49 i32.gt_u $push6=, $1, $pop5 - br_if $pop6, .LBB0_4 + br_if $pop6, 0 # 0: down to label2 # BB#2: # %is_end_of_statement.exit # in Loop: Header=BB0_1 Depth=1 i64.extend_u/i32 $push7=, $1 @@ -31,16 +31,18 @@ foo: # @foo i32.wrap/i64 $push11=, $pop10 i32.const $push13=, 0 i32.eq $push14=, $pop11, $pop13 - br_if $pop14, .LBB0_4 + br_if $pop14, 0 # 0: down to label2 # BB#3: # %while.end return .LBB0_4: # %while.body # in Loop: Header=BB0_1 Depth=1 + end_block # label2: i32.const $push12=, 1 i32.add $push1=, $3, $pop12 i32.store $3=, p($0), $pop1 - br .LBB0_1 + br 0 # 0: up to label0 .LBB0_5: + end_loop # label1: .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -56,10 +58,10 @@ main: # @main i32.const $1=, .L.str .LBB1_1: # %while.cond.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_5 + loop # label3: i32.const $0=, 0 i32.store $discard=, p($0), $1 - block .LBB1_4 + block i32.load8_u $push1=, 0($1) i32.const $push2=, -10 i32.add $push0=, $pop1, $pop2 @@ -67,7 +69,7 @@ main: # @main i32.and $2=, $pop0, $pop3 i32.const $push4=, 49 i32.gt_u $push5=, $2, $pop4 - br_if $pop5, .LBB1_4 + br_if $pop5, 0 # 0: down to label5 # BB#2: # %is_end_of_statement.exit.i # in Loop: Header=BB1_1 Depth=1 i64.extend_u/i32 $push6=, $2 @@ -77,15 +79,17 @@ main: # @main i32.wrap/i64 $push10=, $pop9 i32.const $push12=, 0 i32.eq $push13=, $pop10, $pop12 - br_if $pop13, .LBB1_4 + br_if $pop13, 0 # 0: down to label5 # BB#3: # %foo.exit return $0 .LBB1_4: # %while.body.i # in Loop: Header=BB1_1 Depth=1 + end_block # label5: i32.const $push11=, 1 i32.add $1=, $1, $pop11 - br .LBB1_1 + br 0 # 0: up to label3 .LBB1_5: + end_loop # label4: .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/loop-13.c.s b/test/torture-s/loop-13.c.s index e07cb08a8..1a94a691a 100644 --- a/test/torture-s/loop-13.c.s +++ b/test/torture-s/loop-13.c.s @@ -10,12 +10,12 @@ scale: # @scale # BB#0: # %entry i32.load $4=, 0($0) i32.const $6=, 1 - block .LBB0_5 + block i32.eq $push0=, $4, $6 - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %entry i32.lt_s $push1=, $2, $6 - br_if $pop1, .LBB0_5 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %for.body.preheader i32.load $5=, 4($1) i32.load $push2=, 0($1) @@ -24,7 +24,7 @@ scale: # @scale i32.mul $push4=, $5, $4 i32.store $discard=, 4($1), $pop4 i32.eq $push5=, $2, $6 - br_if $pop5, .LBB0_5 + br_if $pop5, 0 # 0: down to label0 # BB#3: # %for.body.for.body_crit_edge.preheader i32.const $push6=, 12 i32.add $1=, $1, $pop6 @@ -32,7 +32,7 @@ scale: # @scale i32.add $6=, $2, $3 .LBB0_4: # %for.body.for.body_crit_edge # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 + loop # label1: i32.const $push7=, -4 i32.add $4=, $1, $pop7 i32.load $2=, 0($0) @@ -45,8 +45,10 @@ scale: # @scale i32.const $push11=, 8 i32.add $1=, $1, $pop11 i32.add $6=, $6, $3 - br_if $6, .LBB0_4 + br_if $6, 0 # 0: up to label1 .LBB0_5: # %if.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size scale, .Lfunc_end0-scale diff --git a/test/torture-s/loop-2.c.s b/test/torture-s/loop-2.c.s index 28ba25ee8..c976cbc94 100644 --- a/test/torture-s/loop-2.c.s +++ b/test/torture-s/loop-2.c.s @@ -11,13 +11,13 @@ f: # @f # BB#0: # %entry i32.const $2=, 0 i32.const $1=, a - block .LBB0_2 + block i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB0_2 + br_if $pop6, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.const $push0=, -2 i32.add $push1=, $2, $pop0 i32.store $discard=, 0($1), $pop1 @@ -26,8 +26,10 @@ f: # @f i32.const $push3=, 4 i32.add $1=, $1, $pop3 i32.ne $push4=, $0, $2 - br_if $pop4, .LBB0_1 + br_if $pop4, 0 # 0: up to label1 .LBB0_2: # %for.end + end_loop # label2: + end_block # label0: return $2 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/loop-2b.c.s b/test/torture-s/loop-2b.c.s index 503c8e83b..b1dc8114f 100644 --- a/test/torture-s/loop-2b.c.s +++ b/test/torture-s/loop-2b.c.s @@ -9,10 +9,10 @@ f: # @f .result i32 .local i32, i32 # BB#0: # %entry - block .LBB0_4 + block i32.const $push0=, 2147483647 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $push4=, a i32.const $push2=, 2 @@ -22,21 +22,23 @@ f: # @f i32.sub $1=, $pop5, $0 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 + loop # label1: i32.const $push6=, -2 i32.store $discard=, 0($2), $pop6 copy_local $0=, $1 i32.const $push7=, 2147483645 i32.eq $push8=, $0, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 1 # 1: down to label2 # BB#3: # %for.body # in Loop: Header=BB0_2 Depth=1 i32.const $push9=, 4 i32.add $2=, $2, $pop9 i32.const $push10=, -1 i32.add $1=, $0, $pop10 - br_if $0, .LBB0_2 + br_if $0, 0 # 0: up to label1 .LBB0_4: # %for.end + end_loop # label2: + end_block # label0: return $0 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/loop-2c.c.s b/test/torture-s/loop-2c.c.s index 3d077658a..bb880f993 100644 --- a/test/torture-s/loop-2c.c.s +++ b/test/torture-s/loop-2c.c.s @@ -9,10 +9,10 @@ f: # @f .result i32 .local i32, i32, i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push9=, 0 i32.eq $push10=, $0, $pop9 - br_if $pop10, .LBB0_3 + br_if $pop10, 0 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $2=, -3 i32.const $push0=, 3 @@ -27,14 +27,16 @@ f: # @f i32.add $1=, $pop6, $3 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.const $push7=, -1 i32.add $0=, $0, $pop7 i32.store $push8=, 0($1), $4 i32.add $4=, $pop8, $2 i32.add $1=, $1, $3 - br_if $0, .LBB0_2 + br_if $0, 0 # 0: up to label1 .LBB0_3: # %for.end + end_loop # label2: + end_block # label0: return $0 .Lfunc_end0: .size f, .Lfunc_end0-f @@ -48,10 +50,10 @@ g: # @g .result i32 .local i32, i32, i32, i32 # BB#0: # %entry - block .LBB1_3 + block i32.const $push8=, 0 i32.eq $push9=, $0, $pop8 - br_if $pop9, .LBB1_3 + br_if $pop9, 0 # 0: down to label3 # BB#1: # %for.body.preheader.i i32.const $3=, a i32.const $1=, -3 @@ -66,14 +68,16 @@ g: # @g i32.add $3=, $pop4, $2 .LBB1_2: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label4: i32.const $push6=, -1 i32.add $0=, $0, $pop6 i32.store $push7=, 0($3), $4 i32.add $4=, $pop7, $1 i32.add $3=, $3, $2 - br_if $0, .LBB1_2 + br_if $0, 0 # 0: up to label4 .LBB1_3: # %f.exit + end_loop # label5: + end_block # label3: return $0 .Lfunc_end1: .size g, .Lfunc_end1-g diff --git a/test/torture-s/loop-2d.c.s b/test/torture-s/loop-2d.c.s index c55919ae7..cf7bde47c 100644 --- a/test/torture-s/loop-2d.c.s +++ b/test/torture-s/loop-2d.c.s @@ -9,10 +9,10 @@ f: # @f .result i32 .local i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push8=, 0 i32.eq $push9=, $0, $pop8 - br_if $pop9, .LBB0_3 + br_if $pop9, 0 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $3=, a i32.const $1=, -3 @@ -27,14 +27,16 @@ f: # @f i32.add $3=, $pop4, $2 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.const $push6=, -1 i32.add $0=, $0, $pop6 i32.store $push7=, 0($3), $4 i32.add $4=, $pop7, $1 i32.add $3=, $3, $2 - br_if $0, .LBB0_2 + br_if $0, 0 # 0: up to label1 .LBB0_3: # %for.end + end_loop # label2: + end_block # label0: return $0 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/loop-2f.c.s b/test/torture-s/loop-2f.c.s index 1e37d0257..d441990e0 100644 --- a/test/torture-s/loop-2f.c.s +++ b/test/torture-s/loop-2f.c.s @@ -8,13 +8,13 @@ f: # @f .param i32, i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 39 i32.gt_u $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.add $push2=, $1, $0 i32.const $push3=, 254 i32.store8 $discard=, 0($pop2), $pop3 @@ -22,8 +22,10 @@ f: # @f i32.add $0=, $0, $pop4 i32.const $push5=, 40 i32.ne $push6=, $0, $pop5 - br_if $pop6, .LBB0_1 + br_if $pop6, 0 # 0: up to label1 .LBB0_2: # %for.end + end_loop # label2: + end_block # label0: return $0 .Lfunc_end0: .size f, .Lfunc_end0-f @@ -37,7 +39,7 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB1_2 + block i32.const $push0=, .L.str i32.call $0=, open@FUNCTION, $pop0, $1 i32.const $push4=, 2147450880 @@ -47,7 +49,7 @@ main: # @main i32.call $0=, mmap@FUNCTION, $pop4, $pop3, $pop2, $pop1, $0, $1 i32.const $push5=, -1 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB1_2 + br_if $pop6, 0 # 0: down to label3 # BB#1: # %if.end i32.const $push7=, 254 i32.store8 $push8=, 32766($0), $pop7 @@ -91,6 +93,7 @@ main: # @main i32.store8 $discard=, 32804($0), $pop45 i32.store8 $discard=, 32805($0), $1 .LBB1_2: # %if.end15 + end_block # label3: call exit@FUNCTION, $1 unreachable .Lfunc_end1: diff --git a/test/torture-s/loop-2g.c.s b/test/torture-s/loop-2g.c.s index 149d7d09e..bea869cf8 100644 --- a/test/torture-s/loop-2g.c.s +++ b/test/torture-s/loop-2g.c.s @@ -8,13 +8,13 @@ f: # @f .param i32, i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 39 i32.gt_u $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.add $push2=, $1, $0 i32.const $push3=, 254 i32.store8 $discard=, 0($pop2), $pop3 @@ -22,8 +22,10 @@ f: # @f i32.add $0=, $0, $pop4 i32.const $push5=, 40 i32.ne $push6=, $0, $pop5 - br_if $pop6, .LBB0_1 + br_if $pop6, 0 # 0: up to label1 .LBB0_2: # %for.end + end_loop # label2: + end_block # label0: return $0 .Lfunc_end0: .size f, .Lfunc_end0-f @@ -37,7 +39,7 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB1_2 + block i32.const $push0=, .L.str i32.call $0=, open@FUNCTION, $pop0, $1 i32.const $push4=, 2147450880 @@ -47,7 +49,7 @@ main: # @main i32.call $0=, mmap@FUNCTION, $pop4, $pop3, $pop2, $pop1, $0, $1 i32.const $push5=, -1 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB1_2 + br_if $pop6, 0 # 0: down to label3 # BB#1: # %if.end i32.const $push7=, 254 i32.store8 $push8=, 32766($0), $pop7 @@ -91,6 +93,7 @@ main: # @main i32.store8 $discard=, 32804($0), $pop45 i32.store8 $discard=, 32805($0), $1 .LBB1_2: # %if.end15 + end_block # label3: call exit@FUNCTION, $1 unreachable .Lfunc_end1: diff --git a/test/torture-s/loop-3.c.s b/test/torture-s/loop-3.c.s index 8c8b08b3e..7b46ca070 100644 --- a/test/torture-s/loop-3.c.s +++ b/test/torture-s/loop-3.c.s @@ -53,15 +53,16 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, n($0) - block .LBB2_2 + block i32.const $push0=, 4 i32.add $push1=, $1, $pop0 i32.store $discard=, n($0), $pop1 - br_if $1, .LBB2_2 + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/loop-3b.c.s b/test/torture-s/loop-3b.c.s index e25fce6f8..667cc6226 100644 --- a/test/torture-s/loop-3b.c.s +++ b/test/torture-s/loop-3b.c.s @@ -55,15 +55,16 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, n($0) - block .LBB2_2 + block i32.const $push0=, 4 i32.add $push1=, $1, $pop0 i32.store $discard=, n($0), $pop1 - br_if $1, .LBB2_2 + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/loop-3c.c.s b/test/torture-s/loop-3c.c.s index 07525ec8a..87caf9fdd 100644 --- a/test/torture-s/loop-3c.c.s +++ b/test/torture-s/loop-3c.c.s @@ -16,7 +16,7 @@ f: # @f i32.const $3=, 256 .LBB0_1: # %do.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $push2=, 1 i32.shr_s $3=, $3, $pop2 i32.const $push3=, 2 @@ -29,8 +29,9 @@ f: # @f i32.add $2=, $2, $pop7 i32.const $push8=, 1073741840 i32.lt_s $push9=, $0, $pop8 - br_if $pop9, .LBB0_1 -.LBB0_2: # %do.end + br_if $pop9, 0 # 0: up to label0 +# BB#2: # %do.end + end_loop # label1: return $0 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/loop-5.c.s b/test/torture-s/loop-5.c.s index fa4dcedfd..95d8fb9f6 100644 --- a/test/torture-s/loop-5.c.s +++ b/test/torture-s/loop-5.c.s @@ -11,9 +11,9 @@ main: # @main i32.const $2=, 0 i32.load $0=, t($2) i32.const $3=, 4 - block .LBB0_13 + block i32.ge_s $push3=, $0, $3 - br_if $pop3, .LBB0_13 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %ap.exit.i i32.const $4=, 1 i32.add $push0=, $0, $4 @@ -24,7 +24,7 @@ main: # @main i32.add $push5=, $7, $pop4 i32.store $discard=, 0($pop5), $2 i32.gt_s $push6=, $0, $6 - br_if $pop6, .LBB0_13 + br_if $pop6, 0 # 0: down to label0 # BB#2: # %ap.exit.1.i i32.shl $push7=, $5, $6 i32.add $push8=, $7, $pop7 @@ -33,7 +33,7 @@ main: # @main i32.add $push1=, $0, $6 i32.store $8=, t($2), $pop1 i32.gt_s $push10=, $8, $5 - br_if $pop10, .LBB0_13 + br_if $pop10, 0 # 0: down to label0 # BB#3: # %ap.exit.2.i i32.shl $push11=, $8, $6 i32.add $push12=, $7, $pop11 @@ -41,52 +41,57 @@ main: # @main i32.add $push2=, $0, $5 i32.store $5=, t($2), $pop2 i32.gt_s $push13=, $0, $2 - br_if $pop13, .LBB0_13 + br_if $pop13, 0 # 0: down to label0 # BB#4: # %testit.exit i32.shl $push15=, $5, $6 i32.add $push16=, $7, $pop15 i32.store $discard=, 0($pop16), $4 i64.load $1=, a($2) - block .LBB0_12 + block i32.add $push14=, $0, $3 i32.store $discard=, t($2), $pop14 i32.wrap/i64 $push17=, $1 - br_if $pop17, .LBB0_12 + br_if $pop17, 0 # 0: down to label1 # BB#5: # %if.end i64.const $9=, -4294967296 - block .LBB0_11 + block i64.and $push18=, $1, $9 i64.const $push19=, 12884901888 i64.ne $push20=, $pop18, $pop19 - br_if $pop20, .LBB0_11 + br_if $pop20, 0 # 0: down to label2 # BB#6: # %if.end3 i64.load $1=, a+8($2) - block .LBB0_10 + block i32.wrap/i64 $push21=, $1 i32.ne $push22=, $pop21, $6 - br_if $pop22, .LBB0_10 + br_if $pop22, 0 # 0: down to label3 # BB#7: # %if.end6 - block .LBB0_9 + block i64.and $push23=, $1, $9 i64.const $push24=, 4294967296 i64.ne $push25=, $pop23, $pop24 - br_if $pop25, .LBB0_9 + br_if $pop25, 0 # 0: down to label4 # BB#8: # %if.end9 call exit@FUNCTION, $2 unreachable .LBB0_9: # %if.then8 + end_block # label4: call abort@FUNCTION unreachable .LBB0_10: # %if.then5 + end_block # label3: call abort@FUNCTION unreachable .LBB0_11: # %if.then2 + end_block # label2: call abort@FUNCTION unreachable .LBB0_12: # %if.then + end_block # label1: call abort@FUNCTION unreachable .LBB0_13: # %if.then.i.i + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/loop-7.c.s b/test/torture-s/loop-7.c.s index b1550772b..a05646e32 100644 --- a/test/torture-s/loop-7.c.s +++ b/test/torture-s/loop-7.c.s @@ -12,7 +12,7 @@ foo: # @foo i32.const $2=, -1 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label0: i32.const $1=, 1 i32.shl $push0=, $1, $3 i32.eq $push1=, $pop0, $0 @@ -20,20 +20,22 @@ foo: # @foo i32.add $3=, $3, $1 i32.const $push2=, 9 i32.gt_s $push3=, $3, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 1 # 1: down to label1 # BB#2: # %for.body # in Loop: Header=BB0_1 Depth=1 i32.const $push4=, 0 i32.lt_s $push5=, $2, $pop4 - br_if $pop5, .LBB0_1 + br_if $pop5, 0 # 0: up to label0 .LBB0_3: # %for.end - block .LBB0_5 + end_loop # label1: + block i32.const $push6=, -1 i32.le_s $push7=, $2, $pop6 - br_if $pop7, .LBB0_5 + br_if $pop7, 0 # 0: down to label2 # BB#4: # %if.end5 return .LBB0_5: # %if.then4 + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end0: @@ -52,29 +54,31 @@ main: # @main copy_local $1=, $0 .LBB1_1: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label3: i32.const $push0=, 7 i32.eq $push1=, $1, $pop0 i32.const $push2=, 6 i32.select $2=, $pop1, $pop2, $2 i32.const $push3=, 9 i32.gt_s $push4=, $1, $pop3 - br_if $pop4, .LBB1_3 + br_if $pop4, 1 # 1: down to label4 # BB#2: # %for.body.i # in Loop: Header=BB1_1 Depth=1 i32.add $1=, $1, $0 i32.const $push5=, 0 i32.lt_s $push6=, $2, $pop5 - br_if $pop6, .LBB1_1 + br_if $pop6, 0 # 0: up to label3 .LBB1_3: # %for.end.i - block .LBB1_5 + end_loop # label4: + block i32.const $push7=, -1 i32.gt_s $push8=, $2, $pop7 - br_if $pop8, .LBB1_5 + br_if $pop8, 0 # 0: down to label5 # BB#4: # %if.then4.i call abort@FUNCTION unreachable .LBB1_5: # %foo.exit + end_block # label5: i32.const $push9=, 0 call exit@FUNCTION, $pop9 unreachable diff --git a/test/torture-s/loop-8.c.s b/test/torture-s/loop-8.c.s index b06384fa2..0df470655 100644 --- a/test/torture-s/loop-8.c.s +++ b/test/torture-s/loop-8.c.s @@ -7,16 +7,17 @@ bar: # @bar .param i32, i32 # BB#0: # %entry - block .LBB0_3 - br_if $0, .LBB0_3 + block + br_if $0, 0 # 0: down to label0 # BB#1: # %lor.lhs.false f64.load $push0=, 0($1) f64.const $push1=, 0x1p0 f64.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_3 + br_if $pop2, 0 # 0: down to label0 # BB#2: # %if.end return .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -33,9 +34,9 @@ main: # @main i32.const $0=, 0 f64.load $2=, a($0) f64.const $1=, 0x0p0 - block .LBB1_4 + block f64.gt $push0=, $2, $1 - br_if $pop0, .LBB1_4 + br_if $pop0, 0 # 0: down to label1 # BB#1: # %for.cond f64.load $2=, a+8($0) f64.le $push1=, $2, $1 @@ -43,23 +44,25 @@ main: # @main i32.or $push3=, $pop1, $pop2 i32.const $push7=, 0 i32.eq $push8=, $pop3, $pop7 - br_if $pop8, .LBB1_4 + br_if $pop8, 0 # 0: down to label1 # BB#2: # %for.cond.1 f64.load $2=, a+16($0) f64.gt $push4=, $2, $1 - br_if $pop4, .LBB1_4 + br_if $pop4, 0 # 0: down to label1 # BB#3: # %for.cond.2 call abort@FUNCTION unreachable .LBB1_4: # %e - block .LBB1_6 + end_block # label1: + block f64.const $push5=, 0x1p0 f64.eq $push6=, $2, $pop5 - br_if $pop6, .LBB1_6 + br_if $pop6, 0 # 0: down to label2 # BB#5: # %if.then.i call abort@FUNCTION unreachable .LBB1_6: # %bar.exit4 + end_block # label2: call exit@FUNCTION, $0 unreachable .Lfunc_end1: diff --git a/test/torture-s/lshrdi-1.c.s b/test/torture-s/lshrdi-1.c.s deleted file mode 100644 index de10ca2a5..000000000 --- a/test/torture-s/lshrdi-1.c.s +++ /dev/null @@ -1,133 +0,0 @@ - .text - .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/lshrdi-1.c" - .section .text.main,"ax",@progbits - .hidden main - .globl main - .type main,@function -main: # @main - .result i32 - .local i32, i32, i64, i32, i32 -# BB#0: # %entry - i64.const $2=, 0 - i32.const $1=, .Lswitch.table -.LBB0_1: # %for.body - # =>This Inner Loop Header: Depth=1 - block .LBB0_7 - loop .LBB0_3 - i64.const $push0=, -8690466092652643696 - i64.shr_u $push1=, $pop0, $2 - i64.load $push2=, 0($1) - i64.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_7 -# BB#2: # %for.cond - # in Loop: Header=BB0_1 Depth=1 - i64.const $push4=, 1 - i64.add $2=, $2, $pop4 - i32.const $0=, 8 - i32.add $1=, $1, $0 - i32.const $4=, 0 - i32.const $3=, .Lswitch.table - i64.const $push5=, 63 - i64.le_s $push6=, $2, $pop5 - br_if $pop6, .LBB0_1 -.LBB0_3: # %constant_shift.exit - # =>This Inner Loop Header: Depth=1 - block .LBB0_6 - loop .LBB0_5 - i32.const $1=, 1 - i32.const $push10=, 0 - i32.eq $push11=, $1, $pop10 - br_if $pop11, .LBB0_6 -# BB#4: # %for.cond2 - # in Loop: Header=BB0_3 Depth=1 - i32.add $4=, $4, $1 - i32.add $3=, $3, $0 - i32.const $push7=, 63 - i32.le_s $push8=, $4, $pop7 - br_if $pop8, .LBB0_3 -.LBB0_5: # %for.end13 - i32.const $push9=, 0 - call exit@FUNCTION, $pop9 - unreachable -.LBB0_6: # %if.then9 - call abort@FUNCTION - unreachable -.LBB0_7: # %if.then - call abort@FUNCTION - unreachable -.Lfunc_end0: - .size main, .Lfunc_end0-main - - .type .Lswitch.table,@object # @switch.table - .section .rodata..Lswitch.table,"a",@progbits - .align 4 -.Lswitch.table: - .int64 -8690466092652643696 # 0x87654321fedcba90 - .int64 4878138990528453960 # 0x43b2a190ff6e5d48 - .int64 2439069495264226980 # 0x21d950c87fb72ea4 - .int64 1219534747632113490 # 0x10eca8643fdb9752 - .int64 609767373816056745 # 0x87654321fedcba9 - .int64 304883686908028372 # 0x43b2a190ff6e5d4 - .int64 152441843454014186 # 0x21d950c87fb72ea - .int64 76220921727007093 # 0x10eca8643fdb975 - .int64 38110460863503546 # 0x87654321fedcba - .int64 19055230431751773 # 0x43b2a190ff6e5d - .int64 9527615215875886 # 0x21d950c87fb72e - .int64 4763807607937943 # 0x10eca8643fdb97 - .int64 2381903803968971 # 0x87654321fedcb - .int64 1190951901984485 # 0x43b2a190ff6e5 - .int64 595475950992242 # 0x21d950c87fb72 - .int64 297737975496121 # 0x10eca8643fdb9 - .int64 148868987748060 # 0x87654321fedc - .int64 74434493874030 # 0x43b2a190ff6e - .int64 37217246937015 # 0x21d950c87fb7 - .int64 18608623468507 # 0x10eca8643fdb - .int64 9304311734253 # 0x87654321fed - .int64 4652155867126 # 0x43b2a190ff6 - .int64 2326077933563 # 0x21d950c87fb - .int64 1163038966781 # 0x10eca8643fd - .int64 581519483390 # 0x87654321fe - .int64 290759741695 # 0x43b2a190ff - .int64 145379870847 # 0x21d950c87f - .int64 72689935423 # 0x10eca8643f - .int64 36344967711 # 0x87654321f - .int64 18172483855 # 0x43b2a190f - .int64 9086241927 # 0x21d950c87 - .int64 4543120963 # 0x10eca8643 - .int64 2271560481 # 0x87654321 - .int64 1135780240 # 0x43b2a190 - .int64 567890120 # 0x21d950c8 - .int64 283945060 # 0x10eca864 - .int64 141972530 # 0x8765432 - .int64 70986265 # 0x43b2a19 - .int64 35493132 # 0x21d950c - .int64 17746566 # 0x10eca86 - .int64 8873283 # 0x876543 - .int64 4436641 # 0x43b2a1 - .int64 2218320 # 0x21d950 - .int64 1109160 # 0x10eca8 - .int64 554580 # 0x87654 - .int64 277290 # 0x43b2a - .int64 138645 # 0x21d95 - .int64 69322 # 0x10eca - .int64 34661 # 0x8765 - .int64 17330 # 0x43b2 - .int64 8665 # 0x21d9 - .int64 4332 # 0x10ec - .int64 2166 # 0x876 - .int64 1083 # 0x43b - .int64 541 # 0x21d - .int64 270 # 0x10e - .int64 135 # 0x87 - .int64 67 # 0x43 - .int64 33 # 0x21 - .int64 16 # 0x10 - .int64 8 # 0x8 - .int64 4 # 0x4 - .int64 2 # 0x2 - .int64 1 # 0x1 - .size .Lswitch.table, 512 - - - .ident "clang version 3.8.0 " - .section ".note.GNU-stack","",@progbits diff --git a/test/torture-s/medce-1.c.s b/test/torture-s/medce-1.c.s index ccd44cedd..c75ec4358 100644 --- a/test/torture-s/medce-1.c.s +++ b/test/torture-s/medce-1.c.s @@ -22,13 +22,14 @@ foo: # @foo .local i32 # BB#0: # %entry i32.const $1=, 1 - block .LBB1_2 + block i32.ne $push0=, $0, $1 - br_if $pop0, .LBB1_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %sw.bb1 i32.const $push1=, 0 i32.store8 $discard=, ok($pop1), $1 .LBB1_2: # %sw.epilog + end_block # label0: return .Lfunc_end1: .size foo, .Lfunc_end1-foo diff --git a/test/torture-s/memcpy-1.c.s b/test/torture-s/memcpy-1.c.s index 653f26345..8c29972f3 100644 --- a/test/torture-s/memcpy-1.c.s +++ b/test/torture-s/memcpy-1.c.s @@ -31,7 +31,7 @@ main: # @main copy_local $2=, $4 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label0: i32.const $10=, 131072 i32.add $10=, $28, $10 i32.add $push0=, $10, $2 @@ -44,8 +44,9 @@ main: # @main i32.add $2=, $2, $7 i32.const $0=, 131072 i32.ne $push2=, $2, $0 - br_if $pop2, .LBB1_1 -.LBB1_2: # %for.end + br_if $pop2, 0 # 0: up to label0 +# BB#2: # %for.end + end_loop # label1: i32.const $1=, 1024 i32.const $12=, 0 i32.add $12=, $28, $12 @@ -55,8 +56,8 @@ main: # @main i32.const $4=, 0 .LBB1_3: # %for.body6 # =>This Inner Loop Header: Depth=1 - block .LBB1_26 - loop .LBB1_5 + block + loop # label3: i32.const $2=, 255 i32.const $14=, 0 i32.add $14=, $28, $14 @@ -64,23 +65,24 @@ main: # @main i32.load8_u $push4=, 0($pop3) i32.and $push5=, $4, $2 i32.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB1_26 + br_if $pop6, 2 # 2: down to label2 # BB#4: # %for.cond3 # in Loop: Header=BB1_3 Depth=1 i32.add $4=, $4, $7 i32.const $3=, 1023 i32.le_u $push7=, $4, $3 - br_if $pop7, .LBB1_3 -.LBB1_5: # %for.end15 + br_if $pop7, 0 # 0: up to label3 +# BB#5: # %for.end15 + end_loop # label4: i32.const $15=, 0 i32.add $15=, $28, $15 call memset@FUNCTION, $15, $7, $1 .LBB1_6: # %for.cond17 # =>This Inner Loop Header: Depth=1 - block .LBB1_9 - loop .LBB1_8 + block + loop # label6: i32.gt_u $push8=, $7, $3 - br_if $pop8, .LBB1_9 + br_if $pop8, 2 # 2: down to label5 # BB#7: # %for.cond17.for.body20_crit_edge # in Loop: Header=BB1_6 Depth=1 i32.const $16=, 0 @@ -90,11 +92,13 @@ main: # @main i32.add $7=, $7, $4 i32.load8_u $push28=, 0($5) i32.eq $push29=, $pop28, $4 - br_if $pop29, .LBB1_6 -.LBB1_8: # %if.then25 + br_if $pop29, 0 # 0: up to label6 +# BB#8: # %if.then25 + end_loop # label7: call abort@FUNCTION unreachable .LBB1_9: # %for.end29 + end_block # label5: i32.const $17=, 0 i32.add $17=, $28, $17 i32.const $18=, 131072 @@ -103,33 +107,34 @@ main: # @main i32.const $5=, 0 .LBB1_10: # %for.body35 # =>This Inner Loop Header: Depth=1 - block .LBB1_25 - loop .LBB1_12 + block + loop # label9: i32.const $19=, 0 i32.add $19=, $28, $19 i32.add $push9=, $19, $5 i32.load8_u $push10=, 0($pop9) i32.and $push11=, $5, $2 i32.ne $push12=, $pop10, $pop11 - br_if $pop12, .LBB1_25 + br_if $pop12, 2 # 2: down to label8 # BB#11: # %for.cond32 # in Loop: Header=BB1_10 Depth=1 i32.const $7=, 1 i32.add $5=, $5, $7 i32.const $4=, 131071 i32.le_u $push13=, $5, $4 - br_if $pop13, .LBB1_10 -.LBB1_12: # %for.end46 + br_if $pop13, 0 # 0: up to label9 +# BB#12: # %for.end46 + end_loop # label10: i32.const $6=, 0 i32.const $20=, 0 i32.add $20=, $28, $20 call memset@FUNCTION, $20, $6, $0 .LBB1_13: # %for.cond48 # =>This Inner Loop Header: Depth=1 - block .LBB1_16 - loop .LBB1_15 + block + loop # label12: i32.gt_u $push14=, $7, $4 - br_if $pop14, .LBB1_16 + br_if $pop14, 2 # 2: down to label11 # BB#14: # %for.cond48.for.body51_crit_edge # in Loop: Header=BB1_13 Depth=1 i32.const $21=, 0 @@ -140,11 +145,13 @@ main: # @main i32.load8_u $push26=, 0($5) i32.const $push30=, 0 i32.eq $push31=, $pop26, $pop30 - br_if $pop31, .LBB1_13 -.LBB1_15: # %if.then56 + br_if $pop31, 0 # 0: up to label12 +# BB#15: # %if.then56 + end_loop # label13: call abort@FUNCTION unreachable .LBB1_16: # %for.end60 + end_block # label11: i32.const $22=, 0 i32.add $22=, $28, $22 i32.const $23=, 131072 @@ -152,22 +159,23 @@ main: # @main call memcpy@FUNCTION, $22, $23, $1 .LBB1_17: # %for.body66 # =>This Inner Loop Header: Depth=1 - block .LBB1_24 - loop .LBB1_19 + block + loop # label15: i32.const $24=, 0 i32.add $24=, $28, $24 i32.add $push15=, $24, $6 i32.load8_u $push16=, 0($pop15) i32.and $push17=, $6, $2 i32.ne $push18=, $pop16, $pop17 - br_if $pop18, .LBB1_24 + br_if $pop18, 2 # 2: down to label14 # BB#18: # %for.cond63 # in Loop: Header=BB1_17 Depth=1 i32.const $5=, 1 i32.add $6=, $6, $5 i32.le_u $push19=, $6, $3 - br_if $pop19, .LBB1_17 -.LBB1_19: # %for.end77 + br_if $pop19, 0 # 0: up to label15 +# BB#19: # %for.end77 + end_loop # label16: i32.const $25=, 0 i32.add $25=, $28, $25 i32.const $26=, 131072 @@ -176,34 +184,39 @@ main: # @main i32.const $7=, 0 .LBB1_20: # %for.body85 # =>This Inner Loop Header: Depth=1 - block .LBB1_23 - loop .LBB1_22 + block + loop # label18: i32.const $27=, 0 i32.add $27=, $28, $27 i32.add $push20=, $27, $7 i32.load8_u $push21=, 0($pop20) i32.and $push22=, $7, $2 i32.ne $push23=, $pop21, $pop22 - br_if $pop23, .LBB1_23 + br_if $pop23, 2 # 2: down to label17 # BB#21: # %for.cond82 # in Loop: Header=BB1_20 Depth=1 i32.add $7=, $7, $5 i32.le_u $push24=, $7, $4 - br_if $pop24, .LBB1_20 -.LBB1_22: # %for.end96 + br_if $pop24, 0 # 0: up to label18 +# BB#22: # %for.end96 + end_loop # label19: i32.const $push25=, 0 call exit@FUNCTION, $pop25 unreachable .LBB1_23: # %if.then92 + end_block # label17: call abort@FUNCTION unreachable .LBB1_24: # %if.then73 + end_block # label14: call abort@FUNCTION unreachable .LBB1_25: # %if.then42 + end_block # label8: call abort@FUNCTION unreachable .LBB1_26: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/memcpy-2.c.s b/test/torture-s/memcpy-2.c.s index 117fa6fa2..dbf856e8f 100644 --- a/test/torture-s/memcpy-2.c.s +++ b/test/torture-s/memcpy-2.c.s @@ -17,9 +17,9 @@ main: # @main # Child Loop BB0_4 Depth 4 # Child Loop BB0_6 Depth 4 # Child Loop BB0_10 Depth 4 - block .LBB0_25 - block .LBB0_24 - loop .LBB0_23 + block + block + loop # label2: i32.const $7=, u1 i32.add $1=, $7, $0 copy_local $2=, $6 @@ -30,7 +30,7 @@ main: # @main # Child Loop BB0_4 Depth 4 # Child Loop BB0_6 Depth 4 # Child Loop BB0_10 Depth 4 - loop .LBB0_22 + loop # label4: i32.const $8=, u2 i32.add $3=, $8, $2 i32.const $9=, 65 @@ -43,7 +43,7 @@ main: # @main # Child Loop BB0_4 Depth 4 # Child Loop BB0_6 Depth 4 # Child Loop BB0_10 Depth 4 - loop .LBB0_21 + loop # label6: i32.const $14=, -96 copy_local $15=, $9 .LBB0_4: # %for.body9 @@ -51,7 +51,7 @@ main: # @main # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB0_5 + loop # label8: i32.const $13=, 96 i32.add $push0=, $7, $14 i32.add $push1=, $pop0, $13 @@ -69,38 +69,41 @@ main: # @main i32.const $13=, 1 i32.add $15=, $15, $13 i32.add $14=, $14, $13 - br_if $14, .LBB0_4 -.LBB0_5: # %for.end + br_if $14, 0 # 0: up to label8 +# BB#5: # %for.end # in Loop: Header=BB0_3 Depth=3 + end_loop # label9: call memcpy@FUNCTION, $1, $3, $5 i32.const $14=, 0 copy_local $16=, $7 - block .LBB0_9 + block i32.lt_s $push9=, $0, $13 - br_if $pop9, .LBB0_9 + br_if $pop9, 0 # 0: down to label10 .LBB0_6: # %for.body23 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB0_8 + loop # label11: i32.const $15=, u1 i32.add $push10=, $15, $14 i32.load8_u $push11=, 0($pop10) i32.ne $push12=, $pop11, $10 - br_if $pop12, .LBB0_8 + br_if $pop12, 1 # 1: down to label12 # BB#7: # %for.inc29 # in Loop: Header=BB0_6 Depth=4 i32.add $14=, $14, $13 i32.add $16=, $15, $14 i32.lt_s $push13=, $14, $0 - br_if $pop13, .LBB0_6 - br .LBB0_9 + br_if $pop13, 0 # 0: up to label11 + br 2 # 2: down to label10 .LBB0_8: # %if.then27 + end_loop # label12: call abort@FUNCTION unreachable .LBB0_9: # %for.body36.preheader # in Loop: Header=BB0_3 Depth=3 + end_block # label10: i32.const $14=, 0 copy_local $15=, $4 .LBB0_10: # %for.body36 @@ -108,7 +111,7 @@ main: # @main # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB0_12 + loop # label13: i32.shl $push14=, $15, $11 i32.shr_s $push15=, $pop14, $11 i32.gt_s $push16=, $pop15, $12 @@ -119,92 +122,98 @@ main: # @main i32.const $push18=, 255 i32.and $push19=, $15, $pop18 i32.ne $push22=, $pop21, $pop19 - br_if $pop22, .LBB0_25 + br_if $pop22, 9 # 9: down to label0 # BB#11: # %for.inc48 # in Loop: Header=BB0_10 Depth=4 i32.add $14=, $14, $13 i32.add $15=, $15, $13 i32.lt_s $push23=, $14, $5 - br_if $pop23, .LBB0_10 -.LBB0_12: # %for.body56.preheader + br_if $pop23, 0 # 0: up to label13 +# BB#12: # %for.body56.preheader # in Loop: Header=BB0_3 Depth=3 + end_loop # label14: i32.add $14=, $16, $14 i32.load8_u $push24=, 0($14) i32.ne $push25=, $pop24, $10 - br_if $pop25, .LBB0_24 + br_if $pop25, 6 # 6: down to label1 # BB#13: # %for.inc62 # in Loop: Header=BB0_3 Depth=3 i32.add $push26=, $14, $13 i32.load8_u $push27=, 0($pop26) i32.ne $push28=, $pop27, $10 - br_if $pop28, .LBB0_24 + br_if $pop28, 6 # 6: down to label1 # BB#14: # %for.inc62.1 # in Loop: Header=BB0_3 Depth=3 i32.const $push29=, 2 i32.add $push30=, $14, $pop29 i32.load8_u $push31=, 0($pop30) i32.ne $push32=, $pop31, $10 - br_if $pop32, .LBB0_24 + br_if $pop32, 6 # 6: down to label1 # BB#15: # %for.inc62.2 # in Loop: Header=BB0_3 Depth=3 i32.const $push33=, 3 i32.add $push34=, $14, $pop33 i32.load8_u $push35=, 0($pop34) i32.ne $push36=, $pop35, $10 - br_if $pop36, .LBB0_24 + br_if $pop36, 6 # 6: down to label1 # BB#16: # %for.inc62.3 # in Loop: Header=BB0_3 Depth=3 i32.const $push37=, 4 i32.add $push38=, $14, $pop37 i32.load8_u $push39=, 0($pop38) i32.ne $push40=, $pop39, $10 - br_if $pop40, .LBB0_24 + br_if $pop40, 6 # 6: down to label1 # BB#17: # %for.inc62.4 # in Loop: Header=BB0_3 Depth=3 i32.const $push41=, 5 i32.add $push42=, $14, $pop41 i32.load8_u $push43=, 0($pop42) i32.ne $push44=, $pop43, $10 - br_if $pop44, .LBB0_24 + br_if $pop44, 6 # 6: down to label1 # BB#18: # %for.inc62.5 # in Loop: Header=BB0_3 Depth=3 i32.const $push45=, 6 i32.add $push46=, $14, $pop45 i32.load8_u $push47=, 0($pop46) i32.ne $push48=, $pop47, $10 - br_if $pop48, .LBB0_24 + br_if $pop48, 6 # 6: down to label1 # BB#19: # %for.inc62.6 # in Loop: Header=BB0_3 Depth=3 i32.const $push49=, 7 i32.add $push50=, $14, $pop49 i32.load8_u $push51=, 0($pop50) i32.ne $push52=, $pop51, $10 - br_if $pop52, .LBB0_24 + br_if $pop52, 6 # 6: down to label1 # BB#20: # %for.inc62.7 # in Loop: Header=BB0_3 Depth=3 i32.add $5=, $5, $13 i32.const $push53=, 80 i32.lt_u $push54=, $5, $pop53 - br_if $pop54, .LBB0_3 -.LBB0_21: # %for.inc69 + br_if $pop54, 0 # 0: up to label6 +# BB#21: # %for.inc69 # in Loop: Header=BB0_2 Depth=2 + end_loop # label7: i32.add $2=, $2, $13 i32.const $14=, 8 i32.lt_u $push55=, $2, $14 - br_if $pop55, .LBB0_2 -.LBB0_22: # %for.inc72 + br_if $pop55, 0 # 0: up to label4 +# BB#22: # %for.inc72 # in Loop: Header=BB0_1 Depth=1 + end_loop # label5: i32.add $0=, $0, $13 i32.lt_u $push56=, $0, $14 - br_if $pop56, .LBB0_1 -.LBB0_23: # %for.end74 + br_if $pop56, 0 # 0: up to label2 +# BB#23: # %for.end74 + end_loop # label3: i32.const $push57=, 0 call exit@FUNCTION, $pop57 unreachable .LBB0_24: # %if.then60 + end_block # label1: call abort@FUNCTION unreachable .LBB0_25: # %if.then46 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/memcpy-bi.c.s b/test/torture-s/memcpy-bi.c.s index 0714be148..143b72c40 100644 --- a/test/torture-s/memcpy-bi.c.s +++ b/test/torture-s/memcpy-bi.c.s @@ -7,12 +7,13 @@ check: # @check .param i32, i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.call $push0=, memcmp@FUNCTION, $0, $1, $2 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -29,7 +30,7 @@ main: # @main i32.const $2=, 0 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label1: i32.const $0=, 26 i32.rem_s $4=, $2, $0 i32.const $1=, src @@ -41,43 +42,44 @@ main: # @main i32.add $2=, $2, $4 i32.const $push3=, 80 i32.ne $push4=, $2, $pop3 - br_if $pop4, .LBB1_1 -.LBB1_2: # %check.exit + br_if $pop4, 0 # 0: up to label1 +# BB#2: # %check.exit + end_loop # label2: i32.const $2=, 0 - block .LBB1_154 + block i32.load16_u $push5=, src($2) i32.store16 $discard=, dst($2), $pop5 i32.const $push134=, 0 i32.eq $push135=, $4, $pop134 - br_if $pop135, .LBB1_154 + br_if $pop135, 0 # 0: down to label3 # BB#3: # %check.exit13 i32.load16_u $3=, src($2) i32.load8_u $push6=, src+2($2) i32.store8 $discard=, dst+2($2), $pop6 i32.const $4=, dst i32.store16 $discard=, dst($2), $3 - block .LBB1_153 + block i32.const $push7=, 3 i32.call $push8=, memcmp@FUNCTION, $4, $1, $pop7 - br_if $pop8, .LBB1_153 + br_if $pop8, 0 # 0: down to label4 # BB#4: # %check.exit17 i32.load $3=, src($2) i32.load8_u $push9=, src+4($2) i32.store8 $discard=, dst+4($2), $pop9 i32.store $discard=, dst($2), $3 - block .LBB1_152 + block i32.const $push10=, 5 i32.call $push11=, memcmp@FUNCTION, $4, $1, $pop10 - br_if $pop11, .LBB1_152 + br_if $pop11, 0 # 0: down to label5 # BB#5: # %check.exit25 i32.load $3=, src($2) i32.load16_u $push12=, src+4($2) i32.store16 $discard=, dst+4($2), $pop12 i32.store $discard=, dst($2), $3 - block .LBB1_151 + block i32.const $push13=, 6 i32.call $push14=, memcmp@FUNCTION, $4, $1, $pop13 - br_if $pop14, .LBB1_151 + br_if $pop14, 0 # 0: down to label6 # BB#6: # %check.exit29 i32.load16_u $3=, src+4($2) i32.load $5=, src($2) @@ -85,28 +87,28 @@ main: # @main i32.store8 $discard=, dst+6($2), $pop15 i32.store16 $discard=, dst+4($2), $3 i32.store $discard=, dst($2), $5 - block .LBB1_150 + block i32.const $push16=, 7 i32.call $push17=, memcmp@FUNCTION, $4, $1, $pop16 - br_if $pop17, .LBB1_150 + br_if $pop17, 0 # 0: down to label7 # BB#7: # %check.exit33 i64.load $6=, src($2) i32.load8_u $push18=, src+8($2) i32.store8 $discard=, dst+8($2), $pop18 i64.store $discard=, dst($2), $6 - block .LBB1_149 + block i32.const $push19=, 9 i32.call $push20=, memcmp@FUNCTION, $4, $1, $pop19 - br_if $pop20, .LBB1_149 + br_if $pop20, 0 # 0: down to label8 # BB#8: # %check.exit41 i64.load $6=, src($2) i32.load16_u $push21=, src+8($2) i32.store16 $discard=, dst+8($2), $pop21 i64.store $discard=, dst($2), $6 - block .LBB1_148 + block i32.const $push22=, 10 i32.call $push23=, memcmp@FUNCTION, $4, $1, $pop22 - br_if $pop23, .LBB1_148 + br_if $pop23, 0 # 0: down to label9 # BB#9: # %check.exit45 i32.load16_u $3=, src+8($2) i64.load $6=, src($2) @@ -114,19 +116,19 @@ main: # @main i32.store8 $discard=, dst+10($2), $pop24 i32.store16 $discard=, dst+8($2), $3 i64.store $discard=, dst($2), $6 - block .LBB1_147 + block i32.const $push25=, 11 i32.call $push26=, memcmp@FUNCTION, $4, $1, $pop25 - br_if $pop26, .LBB1_147 + br_if $pop26, 0 # 0: down to label10 # BB#10: # %check.exit49 i64.load $6=, src($2) i32.load $push27=, src+8($2) i32.store $discard=, dst+8($2), $pop27 i64.store $discard=, dst($2), $6 - block .LBB1_146 + block i32.const $push28=, 12 i32.call $push29=, memcmp@FUNCTION, $4, $1, $pop28 - br_if $pop29, .LBB1_146 + br_if $pop29, 0 # 0: down to label11 # BB#11: # %check.exit53 i32.load $3=, src+8($2) i64.load $6=, src($2) @@ -134,10 +136,10 @@ main: # @main i32.store8 $discard=, dst+12($2), $pop30 i32.store $discard=, dst+8($2), $3 i64.store $discard=, dst($2), $6 - block .LBB1_145 + block i32.const $push31=, 13 i32.call $push32=, memcmp@FUNCTION, $4, $1, $pop31 - br_if $pop32, .LBB1_145 + br_if $pop32, 0 # 0: down to label12 # BB#12: # %check.exit57 i32.load $3=, src+8($2) i64.load $6=, src($2) @@ -145,10 +147,10 @@ main: # @main i32.store16 $discard=, dst+12($2), $pop33 i32.store $discard=, dst+8($2), $3 i64.store $discard=, dst($2), $6 - block .LBB1_144 + block i32.const $push34=, 14 i32.call $push35=, memcmp@FUNCTION, $4, $1, $pop34 - br_if $pop35, .LBB1_144 + br_if $pop35, 0 # 0: down to label13 # BB#13: # %check.exit61 i32.load16_u $3=, src+12($2) i32.load $5=, src+8($2) @@ -158,19 +160,19 @@ main: # @main i32.store16 $discard=, dst+12($2), $3 i32.store $discard=, dst+8($2), $5 i64.store $discard=, dst($2), $6 - block .LBB1_143 + block i32.const $push37=, 15 i32.call $push38=, memcmp@FUNCTION, $4, $1, $pop37 - br_if $pop38, .LBB1_143 + br_if $pop38, 0 # 0: down to label14 # BB#14: # %check.exit65 i64.load $6=, src($2) i64.load $push39=, src+8($2) i64.store $discard=, dst+8($2), $pop39 i64.store $discard=, dst($2), $6 - block .LBB1_142 + block i32.const $push40=, 16 i32.call $push41=, memcmp@FUNCTION, $4, $1, $pop40 - br_if $pop41, .LBB1_142 + br_if $pop41, 0 # 0: down to label15 # BB#15: # %check.exit69 i64.load $6=, src+8($2) i64.load $7=, src($2) @@ -178,10 +180,10 @@ main: # @main i32.store8 $discard=, dst+16($2), $pop42 i64.store $discard=, dst+8($2), $6 i64.store $discard=, dst($2), $7 - block .LBB1_141 + block i32.const $push43=, 17 i32.call $push44=, memcmp@FUNCTION, $4, $1, $pop43 - br_if $pop44, .LBB1_141 + br_if $pop44, 0 # 0: down to label16 # BB#16: # %check.exit73 i64.load $6=, src+8($2) i64.load $7=, src($2) @@ -189,10 +191,10 @@ main: # @main i32.store16 $discard=, dst+16($2), $pop45 i64.store $discard=, dst+8($2), $6 i64.store $discard=, dst($2), $7 - block .LBB1_140 + block i32.const $push46=, 18 i32.call $push47=, memcmp@FUNCTION, $4, $1, $pop46 - br_if $pop47, .LBB1_140 + br_if $pop47, 0 # 0: down to label17 # BB#17: # %check.exit77 i32.load16_u $3=, src+16($2) i64.load $6=, src+8($2) @@ -202,10 +204,10 @@ main: # @main i32.store16 $discard=, dst+16($2), $3 i64.store $discard=, dst+8($2), $6 i64.store $discard=, dst($2), $7 - block .LBB1_139 + block i32.const $push49=, 19 i32.call $push50=, memcmp@FUNCTION, $4, $1, $pop49 - br_if $pop50, .LBB1_139 + br_if $pop50, 0 # 0: down to label18 # BB#18: # %check.exit81 i64.load $6=, src+8($2) i64.load $7=, src($2) @@ -213,10 +215,10 @@ main: # @main i32.store $discard=, dst+16($2), $pop51 i64.store $discard=, dst+8($2), $6 i64.store $discard=, dst($2), $7 - block .LBB1_138 + block i32.const $push52=, 20 i32.call $push53=, memcmp@FUNCTION, $4, $1, $pop52 - br_if $pop53, .LBB1_138 + br_if $pop53, 0 # 0: down to label19 # BB#19: # %check.exit85 i32.load $3=, src+16($2) i64.load $6=, src+8($2) @@ -226,10 +228,10 @@ main: # @main i32.store $discard=, dst+16($2), $3 i64.store $discard=, dst+8($2), $6 i64.store $discard=, dst($2), $7 - block .LBB1_137 + block i32.const $push55=, 21 i32.call $push56=, memcmp@FUNCTION, $4, $1, $pop55 - br_if $pop56, .LBB1_137 + br_if $pop56, 0 # 0: down to label20 # BB#20: # %check.exit89 i32.load $3=, src+16($2) i64.load $6=, src+8($2) @@ -239,10 +241,10 @@ main: # @main i32.store $discard=, dst+16($2), $3 i64.store $discard=, dst+8($2), $6 i64.store $discard=, dst($2), $7 - block .LBB1_136 + block i32.const $push58=, 22 i32.call $push59=, memcmp@FUNCTION, $4, $1, $pop58 - br_if $pop59, .LBB1_136 + br_if $pop59, 0 # 0: down to label21 # BB#21: # %check.exit93 i32.load16_u $3=, src+20($2) i32.load8_u $push60=, src+22($2) @@ -254,10 +256,10 @@ main: # @main i32.store $discard=, dst+16($2), $5 i64.store $discard=, dst+8($2), $6 i64.store $discard=, dst($2), $7 - block .LBB1_135 + block i32.const $push61=, 23 i32.call $push62=, memcmp@FUNCTION, $4, $1, $pop61 - br_if $pop62, .LBB1_135 + br_if $pop62, 0 # 0: down to label22 # BB#22: # %check.exit97 i64.load $6=, src+8($2) i64.load $7=, src($2) @@ -265,10 +267,10 @@ main: # @main i64.store $discard=, dst+16($2), $pop63 i64.store $discard=, dst+8($2), $6 i64.store $discard=, dst($2), $7 - block .LBB1_134 + block i32.const $push64=, 24 i32.call $push65=, memcmp@FUNCTION, $4, $1, $pop64 - br_if $pop65, .LBB1_134 + br_if $pop65, 0 # 0: down to label23 # BB#23: # %check.exit101 i64.load $6=, src+16($2) i64.load $7=, src+8($2) @@ -278,10 +280,10 @@ main: # @main i64.store $discard=, dst+16($2), $6 i64.store $discard=, dst+8($2), $7 i64.store $discard=, dst($2), $8 - block .LBB1_133 + block i32.const $push67=, 25 i32.call $push68=, memcmp@FUNCTION, $4, $1, $pop67 - br_if $pop68, .LBB1_133 + br_if $pop68, 0 # 0: down to label24 # BB#24: # %check.exit105 i64.load $6=, src+16($2) i64.load $7=, src+8($2) @@ -291,9 +293,9 @@ main: # @main i64.store $discard=, dst+16($2), $6 i64.store $discard=, dst+8($2), $7 i64.store $discard=, dst($2), $8 - block .LBB1_132 + block i32.call $push70=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop70, .LBB1_132 + br_if $pop70, 0 # 0: down to label25 # BB#25: # %check.exit109 i32.load16_u $0=, src+24($2) i32.load8_u $push71=, src+26($2) @@ -305,10 +307,10 @@ main: # @main i64.store $discard=, dst+16($2), $6 i64.store $discard=, dst+8($2), $7 i64.store $discard=, dst($2), $8 - block .LBB1_131 + block i32.const $push72=, 27 i32.call $push73=, memcmp@FUNCTION, $4, $1, $pop72 - br_if $pop73, .LBB1_131 + br_if $pop73, 0 # 0: down to label26 # BB#26: # %check.exit113 i64.load $6=, src+16($2) i64.load $7=, src+8($2) @@ -318,10 +320,10 @@ main: # @main i64.store $discard=, dst+16($2), $6 i64.store $discard=, dst+8($2), $7 i64.store $discard=, dst($2), $8 - block .LBB1_130 + block i32.const $push75=, 28 i32.call $push76=, memcmp@FUNCTION, $4, $1, $pop75 - br_if $pop76, .LBB1_130 + br_if $pop76, 0 # 0: down to label27 # BB#27: # %check.exit117 i32.load $0=, src+24($2) i32.load8_u $push77=, src+28($2) @@ -333,10 +335,10 @@ main: # @main i64.store $discard=, dst+16($2), $6 i64.store $discard=, dst+8($2), $7 i64.store $discard=, dst($2), $8 - block .LBB1_129 + block i32.const $push78=, 29 i32.call $push79=, memcmp@FUNCTION, $4, $1, $pop78 - br_if $pop79, .LBB1_129 + br_if $pop79, 0 # 0: down to label28 # BB#28: # %check.exit121 i32.load $0=, src+24($2) i32.load16_u $push80=, src+28($2) @@ -348,16 +350,16 @@ main: # @main i64.store $discard=, dst+16($2), $6 i64.store $discard=, dst+8($2), $7 i64.store $discard=, dst($2), $8 - block .LBB1_128 + block i32.const $push81=, 30 i32.call $push82=, memcmp@FUNCTION, $4, $1, $pop81 - br_if $pop82, .LBB1_128 + br_if $pop82, 0 # 0: down to label29 # BB#29: # %check.exit125 i32.const $0=, 31 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_127 + block i32.call $push83=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop83, .LBB1_127 + br_if $pop83, 0 # 0: down to label30 # BB#30: # %check.exit129 i64.load $6=, src+16($2) i64.load $7=, src+8($2) @@ -367,520 +369,596 @@ main: # @main i64.store $discard=, dst+16($2), $6 i64.store $discard=, dst+8($2), $7 i64.store $discard=, dst($2), $8 - block .LBB1_126 + block i32.const $push85=, 32 i32.call $push86=, memcmp@FUNCTION, $4, $1, $pop85 - br_if $pop86, .LBB1_126 + br_if $pop86, 0 # 0: down to label31 # BB#31: # %check.exit133 i32.const $0=, 33 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_125 + block i32.call $push87=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop87, .LBB1_125 + br_if $pop87, 0 # 0: down to label32 # BB#32: # %check.exit137 i32.const $0=, 34 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_124 + block i32.call $push88=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop88, .LBB1_124 + br_if $pop88, 0 # 0: down to label33 # BB#33: # %check.exit141 i32.const $0=, 35 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_123 + block i32.call $push89=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop89, .LBB1_123 + br_if $pop89, 0 # 0: down to label34 # BB#34: # %check.exit145 i32.const $0=, 36 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_122 + block i32.call $push90=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop90, .LBB1_122 + br_if $pop90, 0 # 0: down to label35 # BB#35: # %check.exit149 i32.const $0=, 37 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_121 + block i32.call $push91=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop91, .LBB1_121 + br_if $pop91, 0 # 0: down to label36 # BB#36: # %check.exit153 i32.const $0=, 38 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_120 + block i32.call $push92=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop92, .LBB1_120 + br_if $pop92, 0 # 0: down to label37 # BB#37: # %check.exit157 i32.const $0=, 39 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_119 + block i32.call $push93=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop93, .LBB1_119 + br_if $pop93, 0 # 0: down to label38 # BB#38: # %check.exit161 i32.const $0=, 40 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_118 + block i32.call $push94=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop94, .LBB1_118 + br_if $pop94, 0 # 0: down to label39 # BB#39: # %check.exit165 i32.const $0=, 41 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_117 + block i32.call $push95=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop95, .LBB1_117 + br_if $pop95, 0 # 0: down to label40 # BB#40: # %check.exit169 i32.const $0=, 42 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_116 + block i32.call $push96=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop96, .LBB1_116 + br_if $pop96, 0 # 0: down to label41 # BB#41: # %check.exit173 i32.const $0=, 43 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_115 + block i32.call $push97=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop97, .LBB1_115 + br_if $pop97, 0 # 0: down to label42 # BB#42: # %check.exit177 i32.const $0=, 44 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_114 + block i32.call $push98=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop98, .LBB1_114 + br_if $pop98, 0 # 0: down to label43 # BB#43: # %check.exit181 i32.const $0=, 45 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_113 + block i32.call $push99=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop99, .LBB1_113 + br_if $pop99, 0 # 0: down to label44 # BB#44: # %check.exit185 i32.const $0=, 46 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_112 + block i32.call $push100=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop100, .LBB1_112 + br_if $pop100, 0 # 0: down to label45 # BB#45: # %check.exit189 i32.const $0=, 47 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_111 + block i32.call $push101=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop101, .LBB1_111 + br_if $pop101, 0 # 0: down to label46 # BB#46: # %check.exit193 i32.const $0=, 48 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_110 + block i32.call $push102=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop102, .LBB1_110 + br_if $pop102, 0 # 0: down to label47 # BB#47: # %check.exit197 i32.const $0=, 49 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_109 + block i32.call $push103=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop103, .LBB1_109 + br_if $pop103, 0 # 0: down to label48 # BB#48: # %check.exit201 i32.const $0=, 50 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_108 + block i32.call $push104=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop104, .LBB1_108 + br_if $pop104, 0 # 0: down to label49 # BB#49: # %check.exit205 i32.const $0=, 51 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_107 + block i32.call $push105=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop105, .LBB1_107 + br_if $pop105, 0 # 0: down to label50 # BB#50: # %check.exit209 i32.const $0=, 52 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_106 + block i32.call $push106=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop106, .LBB1_106 + br_if $pop106, 0 # 0: down to label51 # BB#51: # %check.exit213 i32.const $0=, 53 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_105 + block i32.call $push107=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop107, .LBB1_105 + br_if $pop107, 0 # 0: down to label52 # BB#52: # %check.exit217 i32.const $0=, 54 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_104 + block i32.call $push108=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop108, .LBB1_104 + br_if $pop108, 0 # 0: down to label53 # BB#53: # %check.exit221 i32.const $0=, 55 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_103 + block i32.call $push109=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop109, .LBB1_103 + br_if $pop109, 0 # 0: down to label54 # BB#54: # %check.exit225 i32.const $0=, 56 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_102 + block i32.call $push110=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop110, .LBB1_102 + br_if $pop110, 0 # 0: down to label55 # BB#55: # %check.exit229 i32.const $0=, 57 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_101 + block i32.call $push111=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop111, .LBB1_101 + br_if $pop111, 0 # 0: down to label56 # BB#56: # %check.exit233 i32.const $0=, 58 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_100 + block i32.call $push112=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop112, .LBB1_100 + br_if $pop112, 0 # 0: down to label57 # BB#57: # %check.exit237 i32.const $0=, 59 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_99 + block i32.call $push113=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop113, .LBB1_99 + br_if $pop113, 0 # 0: down to label58 # BB#58: # %check.exit241 i32.const $0=, 60 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_98 + block i32.call $push114=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop114, .LBB1_98 + br_if $pop114, 0 # 0: down to label59 # BB#59: # %check.exit245 i32.const $0=, 61 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_97 + block i32.call $push115=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop115, .LBB1_97 + br_if $pop115, 0 # 0: down to label60 # BB#60: # %check.exit249 i32.const $0=, 62 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_96 + block i32.call $push116=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop116, .LBB1_96 + br_if $pop116, 0 # 0: down to label61 # BB#61: # %check.exit253 i32.const $0=, 63 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_95 + block i32.call $push117=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop117, .LBB1_95 + br_if $pop117, 0 # 0: down to label62 # BB#62: # %check.exit257 i32.const $0=, 64 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_94 + block i32.call $push118=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop118, .LBB1_94 + br_if $pop118, 0 # 0: down to label63 # BB#63: # %check.exit261 i32.const $0=, 65 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_93 + block i32.call $push119=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop119, .LBB1_93 + br_if $pop119, 0 # 0: down to label64 # BB#64: # %check.exit265 i32.const $0=, 66 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_92 + block i32.call $push120=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop120, .LBB1_92 + br_if $pop120, 0 # 0: down to label65 # BB#65: # %check.exit269 i32.const $0=, 67 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_91 + block i32.call $push121=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop121, .LBB1_91 + br_if $pop121, 0 # 0: down to label66 # BB#66: # %check.exit273 i32.const $0=, 68 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_90 + block i32.call $push122=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop122, .LBB1_90 + br_if $pop122, 0 # 0: down to label67 # BB#67: # %check.exit277 i32.const $0=, 69 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_89 + block i32.call $push123=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop123, .LBB1_89 + br_if $pop123, 0 # 0: down to label68 # BB#68: # %check.exit281 i32.const $0=, 70 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_88 + block i32.call $push124=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop124, .LBB1_88 + br_if $pop124, 0 # 0: down to label69 # BB#69: # %check.exit285 i32.const $0=, 71 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_87 + block i32.call $push125=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop125, .LBB1_87 + br_if $pop125, 0 # 0: down to label70 # BB#70: # %check.exit289 i32.const $0=, 72 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_86 + block i32.call $push126=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop126, .LBB1_86 + br_if $pop126, 0 # 0: down to label71 # BB#71: # %check.exit293 i32.const $0=, 73 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_85 + block i32.call $push127=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop127, .LBB1_85 + br_if $pop127, 0 # 0: down to label72 # BB#72: # %check.exit297 i32.const $0=, 74 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_84 + block i32.call $push128=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop128, .LBB1_84 + br_if $pop128, 0 # 0: down to label73 # BB#73: # %check.exit301 i32.const $0=, 75 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_83 + block i32.call $push129=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop129, .LBB1_83 + br_if $pop129, 0 # 0: down to label74 # BB#74: # %check.exit305 i32.const $0=, 76 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_82 + block i32.call $push130=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop130, .LBB1_82 + br_if $pop130, 0 # 0: down to label75 # BB#75: # %check.exit309 i32.const $0=, 77 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_81 + block i32.call $push131=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop131, .LBB1_81 + br_if $pop131, 0 # 0: down to label76 # BB#76: # %check.exit313 i32.const $0=, 78 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_80 + block i32.call $push132=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop132, .LBB1_80 + br_if $pop132, 0 # 0: down to label77 # BB#77: # %check.exit317 i32.const $0=, 79 call memcpy@FUNCTION, $4, $1, $0 - block .LBB1_79 + block i32.call $push133=, memcmp@FUNCTION, $4, $1, $0 - br_if $pop133, .LBB1_79 + br_if $pop133, 0 # 0: down to label78 # BB#78: # %check.exit321 return $2 .LBB1_79: # %if.then.i320 + end_block # label78: call abort@FUNCTION unreachable .LBB1_80: # %if.then.i316 + end_block # label77: call abort@FUNCTION unreachable .LBB1_81: # %if.then.i312 + end_block # label76: call abort@FUNCTION unreachable .LBB1_82: # %if.then.i308 + end_block # label75: call abort@FUNCTION unreachable .LBB1_83: # %if.then.i304 + end_block # label74: call abort@FUNCTION unreachable .LBB1_84: # %if.then.i300 + end_block # label73: call abort@FUNCTION unreachable .LBB1_85: # %if.then.i296 + end_block # label72: call abort@FUNCTION unreachable .LBB1_86: # %if.then.i292 + end_block # label71: call abort@FUNCTION unreachable .LBB1_87: # %if.then.i288 + end_block # label70: call abort@FUNCTION unreachable .LBB1_88: # %if.then.i284 + end_block # label69: call abort@FUNCTION unreachable .LBB1_89: # %if.then.i280 + end_block # label68: call abort@FUNCTION unreachable .LBB1_90: # %if.then.i276 + end_block # label67: call abort@FUNCTION unreachable .LBB1_91: # %if.then.i272 + end_block # label66: call abort@FUNCTION unreachable .LBB1_92: # %if.then.i268 + end_block # label65: call abort@FUNCTION unreachable .LBB1_93: # %if.then.i264 + end_block # label64: call abort@FUNCTION unreachable .LBB1_94: # %if.then.i260 + end_block # label63: call abort@FUNCTION unreachable .LBB1_95: # %if.then.i256 + end_block # label62: call abort@FUNCTION unreachable .LBB1_96: # %if.then.i252 + end_block # label61: call abort@FUNCTION unreachable .LBB1_97: # %if.then.i248 + end_block # label60: call abort@FUNCTION unreachable .LBB1_98: # %if.then.i244 + end_block # label59: call abort@FUNCTION unreachable .LBB1_99: # %if.then.i240 + end_block # label58: call abort@FUNCTION unreachable .LBB1_100: # %if.then.i236 + end_block # label57: call abort@FUNCTION unreachable .LBB1_101: # %if.then.i232 + end_block # label56: call abort@FUNCTION unreachable .LBB1_102: # %if.then.i228 + end_block # label55: call abort@FUNCTION unreachable .LBB1_103: # %if.then.i224 + end_block # label54: call abort@FUNCTION unreachable .LBB1_104: # %if.then.i220 + end_block # label53: call abort@FUNCTION unreachable .LBB1_105: # %if.then.i216 + end_block # label52: call abort@FUNCTION unreachable .LBB1_106: # %if.then.i212 + end_block # label51: call abort@FUNCTION unreachable .LBB1_107: # %if.then.i208 + end_block # label50: call abort@FUNCTION unreachable .LBB1_108: # %if.then.i204 + end_block # label49: call abort@FUNCTION unreachable .LBB1_109: # %if.then.i200 + end_block # label48: call abort@FUNCTION unreachable .LBB1_110: # %if.then.i196 + end_block # label47: call abort@FUNCTION unreachable .LBB1_111: # %if.then.i192 + end_block # label46: call abort@FUNCTION unreachable .LBB1_112: # %if.then.i188 + end_block # label45: call abort@FUNCTION unreachable .LBB1_113: # %if.then.i184 + end_block # label44: call abort@FUNCTION unreachable .LBB1_114: # %if.then.i180 + end_block # label43: call abort@FUNCTION unreachable .LBB1_115: # %if.then.i176 + end_block # label42: call abort@FUNCTION unreachable .LBB1_116: # %if.then.i172 + end_block # label41: call abort@FUNCTION unreachable .LBB1_117: # %if.then.i168 + end_block # label40: call abort@FUNCTION unreachable .LBB1_118: # %if.then.i164 + end_block # label39: call abort@FUNCTION unreachable .LBB1_119: # %if.then.i160 + end_block # label38: call abort@FUNCTION unreachable .LBB1_120: # %if.then.i156 + end_block # label37: call abort@FUNCTION unreachable .LBB1_121: # %if.then.i152 + end_block # label36: call abort@FUNCTION unreachable .LBB1_122: # %if.then.i148 + end_block # label35: call abort@FUNCTION unreachable .LBB1_123: # %if.then.i144 + end_block # label34: call abort@FUNCTION unreachable .LBB1_124: # %if.then.i140 + end_block # label33: call abort@FUNCTION unreachable .LBB1_125: # %if.then.i136 + end_block # label32: call abort@FUNCTION unreachable .LBB1_126: # %if.then.i132 + end_block # label31: call abort@FUNCTION unreachable .LBB1_127: # %if.then.i128 + end_block # label30: call abort@FUNCTION unreachable .LBB1_128: # %if.then.i124 + end_block # label29: call abort@FUNCTION unreachable .LBB1_129: # %if.then.i120 + end_block # label28: call abort@FUNCTION unreachable .LBB1_130: # %if.then.i116 + end_block # label27: call abort@FUNCTION unreachable .LBB1_131: # %if.then.i112 + end_block # label26: call abort@FUNCTION unreachable .LBB1_132: # %if.then.i108 + end_block # label25: call abort@FUNCTION unreachable .LBB1_133: # %if.then.i104 + end_block # label24: call abort@FUNCTION unreachable .LBB1_134: # %if.then.i100 + end_block # label23: call abort@FUNCTION unreachable .LBB1_135: # %if.then.i96 + end_block # label22: call abort@FUNCTION unreachable .LBB1_136: # %if.then.i92 + end_block # label21: call abort@FUNCTION unreachable .LBB1_137: # %if.then.i88 + end_block # label20: call abort@FUNCTION unreachable .LBB1_138: # %if.then.i84 + end_block # label19: call abort@FUNCTION unreachable .LBB1_139: # %if.then.i80 + end_block # label18: call abort@FUNCTION unreachable .LBB1_140: # %if.then.i76 + end_block # label17: call abort@FUNCTION unreachable .LBB1_141: # %if.then.i72 + end_block # label16: call abort@FUNCTION unreachable .LBB1_142: # %if.then.i68 + end_block # label15: call abort@FUNCTION unreachable .LBB1_143: # %if.then.i64 + end_block # label14: call abort@FUNCTION unreachable .LBB1_144: # %if.then.i60 + end_block # label13: call abort@FUNCTION unreachable .LBB1_145: # %if.then.i56 + end_block # label12: call abort@FUNCTION unreachable .LBB1_146: # %if.then.i52 + end_block # label11: call abort@FUNCTION unreachable .LBB1_147: # %if.then.i48 + end_block # label10: call abort@FUNCTION unreachable .LBB1_148: # %if.then.i44 + end_block # label9: call abort@FUNCTION unreachable .LBB1_149: # %if.then.i40 + end_block # label8: call abort@FUNCTION unreachable .LBB1_150: # %if.then.i32 + end_block # label7: call abort@FUNCTION unreachable .LBB1_151: # %if.then.i28 + end_block # label6: call abort@FUNCTION unreachable .LBB1_152: # %if.then.i24 + end_block # label5: call abort@FUNCTION unreachable .LBB1_153: # %if.then.i16 + end_block # label4: call abort@FUNCTION unreachable .LBB1_154: # %if.then.i12 + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/memset-1.c.s b/test/torture-s/memset-1.c.s index 65ff42f83..7f78a614a 100644 --- a/test/torture-s/memset-1.c.s +++ b/test/torture-s/memset-1.c.s @@ -19,13 +19,13 @@ main: # @main # Child Loop BB0_24 Depth 3 # Child Loop BB0_35 Depth 3 # Child Loop BB0_39 Depth 3 - block .LBB0_57 - block .LBB0_56 - block .LBB0_55 - block .LBB0_54 - block .LBB0_53 - block .LBB0_52 - loop .LBB0_51 + block + block + block + block + block + block + loop # label6: i32.const $3=, u i32.add $1=, $3, $0 i32.const $2=, 1 @@ -39,13 +39,13 @@ main: # @main # Child Loop BB0_24 Depth 3 # Child Loop BB0_35 Depth 3 # Child Loop BB0_39 Depth 3 - loop .LBB0_50 + loop # label8: i32.const $14=, -96 .LBB0_3: # %for.body6 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_4 + loop # label10: i32.add $push0=, $3, $14 i32.const $push1=, 96 i32.add $push2=, $pop0, $pop1 @@ -53,326 +53,344 @@ main: # @main i32.store8 $4=, 0($pop2), $pop3 i32.const $5=, 1 i32.add $14=, $14, $5 - br_if $14, .LBB0_3 -.LBB0_4: # %for.end + br_if $14, 0 # 0: up to label10 +# BB#4: # %for.end # in Loop: Header=BB0_2 Depth=2 + end_loop # label11: i32.const $14=, 0 call memset@FUNCTION, $1, $14, $2 copy_local $6=, $3 - block .LBB0_8 + block i32.lt_s $push4=, $0, $5 - br_if $pop4, .LBB0_8 + br_if $pop4, 0 # 0: down to label12 .LBB0_5: # %for.body11 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_7 + loop # label13: i32.const $6=, u i32.add $push5=, $6, $14 i32.load8_u $push6=, 0($pop5) i32.ne $push7=, $pop6, $4 - br_if $pop7, .LBB0_7 + br_if $pop7, 1 # 1: down to label14 # BB#6: # %for.inc16 # in Loop: Header=BB0_5 Depth=3 i32.add $14=, $14, $5 i32.add $6=, $6, $14 i32.lt_s $push8=, $14, $0 - br_if $pop8, .LBB0_5 - br .LBB0_8 + br_if $pop8, 0 # 0: up to label13 + br 2 # 2: down to label12 .LBB0_7: # %if.then14 + end_loop # label14: call abort@FUNCTION unreachable .LBB0_8: # %for.body22.preheader # in Loop: Header=BB0_2 Depth=2 + end_block # label12: i32.const $14=, 0 .LBB0_9: # %for.body22 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_11 + loop # label15: i32.add $push9=, $6, $14 i32.load8_u $push10=, 0($pop9) - br_if $pop10, .LBB0_57 + br_if $pop10, 11 # 11: down to label0 # BB#10: # %for.inc28 # in Loop: Header=BB0_9 Depth=3 i32.add $14=, $14, $5 i32.lt_s $push11=, $14, $2 - br_if $pop11, .LBB0_9 -.LBB0_11: # %for.body35.preheader + br_if $pop11, 0 # 0: up to label15 +# BB#11: # %for.body35.preheader # in Loop: Header=BB0_2 Depth=2 + end_loop # label16: i32.add $14=, $6, $14 i32.load8_u $push12=, 0($14) i32.ne $push13=, $pop12, $4 - br_if $pop13, .LBB0_56 + br_if $pop13, 8 # 8: down to label1 # BB#12: # %for.inc41 # in Loop: Header=BB0_2 Depth=2 i32.add $push14=, $14, $5 i32.load8_u $push15=, 0($pop14) i32.ne $push16=, $pop15, $4 - br_if $pop16, .LBB0_56 + br_if $pop16, 8 # 8: down to label1 # BB#13: # %for.inc41.1 # in Loop: Header=BB0_2 Depth=2 i32.const $7=, 2 i32.add $push17=, $14, $7 i32.load8_u $push18=, 0($pop17) i32.ne $push19=, $pop18, $4 - br_if $pop19, .LBB0_56 + br_if $pop19, 8 # 8: down to label1 # BB#14: # %for.inc41.2 # in Loop: Header=BB0_2 Depth=2 i32.const $8=, 3 i32.add $push20=, $14, $8 i32.load8_u $push21=, 0($pop20) i32.ne $push22=, $pop21, $4 - br_if $pop22, .LBB0_56 + br_if $pop22, 8 # 8: down to label1 # BB#15: # %for.inc41.3 # in Loop: Header=BB0_2 Depth=2 i32.const $9=, 4 i32.add $push23=, $14, $9 i32.load8_u $push24=, 0($pop23) i32.ne $push25=, $pop24, $4 - br_if $pop25, .LBB0_56 + br_if $pop25, 8 # 8: down to label1 # BB#16: # %for.inc41.4 # in Loop: Header=BB0_2 Depth=2 i32.const $10=, 5 i32.add $push26=, $14, $10 i32.load8_u $push27=, 0($pop26) i32.ne $push28=, $pop27, $4 - br_if $pop28, .LBB0_56 + br_if $pop28, 8 # 8: down to label1 # BB#17: # %for.inc41.5 # in Loop: Header=BB0_2 Depth=2 i32.const $11=, 6 i32.add $push29=, $14, $11 i32.load8_u $push30=, 0($pop29) i32.ne $push31=, $pop30, $4 - br_if $pop31, .LBB0_56 + br_if $pop31, 8 # 8: down to label1 # BB#18: # %for.inc41.6 # in Loop: Header=BB0_2 Depth=2 i32.const $12=, 7 i32.add $push32=, $14, $12 i32.load8_u $push33=, 0($pop32) i32.ne $push34=, $pop33, $4 - br_if $pop34, .LBB0_56 + br_if $pop34, 8 # 8: down to label1 # BB#19: # %for.inc41.7 # in Loop: Header=BB0_2 Depth=2 i32.const $14=, 0 i32.load8_u $push36=, A($14) call memset@FUNCTION, $1, $pop36, $2 i32.const $6=, u - block .LBB0_23 + block i32.le_s $push35=, $0, $14 - br_if $pop35, .LBB0_23 + br_if $pop35, 0 # 0: down to label17 .LBB0_20: # %for.body55 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_22 + loop # label18: i32.const $6=, u i32.add $push37=, $6, $14 i32.load8_u $push38=, 0($pop37) i32.ne $push39=, $pop38, $4 - br_if $pop39, .LBB0_22 + br_if $pop39, 1 # 1: down to label19 # BB#21: # %for.inc61 # in Loop: Header=BB0_20 Depth=3 i32.add $14=, $14, $5 i32.add $6=, $6, $14 i32.lt_s $push40=, $14, $0 - br_if $pop40, .LBB0_20 - br .LBB0_23 + br_if $pop40, 0 # 0: up to label18 + br 2 # 2: down to label17 .LBB0_22: # %if.then59 + end_loop # label19: call abort@FUNCTION unreachable .LBB0_23: # %for.body68.preheader # in Loop: Header=BB0_2 Depth=2 + end_block # label17: i32.const $14=, 0 .LBB0_24: # %for.body68 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_26 + loop # label20: i32.add $push41=, $6, $14 i32.load8_u $push42=, 0($pop41) i32.const $push43=, 65 i32.ne $push44=, $pop42, $pop43 - br_if $pop44, .LBB0_55 + br_if $pop44, 9 # 9: down to label2 # BB#25: # %for.inc74 # in Loop: Header=BB0_24 Depth=3 i32.add $14=, $14, $5 i32.lt_s $push45=, $14, $2 - br_if $pop45, .LBB0_24 -.LBB0_26: # %for.body81.preheader + br_if $pop45, 0 # 0: up to label20 +# BB#26: # %for.body81.preheader # in Loop: Header=BB0_2 Depth=2 + end_loop # label21: i32.add $14=, $6, $14 i32.load8_u $push46=, 0($14) i32.ne $push47=, $pop46, $4 - br_if $pop47, .LBB0_54 + br_if $pop47, 6 # 6: down to label3 # BB#27: # %for.inc87 # in Loop: Header=BB0_2 Depth=2 i32.add $push48=, $14, $5 i32.load8_u $push49=, 0($pop48) i32.ne $push50=, $pop49, $4 - br_if $pop50, .LBB0_54 + br_if $pop50, 6 # 6: down to label3 # BB#28: # %for.inc87.1 # in Loop: Header=BB0_2 Depth=2 i32.add $push51=, $14, $7 i32.load8_u $push52=, 0($pop51) i32.ne $push53=, $pop52, $4 - br_if $pop53, .LBB0_54 + br_if $pop53, 6 # 6: down to label3 # BB#29: # %for.inc87.2 # in Loop: Header=BB0_2 Depth=2 i32.add $push54=, $14, $8 i32.load8_u $push55=, 0($pop54) i32.ne $push56=, $pop55, $4 - br_if $pop56, .LBB0_54 + br_if $pop56, 6 # 6: down to label3 # BB#30: # %for.inc87.3 # in Loop: Header=BB0_2 Depth=2 i32.add $push57=, $14, $9 i32.load8_u $push58=, 0($pop57) i32.ne $push59=, $pop58, $4 - br_if $pop59, .LBB0_54 + br_if $pop59, 6 # 6: down to label3 # BB#31: # %for.inc87.4 # in Loop: Header=BB0_2 Depth=2 i32.add $push60=, $14, $10 i32.load8_u $push61=, 0($pop60) i32.ne $push62=, $pop61, $4 - br_if $pop62, .LBB0_54 + br_if $pop62, 6 # 6: down to label3 # BB#32: # %for.inc87.5 # in Loop: Header=BB0_2 Depth=2 i32.add $push63=, $14, $11 i32.load8_u $push64=, 0($pop63) i32.ne $push65=, $pop64, $4 - br_if $pop65, .LBB0_54 + br_if $pop65, 6 # 6: down to label3 # BB#33: # %for.inc87.6 # in Loop: Header=BB0_2 Depth=2 i32.add $push66=, $14, $12 i32.load8_u $push67=, 0($pop66) i32.ne $push68=, $pop67, $4 - br_if $pop68, .LBB0_54 + br_if $pop68, 6 # 6: down to label3 # BB#34: # %for.inc87.7 # in Loop: Header=BB0_2 Depth=2 i32.const $14=, 0 i32.const $13=, 66 call memset@FUNCTION, $1, $13, $2 i32.const $6=, u - block .LBB0_38 + block i32.le_s $push69=, $0, $14 - br_if $pop69, .LBB0_38 + br_if $pop69, 0 # 0: down to label22 .LBB0_35: # %for.body100 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_37 + loop # label23: i32.const $6=, u i32.add $push70=, $6, $14 i32.load8_u $push71=, 0($pop70) i32.ne $push72=, $pop71, $4 - br_if $pop72, .LBB0_37 + br_if $pop72, 1 # 1: down to label24 # BB#36: # %for.inc106 # in Loop: Header=BB0_35 Depth=3 i32.add $14=, $14, $5 i32.add $6=, $6, $14 i32.lt_s $push73=, $14, $0 - br_if $pop73, .LBB0_35 - br .LBB0_38 + br_if $pop73, 0 # 0: up to label23 + br 2 # 2: down to label22 .LBB0_37: # %if.then104 + end_loop # label24: call abort@FUNCTION unreachable .LBB0_38: # %for.body113.preheader # in Loop: Header=BB0_2 Depth=2 + end_block # label22: i32.const $14=, 0 .LBB0_39: # %for.body113 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_41 + loop # label25: i32.add $push74=, $6, $14 i32.load8_u $push75=, 0($pop74) i32.ne $push76=, $pop75, $13 - br_if $pop76, .LBB0_53 + br_if $pop76, 7 # 7: down to label4 # BB#40: # %for.inc119 # in Loop: Header=BB0_39 Depth=3 i32.add $14=, $14, $5 i32.lt_s $push77=, $14, $2 - br_if $pop77, .LBB0_39 -.LBB0_41: # %for.body126.preheader + br_if $pop77, 0 # 0: up to label25 +# BB#41: # %for.body126.preheader # in Loop: Header=BB0_2 Depth=2 + end_loop # label26: i32.add $14=, $6, $14 i32.load8_u $push78=, 0($14) i32.ne $push79=, $pop78, $4 - br_if $pop79, .LBB0_52 + br_if $pop79, 4 # 4: down to label5 # BB#42: # %for.inc132 # in Loop: Header=BB0_2 Depth=2 i32.add $push80=, $14, $5 i32.load8_u $push81=, 0($pop80) i32.ne $push82=, $pop81, $4 - br_if $pop82, .LBB0_52 + br_if $pop82, 4 # 4: down to label5 # BB#43: # %for.inc132.1 # in Loop: Header=BB0_2 Depth=2 i32.add $push83=, $14, $7 i32.load8_u $push84=, 0($pop83) i32.ne $push85=, $pop84, $4 - br_if $pop85, .LBB0_52 + br_if $pop85, 4 # 4: down to label5 # BB#44: # %for.inc132.2 # in Loop: Header=BB0_2 Depth=2 i32.add $push86=, $14, $8 i32.load8_u $push87=, 0($pop86) i32.ne $push88=, $pop87, $4 - br_if $pop88, .LBB0_52 + br_if $pop88, 4 # 4: down to label5 # BB#45: # %for.inc132.3 # in Loop: Header=BB0_2 Depth=2 i32.add $push89=, $14, $9 i32.load8_u $push90=, 0($pop89) i32.ne $push91=, $pop90, $4 - br_if $pop91, .LBB0_52 + br_if $pop91, 4 # 4: down to label5 # BB#46: # %for.inc132.4 # in Loop: Header=BB0_2 Depth=2 i32.add $push92=, $14, $10 i32.load8_u $push93=, 0($pop92) i32.ne $push94=, $pop93, $4 - br_if $pop94, .LBB0_52 + br_if $pop94, 4 # 4: down to label5 # BB#47: # %for.inc132.5 # in Loop: Header=BB0_2 Depth=2 i32.add $push95=, $14, $11 i32.load8_u $push96=, 0($pop95) i32.ne $push97=, $pop96, $4 - br_if $pop97, .LBB0_52 + br_if $pop97, 4 # 4: down to label5 # BB#48: # %for.inc132.6 # in Loop: Header=BB0_2 Depth=2 i32.add $push98=, $14, $12 i32.load8_u $push99=, 0($pop98) i32.ne $push100=, $pop99, $4 - br_if $pop100, .LBB0_52 + br_if $pop100, 4 # 4: down to label5 # BB#49: # %for.inc132.7 # in Loop: Header=BB0_2 Depth=2 i32.add $2=, $2, $5 i32.const $push101=, 80 i32.lt_u $push102=, $2, $pop101 - br_if $pop102, .LBB0_2 -.LBB0_50: # %for.inc139 + br_if $pop102, 0 # 0: up to label8 +# BB#50: # %for.inc139 # in Loop: Header=BB0_1 Depth=1 + end_loop # label9: i32.add $0=, $0, $5 i32.const $push103=, 8 i32.lt_u $push104=, $0, $pop103 - br_if $pop104, .LBB0_1 -.LBB0_51: # %for.end141 + br_if $pop104, 0 # 0: up to label6 +# BB#51: # %for.end141 + end_loop # label7: i32.const $push105=, 0 call exit@FUNCTION, $pop105 unreachable .LBB0_52: # %if.then130 + end_block # label5: call abort@FUNCTION unreachable .LBB0_53: # %if.then117 + end_block # label4: call abort@FUNCTION unreachable .LBB0_54: # %if.then85 + end_block # label3: call abort@FUNCTION unreachable .LBB0_55: # %if.then72 + end_block # label2: call abort@FUNCTION unreachable .LBB0_56: # %if.then39 + end_block # label1: call abort@FUNCTION unreachable .LBB0_57: # %if.then26 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/memset-2.c.s b/test/torture-s/memset-2.c.s index cb584e2e8..96568b605 100644 --- a/test/torture-s/memset-2.c.s +++ b/test/torture-s/memset-2.c.s @@ -52,90 +52,95 @@ check: # @check # BB#0: # %entry i32.const $4=, 0 i32.const $3=, u - block .LBB1_4 + block i32.le_s $push0=, $0, $4 - br_if $pop0, .LBB1_4 + br_if $pop0, 0 # 0: down to label0 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label1: i32.const $3=, u i32.add $push1=, $3, $4 i32.load8_u $push2=, 0($pop1) i32.const $push3=, 97 i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_3 + br_if $pop4, 1 # 1: down to label2 # BB#2: # %for.inc # in Loop: Header=BB1_1 Depth=1 i32.const $push5=, 1 i32.add $4=, $4, $pop5 i32.add $3=, $3, $4 i32.lt_s $push6=, $4, $0 - br_if $pop6, .LBB1_1 - br .LBB1_4 + br_if $pop6, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB1_3: # %if.then + end_loop # label2: call abort@FUNCTION unreachable .LBB1_4: # %for.cond3.preheader + end_block # label0: i32.const $4=, 0 copy_local $0=, $3 - block .LBB1_8 + block i32.le_s $push7=, $1, $4 - br_if $pop7, .LBB1_8 + br_if $pop7, 0 # 0: down to label3 .LBB1_5: # %for.body6 # =>This Inner Loop Header: Depth=1 - loop .LBB1_7 + loop # label4: i32.add $push8=, $3, $4 i32.load8_s $push9=, 0($pop8) i32.ne $push10=, $pop9, $2 - br_if $pop10, .LBB1_7 + br_if $pop10, 1 # 1: down to label5 # BB#6: # %for.inc12 # in Loop: Header=BB1_5 Depth=1 i32.const $push11=, 1 i32.add $4=, $4, $pop11 i32.add $0=, $3, $4 i32.lt_s $push12=, $4, $1 - br_if $pop12, .LBB1_5 - br .LBB1_8 + br_if $pop12, 0 # 0: up to label4 + br 2 # 2: down to label3 .LBB1_7: # %if.then10 + end_loop # label5: call abort@FUNCTION unreachable .LBB1_8: # %for.body19.preheader + end_block # label3: i32.const $4=, 97 - block .LBB1_17 + block i32.load8_u $push13=, 0($0) i32.ne $push14=, $pop13, $4 - br_if $pop14, .LBB1_17 + br_if $pop14, 0 # 0: down to label6 # BB#9: # %for.inc25 i32.load8_u $push15=, 1($0) i32.ne $push16=, $pop15, $4 - br_if $pop16, .LBB1_17 + br_if $pop16, 0 # 0: down to label6 # BB#10: # %for.inc25.1 i32.load8_u $push17=, 2($0) i32.ne $push18=, $pop17, $4 - br_if $pop18, .LBB1_17 + br_if $pop18, 0 # 0: down to label6 # BB#11: # %for.inc25.2 i32.load8_u $push19=, 3($0) i32.ne $push20=, $pop19, $4 - br_if $pop20, .LBB1_17 + br_if $pop20, 0 # 0: down to label6 # BB#12: # %for.inc25.3 i32.load8_u $push21=, 4($0) i32.ne $push22=, $pop21, $4 - br_if $pop22, .LBB1_17 + br_if $pop22, 0 # 0: down to label6 # BB#13: # %for.inc25.4 i32.load8_u $push23=, 5($0) i32.ne $push24=, $pop23, $4 - br_if $pop24, .LBB1_17 + br_if $pop24, 0 # 0: down to label6 # BB#14: # %for.inc25.5 i32.load8_u $push25=, 6($0) i32.ne $push26=, $pop25, $4 - br_if $pop26, .LBB1_17 + br_if $pop26, 0 # 0: down to label6 # BB#15: # %for.inc25.6 i32.load8_u $push27=, 7($0) i32.ne $push28=, $pop27, $4 - br_if $pop28, .LBB1_17 + br_if $pop28, 0 # 0: down to label6 # BB#16: # %for.inc25.7 return .LBB1_17: # %if.then23 + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end1: @@ -153,7 +158,7 @@ main: # @main copy_local $25=, $27 .LBB2_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label7: i32.const $push0=, 1633771873 i32.store $22=, u($27), $pop0 i32.const $push1=, 24929 @@ -200,10 +205,11 @@ main: # @main i32.const $3=, 8 copy_local $24=, $17 i32.ne $push29=, $25, $3 - br_if $pop29, .LBB2_1 + br_if $pop29, 0 # 0: up to label7 .LBB2_2: # %for.body18 # =>This Inner Loop Header: Depth=1 - loop .LBB2_3 + end_loop # label8: + loop # label9: i32.store8 $push30=, u+6($17), $13 i32.store8 $push31=, u+7($17), $pop30 i32.store8 $push32=, u+8($17), $pop31 @@ -247,10 +253,11 @@ main: # @main i32.add $24=, $24, $1 copy_local $18=, $27 i32.ne $push58=, $24, $3 - br_if $pop58, .LBB2_2 + br_if $pop58, 0 # 0: up to label9 .LBB2_3: # %for.body44 # =>This Inner Loop Header: Depth=1 - loop .LBB2_4 + end_loop # label10: + loop # label11: i32.store8 $push59=, u+6($27), $8 i32.store8 $push60=, u+7($27), $pop59 i32.store8 $push61=, u+8($27), $pop60 @@ -298,10 +305,11 @@ main: # @main i32.add $18=, $18, $1 copy_local $24=, $17 i32.ne $push89=, $18, $3 - br_if $pop89, .LBB2_3 + br_if $pop89, 0 # 0: up to label11 .LBB2_4: # %for.body70 # =>This Inner Loop Header: Depth=1 - loop .LBB2_5 + end_loop # label12: + loop # label13: i32.store8 $push90=, u+6($17), $15 i32.store8 $push91=, u+7($17), $pop90 i32.store8 $push92=, u+8($17), $pop91 @@ -353,10 +361,11 @@ main: # @main i32.add $24=, $24, $1 copy_local $18=, $27 i32.ne $push122=, $24, $3 - br_if $pop122, .LBB2_4 + br_if $pop122, 0 # 0: up to label13 .LBB2_5: # %for.body96 # =>This Inner Loop Header: Depth=1 - loop .LBB2_6 + end_loop # label14: + loop # label15: i32.store8 $push123=, u+6($27), $12 i32.store8 $push124=, u+7($27), $pop123 i32.store8 $push125=, u+8($27), $pop124 @@ -412,10 +421,11 @@ main: # @main i32.add $18=, $18, $1 copy_local $22=, $17 i32.ne $push157=, $18, $3 - br_if $pop157, .LBB2_5 + br_if $pop157, 0 # 0: up to label15 .LBB2_6: # %for.body122 # =>This Inner Loop Header: Depth=1 - loop .LBB2_7 + end_loop # label16: + loop # label17: i32.store8 $push158=, u+6($17), $16 i32.store8 $push159=, u+7($17), $pop158 i32.store8 $push160=, u+8($17), $pop159 @@ -475,10 +485,11 @@ main: # @main i32.add $22=, $22, $1 copy_local $26=, $27 i32.ne $push194=, $22, $3 - br_if $pop194, .LBB2_6 + br_if $pop194, 0 # 0: up to label17 .LBB2_7: # %for.body148 # =>This Inner Loop Header: Depth=1 - loop .LBB2_8 + end_loop # label18: + loop # label19: i32.store8 $push195=, u+6($27), $4 i32.store8 $push196=, u+7($27), $pop195 i32.store8 $push197=, u+8($27), $pop196 @@ -542,10 +553,11 @@ main: # @main i32.add $26=, $26, $1 copy_local $24=, $17 i32.ne $push233=, $26, $3 - br_if $pop233, .LBB2_7 + br_if $pop233, 0 # 0: up to label19 .LBB2_8: # %for.body174 # =>This Inner Loop Header: Depth=1 - loop .LBB2_9 + end_loop # label20: + loop # label21: i32.store8 $push234=, u+6($17), $6 i32.store8 $push235=, u+7($17), $pop234 i32.store8 $push236=, u+8($17), $pop235 @@ -614,10 +626,11 @@ main: # @main i32.add $24=, $24, $1 copy_local $27=, $17 i32.ne $push276=, $24, $3 - br_if $pop276, .LBB2_8 + br_if $pop276, 0 # 0: up to label21 .LBB2_9: # %for.body200 # =>This Inner Loop Header: Depth=1 - loop .LBB2_10 + end_loop # label22: + loop # label23: i32.store8 $push277=, u+6($17), $4 i32.store8 $push278=, u+7($17), $pop277 i32.store8 $push279=, u+8($17), $pop278 @@ -657,10 +670,11 @@ main: # @main i32.add $27=, $27, $1 copy_local $25=, $17 i32.ne $push302=, $27, $3 - br_if $pop302, .LBB2_9 + br_if $pop302, 0 # 0: up to label23 .LBB2_10: # %for.body226 # =>This Inner Loop Header: Depth=1 - loop .LBB2_11 + end_loop # label24: + loop # label25: i32.store8 $push303=, u+6($17), $23 i32.store8 $push304=, u+7($17), $pop303 i32.store8 $push305=, u+8($17), $pop304 @@ -700,10 +714,11 @@ main: # @main i32.add $25=, $25, $1 copy_local $27=, $17 i32.ne $push328=, $25, $3 - br_if $pop328, .LBB2_10 + br_if $pop328, 0 # 0: up to label25 .LBB2_11: # %for.body252 # =>This Inner Loop Header: Depth=1 - loop .LBB2_12 + end_loop # label26: + loop # label27: i32.store8 $push329=, u+6($17), $26 i32.store8 $push330=, u+7($17), $pop329 i32.store8 $push331=, u+8($17), $pop330 @@ -743,10 +758,11 @@ main: # @main i32.add $27=, $27, $1 copy_local $25=, $17 i32.ne $push354=, $27, $3 - br_if $pop354, .LBB2_11 + br_if $pop354, 0 # 0: up to label27 .LBB2_12: # %for.body278 # =>This Inner Loop Header: Depth=1 - loop .LBB2_13 + end_loop # label28: + loop # label29: i32.store8 $push355=, u+6($17), $23 i32.store8 $push356=, u+7($17), $pop355 i32.store8 $push357=, u+8($17), $pop356 @@ -786,10 +802,11 @@ main: # @main i32.add $25=, $25, $1 copy_local $27=, $17 i32.ne $push380=, $25, $3 - br_if $pop380, .LBB2_12 + br_if $pop380, 0 # 0: up to label29 .LBB2_13: # %for.body304 # =>This Inner Loop Header: Depth=1 - loop .LBB2_14 + end_loop # label30: + loop # label31: i32.store8 $push381=, u+6($17), $26 i32.store8 $push382=, u+7($17), $pop381 i32.store8 $push383=, u+8($17), $pop382 @@ -829,10 +846,11 @@ main: # @main i32.add $27=, $27, $1 copy_local $25=, $17 i32.ne $push406=, $27, $3 - br_if $pop406, .LBB2_13 + br_if $pop406, 0 # 0: up to label31 .LBB2_14: # %for.body330 # =>This Inner Loop Header: Depth=1 - loop .LBB2_15 + end_loop # label32: + loop # label33: i32.store8 $push407=, u+6($17), $8 i32.store8 $push408=, u+7($17), $pop407 i32.store8 $push409=, u+8($17), $pop408 @@ -872,10 +890,11 @@ main: # @main i32.add $25=, $25, $1 copy_local $27=, $17 i32.ne $push432=, $25, $3 - br_if $pop432, .LBB2_14 + br_if $pop432, 0 # 0: up to label33 .LBB2_15: # %for.body356 # =>This Inner Loop Header: Depth=1 - loop .LBB2_16 + end_loop # label34: + loop # label35: i32.store8 $push433=, u+6($17), $23 i32.store8 $push434=, u+7($17), $pop433 i32.store8 $push435=, u+8($17), $pop434 @@ -914,8 +933,9 @@ main: # @main call check@FUNCTION, $27, $25, $18 i32.add $27=, $27, $1 i32.ne $push458=, $27, $3 - br_if $pop458, .LBB2_15 -.LBB2_16: # %for.end378 + br_if $pop458, 0 # 0: up to label35 +# BB#16: # %for.end378 + end_loop # label36: i32.const $push459=, 0 call exit@FUNCTION, $pop459 unreachable diff --git a/test/torture-s/memset-3.c.s b/test/torture-s/memset-3.c.s index 6ecdde28b..232c7e6bf 100644 --- a/test/torture-s/memset-3.c.s +++ b/test/torture-s/memset-3.c.s @@ -52,90 +52,95 @@ check: # @check # BB#0: # %entry i32.const $4=, 0 i32.const $3=, u - block .LBB1_4 + block i32.le_s $push0=, $0, $4 - br_if $pop0, .LBB1_4 + br_if $pop0, 0 # 0: down to label0 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label1: i32.const $3=, u i32.add $push1=, $3, $4 i32.load8_u $push2=, 0($pop1) i32.const $push3=, 97 i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_3 + br_if $pop4, 1 # 1: down to label2 # BB#2: # %for.inc # in Loop: Header=BB1_1 Depth=1 i32.const $push5=, 1 i32.add $4=, $4, $pop5 i32.add $3=, $3, $4 i32.lt_s $push6=, $4, $0 - br_if $pop6, .LBB1_1 - br .LBB1_4 + br_if $pop6, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB1_3: # %if.then + end_loop # label2: call abort@FUNCTION unreachable .LBB1_4: # %for.cond3.preheader + end_block # label0: i32.const $4=, 0 copy_local $0=, $3 - block .LBB1_8 + block i32.le_s $push7=, $1, $4 - br_if $pop7, .LBB1_8 + br_if $pop7, 0 # 0: down to label3 .LBB1_5: # %for.body6 # =>This Inner Loop Header: Depth=1 - loop .LBB1_7 + loop # label4: i32.add $push8=, $3, $4 i32.load8_s $push9=, 0($pop8) i32.ne $push10=, $pop9, $2 - br_if $pop10, .LBB1_7 + br_if $pop10, 1 # 1: down to label5 # BB#6: # %for.inc12 # in Loop: Header=BB1_5 Depth=1 i32.const $push11=, 1 i32.add $4=, $4, $pop11 i32.add $0=, $3, $4 i32.lt_s $push12=, $4, $1 - br_if $pop12, .LBB1_5 - br .LBB1_8 + br_if $pop12, 0 # 0: up to label4 + br 2 # 2: down to label3 .LBB1_7: # %if.then10 + end_loop # label5: call abort@FUNCTION unreachable .LBB1_8: # %for.body19.preheader + end_block # label3: i32.const $4=, 97 - block .LBB1_17 + block i32.load8_u $push13=, 0($0) i32.ne $push14=, $pop13, $4 - br_if $pop14, .LBB1_17 + br_if $pop14, 0 # 0: down to label6 # BB#9: # %for.inc25 i32.load8_u $push15=, 1($0) i32.ne $push16=, $pop15, $4 - br_if $pop16, .LBB1_17 + br_if $pop16, 0 # 0: down to label6 # BB#10: # %for.inc25.1 i32.load8_u $push17=, 2($0) i32.ne $push18=, $pop17, $4 - br_if $pop18, .LBB1_17 + br_if $pop18, 0 # 0: down to label6 # BB#11: # %for.inc25.2 i32.load8_u $push19=, 3($0) i32.ne $push20=, $pop19, $4 - br_if $pop20, .LBB1_17 + br_if $pop20, 0 # 0: down to label6 # BB#12: # %for.inc25.3 i32.load8_u $push21=, 4($0) i32.ne $push22=, $pop21, $4 - br_if $pop22, .LBB1_17 + br_if $pop22, 0 # 0: down to label6 # BB#13: # %for.inc25.4 i32.load8_u $push23=, 5($0) i32.ne $push24=, $pop23, $4 - br_if $pop24, .LBB1_17 + br_if $pop24, 0 # 0: down to label6 # BB#14: # %for.inc25.5 i32.load8_u $push25=, 6($0) i32.ne $push26=, $pop25, $4 - br_if $pop26, .LBB1_17 + br_if $pop26, 0 # 0: down to label6 # BB#15: # %for.inc25.6 i32.load8_u $push27=, 7($0) i32.ne $push28=, $pop27, $4 - br_if $pop28, .LBB1_17 + br_if $pop28, 0 # 0: down to label6 # BB#16: # %for.inc25.7 return .LBB1_17: # %if.then23 + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end1: @@ -156,10 +161,10 @@ main: # @main # Child Loop BB2_2 Depth 2 # Child Loop BB2_14 Depth 2 # Child Loop BB2_26 Depth 2 - block .LBB2_48 - block .LBB2_47 - block .LBB2_46 - loop .LBB2_38 + block + block + block + loop # label10: i32.const $push0=, 1633771873 i32.store $8=, u($12), $pop0 i32.const $push1=, 24929 @@ -195,201 +200,207 @@ main: # @main i32.const $0=, 1 i32.lt_s $6=, $13, $0 copy_local $2=, $12 - block .LBB2_5 - br_if $6, .LBB2_5 + block + br_if $6, 0 # 0: down to label12 .LBB2_2: # %for.body6.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_4 + loop # label13: i32.const $11=, u i32.add $push26=, $11, $2 i32.load8_u $push27=, 0($pop26) - br_if $pop27, .LBB2_4 + br_if $pop27, 1 # 1: down to label14 # BB#3: # %for.inc12.i # in Loop: Header=BB2_2 Depth=2 i32.add $2=, $2, $0 i32.add $11=, $11, $2 i32.lt_s $push28=, $2, $13 - br_if $pop28, .LBB2_2 - br .LBB2_5 + br_if $pop28, 0 # 0: up to label13 + br 2 # 2: down to label12 .LBB2_4: # %if.then10.i + end_loop # label14: call abort@FUNCTION unreachable .LBB2_5: # %for.body19.preheader.i # in Loop: Header=BB2_1 Depth=1 + end_block # label12: i32.load8_u $push29=, 0($11) i32.ne $push30=, $pop29, $10 - br_if $pop30, .LBB2_48 + br_if $pop30, 4 # 4: down to label7 # BB#6: # %for.inc25.i # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push31=, 1($11) i32.ne $push32=, $pop31, $10 - br_if $pop32, .LBB2_48 + br_if $pop32, 4 # 4: down to label7 # BB#7: # %for.inc25.1.i # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push33=, 2($11) i32.ne $push34=, $pop33, $10 - br_if $pop34, .LBB2_48 + br_if $pop34, 4 # 4: down to label7 # BB#8: # %for.inc25.2.i # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push35=, 3($11) i32.ne $push36=, $pop35, $10 - br_if $pop36, .LBB2_48 + br_if $pop36, 4 # 4: down to label7 # BB#9: # %for.inc25.3.i # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push37=, 4($11) i32.ne $push38=, $pop37, $10 - br_if $pop38, .LBB2_48 + br_if $pop38, 4 # 4: down to label7 # BB#10: # %for.inc25.4.i # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push39=, 5($11) i32.ne $push40=, $pop39, $10 - br_if $pop40, .LBB2_48 + br_if $pop40, 4 # 4: down to label7 # BB#11: # %for.inc25.5.i # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push41=, 6($11) i32.ne $push42=, $pop41, $10 - br_if $pop42, .LBB2_48 + br_if $pop42, 4 # 4: down to label7 # BB#12: # %for.inc25.6.i # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push43=, 7($11) i32.ne $push44=, $pop43, $10 - br_if $pop44, .LBB2_48 + br_if $pop44, 4 # 4: down to label7 # BB#13: # %check.exit # in Loop: Header=BB2_1 Depth=1 i32.const $2=, 0 i32.const $11=, u - block .LBB2_17 + block i32.load8_u $push45=, A($2) call memset@FUNCTION, $11, $pop45, $13 - br_if $6, .LBB2_17 + br_if $6, 0 # 0: down to label15 .LBB2_14: # %for.body6.i241 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_16 + loop # label16: i32.const $11=, u i32.add $push46=, $11, $2 i32.load8_u $push47=, 0($pop46) i32.const $push48=, 65 i32.ne $push49=, $pop47, $pop48 - br_if $pop49, .LBB2_16 + br_if $pop49, 1 # 1: down to label17 # BB#15: # %for.inc12.i246 # in Loop: Header=BB2_14 Depth=2 i32.add $2=, $2, $0 i32.add $11=, $11, $2 i32.lt_s $push50=, $2, $13 - br_if $pop50, .LBB2_14 - br .LBB2_17 + br_if $pop50, 0 # 0: up to label16 + br 2 # 2: down to label15 .LBB2_16: # %if.then10.i242 + end_loop # label17: call abort@FUNCTION unreachable .LBB2_17: # %for.body19.preheader.i249 # in Loop: Header=BB2_1 Depth=1 + end_block # label15: i32.load8_u $push51=, 0($11) i32.ne $push52=, $pop51, $10 - br_if $pop52, .LBB2_47 + br_if $pop52, 3 # 3: down to label8 # BB#18: # %for.inc25.i253 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push53=, 1($11) i32.ne $push54=, $pop53, $10 - br_if $pop54, .LBB2_47 + br_if $pop54, 3 # 3: down to label8 # BB#19: # %for.inc25.1.i256 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push55=, 2($11) i32.ne $push56=, $pop55, $10 - br_if $pop56, .LBB2_47 + br_if $pop56, 3 # 3: down to label8 # BB#20: # %for.inc25.2.i259 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push57=, 3($11) i32.ne $push58=, $pop57, $10 - br_if $pop58, .LBB2_47 + br_if $pop58, 3 # 3: down to label8 # BB#21: # %for.inc25.3.i262 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push59=, 4($11) i32.ne $push60=, $pop59, $10 - br_if $pop60, .LBB2_47 + br_if $pop60, 3 # 3: down to label8 # BB#22: # %for.inc25.4.i265 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push61=, 5($11) i32.ne $push62=, $pop61, $10 - br_if $pop62, .LBB2_47 + br_if $pop62, 3 # 3: down to label8 # BB#23: # %for.inc25.5.i268 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push63=, 6($11) i32.ne $push64=, $pop63, $10 - br_if $pop64, .LBB2_47 + br_if $pop64, 3 # 3: down to label8 # BB#24: # %for.inc25.6.i271 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push65=, 7($11) i32.ne $push66=, $pop65, $10 - br_if $pop66, .LBB2_47 + br_if $pop66, 3 # 3: down to label8 # BB#25: # %check.exit272 # in Loop: Header=BB2_1 Depth=1 i32.const $11=, u i32.const $1=, 66 call memset@FUNCTION, $11, $1, $13 i32.const $2=, 0 - block .LBB2_29 - br_if $6, .LBB2_29 + block + br_if $6, 0 # 0: down to label18 .LBB2_26: # %for.body6.i278 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_28 + loop # label19: i32.const $11=, u i32.add $push67=, $11, $2 i32.load8_u $push68=, 0($pop67) i32.ne $push69=, $pop68, $1 - br_if $pop69, .LBB2_28 + br_if $pop69, 1 # 1: down to label20 # BB#27: # %for.inc12.i283 # in Loop: Header=BB2_26 Depth=2 i32.add $2=, $2, $0 i32.add $11=, $11, $2 i32.lt_s $push70=, $2, $13 - br_if $pop70, .LBB2_26 - br .LBB2_29 + br_if $pop70, 0 # 0: up to label19 + br 2 # 2: down to label18 .LBB2_28: # %if.then10.i279 + end_loop # label20: call abort@FUNCTION unreachable .LBB2_29: # %for.body19.preheader.i286 # in Loop: Header=BB2_1 Depth=1 + end_block # label18: i32.load8_u $push71=, 0($11) i32.ne $push72=, $pop71, $10 - br_if $pop72, .LBB2_46 + br_if $pop72, 2 # 2: down to label9 # BB#30: # %for.inc25.i290 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push73=, 1($11) i32.ne $push74=, $pop73, $10 - br_if $pop74, .LBB2_46 + br_if $pop74, 2 # 2: down to label9 # BB#31: # %for.inc25.1.i293 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push75=, 2($11) i32.ne $push76=, $pop75, $10 - br_if $pop76, .LBB2_46 + br_if $pop76, 2 # 2: down to label9 # BB#32: # %for.inc25.2.i296 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push77=, 3($11) i32.ne $push78=, $pop77, $10 - br_if $pop78, .LBB2_46 + br_if $pop78, 2 # 2: down to label9 # BB#33: # %for.inc25.3.i299 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push79=, 4($11) i32.ne $push80=, $pop79, $10 - br_if $pop80, .LBB2_46 + br_if $pop80, 2 # 2: down to label9 # BB#34: # %for.inc25.4.i302 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push81=, 5($11) i32.ne $push82=, $pop81, $10 - br_if $pop82, .LBB2_46 + br_if $pop82, 2 # 2: down to label9 # BB#35: # %for.inc25.5.i305 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push83=, 6($11) i32.ne $push84=, $pop83, $10 - br_if $pop84, .LBB2_46 + br_if $pop84, 2 # 2: down to label9 # BB#36: # %for.inc25.6.i308 # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push85=, 7($11) i32.ne $push86=, $pop85, $10 - br_if $pop86, .LBB2_46 + br_if $pop86, 2 # 2: down to label9 # BB#37: # %for.cond # in Loop: Header=BB2_1 Depth=1 i32.add $13=, $13, $0 @@ -397,10 +408,11 @@ main: # @main copy_local $11=, $2 i32.const $push87=, 14 i32.le_s $push88=, $13, $pop87 - br_if $pop88, .LBB2_1 + br_if $pop88, 0 # 0: up to label10 .LBB2_38: # %for.body13 # =>This Inner Loop Header: Depth=1 - loop .LBB2_39 + end_loop # label11: + loop # label21: i32.store8 $push89=, u+6($2), $10 i32.store8 $push90=, u+7($2), $pop89 i32.store8 $push91=, u+8($2), $pop90 @@ -441,10 +453,11 @@ main: # @main i32.const $7=, 15 copy_local $13=, $2 i32.ne $push114=, $11, $7 - br_if $pop114, .LBB2_38 + br_if $pop114, 0 # 0: up to label21 .LBB2_39: # %for.body33 # =>This Inner Loop Header: Depth=1 - loop .LBB2_40 + end_loop # label22: + loop # label23: i32.store8 $push115=, u+6($2), $5 i32.store8 $push116=, u+7($2), $pop115 i32.store8 $push117=, u+8($2), $pop116 @@ -484,10 +497,11 @@ main: # @main i32.add $13=, $13, $0 copy_local $11=, $2 i32.ne $push140=, $13, $7 - br_if $pop140, .LBB2_39 + br_if $pop140, 0 # 0: up to label23 .LBB2_40: # %for.body53 # =>This Inner Loop Header: Depth=1 - loop .LBB2_41 + end_loop # label24: + loop # label25: i32.store8 $push141=, u+6($2), $10 i32.store8 $push142=, u+7($2), $pop141 i32.store8 $push143=, u+8($2), $pop142 @@ -527,10 +541,11 @@ main: # @main i32.add $11=, $11, $0 copy_local $13=, $2 i32.ne $push166=, $11, $7 - br_if $pop166, .LBB2_40 + br_if $pop166, 0 # 0: up to label25 .LBB2_41: # %for.body73 # =>This Inner Loop Header: Depth=1 - loop .LBB2_42 + end_loop # label26: + loop # label27: i32.store8 $push167=, u+6($2), $5 i32.store8 $push168=, u+7($2), $pop167 i32.store8 $push169=, u+8($2), $pop168 @@ -570,10 +585,11 @@ main: # @main i32.add $13=, $13, $0 copy_local $11=, $2 i32.ne $push192=, $13, $7 - br_if $pop192, .LBB2_41 + br_if $pop192, 0 # 0: up to label27 .LBB2_42: # %for.body93 # =>This Inner Loop Header: Depth=1 - loop .LBB2_43 + end_loop # label28: + loop # label29: i32.store8 $push193=, u+6($2), $10 i32.store8 $push194=, u+7($2), $pop193 i32.store8 $push195=, u+8($2), $pop194 @@ -613,10 +629,11 @@ main: # @main i32.add $11=, $11, $0 copy_local $12=, $2 i32.ne $push218=, $11, $7 - br_if $pop218, .LBB2_42 + br_if $pop218, 0 # 0: up to label29 .LBB2_43: # %for.body113 # =>This Inner Loop Header: Depth=1 - loop .LBB2_44 + end_loop # label30: + loop # label31: i32.store8 $push219=, u+6($2), $5 i32.store8 $push220=, u+7($2), $pop219 i32.store8 $push221=, u+8($2), $pop220 @@ -656,10 +673,11 @@ main: # @main i32.add $12=, $12, $0 copy_local $13=, $2 i32.ne $push244=, $12, $7 - br_if $pop244, .LBB2_43 + br_if $pop244, 0 # 0: up to label31 .LBB2_44: # %for.body133 # =>This Inner Loop Header: Depth=1 - loop .LBB2_45 + end_loop # label32: + loop # label33: i32.store8 $push245=, u+6($2), $10 i32.store8 $push246=, u+7($2), $pop245 i32.store8 $push247=, u+8($2), $pop246 @@ -698,18 +716,22 @@ main: # @main call check@FUNCTION, $12, $13, $1 i32.add $13=, $13, $0 i32.ne $push270=, $13, $7 - br_if $pop270, .LBB2_44 -.LBB2_45: # %for.end149 + br_if $pop270, 0 # 0: up to label33 +# BB#45: # %for.end149 + end_loop # label34: i32.const $push271=, 0 call exit@FUNCTION, $pop271 unreachable .LBB2_46: # %if.then23.i287 + end_block # label9: call abort@FUNCTION unreachable .LBB2_47: # %if.then23.i250 + end_block # label8: call abort@FUNCTION unreachable .LBB2_48: # %if.then23.i + end_block # label7: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/mod-1.c.s b/test/torture-s/mod-1.c.s index 36bd4c912..d7bca8c99 100644 --- a/test/torture-s/mod-1.c.s +++ b/test/torture-s/mod-1.c.s @@ -8,12 +8,13 @@ f: # @f .param i32, i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.rem_s $push0=, $0, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end return $1 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/mode-dependent-address.c.s b/test/torture-s/mode-dependent-address.c.s deleted file mode 100644 index 71b15c53d..000000000 --- a/test/torture-s/mode-dependent-address.c.s +++ /dev/null @@ -1,298 +0,0 @@ - .text - .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/mode-dependent-address.c" - .section .text.f883b,"ax",@progbits - .hidden f883b - .globl f883b - .type f883b,@function -f883b: # @f883b - .param i32, i32, i32, i32, i32 - .local i32, i32, i32 -# BB#0: # %entry - i32.const $7=, 0 -.LBB0_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 - i32.load16_s $5=, 0($1) - i32.const $6=, 1 - i32.add $push16=, $0, $7 - i32.lt_s $push0=, $5, $6 - i32.select $push1=, $pop0, $5, $6 - i32.load $push2=, 0($2) - i32.const $push3=, 31 - i32.and $push4=, $pop2, $pop3 - i32.shr_s $push5=, $pop1, $pop4 - i32.xor $push6=, $pop5, $6 - i32.const $push7=, 32 - i32.add $push8=, $pop6, $pop7 - i32.const $push9=, 7 - i32.shr_u $push10=, $pop8, $pop9 - i32.const $push11=, 251 - i32.or $push12=, $pop10, $pop11 - i64.extend_u/i32 $push13=, $pop12 - i64.load $push14=, 0($3) - i64.and $push15=, $pop13, $pop14 - i64.store8 $discard=, 0($pop16), $pop15 - i32.add $7=, $7, $6 - i32.const $push17=, 2 - i32.add $1=, $1, $pop17 - i32.const $push18=, 4 - i32.add $2=, $2, $pop18 - i32.const $push19=, 8 - i32.add $3=, $3, $pop19 - i32.const $push20=, 96 - i32.ne $push21=, $7, $pop20 - br_if $pop21, .LBB0_1 -.LBB0_2: # %for.end - return -.Lfunc_end0: - .size f883b, .Lfunc_end0-f883b - - .section .text.main,"ax",@progbits - .hidden main - .globl main - .type main,@function -main: # @main - .result i32 - .local i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 -# BB#0: # %entry - i64.const $0=, 255 - i32.const $7=, 0 - i32.const $9=, arg2 - i32.const $10=, arg3 - i32.const $12=, arg1 - copy_local $5=, $10 - copy_local $6=, $9 -.LBB1_1: # %for.body - # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 - i32.const $push1=, arg4 - i32.add $push2=, $pop1, $7 - i32.store8 $8=, 0($pop2), $7 - i32.const $push3=, 255 - i32.and $push4=, $8, $pop3 - i32.store16 $push5=, 0($12), $pop4 - i32.store $discard=, 0($6), $pop5 - i64.extend_u/i32 $push0=, $7 - i64.and $push6=, $pop0, $0 - i64.store $discard=, 0($5), $pop6 - i32.const $1=, 1 - i32.add $7=, $8, $1 - i32.const $2=, 2 - i32.add $12=, $12, $2 - i32.const $3=, 4 - i32.add $6=, $6, $3 - i32.const $4=, 8 - i32.add $5=, $5, $4 - i32.const $11=, result - i32.const $8=, -192 - i32.const $push7=, 96 - i32.ne $push8=, $7, $pop7 - br_if $pop8, .LBB1_1 -.LBB1_2: # %for.body.i - # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 - i32.const $push9=, arg1 - i32.add $push10=, $pop9, $8 - i32.const $push11=, 192 - i32.add $push12=, $pop10, $pop11 - i32.load16_s $7=, 0($pop12) - i32.lt_s $push13=, $7, $1 - i32.select $push14=, $pop13, $7, $1 - i32.load $push15=, 0($9) - i32.const $push16=, 31 - i32.and $push17=, $pop15, $pop16 - i32.shr_s $push18=, $pop14, $pop17 - i32.xor $push19=, $pop18, $1 - i32.const $push20=, 32 - i32.add $push21=, $pop19, $pop20 - i32.const $push22=, 7 - i32.shr_u $push23=, $pop21, $pop22 - i32.const $push24=, 251 - i32.or $push25=, $pop23, $pop24 - i64.extend_u/i32 $push26=, $pop25 - i64.load $push27=, 0($10) - i64.and $push28=, $pop26, $pop27 - i64.store8 $discard=, 0($11), $pop28 - i32.add $11=, $11, $1 - i32.add $10=, $10, $4 - i32.add $9=, $9, $3 - i32.add $8=, $8, $2 - i32.const $7=, 0 - i32.const $12=, .Lmain.correct - br_if $8, .LBB1_2 -.LBB1_3: # %for.body10 - # =>This Inner Loop Header: Depth=1 - block .LBB1_6 - loop .LBB1_5 - i32.const $push29=, result - i32.add $push30=, $pop29, $7 - i32.load8_s $push31=, 0($pop30) - i32.load $push32=, 0($12) - i32.ne $push33=, $pop31, $pop32 - br_if $pop33, .LBB1_6 -# BB#4: # %for.cond7 - # in Loop: Header=BB1_3 Depth=1 - i32.add $7=, $7, $1 - i32.add $12=, $12, $3 - i32.const $push34=, 95 - i32.le_s $push35=, $7, $pop34 - br_if $pop35, .LBB1_3 -.LBB1_5: # %for.end18 - i32.const $push36=, 0 - return $pop36 -.LBB1_6: # %if.then - call abort@FUNCTION - unreachable -.Lfunc_end1: - .size main, .Lfunc_end1-main - - .type .Lmain.correct,@object # @main.correct - .section .rodata..Lmain.correct,"a",@progbits - .align 4 -.Lmain.correct: - .int32 0 # 0x0 - .int32 1 # 0x1 - .int32 2 # 0x2 - .int32 3 # 0x3 - .int32 0 # 0x0 - .int32 1 # 0x1 - .int32 2 # 0x2 - .int32 3 # 0x3 - .int32 8 # 0x8 - .int32 9 # 0x9 - .int32 10 # 0xa - .int32 11 # 0xb - .int32 8 # 0x8 - .int32 9 # 0x9 - .int32 10 # 0xa - .int32 11 # 0xb - .int32 16 # 0x10 - .int32 17 # 0x11 - .int32 18 # 0x12 - .int32 19 # 0x13 - .int32 16 # 0x10 - .int32 17 # 0x11 - .int32 18 # 0x12 - .int32 19 # 0x13 - .int32 24 # 0x18 - .int32 25 # 0x19 - .int32 26 # 0x1a - .int32 27 # 0x1b - .int32 24 # 0x18 - .int32 25 # 0x19 - .int32 26 # 0x1a - .int32 27 # 0x1b - .int32 32 # 0x20 - .int32 33 # 0x21 - .int32 34 # 0x22 - .int32 35 # 0x23 - .int32 32 # 0x20 - .int32 33 # 0x21 - .int32 34 # 0x22 - .int32 35 # 0x23 - .int32 40 # 0x28 - .int32 41 # 0x29 - .int32 42 # 0x2a - .int32 43 # 0x2b - .int32 40 # 0x28 - .int32 41 # 0x29 - .int32 42 # 0x2a - .int32 43 # 0x2b - .int32 48 # 0x30 - .int32 49 # 0x31 - .int32 50 # 0x32 - .int32 51 # 0x33 - .int32 48 # 0x30 - .int32 49 # 0x31 - .int32 50 # 0x32 - .int32 51 # 0x33 - .int32 56 # 0x38 - .int32 57 # 0x39 - .int32 58 # 0x3a - .int32 59 # 0x3b - .int32 56 # 0x38 - .int32 57 # 0x39 - .int32 58 # 0x3a - .int32 59 # 0x3b - .int32 64 # 0x40 - .int32 65 # 0x41 - .int32 66 # 0x42 - .int32 67 # 0x43 - .int32 64 # 0x40 - .int32 65 # 0x41 - .int32 66 # 0x42 - .int32 67 # 0x43 - .int32 72 # 0x48 - .int32 73 # 0x49 - .int32 74 # 0x4a - .int32 75 # 0x4b - .int32 72 # 0x48 - .int32 73 # 0x49 - .int32 74 # 0x4a - .int32 75 # 0x4b - .int32 80 # 0x50 - .int32 81 # 0x51 - .int32 82 # 0x52 - .int32 83 # 0x53 - .int32 80 # 0x50 - .int32 81 # 0x51 - .int32 82 # 0x52 - .int32 83 # 0x53 - .int32 88 # 0x58 - .int32 89 # 0x59 - .int32 90 # 0x5a - .int32 91 # 0x5b - .int32 88 # 0x58 - .int32 89 # 0x59 - .int32 90 # 0x5a - .int32 91 # 0x5b - .size .Lmain.correct, 384 - - .hidden arg4 # @arg4 - .type arg4,@object - .section .bss.arg4,"aw",@nobits - .globl arg4 - .align 4 -arg4: - .skip 96 - .size arg4, 96 - - .hidden arg1 # @arg1 - .type arg1,@object - .section .bss.arg1,"aw",@nobits - .globl arg1 - .align 4 -arg1: - .skip 192 - .size arg1, 192 - - .hidden arg2 # @arg2 - .type arg2,@object - .section .bss.arg2,"aw",@nobits - .globl arg2 - .align 4 -arg2: - .skip 384 - .size arg2, 384 - - .hidden arg3 # @arg3 - .type arg3,@object - .section .bss.arg3,"aw",@nobits - .globl arg3 - .align 4 -arg3: - .skip 768 - .size arg3, 768 - - .hidden result # @result - .type result,@object - .section .bss.result,"aw",@nobits - .globl result - .align 4 -result: - .skip 96 - .size result, 96 - - - .ident "clang version 3.8.0 " - .section ".note.GNU-stack","",@progbits diff --git a/test/torture-s/nestfunc-4.c.s b/test/torture-s/nestfunc-4.c.s index f807e1363..c77a62868 100644 --- a/test/torture-s/nestfunc-4.c.s +++ b/test/torture-s/nestfunc-4.c.s @@ -53,13 +53,14 @@ bar: # @bar i32.const $push0=, 0 i32.load $0=, level($pop0) i32.const $1=, -42 - block .LBB2_2 + block i32.const $push1=, 499 i32.gt_s $push2=, $0, $pop1 - br_if $pop2, .LBB2_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %cond.false i32.call $1=, foo@FUNCTION .LBB2_2: # %cond.end + end_block # label0: i32.sub $push3=, $1, $0 return $pop3 .Lfunc_end2: diff --git a/test/torture-s/p18298.c.s b/test/torture-s/p18298.c.s index be9c15486..6e917246a 100644 --- a/test/torture-s/p18298.c.s +++ b/test/torture-s/p18298.c.s @@ -25,14 +25,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load8_u $push0=, s($0) i32.const $push1=, 0 i32.eq $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %while.body i32.store8 $discard=, s($0), $0 .LBB1_2: # %while.end + end_block # label0: return $0 .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/packed-1.c.s b/test/torture-s/packed-1.c.s index 3aef3ed66..78857eca1 100644 --- a/test/torture-s/packed-1.c.s +++ b/test/torture-s/packed-1.c.s @@ -9,15 +9,16 @@ f: # @f .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load16_u $push0=, x1($0) i32.store16 $push1=, t($0), $pop0 i32.const $push2=, 17 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -32,16 +33,17 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load16_u $push0=, x1($0) i32.store16 $push1=, t($0), $pop0 i32.const $push2=, 17 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %f.exit call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pending-4.c.s b/test/torture-s/pending-4.c.s index 79dd22440..af04cf471 100644 --- a/test/torture-s/pending-4.c.s +++ b/test/torture-s/pending-4.c.s @@ -25,46 +25,51 @@ main: # @main copy_local $3=, $2 .LBB1_1: # %for.cond # =>This Inner Loop Header: Depth=1 - loop .LBB1_10 + loop # label0: i32.const $4=, 1 - block .LBB1_9 - block .LBB1_8 + block + block i32.eq $push0=, $5, $4 - br_if $pop0, .LBB1_8 + br_if $pop0, 0 # 0: down to label3 # BB#2: # %for.cond # in Loop: Header=BB1_1 Depth=1 - block .LBB1_4 + block i32.const $push6=, 0 i32.eq $push7=, $5, $pop6 - br_if $pop7, .LBB1_4 + br_if $pop7, 0 # 0: down to label4 # BB#3: # %if.else # in Loop: Header=BB1_1 Depth=1 i32.add $3=, $3, $4 - br .LBB1_9 + br 2 # 2: down to label2 .LBB1_4: # %for.end - block .LBB1_7 + end_block # label4: + block i32.ne $push1=, $2, $4 - br_if $pop1, .LBB1_7 + br_if $pop1, 0 # 0: down to label5 # BB#5: # %for.end i32.const $push2=, 7 i32.ne $push3=, $3, $pop2 - br_if $pop3, .LBB1_7 + br_if $pop3, 0 # 0: down to label5 # BB#6: # %if.end7 i32.const $push4=, 0 call exit@FUNCTION, $pop4 unreachable .LBB1_7: # %if.then6 + end_block # label5: call abort@FUNCTION unreachable .LBB1_8: # %if.then # in Loop: Header=BB1_1 Depth=1 + end_block # label3: i32.add $2=, $2, $4 .LBB1_9: # %for.inc # in Loop: Header=BB1_1 Depth=1 + end_block # label2: i32.const $push5=, -1 i32.add $5=, $5, $pop5 - br .LBB1_1 + br 0 # 0: up to label0 .LBB1_10: + end_loop # label1: .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/postmod-1.c.s b/test/torture-s/postmod-1.c.s index 25c3f7583..26b3ddb83 100644 --- a/test/torture-s/postmod-1.c.s +++ b/test/torture-s/postmod-1.c.s @@ -25,7 +25,7 @@ foo: # @foo .LBB0_1: # %do.body # =>This Loop Header: Depth=1 # Child Loop BB0_2 Depth 2 - loop .LBB0_4 + loop # label0: i32.const $0=, 0 f32.load $8=, 0($23) f32.load $9=, counter1($0) @@ -91,7 +91,7 @@ foo: # @foo .LBB0_2: # %for.body # Parent Loop BB0_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB0_3 + loop # label2: i32.load $push32=, vol($0) i32.add $push33=, $pop32, $1 i32.store $discard=, vol($0), $pop33 @@ -109,14 +109,16 @@ foo: # @foo i32.store $discard=, vol($0), $pop41 i32.const $push42=, -1 i32.add $25=, $25, $pop42 - br_if $25, .LBB0_2 -.LBB0_3: # %for.end + br_if $25, 0 # 0: up to label2 +# BB#3: # %for.end # in Loop: Header=BB0_1 Depth=1 + end_loop # label3: i32.load $push43=, stop($0) i32.const $push44=, 0 i32.eq $push45=, $pop43, $pop44 - br_if $pop45, .LBB0_1 -.LBB0_4: # %do.end + br_if $pop45, 0 # 0: up to label0 +# BB#4: # %do.end + end_loop # label1: return .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/pr15296.c.s b/test/torture-s/pr15296.c.s index b3ab2ad2a..cbd116cdc 100644 --- a/test/torture-s/pr15296.c.s +++ b/test/torture-s/pr15296.c.s @@ -7,61 +7,68 @@ f: # @f .param i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.ge_s $push1=, $3, $4 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 .LBB0_1: # %l0 # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 - br .LBB0_1 + loop # label1: + br 0 # 0: up to label1 .LBB0_2: # %if.end.split + end_loop # label2: + end_block # label0: i32.const $4=, 0 - block .LBB0_12 - block .LBB0_11 - block .LBB0_10 - block .LBB0_7 + block + block + block + block i32.const $push12=, 0 i32.eq $push13=, $3, $pop12 - br_if $pop13, .LBB0_7 + br_if $pop13, 0 # 0: down to label6 # BB#3: # %if.end3 copy_local $4=, $5 - br_if $5, .LBB0_7 + br_if $5, 0 # 0: down to label6 # BB#4: # %if.end6 - block .LBB0_6 + block i32.const $push3=, 4 i32.add $push4=, $1, $pop3 i32.load $push0=, 0($1) i32.load $push2=, 0($pop0) i32.store $push5=, 0($pop4), $pop2 - br_if $pop5, .LBB0_6 + br_if $pop5, 0 # 0: down to label7 # BB#5: # %if.end12 i32.const $push6=, 0 i32.const $push7=, -1 i32.store $discard=, 12($pop6), $pop7 - br .LBB0_10 + br 2 # 2: down to label5 .LBB0_6: # %if.then11 + end_block # label7: call g@FUNCTION, $3, $3 unreachable .LBB0_7: # %l3 + end_block # label6: i32.const $push8=, 4 i32.add $push9=, $1, $pop8 i32.store $discard=, 0($pop9), $4 i32.const $push10=, 8 i32.add $push11=, $1, $pop10 i32.load $3=, 0($pop11) - br_if $3, .LBB0_12 + br_if $3, 2 # 2: down to label3 # BB#8: # %if.end19 i32.const $push14=, 0 i32.eq $push15=, $4, $pop14 - br_if $pop15, .LBB0_11 + br_if $pop15, 1 # 1: down to label4 # BB#9: # %if.end24 i32.store $discard=, 8($4), $3 .LBB0_10: # %l4 + end_block # label5: return .LBB0_11: # %if.then23 + end_block # label4: call g@FUNCTION, $3, $3 unreachable .LBB0_12: # %if.then18 + end_block # label3: call g@FUNCTION, $3, $3 unreachable .Lfunc_end0: @@ -140,12 +147,12 @@ main: # @main i32.load $push19=, 0($pop18) i32.const $14=, 32 i32.add $14=, $16, $14 - block .LBB2_7 + block i32.ne $push20=, $pop19, $14 - br_if $pop20, .LBB2_7 + br_if $pop20, 0 # 0: down to label8 # BB#1: # %lor.lhs.false i32.load $push21=, 0($1) - br_if $pop21, .LBB2_7 + br_if $pop21, 0 # 0: down to label8 # BB#2: # %lor.lhs.false6 i32.const $push22=, 12 i32.const $15=, 8 @@ -154,26 +161,27 @@ main: # @main i32.load $push24=, 0($pop23) i32.const $push25=, 999 i32.ne $push26=, $pop24, $pop25 - br_if $pop26, .LBB2_7 + br_if $pop26, 0 # 0: down to label8 # BB#3: # %lor.lhs.false11 i32.load $push27=, 0($3) i32.const $push28=, 777 i32.ne $push29=, $pop27, $pop28 - br_if $pop29, .LBB2_7 + br_if $pop29, 0 # 0: down to label8 # BB#4: # %lor.lhs.false16 i64.load $push30=, 32($16) i64.const $push31=, 953482739823 i64.ne $push32=, $pop30, $pop31 - br_if $pop32, .LBB2_7 + br_if $pop32, 0 # 0: down to label8 # BB#5: # %lor.lhs.false24 i64.load $push33=, 0($2) i64.const $push34=, 1906965479424 i64.ne $push35=, $pop33, $pop34 - br_if $pop35, .LBB2_7 + br_if $pop35, 0 # 0: down to label8 # BB#6: # %if.end call exit@FUNCTION, $0 unreachable .LBB2_7: # %if.then + end_block # label8: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr17133.c.s b/test/torture-s/pr17133.c.s index ad7afb5c7..f7b5301cb 100644 --- a/test/torture-s/pr17133.c.s +++ b/test/torture-s/pr17133.c.s @@ -13,20 +13,22 @@ pure_alloc: # @pure_alloc i32.load $0=, bar($2) i32.load $1=, baz($2) i32.const $3=, 2 - block .LBB0_3 + block i32.add $push0=, $4, $3 i32.store $push1=, foo($2), $pop0 i32.lt_u $push2=, $pop1, $1 - br_if $pop2, .LBB0_3 + br_if $pop2, 0 # 0: down to label0 .LBB0_1: # %if.end # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.le_u $push3=, $1, $3 - br_if $pop3, .LBB0_1 -.LBB0_2: # %while.body.if.then_crit_edge + br_if $pop3, 0 # 0: up to label1 +# BB#2: # %while.body.if.then_crit_edge + end_loop # label2: i32.store $discard=, foo($2), $3 copy_local $4=, $2 .LBB0_3: # %if.then + end_block # label0: i32.add $push4=, $0, $4 i32.const $push5=, -2 i32.and $push6=, $pop4, $pop5 @@ -45,32 +47,36 @@ main: # @main i32.const $1=, 0 i32.load $0=, baz($1) i32.const $2=, 2 - block .LBB1_6 - block .LBB1_5 - block .LBB1_3 + block + block + block i32.load $push1=, foo($1) i32.add $push0=, $pop1, $2 i32.store $3=, foo($1), $pop0 i32.ge_u $push2=, $3, $0 - br_if $pop2, .LBB1_3 + br_if $pop2, 0 # 0: down to label5 # BB#1: # %pure_alloc.exit - br_if $3, .LBB1_5 + br_if $3, 1 # 1: down to label4 # BB#2: # %if.then call abort@FUNCTION unreachable .LBB1_3: # %if.end.lr.ph.i + end_block # label5: i32.const $push3=, 3 i32.lt_u $push4=, $0, $pop3 - br_if $pop4, .LBB1_6 + br_if $pop4, 1 # 1: down to label3 # BB#4: # %pure_alloc.exit.thread.split i32.store $discard=, foo($1), $2 .LBB1_5: # %if.end + end_block # label4: return $1 .LBB1_6: # %if.end.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_7 - br .LBB1_6 + end_block # label3: + loop # label6: + br 0 # 0: up to label6 .LBB1_7: + end_loop # label7: .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/pr17252.c.s b/test/torture-s/pr17252.c.s index dfec03617..cf1a8d747 100644 --- a/test/torture-s/pr17252.c.s +++ b/test/torture-s/pr17252.c.s @@ -9,17 +9,18 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.const $push0=, a i32.store $1=, a($0), $pop0 i32.const $push1=, a+1 i32.store8 $discard=, a($0), $pop1 i32.load $push2=, a($0) i32.eq $push3=, $pop2, $1 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr19005.c.s b/test/torture-s/pr19005.c.s index 0439aa2a7..296d3ca09 100644 --- a/test/torture-s/pr19005.c.s +++ b/test/torture-s/pr19005.c.s @@ -13,40 +13,44 @@ bar: # @bar i32.load $3=, s($5) i32.const $6=, 255 i32.and $4=, $2, $6 - block .LBB0_7 - block .LBB0_6 - block .LBB0_4 + block + block + block i32.const $push12=, 0 i32.eq $push13=, $3, $pop12 - br_if $pop13, .LBB0_4 + br_if $pop13, 0 # 0: down to label2 # BB#1: # %if.else - block .LBB0_3 + block i32.ne $push3=, $4, $1 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label3 # BB#2: # %if.else i32.const $push1=, 1 i32.add $push2=, $2, $pop1 i32.and $push0=, $pop2, $6 i32.eq $push4=, $pop0, $0 - br_if $pop4, .LBB0_6 + br_if $pop4, 2 # 2: down to label1 .LBB0_3: # %if.then19 + end_block # label3: call abort@FUNCTION unreachable .LBB0_4: # %if.then + end_block # label2: i32.ne $push5=, $4, $0 - br_if $pop5, .LBB0_7 + br_if $pop5, 1 # 1: down to label0 # BB#5: # %lor.lhs.false i32.const $push6=, 1 i32.add $push7=, $2, $pop6 i32.and $push8=, $pop7, $6 i32.ne $push9=, $pop8, $1 - br_if $pop9, .LBB0_7 + br_if $pop9, 1 # 1: down to label0 .LBB0_6: # %if.end21 + end_block # label1: i32.const $push10=, 1 i32.xor $push11=, $3, $pop10 i32.store $discard=, s($5), $pop11 return .LBB0_7: # %if.then8 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -70,55 +74,61 @@ foo: # @foo i32.add $push0=, $0, $5 i32.and $2=, $pop0, $6 i32.and $0=, $3, $6 - block .LBB1_12 - block .LBB1_11 - block .LBB1_10 - block .LBB1_8 - block .LBB1_5 + block + block + block + block + block i32.const $push11=, 0 i32.eq $push12=, $4, $pop11 - br_if $pop12, .LBB1_5 + br_if $pop12, 0 # 0: down to label8 # BB#1: # %if.else.i - block .LBB1_4 + block i32.ne $push2=, $0, $2 - br_if $pop2, .LBB1_4 + br_if $pop2, 0 # 0: down to label9 # BB#2: # %if.else.i i32.add $push1=, $3, $5 i32.and $6=, $pop1, $6 i32.ne $push3=, $6, $1 - br_if $pop3, .LBB1_4 + br_if $pop3, 0 # 0: down to label9 # BB#3: # %bar.exit i32.xor $push4=, $4, $5 i32.store $discard=, s($7), $pop4 i32.eq $push5=, $4, $5 - br_if $pop5, .LBB1_10 - br .LBB1_8 + br_if $pop5, 3 # 3: down to label6 + br 2 # 2: down to label7 .LBB1_4: # %if.then19.i + end_block # label9: call abort@FUNCTION unreachable .LBB1_5: # %if.then.i + end_block # label8: i32.ne $push6=, $0, $1 - br_if $pop6, .LBB1_12 + br_if $pop6, 3 # 3: down to label4 # BB#6: # %lor.lhs.false.i i32.add $push7=, $3, $5 i32.and $6=, $pop7, $6 i32.ne $push8=, $6, $2 - br_if $pop8, .LBB1_12 + br_if $pop8, 3 # 3: down to label4 # BB#7: # %bar.exit.thread i32.store $discard=, s($7), $5 .LBB1_8: # %if.else.i40 + end_block # label7: i32.ne $push9=, $0, $1 - br_if $pop9, .LBB1_11 + br_if $pop9, 1 # 1: down to label5 # BB#9: # %if.else.i40 i32.ne $push10=, $6, $2 - br_if $pop10, .LBB1_11 + br_if $pop10, 1 # 1: down to label5 .LBB1_10: # %bar.exit43 + end_block # label6: i32.store $discard=, s($7), $4 return $7 .LBB1_11: # %if.then19.i41 + end_block # label5: call abort@FUNCTION unreachable .LBB1_12: # %if.then8.i + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end1: @@ -137,7 +147,7 @@ main: # @main i32.store $1=, v($0), $pop1 .LBB2_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label10: i32.call $discard=, foo@FUNCTION, $1 i32.load $push2=, v($0) i32.const $push3=, 1 @@ -145,8 +155,9 @@ main: # @main i32.store $1=, v($0), $pop0 i32.const $push4=, 266 i32.lt_s $push5=, $1, $pop4 - br_if $pop5, .LBB2_1 -.LBB2_2: # %for.end + br_if $pop5, 0 # 0: up to label10 +# BB#2: # %for.end + end_loop # label11: return $0 .Lfunc_end2: .size main, .Lfunc_end2-main diff --git a/test/torture-s/pr19449.c.s b/test/torture-s/pr19449.c.s index 657ec6b00..69c4d4c92 100644 --- a/test/torture-s/pr19449.c.s +++ b/test/torture-s/pr19449.c.s @@ -22,17 +22,18 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_3 + block i32.load $push1=, y($0) - br_if $pop1, .LBB1_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.load $push0=, z($0) i32.const $push2=, 3 i32.ne $push3=, $pop0, $pop2 - br_if $pop3, .LBB1_3 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %lor.lhs.false1 return $0 .LBB1_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr19606.c.s b/test/torture-s/pr19606.c.s index a8e060927..e43108414 100644 --- a/test/torture-s/pr19606.c.s +++ b/test/torture-s/pr19606.c.s @@ -40,26 +40,28 @@ main: # @main # BB#0: # %entry i32.const $1=, 0 i32.load8_s $0=, a($1) - block .LBB2_4 + block i32.const $push0=, 1 i32.shr_u $push1=, $0, $pop0 i32.const $push2=, 2147483646 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB2_4 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB2_3 + block i32.const $push4=, 5 i32.rem_u $push5=, $0, $pop4 i32.const $push6=, 2 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB2_3 + br_if $pop7, 0 # 0: down to label1 # BB#2: # %if.end7 call exit@FUNCTION, $1 unreachable .LBB2_3: # %if.then6 + end_block # label1: call abort@FUNCTION unreachable .LBB2_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr20100-1.c.s b/test/torture-s/pr20100-1.c.s index 856394048..e03d3cce6 100644 --- a/test/torture-s/pr20100-1.c.s +++ b/test/torture-s/pr20100-1.c.s @@ -37,9 +37,9 @@ get_n: # @get_n i32.const $6=, 0 i32.load16_u $0=, p($6) i32.load16_u $5=, g($6) - block .LBB1_5 + block i32.eq $push0=, $0, $5 - br_if $pop0, .LBB1_5 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %while.body.lr.ph i32.const $2=, 0 i32.load8_u $push1=, e($2) @@ -48,7 +48,7 @@ get_n: # @get_n copy_local $6=, $2 .LBB1_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_4 + loop # label1: i32.const $3=, 65535 i32.and $5=, $5, $3 i32.const $4=, 1 @@ -59,16 +59,18 @@ get_n: # @get_n i32.and $push5=, $6, $3 i32.const $push6=, 4 i32.gt_u $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_4 + br_if $pop7, 1 # 1: down to label2 # BB#3: # %while.body # in Loop: Header=BB1_2 Depth=1 i32.and $push8=, $5, $3 i32.ne $push9=, $0, $pop8 - br_if $pop9, .LBB1_2 + br_if $pop9, 0 # 0: up to label1 .LBB1_4: # %while.cond.while.end_crit_edge + end_loop # label2: i32.const $push10=, 0 i32.store16 $discard=, g($pop10), $5 .LBB1_5: # %while.end + end_block # label0: i32.const $push11=, 65535 i32.and $push12=, $6, $pop11 return $pop12 diff --git a/test/torture-s/pr20527-1.c.s b/test/torture-s/pr20527-1.c.s index b2d80dda2..2d4f1a174 100644 --- a/test/torture-s/pr20527-1.c.s +++ b/test/torture-s/pr20527-1.c.s @@ -8,9 +8,9 @@ f: # @f .param i32, i32, i32, i32 .local i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_3 + block i32.gt_s $push0=, $2, $3 - br_if $pop0, .LBB0_3 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %for.body.preheader i32.const $push1=, 2 i32.shl $5=, $2, $pop1 @@ -23,7 +23,7 @@ f: # @f i32.const $1=, 0 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.load $push3=, 0($2) i32.const $push4=, -4 i32.add $push5=, $2, $pop4 @@ -37,8 +37,10 @@ f: # @f i32.add $2=, $2, $6 i32.add $0=, $0, $6 i32.lt_s $push10=, $7, $3 - br_if $pop10, .LBB0_2 + br_if $pop10, 0 # 0: up to label1 .LBB0_3: # %for.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size f, .Lfunc_end0-f @@ -62,26 +64,27 @@ main: # @main i32.const $push1=, 2 i32.const $3=, 4 i32.add $3=, $4, $3 - block .LBB1_4 + block call f@FUNCTION, $3, $pop0, $0, $pop1 i32.load $push2=, 4($4) i32.const $push3=, 3 i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_4 + br_if $pop4, 0 # 0: down to label3 # BB#1: # %lor.lhs.false i32.load $push5=, 8($4) i32.const $push6=, 9 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_4 + br_if $pop7, 0 # 0: down to label3 # BB#2: # %lor.lhs.false3 i32.load $push8=, 12($4) i32.const $push9=, 21 i32.ne $push10=, $pop8, $pop9 - br_if $pop10, .LBB1_4 + br_if $pop10, 0 # 0: down to label3 # BB#3: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_4: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr20601-1.c.s b/test/torture-s/pr20601-1.c.s index ae32a916c..5abb4c05c 100644 --- a/test/torture-s/pr20601-1.c.s +++ b/test/torture-s/pr20601-1.c.s @@ -8,9 +8,10 @@ foo: # @foo # BB#0: # %entry .LBB0_1: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 - br .LBB0_1 + loop # label0: + br 0 # 0: up to label0 .LBB0_2: + end_loop # label1: .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -47,46 +48,47 @@ main: # @main i32.const $1=, 1 .LBB2_1: # %land.rhs.i # =>This Inner Loop Header: Depth=1 - block .LBB2_17 - loop .LBB2_14 + block + loop # label3: i32.load $5=, 0($0) i32.const $4=, 45 i32.load8_u $push10=, 0($5) i32.ne $push11=, $pop10, $4 - br_if $pop11, .LBB2_14 + br_if $pop11, 1 # 1: down to label4 # BB#2: # %while.body.i # in Loop: Header=BB2_1 Depth=1 i32.load8_s $7=, 1($5) - block .LBB2_5 + block i32.const $push48=, 0 i32.eq $push49=, $7, $pop48 - br_if $pop49, .LBB2_5 + br_if $pop49, 0 # 0: down to label5 # BB#3: # %land.lhs.true.i # in Loop: Header=BB2_1 Depth=1 i32.load8_u $push12=, 2($5) i32.const $push50=, 0 i32.eq $push51=, $pop12, $pop50 - br_if $pop51, .LBB2_5 + br_if $pop51, 0 # 0: down to label5 # BB#4: # %if.then.i call abort@FUNCTION unreachable .LBB2_5: # %if.end.i # in Loop: Header=BB2_1 Depth=1 - block .LBB2_13 - block .LBB2_12 + end_block # label5: + block + block i32.const $push13=, 80 i32.eq $push14=, $7, $pop13 - br_if $pop14, .LBB2_12 + br_if $pop14, 0 # 0: down to label7 # BB#6: # %if.end.i # in Loop: Header=BB2_1 Depth=1 - block .LBB2_9 + block i32.const $push15=, 117 i32.eq $push16=, $7, $pop15 - br_if $pop16, .LBB2_9 + br_if $pop16, 0 # 0: down to label8 # BB#7: # %if.end.i # in Loop: Header=BB2_1 Depth=1 i32.ne $push17=, $7, $4 - br_if $pop17, .LBB2_13 + br_if $pop17, 2 # 2: down to label6 # BB#8: # %sw.bb22.i i32.const $push20=, 1 i32.eq $push21=, $1, $pop20 @@ -99,14 +101,15 @@ main: # @main i32.const $push19=, 4 i32.add $push3=, $0, $pop19 i32.store $0=, e($2), $pop3 - br .LBB2_17 + br 5 # 5: down to label2 .LBB2_9: # %sw.bb.i # in Loop: Header=BB2_1 Depth=1 - block .LBB2_11 + end_block # label8: + block i32.load $push26=, 4($0) i32.const $push52=, 0 i32.eq $push53=, $pop26, $pop52 - br_if $pop53, .LBB2_11 + br_if $pop53, 0 # 0: down to label9 # BB#10: # %if.end19.i # in Loop: Header=BB2_1 Depth=1 i32.const $push28=, -1 @@ -116,16 +119,19 @@ main: # @main i32.add $push0=, $0, $pop25 i32.store $push27=, t+4100($2), $pop0 i32.store $0=, e($2), $pop27 - br .LBB2_13 + br 2 # 2: down to label6 .LBB2_11: # %if.then18.i + end_block # label9: call abort@FUNCTION unreachable .LBB2_12: # %sw.bb21.i # in Loop: Header=BB2_1 Depth=1 + end_block # label7: i32.const $push24=, 4096 i32.or $1=, $1, $pop24 .LBB2_13: # %sw.epilog.i # in Loop: Header=BB2_1 Depth=1 + end_block # label6: i32.const $push31=, 1 i32.gt_s $7=, $6, $pop31 i32.const $push29=, -1 @@ -134,26 +140,28 @@ main: # @main i32.const $push30=, 4 i32.add $push5=, $0, $pop30 i32.store $0=, e($2), $pop5 - br_if $7, .LBB2_1 + br_if $7, 0 # 0: up to label3 .LBB2_14: # %while.end.i + end_loop # label4: i32.const $7=, 1 i32.lt_s $push33=, $6, $7 - br_if $pop33, .LBB2_17 + br_if $pop33, 0 # 0: down to label2 # BB#15: # %while.end.i i32.and $push32=, $1, $7 - br_if $pop32, .LBB2_17 + br_if $pop32, 0 # 0: down to label2 # BB#16: # %if.then36.i call abort@FUNCTION unreachable .LBB2_17: # %setup2.exit - block .LBB2_20 + end_block # label2: + block i32.const $push34=, .L.str.4 i32.store $7=, t($2), $pop34 i32.const $push35=, 512 i32.and $push36=, $1, $pop35 i32.const $push54=, 0 i32.eq $push55=, $pop36, $pop54 - br_if $pop55, .LBB2_20 + br_if $pop55, 0 # 0: down to label10 # BB#18: # %if.then6.i i32.const $push37=, 1 i32.add $push38=, $6, $pop37 @@ -164,7 +172,7 @@ main: # @main copy_local $7=, $3 .LBB2_19: # %for.cond.i # =>This Inner Loop Header: Depth=1 - loop .LBB2_20 + loop # label11: i32.add $push44=, $5, $7 i32.add $push40=, $0, $7 i32.const $push41=, -4 @@ -172,21 +180,24 @@ main: # @main i32.load $push43=, 0($pop42) i32.store $6=, 0($pop44), $pop43 i32.add $7=, $7, $3 - br_if $6, .LBB2_19 + br_if $6, 0 # 0: up to label11 .LBB2_20: # %setup1.exit - block .LBB2_23 + end_loop # label12: + end_block # label10: + block i32.const $push46=, 1024 i32.and $push47=, $1, $pop46 i32.const $push56=, 0 i32.eq $push57=, $pop47, $pop56 - br_if $pop57, .LBB2_23 + br_if $pop57, 0 # 0: down to label13 # BB#21: # %setup1.exit i32.load $push45=, a+16($2) - br_if $pop45, .LBB2_23 + br_if $pop45, 0 # 0: down to label13 # BB#22: # %if.then call abort@FUNCTION unreachable .LBB2_23: # %if.end + end_block # label13: call exit@FUNCTION, $2 unreachable .Lfunc_end2: diff --git a/test/torture-s/pr21173.c.s b/test/torture-s/pr21173.c.s index 7824e4c5d..92c018330 100644 --- a/test/torture-s/pr21173.c.s +++ b/test/torture-s/pr21173.c.s @@ -30,14 +30,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, a($0) i32.load $push1=, a+4($0) i32.or $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %for.cond.1 return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr21964-1.c.s b/test/torture-s/pr21964-1.c.s index d9adfc2bb..f1a3c5424 100644 --- a/test/torture-s/pr21964-1.c.s +++ b/test/torture-s/pr21964-1.c.s @@ -7,18 +7,19 @@ foo: # @foo .param i32, i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push1=, 0 i32.eq $push2=, $1, $pop1 - br_if $pop2, .LBB0_3 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %entry i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB0_3 + br_if $pop4, 0 # 0: down to label0 # BB#2: # %if.then2.split call abort@FUNCTION unreachable .LBB0_3: # %if.then + end_block # label0: i32.const $push0=, 0 call exit@FUNCTION, $pop0 unreachable diff --git a/test/torture-s/pr22098-3.c.s b/test/torture-s/pr22098-3.c.s index 4a0503605..86d6d0821 100644 --- a/test/torture-s/pr22098-3.c.s +++ b/test/torture-s/pr22098-3.c.s @@ -27,15 +27,16 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, n($0) - block .LBB1_2 + block i32.const $push0=, 1 i32.add $push1=, $1, $pop0 i32.store $discard=, n($0), $pop1 - br_if $1, .LBB1_2 + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr22348.c.s b/test/torture-s/pr22348.c.s index 74a2f6550..43d18e41f 100644 --- a/test/torture-s/pr22348.c.s +++ b/test/torture-s/pr22348.c.s @@ -7,13 +7,14 @@ f: # @f .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 53 i32.ge_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr22630.c.s b/test/torture-s/pr22630.c.s index 345e8c732..fac6fa004 100644 --- a/test/torture-s/pr22630.c.s +++ b/test/torture-s/pr22630.c.s @@ -7,16 +7,17 @@ bla: # @bla .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, j i32.select $push1=, $0, $0, $pop0 i32.eq $push2=, $pop1, $0 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.then1 i32.const $push3=, 0 i32.const $push4=, 1 i32.store $discard=, j($pop3), $pop4 .LBB0_2: # %if.end2 + end_block # label0: return .Lfunc_end0: .size bla, .Lfunc_end0-bla diff --git a/test/torture-s/pr23047.c.s b/test/torture-s/pr23047.c.s index 6aabf26f3..eaf50cdb5 100644 --- a/test/torture-s/pr23047.c.s +++ b/test/torture-s/pr23047.c.s @@ -8,17 +8,18 @@ f: # @f .param i32 .local i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 31 i32.shr_s $1=, $0, $pop0 i32.add $push1=, $0, $1 i32.xor $push2=, $pop1, $1 i32.const $push3=, -1 i32.gt_s $push4=, $pop2, $pop3 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.then return .LBB0_2: # %if.end + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr23324.c.s b/test/torture-s/pr23324.c.s index ed51549db..7fa312ebe 100644 --- a/test/torture-s/pr23324.c.s +++ b/test/torture-s/pr23324.c.s @@ -10,44 +10,49 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 f64.load $1=, wv6+32($0) - block .LBB0_10 + block f64.ne $push0=, $1, $1 - br_if $pop0, .LBB0_10 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %caller_bf6.exit f32.load $2=, yv7($0) - block .LBB0_9 + block f32.ne $push1=, $2, $2 - br_if $pop1, .LBB0_9 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %if.end26.i.i f64.load $1=, yv7+16($0) - block .LBB0_8 + block f64.ne $push2=, $1, $1 - br_if $pop2, .LBB0_8 + br_if $pop2, 0 # 0: down to label2 # BB#3: # %if.end30.i.i f32.load $2=, yv7+24($0) - block .LBB0_7 + block f32.ne $push3=, $2, $2 - br_if $pop3, .LBB0_7 + br_if $pop3, 0 # 0: down to label3 # BB#4: # %if.end34.i.i f32.load $2=, zv7($0) - block .LBB0_6 + block f32.ne $push4=, $2, $2 - br_if $pop4, .LBB0_6 + br_if $pop4, 0 # 0: down to label4 # BB#5: # %caller_bf7.exit return $0 .LBB0_6: # %if.then37.i.i + end_block # label4: call abort@FUNCTION unreachable .LBB0_7: # %if.then33.i.i + end_block # label3: call abort@FUNCTION unreachable .LBB0_8: # %if.then29.i.i + end_block # label2: call abort@FUNCTION unreachable .LBB0_9: # %if.then5.i.i + end_block # label1: call abort@FUNCTION unreachable .LBB0_10: # %if.then109.i.i + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr23604.c.s b/test/torture-s/pr23604.c.s index b2332bd70..7958c5fab 100644 --- a/test/torture-s/pr23604.c.s +++ b/test/torture-s/pr23604.c.s @@ -10,19 +10,21 @@ g: # @g .local i32 # BB#0: # %entry i32.const $2=, 1 - block .LBB0_4 - block .LBB0_3 + block + block i32.gt_u $push0=, $0, $2 - br_if $pop0, .LBB0_3 + br_if $pop0, 0 # 0: down to label1 # BB#1: # %if.then2 i32.eq $push1=, $0, $1 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %if.then2 i32.const $0=, 0 - br_if $1, .LBB0_4 + br_if $1, 1 # 1: down to label0 .LBB0_3: # %if.end9 + end_block # label1: copy_local $0=, $2 .LBB0_4: # %return + end_block # label0: return $0 .Lfunc_end0: .size g, .Lfunc_end0-g diff --git a/test/torture-s/pr23941.c.s b/test/torture-s/pr23941.c.s index 68e46d7c5..1df31041d 100644 --- a/test/torture-s/pr23941.c.s +++ b/test/torture-s/pr23941.c.s @@ -9,14 +9,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block f64.load $push0=, d($0) f64.const $push1=, 0x1p-127 f64.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr24141.c.s b/test/torture-s/pr24141.c.s index 1e375b67b..458ad26d1 100644 --- a/test/torture-s/pr24141.c.s +++ b/test/torture-s/pr24141.c.s @@ -20,17 +20,18 @@ g: # @g f: # @f .param i32, i32 # BB#0: # %entry - block .LBB1_3 + block i32.const $push2=, 0 i32.eq $push3=, $0, $pop2 - br_if $pop3, .LBB1_3 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %entry - br_if $1, .LBB1_3 + br_if $1, 0 # 0: down to label0 # BB#2: # %if.then10 i32.const $push0=, 0 i32.const $push1=, 1 i32.store $discard=, i($pop0), $pop1 .LBB1_3: # %cleanup + end_block # label0: return .Lfunc_end1: .size f, .Lfunc_end1-f diff --git a/test/torture-s/pr24716.c.s b/test/torture-s/pr24716.c.s index 3aa33f692..6adaed392 100644 --- a/test/torture-s/pr24716.c.s +++ b/test/torture-s/pr24716.c.s @@ -18,43 +18,47 @@ f: # @f # Child Loop BB0_9 Depth 3 # Child Loop BB0_13 Depth 2 # Child Loop BB0_14 Depth 3 - loop .LBB0_18 + loop # label0: copy_local $7=, $0 - block .LBB0_4 - block .LBB0_3 + block + block i32.const $push0=, 3 i32.lt_s $push1=, $5, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label3 # BB#2: # %if.end.thread # in Loop: Header=BB0_1 Depth=1 i32.const $push4=, 1 i32.add $5=, $5, $pop4 i32.const $push5=, -1 i32.add $4=, $3, $pop5 - br .LBB0_4 + br 1 # 1: down to label2 .LBB0_3: # %if.end # in Loop: Header=BB0_1 Depth=1 + end_block # label3: i32.const $4=, 0 i32.const $push2=, 1 i32.eq $push3=, $3, $pop2 - br_if $pop3, .LBB0_18 + br_if $pop3, 2 # 2: down to label1 .LBB0_4: # %while.cond.preheader # in Loop: Header=BB0_1 Depth=1 - block .LBB0_7 + end_block # label2: + block i32.le_s $push6=, $5, $1 - br_if $pop6, .LBB0_7 + br_if $pop6, 0 # 0: down to label4 # BB#5: # %while.body.lr.ph # in Loop: Header=BB0_1 Depth=1 i32.eq $6=, $4, $1 .LBB0_6: # %while.body # Parent Loop BB0_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB0_7 + loop # label5: i32.add $5=, $5, $6 i32.gt_s $push7=, $5, $1 - br_if $pop7, .LBB0_6 + br_if $pop7, 0 # 0: up to label5 .LBB0_7: # %do.body10.preheader # in Loop: Header=BB0_1 Depth=1 + end_loop # label6: + end_block # label4: i32.const $2=, 2 i32.const $push9=, W i32.shl $push8=, $7, $2 @@ -63,17 +67,17 @@ f: # @f # Parent Loop BB0_1 Depth=1 # => This Loop Header: Depth=2 # Child Loop BB0_9 Depth 3 - loop .LBB0_13 + loop # label7: i32.load $6=, 0($0) .LBB0_9: # %do.body11 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_8 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_12 - block .LBB0_11 + loop # label9: + block i32.const $push20=, 0 i32.eq $push21=, $6, $pop20 - br_if $pop21, .LBB0_11 + br_if $pop21, 0 # 0: down to label11 # BB#10: # %if.then13 # in Loop: Header=BB0_9 Depth=3 i32.const $push10=, 0 @@ -81,20 +85,23 @@ f: # @f i32.const $5=, 1 .LBB0_11: # %do.cond16 # in Loop: Header=BB0_9 Depth=3 + end_block # label11: i32.const $3=, 1 i32.const $6=, 0 i32.lt_s $push11=, $1, $3 - br_if $pop11, .LBB0_9 -.LBB0_12: # %do.cond19 + br_if $pop11, 0 # 0: up to label9 +# BB#12: # %do.cond19 # in Loop: Header=BB0_8 Depth=2 + end_loop # label10: i32.const $6=, 0 i32.gt_s $push12=, $7, $6 - br_if $pop12, .LBB0_8 + br_if $pop12, 0 # 0: up to label7 .LBB0_13: # %do.body22 # Parent Loop BB0_1 Depth=1 # => This Loop Header: Depth=2 # Child Loop BB0_14 Depth 3 - loop .LBB0_18 + end_loop # label8: + loop # label12: i32.const $push14=, Link i32.shl $push13=, $7, $2 i32.add $push15=, $pop14, $pop13 @@ -104,27 +111,30 @@ f: # @f # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_13 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_17 + loop # label14: i32.ge_s $push16=, $1, $4 - br_if $pop16, .LBB0_17 + br_if $pop16, 1 # 1: down to label15 # BB#15: # %while.body26 # in Loop: Header=BB0_14 Depth=3 i32.const $push18=, -1 i32.eq $push19=, $7, $pop18 - br_if $pop19, .LBB0_14 + br_if $pop19, 0 # 0: up to label14 # BB#16: # %if.then28 # in Loop: Header=BB0_14 Depth=3 i32.const $0=, 1 i32.add $5=, $5, $0 i32.add $1=, $1, $0 - br .LBB0_14 + br 0 # 0: up to label14 .LBB0_17: # %do.cond33 # in Loop: Header=BB0_13 Depth=2 + end_loop # label15: i32.const $0=, -1 i32.ne $push17=, $7, $0 - br_if $pop17, .LBB0_13 - br .LBB0_1 + br_if $pop17, 0 # 0: up to label12 + br 2 # 2: up to label0 .LBB0_18: # %for.end + end_loop # label13: + end_loop # label1: return $5 .Lfunc_end0: .size f, .Lfunc_end0-f @@ -146,42 +156,46 @@ main: # @main # Child Loop BB1_6 Depth 2 # Child Loop BB1_8 Depth 2 # Child Loop BB1_12 Depth 2 - loop .LBB1_13 - block .LBB1_4 - block .LBB1_3 + loop # label16: + block + block i32.const $push0=, 3 i32.lt_s $push1=, $4, $pop0 - br_if $pop1, .LBB1_3 + br_if $pop1, 0 # 0: down to label19 # BB#2: # %if.end.thread.i # in Loop: Header=BB1_1 Depth=1 i32.const $push5=, 1 i32.add $4=, $4, $pop5 i32.const $push6=, -1 i32.add $5=, $3, $pop6 - br .LBB1_4 + br 1 # 1: down to label18 .LBB1_3: # %if.end.i # in Loop: Header=BB1_1 Depth=1 + end_block # label19: i32.const $5=, 0 i32.const $push2=, 1 i32.eq $push3=, $3, $pop2 - br_if $pop3, .LBB1_13 + br_if $pop3, 2 # 2: down to label17 .LBB1_4: # %while.cond.preheader.i # in Loop: Header=BB1_1 Depth=1 - block .LBB1_7 + end_block # label18: + block i32.le_s $push7=, $4, $2 - br_if $pop7, .LBB1_7 + br_if $pop7, 0 # 0: down to label20 # BB#5: # %while.body.lr.ph.i # in Loop: Header=BB1_1 Depth=1 i32.eq $5=, $5, $2 .LBB1_6: # %while.body.i # Parent Loop BB1_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB1_7 + loop # label21: i32.add $4=, $4, $5 i32.gt_s $push8=, $4, $2 - br_if $pop8, .LBB1_6 + br_if $pop8, 0 # 0: up to label21 .LBB1_7: # %do.body10.i # in Loop: Header=BB1_1 Depth=1 + end_loop # label22: + end_block # label20: i32.const $0=, 2 i32.const $push10=, W i32.shl $push9=, $1, $0 @@ -190,11 +204,11 @@ main: # @main .LBB1_8: # %do.body11.i # Parent Loop BB1_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB1_11 - block .LBB1_10 + loop # label23: + block i32.const $push16=, 0 i32.eq $push17=, $5, $pop16 - br_if $pop17, .LBB1_10 + br_if $pop17, 0 # 0: down to label25 # BB#9: # %if.then13.i # in Loop: Header=BB1_8 Depth=2 i32.const $push11=, 0 @@ -202,17 +216,19 @@ main: # @main i32.const $4=, 1 .LBB1_10: # %do.cond16.i # in Loop: Header=BB1_8 Depth=2 + end_block # label25: i32.const $5=, 0 i32.const $push18=, 0 i32.eq $push19=, $2, $pop18 - br_if $pop19, .LBB1_8 -.LBB1_11: # %do.cond33.i.preheader + br_if $pop19, 0 # 0: up to label23 +# BB#11: # %do.cond33.i.preheader # in Loop: Header=BB1_1 Depth=1 + end_loop # label24: copy_local $5=, $1 .LBB1_12: # %do.cond33.i # Parent Loop BB1_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB1_13 + loop # label26: i32.const $push13=, Link i32.shl $push12=, $5, $0 i32.add $push14=, $pop13, $pop12 @@ -221,17 +237,20 @@ main: # @main i32.const $3=, 1 i32.const $2=, 0 i32.ne $push15=, $5, $1 - br_if $pop15, .LBB1_12 - br .LBB1_1 + br_if $pop15, 0 # 0: up to label26 + br 2 # 2: up to label16 .LBB1_13: # %f.exit - block .LBB1_15 + end_loop # label27: + end_loop # label17: + block i32.const $push20=, 0 i32.eq $push21=, $4, $pop20 - br_if $pop21, .LBB1_15 + br_if $pop21, 0 # 0: down to label28 # BB#14: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_15: # %if.then + end_block # label28: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr25125.c.s b/test/torture-s/pr25125.c.s index ec7fba200..0d3a1dc2c 100644 --- a/test/torture-s/pr25125.c.s +++ b/test/torture-s/pr25125.c.s @@ -10,15 +10,16 @@ f: # @f .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_2 + block i32.gt_s $push0=, $0, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push1=, 65535 i32.and $push2=, $0, $pop1 i32.const $push3=, 32768 i32.add $1=, $pop2, $pop3 .LBB0_2: # %cleanup + end_block # label0: i32.const $push4=, 65535 i32.and $push5=, $1, $pop4 return $pop5 @@ -32,17 +33,18 @@ f: # @f main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, -32767 i32.call $push1=, f@FUNCTION, $pop0 i32.const $push2=, 1 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %if.end i32.const $push4=, 0 call exit@FUNCTION, $pop4 unreachable .LBB1_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr27073.c.s b/test/torture-s/pr27073.c.s index 4aa9b46e8..484720885 100644 --- a/test/torture-s/pr27073.c.s +++ b/test/torture-s/pr27073.c.s @@ -7,18 +7,18 @@ foo: # @foo .param i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push0=, 65535 i32.and $push1=, $4, $pop0 i32.const $push13=, 0 i32.eq $push14=, $pop1, $pop13 - br_if $pop14, .LBB0_3 + br_if $pop14, 0 # 0: down to label0 # BB#1: # %while.body.preheader i32.const $push2=, 0 i32.sub $4=, $pop2, $4 .LBB0_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.store $discard=, 0($0), $5 i32.const $push3=, 4 i32.add $push4=, $0, $pop3 @@ -36,8 +36,10 @@ foo: # @foo i32.add $4=, $4, $pop11 i32.const $push12=, 20 i32.add $0=, $0, $pop12 - br_if $4, .LBB0_2 + br_if $4, 0 # 0: up to label1 .LBB0_3: # %while.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -64,11 +66,11 @@ main: # @main i32.const $push0=, 2 i32.const $7=, 0 i32.add $7=, $11, $7 - block .LBB1_11 + block call foo@FUNCTION, $7, $4, $4, $4, $pop0, $4, $3, $2, $1, $0 i32.load $push1=, 0($11) i32.ne $push2=, $pop1, $4 - br_if $pop2, .LBB1_11 + br_if $pop2, 0 # 0: down to label3 # BB#1: # %for.cond i32.const $push3=, 4 i32.const $8=, 0 @@ -76,7 +78,7 @@ main: # @main i32.or $push4=, $8, $pop3 i32.load $push5=, 0($pop4) i32.ne $push6=, $pop5, $3 - br_if $pop6, .LBB1_11 + br_if $pop6, 0 # 0: down to label3 # BB#2: # %for.cond.1 i32.const $push7=, 8 i32.const $9=, 0 @@ -84,7 +86,7 @@ main: # @main i32.or $push8=, $9, $pop7 i32.load $push9=, 0($pop8) i32.ne $push10=, $pop9, $2 - br_if $pop10, .LBB1_11 + br_if $pop10, 0 # 0: down to label3 # BB#3: # %for.cond.2 i32.const $push11=, 12 i32.const $10=, 0 @@ -92,36 +94,37 @@ main: # @main i32.or $push12=, $10, $pop11 i32.load $push13=, 0($pop12) i32.ne $push14=, $pop13, $1 - br_if $pop14, .LBB1_11 + br_if $pop14, 0 # 0: down to label3 # BB#4: # %for.cond.3 i32.load $push15=, 16($11) i32.ne $push16=, $pop15, $0 - br_if $pop16, .LBB1_11 + br_if $pop16, 0 # 0: down to label3 # BB#5: # %for.cond.4 i32.load $push17=, 20($11) i32.ne $push18=, $pop17, $4 - br_if $pop18, .LBB1_11 + br_if $pop18, 0 # 0: down to label3 # BB#6: # %for.cond.5 i32.load $push19=, 24($11) i32.ne $push20=, $pop19, $3 - br_if $pop20, .LBB1_11 + br_if $pop20, 0 # 0: down to label3 # BB#7: # %for.cond.6 i32.load $push21=, 28($11) i32.ne $push22=, $pop21, $2 - br_if $pop22, .LBB1_11 + br_if $pop22, 0 # 0: down to label3 # BB#8: # %for.cond.7 i32.load $push23=, 32($11) i32.ne $push24=, $pop23, $1 - br_if $pop24, .LBB1_11 + br_if $pop24, 0 # 0: down to label3 # BB#9: # %for.cond.8 i32.load $push25=, 36($11) i32.ne $push26=, $pop25, $0 - br_if $pop26, .LBB1_11 + br_if $pop26, 0 # 0: down to label3 # BB#10: # %for.cond.9 i32.const $push27=, 0 call exit@FUNCTION, $pop27 unreachable .LBB1_11: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr27260.c.s b/test/torture-s/pr27260.c.s index 9fc39659f..99d0e0db3 100644 --- a/test/torture-s/pr27260.c.s +++ b/test/torture-s/pr27260.c.s @@ -29,28 +29,29 @@ main: # @main i32.store8 $discard=, buf+64($4), $pop0 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB1_12 - loop .LBB1_3 + block + loop # label1: i32.const $0=, buf i32.add $push1=, $0, $4 i32.load8_u $push2=, 0($pop1) - br_if $pop2, .LBB1_12 + br_if $pop2, 2 # 2: down to label0 # BB#2: # %for.cond # in Loop: Header=BB1_1 Depth=1 i32.const $5=, 1 i32.add $4=, $4, $5 i32.const $1=, 63 i32.le_s $push3=, $4, $1 - br_if $pop3, .LBB1_1 -.LBB1_3: # %for.end + br_if $pop3, 0 # 0: up to label1 +# BB#3: # %for.end + end_loop # label2: i32.const $2=, 64 call memset@FUNCTION, $0, $5, $2 .LBB1_4: # %for.cond3 # =>This Inner Loop Header: Depth=1 - block .LBB1_7 - loop .LBB1_6 + block + loop # label4: i32.gt_s $push4=, $5, $1 - br_if $pop4, .LBB1_7 + br_if $pop4, 2 # 2: down to label3 # BB#5: # %for.cond3.for.body6_crit_edge # in Loop: Header=BB1_4 Depth=1 i32.add $3=, $0, $5 @@ -58,20 +59,22 @@ main: # @main i32.add $5=, $5, $4 i32.load8_u $push8=, 0($3) i32.eq $push9=, $pop8, $4 - br_if $pop9, .LBB1_4 -.LBB1_6: # %if.then11 + br_if $pop9, 0 # 0: up to label4 +# BB#6: # %if.then11 + end_loop # label5: call abort@FUNCTION unreachable .LBB1_7: # %for.end15 + end_block # label3: i32.const $3=, 0 call memset@FUNCTION, $0, $3, $2 i32.const $5=, 1 .LBB1_8: # %for.cond16 # =>This Inner Loop Header: Depth=1 - block .LBB1_11 - loop .LBB1_10 + block + loop # label7: i32.gt_s $push5=, $5, $1 - br_if $pop5, .LBB1_11 + br_if $pop5, 2 # 2: down to label6 # BB#9: # %for.cond16.for.body19_crit_edge # in Loop: Header=BB1_8 Depth=1 i32.add $4=, $0, $5 @@ -80,13 +83,16 @@ main: # @main i32.load8_u $push6=, 0($4) i32.const $push10=, 0 i32.eq $push11=, $pop6, $pop10 - br_if $pop11, .LBB1_8 -.LBB1_10: # %if.then24 + br_if $pop11, 0 # 0: up to label7 +# BB#10: # %if.then24 + end_loop # label8: call abort@FUNCTION unreachable .LBB1_11: # %if.end33 + end_block # label6: return $3 .LBB1_12: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr27285.c.s b/test/torture-s/pr27285.c.s index 860215fa7..23ae24e0e 100644 --- a/test/torture-s/pr27285.c.s +++ b/test/torture-s/pr27285.c.s @@ -9,10 +9,10 @@ foo: # @foo .local i32, i32, i32, i32, i32 # BB#0: # %entry i32.load8_u $6=, 1($0) - block .LBB0_4 + block i32.const $push7=, 0 i32.eq $push8=, $6, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label0 # BB#1: # %while.body.preheader i32.const $4=, 3 i32.add $5=, $0, $4 @@ -21,7 +21,7 @@ foo: # @foo i32.sub $0=, $2, $6 .LBB0_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 + loop # label1: i32.const $1=, 255 i32.load8_u $push5=, 0($5) i32.const $push0=, 7 @@ -32,7 +32,7 @@ foo: # @foo i32.store8 $discard=, 0($4), $pop6 i32.const $push9=, 0 i32.eq $push10=, $0, $pop9 - br_if $pop10, .LBB0_4 + br_if $pop10, 1 # 1: down to label2 # BB#3: # %while.body # in Loop: Header=BB0_2 Depth=1 i32.const $1=, 1 @@ -45,8 +45,10 @@ foo: # @foo copy_local $6=, $1 i32.const $push11=, 0 i32.eq $push12=, $3, $pop11 - br_if $pop12, .LBB0_2 + br_if $pop12, 0 # 0: up to label1 .LBB0_4: # %while.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -180,12 +182,12 @@ main: # @main call foo@FUNCTION, $25, $26 i32.const $27=, 0 i32.add $27=, $31, $27 - block .LBB1_5 + block i32.or $push72=, $27, $13 i32.load8_u $push73=, 0($pop72) i32.const $push74=, 170 i32.ne $push75=, $pop73, $pop74 - br_if $pop75, .LBB1_5 + br_if $pop75, 0 # 0: down to label3 # BB#1: # %lor.lhs.false i32.const $28=, 0 i32.add $28=, $31, $28 @@ -193,7 +195,7 @@ main: # @main i32.load8_u $push77=, 0($pop76) i32.const $push78=, 187 i32.ne $push79=, $pop77, $pop78 - br_if $pop79, .LBB1_5 + br_if $pop79, 0 # 0: down to label3 # BB#2: # %lor.lhs.false13 i32.const $29=, 0 i32.add $29=, $31, $29 @@ -201,7 +203,7 @@ main: # @main i32.load8_u $push81=, 0($pop80) i32.const $push82=, 204 i32.ne $push83=, $pop81, $pop82 - br_if $pop83, .LBB1_5 + br_if $pop83, 0 # 0: down to label3 # BB#3: # %lor.lhs.false22 i32.const $30=, 0 i32.add $30=, $31, $30 @@ -209,7 +211,7 @@ main: # @main i32.load8_u $push85=, 0($pop84) i32.const $push86=, 128 i32.ne $push87=, $pop85, $pop86 - br_if $pop87, .LBB1_5 + br_if $pop87, 0 # 0: down to label3 # BB#4: # %if.end i32.const $18=, 48 i32.add $31=, $31, $18 @@ -217,6 +219,7 @@ main: # @main i32.store $31=, 0($18), $31 return $1 .LBB1_5: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr27364.c.s b/test/torture-s/pr27364.c.s index 703be36fe..45874483e 100644 --- a/test/torture-s/pr27364.c.s +++ b/test/torture-s/pr27364.c.s @@ -10,10 +10,10 @@ f: # @f .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_2 + block i32.const $push0=, 1294 i32.gt_u $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 3321928 i32.mul $push3=, $0, $pop2 @@ -24,6 +24,7 @@ f: # @f i32.const $push8=, 4 i32.shr_u $1=, $pop7, $pop8 .LBB0_2: # %return + end_block # label0: return $1 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/pr28403.c.s b/test/torture-s/pr28403.c.s index dffa7927b..306c25c3d 100644 --- a/test/torture-s/pr28403.c.s +++ b/test/torture-s/pr28403.c.s @@ -50,17 +50,18 @@ bar: # @bar main: # @main .result i32 # BB#0: # %entry - block .LBB2_2 + block i64.const $push0=, 81985529216486895 i64.call $push1=, bar@FUNCTION, $pop0 i64.const $push2=, 312749974122 i64.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB2_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 call exit@FUNCTION, $pop4 unreachable .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr28651.c.s b/test/torture-s/pr28651.c.s index d7b365bf8..9079ad551 100644 --- a/test/torture-s/pr28651.c.s +++ b/test/torture-s/pr28651.c.s @@ -22,16 +22,17 @@ main: # @main .param i32, i32 .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 2147483647 i32.call $push1=, foo@FUNCTION, $pop0 i32.const $push3=, 0 i32.eq $push4=, $pop1, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, 0 return $pop2 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr28982a.c.s b/test/torture-s/pr28982a.c.s index 772aac43c..07e219ce7 100644 --- a/test/torture-s/pr28982a.c.s +++ b/test/torture-s/pr28982a.c.s @@ -29,10 +29,10 @@ foo: # @foo copy_local $62=, $45 copy_local $63=, $45 copy_local $64=, $45 - block .LBB0_3 + block i32.const $push51=, 0 i32.eq $push52=, $0, $pop51 - br_if $pop52, .LBB0_3 + br_if $pop52, 0 # 0: down to label0 # BB#1: # %while.body.preheader i64.load $2=, incs+72($23) i64.load $1=, incs+64($23) @@ -138,7 +138,7 @@ foo: # @foo copy_local $64=, $45 .LBB0_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: f32.load $push31=, 0($25) f32.add $64=, $64, $pop31 f32.load $push32=, 0($26) @@ -201,8 +201,10 @@ foo: # @foo i32.add $27=, $27, $20 i32.add $26=, $26, $21 i32.add $25=, $25, $22 - br_if $0, .LBB0_2 + br_if $0, 0 # 0: up to label1 .LBB0_3: # %while.end + end_loop # label2: + end_block # label0: f32.store $discard=, results($23), $64 f32.store $discard=, results+4($23), $63 f32.store $discard=, results+8($23), $62 @@ -317,15 +319,16 @@ main: # @main i32.store $1=, incs+16($3), $pop8 .LBB1_1: # %for.body4 # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label3: f32.convert_s/i32 $push39=, $3 f32.store $discard=, 0($2), $pop39 i32.add $3=, $3, $0 i32.add $2=, $2, $1 i32.const $push40=, 80 i32.ne $push41=, $3, $pop40 - br_if $pop41, .LBB1_1 -.LBB1_2: # %for.end8 + br_if $pop41, 0 # 0: up to label3 +# BB#2: # %for.end8 + end_loop # label4: call foo@FUNCTION, $1 i32.const $3=, 0 f32.load $push42=, results($3) diff --git a/test/torture-s/pr29695-2.c.s b/test/torture-s/pr29695-2.c.s index 80d7dd984..77710fcc6 100644 --- a/test/torture-s/pr29695-2.c.s +++ b/test/torture-s/pr29695-2.c.s @@ -147,40 +147,44 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB8_8 + block i32.load8_u $push0=, a($0) i32.const $push1=, 7 i32.shr_u $push2=, $pop0, $pop1 i32.const $push9=, 0 i32.eq $push10=, $pop2, $pop9 - br_if $pop10, .LBB8_8 + br_if $pop10, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB8_7 + block i32.load8_s $push3=, b($0) i32.ge_s $push4=, $pop3, $0 - br_if $pop4, .LBB8_7 + br_if $pop4, 0 # 0: down to label1 # BB#2: # %if.end12 - block .LBB8_6 + block i32.load $push5=, c($0) i32.ge_s $push6=, $pop5, $0 - br_if $pop6, .LBB8_6 + br_if $pop6, 0 # 0: down to label2 # BB#3: # %if.end16 - block .LBB8_5 + block i32.load $push7=, d($0) i32.ge_s $push8=, $pop7, $0 - br_if $pop8, .LBB8_5 + br_if $pop8, 0 # 0: down to label3 # BB#4: # %if.end28 return $0 .LBB8_5: # %if.then19 + end_block # label3: call abort@FUNCTION unreachable .LBB8_6: # %if.then15 + end_block # label2: call abort@FUNCTION unreachable .LBB8_7: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB8_8: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end8: diff --git a/test/torture-s/pr31072.c.s b/test/torture-s/pr31072.c.s index 061c0c86a..7f42759fc 100644 --- a/test/torture-s/pr31072.c.s +++ b/test/torture-s/pr31072.c.s @@ -9,14 +9,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, ReadyFlag_NotProperlyInitialized($0) i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr31169.c.s b/test/torture-s/pr31169.c.s index 69ce4fb59..505d7aa0f 100644 --- a/test/torture-s/pr31169.c.s +++ b/test/torture-s/pr31169.c.s @@ -9,14 +9,14 @@ sign_bit_p: # @sign_bit_p .result i32 .local i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_3 - block .LBB0_2 + block + block i32.load16_u $push0=, 0($0) i32.const $push1=, 511 i32.and $0=, $pop0, $pop1 i32.const $push2=, 33 i32.lt_u $push3=, $0, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %if.then i32.const $push10=, 1 i32.const $push8=, -33 @@ -27,8 +27,9 @@ sign_bit_p: # @sign_bit_p i32.sub $push12=, $pop11, $0 i32.shr_u $5=, $3, $pop12 i32.const $4=, 0 - br .LBB0_3 + br 1 # 1: down to label0 .LBB0_2: # %if.else + end_block # label1: i32.const $3=, -1 i32.const $push5=, 1 i32.add $push4=, $0, $3 @@ -39,6 +40,7 @@ sign_bit_p: # @sign_bit_p i32.shr_u $3=, $3, $pop7 copy_local $6=, $5 .LBB0_3: # %if.end + end_block # label0: i32.and $push15=, $3, $2 i32.eq $push16=, $pop15, $4 i32.and $push13=, $5, $1 diff --git a/test/torture-s/pr31605.c.s b/test/torture-s/pr31605.c.s index 783370661..c5c019454 100644 --- a/test/torture-s/pr31605.c.s +++ b/test/torture-s/pr31605.c.s @@ -9,14 +9,15 @@ put_field: # @put_field .local i32 # BB#0: # %entry i32.const $2=, -8 - block .LBB0_2 + block i32.add $push0=, $1, $0 i32.or $push1=, $pop0, $2 i32.ne $push2=, $pop1, $2 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: i32.const $push3=, 0 call exit@FUNCTION, $pop3 unreachable diff --git a/test/torture-s/pr32244-1.c.s b/test/torture-s/pr32244-1.c.s index 07deb4617..1f3d9b045 100644 --- a/test/torture-s/pr32244-1.c.s +++ b/test/torture-s/pr32244-1.c.s @@ -7,16 +7,17 @@ test1: # @test1 .param i64 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 0 i64.load $push1=, x($pop0) i64.const $push2=, 32 i64.shl $push3=, $pop1, $pop2 i64.ne $push4=, $pop3, $0 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr33142.c.s b/test/torture-s/pr33142.c.s index e540b004f..5deb0935c 100644 --- a/test/torture-s/pr33142.c.s +++ b/test/torture-s/pr33142.c.s @@ -10,14 +10,14 @@ lisp_atan2: # @lisp_atan2 .local i32, i32 # BB#0: # %entry i32.const $3=, 0 - block .LBB0_3 + block i32.const $push0=, 1 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.const $push2=, 0 i32.gt_s $push3=, $1, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %if.then2 i32.const $3=, 31 i32.shr_s $2=, $1, $3 @@ -28,6 +28,7 @@ lisp_atan2: # @lisp_atan2 i32.xor $push7=, $pop6, $3 i32.le_s $3=, $pop5, $pop7 .LBB0_3: # %return + end_block # label0: return $3 .Lfunc_end0: .size lisp_atan2, .Lfunc_end0-lisp_atan2 @@ -46,7 +47,7 @@ main: # @main i32.sub $3=, $0, $1 i32.const $1=, __stack_pointer i32.store $3=, 0($1), $3 - block .LBB1_2 + block i32.const $push0=, 63 i32.store $discard=, 12($3), $pop0 i32.const $push1=, -77 @@ -54,7 +55,7 @@ main: # @main i32.load $push2=, 12($3) i32.load $push3=, 8($3) i32.call $push4=, lisp_atan2@FUNCTION, $pop2, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label1 # BB#1: # %if.end i32.const $push5=, 0 i32.const $2=, 16 @@ -63,6 +64,7 @@ main: # @main i32.store $3=, 0($2), $3 return $pop5 .LBB1_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr33382.c.s b/test/torture-s/pr33382.c.s index 810a057f4..24f8855f8 100644 --- a/test/torture-s/pr33382.c.s +++ b/test/torture-s/pr33382.c.s @@ -26,13 +26,14 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, x+8($0) - block .LBB1_2 + block i32.const $push0=, 1 i32.store $discard=, x+4($0), $pop0 - br_if $1, .LBB1_2 + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr33669.c.s b/test/torture-s/pr33669.c.s index 4efd3e702..f2c023796 100644 --- a/test/torture-s/pr33669.c.s +++ b/test/torture-s/pr33669.c.s @@ -19,20 +19,21 @@ foo: # @foo i32.add $2=, $pop3, $pop4 i32.rem_u $5=, $2, $3 i64.const $6=, -1 - block .LBB0_3 + block i32.sub $push5=, $2, $5 i32.lt_u $push6=, $3, $pop5 - br_if $pop6, .LBB0_3 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end i64.sub $6=, $1, $4 i32.load $push7=, 4($0) i32.le_u $push8=, $pop7, $3 - br_if $pop8, .LBB0_3 + br_if $pop8, 0 # 0: down to label0 # BB#2: # %if.then13 i32.const $push9=, 4 i32.add $push10=, $0, $pop9 i32.store $discard=, 0($pop10), $3 .LBB0_3: # %cleanup + end_block # label0: return $6 .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/pr33992.c.s b/test/torture-s/pr33992.c.s index a4e222e9e..d831164e5 100644 --- a/test/torture-s/pr33992.c.s +++ b/test/torture-s/pr33992.c.s @@ -7,13 +7,14 @@ bar: # @bar .param i64 # BB#0: # %entry - block .LBB0_2 + block i64.const $push0=, 0 i64.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -33,7 +34,7 @@ do_test: # @do_test copy_local $9=, $2 .LBB1_1: # %for.cond.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label1: i64.const $3=, 4294967295 i64.and $4=, $8, $3 i64.const $5=, 1 @@ -43,8 +44,9 @@ do_test: # @do_test i64.shl $push0=, $5, $4 i64.and $push1=, $pop0, $1 i64.eq $push2=, $pop1, $6 - br_if $pop2, .LBB1_1 -.LBB1_2: # %foo.exit + br_if $pop2, 0 # 0: up to label1 +# BB#2: # %foo.exit + end_loop # label2: i64.const $7=, 32 i64.shl $push3=, $9, $7 i64.shr_s $push4=, $pop3, $7 @@ -55,15 +57,16 @@ do_test: # @do_test copy_local $9=, $2 .LBB1_3: # %for.cond.i.1 # =>This Inner Loop Header: Depth=1 - loop .LBB1_4 + loop # label3: i64.and $4=, $8, $3 i64.add $9=, $9, $5 i64.add $8=, $8, $2 i64.shl $push5=, $5, $4 i64.and $push6=, $pop5, $1 i64.eq $push7=, $pop6, $6 - br_if $pop7, .LBB1_3 -.LBB1_4: # %foo.exit.1 + br_if $pop7, 0 # 0: up to label3 +# BB#4: # %foo.exit.1 + end_loop # label4: i64.shl $push8=, $9, $7 i64.shr_s $push9=, $pop8, $7 call bar@FUNCTION, $pop9 diff --git a/test/torture-s/pr34176.c.s b/test/torture-s/pr34176.c.s index d7d921160..6cb5135ad 100644 --- a/test/torture-s/pr34176.c.s +++ b/test/torture-s/pr34176.c.s @@ -27,14 +27,15 @@ foo: # @foo i32.const $1=, 0 i32.load $2=, foo.count($1) i32.const $3=, 1 - block .LBB1_2 + block i32.add $push0=, $2, $3 i32.store $discard=, foo.count($1), $pop0 i32.ge_s $push1=, $2, $3 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $1 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: @@ -60,32 +61,35 @@ main: # @main .LBB2_1: # %if.end # =>This Loop Header: Depth=1 # Child Loop BB2_2 Depth 2 - loop .LBB2_4 + loop # label1: i32.load $1=, 12($7) i32.call $discard=, foo@FUNCTION, $1 i32.const $0=, 0 - block .LBB2_3 + block i32.const $push3=, 0 i32.eq $push4=, $1, $pop3 - br_if $pop4, .LBB2_3 + br_if $pop4, 0 # 0: down to label3 .LBB2_2: # %while.body # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB2_3 + loop # label4: i32.const $push0=, -1 i32.add $1=, $1, $pop0 i32.const $push1=, 8 i32.add $0=, $0, $pop1 - br_if $1, .LBB2_2 + br_if $1, 0 # 0: up to label4 .LBB2_3: # %cleanup.thread # in Loop: Header=BB2_1 Depth=1 + end_loop # label5: + end_block # label3: i32.const $6=, 12 i32.add $6=, $7, $6 i32.call $discard=, hash_find_entry@FUNCTION, $6 i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB2_1 -.LBB2_4: # %for.end + br_if $pop6, 0 # 0: up to label1 +# BB#4: # %for.end + end_loop # label2: i32.const $push2=, 0 i32.const $4=, 16 i32.add $7=, $7, $4 diff --git a/test/torture-s/pr34415.c.s b/test/torture-s/pr34415.c.s index b932b8754..eaf5aae08 100644 --- a/test/torture-s/pr34415.c.s +++ b/test/torture-s/pr34415.c.s @@ -14,7 +14,7 @@ foo: # @foo .LBB0_1: # %for.cond # =>This Loop Header: Depth=1 # Child Loop BB0_3 Depth 2 - loop .LBB0_8 + loop # label0: copy_local $1=, $0 i32.load8_s $2=, 0($1) i32.const $4=, 255 @@ -27,33 +27,35 @@ foo: # @foo i32.add $push6=, $2, $pop5 i32.select $3=, $pop4, $pop6, $2 copy_local $0=, $1 - block .LBB0_7 + block i32.const $push7=, 66 i32.eq $push8=, $3, $pop7 - br_if $pop8, .LBB0_7 + br_if $pop8, 0 # 0: down to label2 # BB#2: # %for.cond # in Loop: Header=BB0_1 Depth=1 copy_local $0=, $1 - block .LBB0_4 + block i32.const $push9=, 65 i32.ne $push10=, $3, $pop9 - br_if $pop10, .LBB0_4 + br_if $pop10, 0 # 0: down to label3 .LBB0_3: # %do.body # Parent Loop BB0_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop .LBB0_4 + loop # label4: i32.const $push11=, 1 i32.add $0=, $0, $pop11 i32.load8_u $push12=, 0($0) i32.const $push13=, 43 i32.eq $push14=, $pop12, $pop13 - br_if $pop14, .LBB0_3 - br .LBB0_7 + br_if $pop14, 0 # 0: up to label4 + br 3 # 3: down to label2 .LBB0_4: # %for.end - block .LBB0_6 + end_loop # label5: + end_block # label3: + block i32.const $push15=, 3 i32.lt_s $push16=, $6, $pop15 - br_if $pop16, .LBB0_6 + br_if $pop16, 0 # 0: down to label6 # BB#5: # %land.lhs.true17 i32.and $push17=, $2, $4 i32.const $push18=, 58 @@ -61,15 +63,18 @@ foo: # @foo i32.select $push20=, $pop19, $5, $1 return $pop20 .LBB0_6: # %if.end22 + end_block # label6: return $1 .LBB0_7: # %cleanup.thread # in Loop: Header=BB0_1 Depth=1 + end_block # label2: i32.const $2=, 1 i32.add $0=, $0, $2 i32.add $6=, $6, $2 copy_local $5=, $1 - br .LBB0_1 + br 0 # 0: up to label0 .LBB0_8: + end_loop # label1: .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/pr34456.c.s b/test/torture-s/pr34456.c.s index 373cabd67..711e92c18 100644 --- a/test/torture-s/pr34456.c.s +++ b/test/torture-s/pr34456.c.s @@ -55,16 +55,16 @@ compare: # @compare # BB#0: # %entry i32.load $1=, 0($1) i32.load $2=, 4($0) - block .LBB3_3 + block i32.const $push6=, 0 i32.eq $push7=, $1, $pop6 - br_if $pop7, .LBB3_3 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %land.lhs.true i32.load $push0=, 0($0) i32.call_indirect $push1=, $2, $pop0 i32.const $push8=, 0 i32.eq $push9=, $pop1, $pop8 - br_if $pop9, .LBB3_3 + br_if $pop9, 0 # 0: down to label0 # BB#2: # %if.then i32.const $0=, 0 i32.load $push2=, errors($0) @@ -72,6 +72,7 @@ compare: # @compare i32.add $push4=, $pop2, $pop3 i32.store $discard=, errors($0), $pop4 .LBB3_3: # %if.end + end_block # label0: i32.call_indirect $push5=, $2, $1 return $pop5 .Lfunc_end3: diff --git a/test/torture-s/pr34768-1.c.s b/test/torture-s/pr34768-1.c.s index 81cd49c01..4b372a748 100644 --- a/test/torture-s/pr34768-1.c.s +++ b/test/torture-s/pr34768-1.c.s @@ -55,14 +55,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB3_2 + block i32.const $push0=, 1 i32.store $push1=, x($0), $pop0 i32.call $push2=, test@FUNCTION, $pop1 - br_if $pop2, .LBB3_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB3_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr34768-2.c.s b/test/torture-s/pr34768-2.c.s index dc76a4d5b..8a0f2634d 100644 --- a/test/torture-s/pr34768-2.c.s +++ b/test/torture-s/pr34768-2.c.s @@ -59,14 +59,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB3_2 + block i32.const $push0=, 1 i32.store $push1=, x($0), $pop0 i32.call $push2=, test@FUNCTION, $pop1 - br_if $pop2, .LBB3_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB3_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr34971.c.s b/test/torture-s/pr34971.c.s index 65efcc3c2..06c1a6509 100644 --- a/test/torture-s/pr34971.c.s +++ b/test/torture-s/pr34971.c.s @@ -8,7 +8,7 @@ test1: # @test1 .param i64 .local i64 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 0 i64.load $push1=, x($pop0) i64.const $push2=, 1099511627775 @@ -19,10 +19,11 @@ test1: # @test1 i64.shr_u $push6=, $1, $pop5 i64.or $push7=, $pop4, $pop6 i64.ne $push8=, $pop7, $0 - br_if $pop8, .LBB0_2 + br_if $pop8, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr35231.c.s b/test/torture-s/pr35231.c.s index 77eeb454b..01a652a6f 100644 --- a/test/torture-s/pr35231.c.s +++ b/test/torture-s/pr35231.c.s @@ -8,14 +8,15 @@ foo: # @foo .param i32, i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.or $push0=, $1, $0 i32.const $push1=, 1 i32.eq $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -31,13 +32,14 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.const $1=, 2 - block .LBB1_2 + block i32.call $push0=, foo@FUNCTION, $1, $0 i32.ne $push1=, $pop0, $1 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr35456.c.s b/test/torture-s/pr35456.c.s index 6064ea49c..92cb1046a 100644 --- a/test/torture-s/pr35456.c.s +++ b/test/torture-s/pr35456.c.s @@ -23,17 +23,18 @@ not_fabs: # @not_fabs main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block f64.const $push0=, -0x0p0 f64.call $push1=, not_fabs@FUNCTION, $pop0 i64.reinterpret/f64 $push2=, $pop1 i64.const $push3=, 0 i64.ge_s $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push5=, 0 return $pop5 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr35472.c.s b/test/torture-s/pr35472.c.s index c4f4292f4..c7d128ad2 100644 --- a/test/torture-s/pr35472.c.s +++ b/test/torture-s/pr35472.c.s @@ -108,11 +108,11 @@ test: # @test i32.const $28=, 0 i32.add $28=, $29, $28 call memcpy@FUNCTION, $0, $28, $2 - block .LBB1_2 + block i32.load $push18=, 0($29) i32.const $push19=, -1 i32.ne $push20=, $pop18, $pop19 - br_if $pop20, .LBB1_2 + br_if $pop20, 0 # 0: down to label0 # BB#1: # %if.end i32.const $10=, 128 i32.add $29=, $29, $10 @@ -120,6 +120,7 @@ test: # @test i32.store $29=, 0($10), $29 return .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: @@ -219,11 +220,11 @@ main: # @main i32.const $28=, 0 i32.add $28=, $29, $28 call memcpy@FUNCTION, $0, $28, $2 - block .LBB2_2 + block i32.load $push17=, 0($29) i32.const $push18=, -1 i32.ne $push19=, $pop17, $pop18 - br_if $pop19, .LBB2_2 + br_if $pop19, 0 # 0: down to label1 # BB#1: # %test.exit i32.const $10=, 128 i32.add $29=, $29, $10 @@ -231,6 +232,7 @@ main: # @main i32.store $29=, 0($10), $29 return $3 .LBB2_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr35800.c.s b/test/torture-s/pr35800.c.s index 4c6271106..7f991eeb9 100644 --- a/test/torture-s/pr35800.c.s +++ b/test/torture-s/pr35800.c.s @@ -10,18 +10,18 @@ stab_xcoff_builtin_type: # @stab_xcoff_builtin_type .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB0_4 + block i32.const $push0=, -34 i32.lt_u $push1=, $0, $pop0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push2=, -2 i32.sub $0=, $pop2, $0 i32.const $1=, .L.str - block .LBB0_3 + block i32.const $push3=, 32 i32.gt_u $push4=, $0, $pop3 - br_if $pop4, .LBB0_3 + br_if $pop4, 0 # 0: down to label1 # BB#2: # %switch.lookup i32.const $push7=, .Lswitch.table i32.const $push5=, 2 @@ -29,8 +29,10 @@ stab_xcoff_builtin_type: # @stab_xcoff_builtin_type i32.add $push8=, $pop7, $pop6 i32.load $1=, 0($pop8) .LBB0_3: # %sw.epilog + end_block # label1: i32.load8_s $1=, 0($1) .LBB0_4: # %cleanup + end_block # label0: return $1 .Lfunc_end0: .size stab_xcoff_builtin_type, .Lfunc_end0-stab_xcoff_builtin_type @@ -47,13 +49,13 @@ main: # @main i32.const $0=, .Lswitch.table+8 .LBB1_1: # %stab_xcoff_builtin_type.exit # =>This Inner Loop Header: Depth=1 - block .LBB1_4 - loop .LBB1_3 + block + loop # label3: i32.load $push0=, 0($0) i32.load8_u $push1=, 0($pop0) i32.const $push2=, 105 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_4 + br_if $pop3, 2 # 2: down to label2 # BB#2: # %for.cond # in Loop: Header=BB1_1 Depth=1 i32.const $push4=, -1 @@ -62,11 +64,13 @@ main: # @main i32.add $0=, $0, $pop5 i32.const $push6=, -34 i32.ge_s $push7=, $1, $pop6 - br_if $pop7, .LBB1_1 -.LBB1_3: # %if.end21 + br_if $pop7, 0 # 0: up to label3 +# BB#3: # %if.end21 + end_loop # label4: i32.const $push8=, 0 return $pop8 .LBB1_4: # %if.then16 + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr36034-1.c.s b/test/torture-s/pr36034-1.c.s index d2b75e079..e7c9133e6 100644 --- a/test/torture-s/pr36034-1.c.s +++ b/test/torture-s/pr36034-1.c.s @@ -83,129 +83,130 @@ main: # @main call test@FUNCTION i32.const $0=, 0 f64.const $1=, -0x1p0 - block .LBB1_31 + block f64.load $push29=, tmp($0) f64.eq $push30=, $pop29, $1 - br_if $pop30, .LBB1_31 + br_if $pop30, 0 # 0: down to label0 # BB#1: # %entry f64.load $push0=, tmp+8($0) f64.eq $push31=, $pop0, $1 - br_if $pop31, .LBB1_31 + br_if $pop31, 0 # 0: down to label0 # BB#2: # %entry f64.load $push1=, tmp+16($0) f64.eq $push32=, $pop1, $1 - br_if $pop32, .LBB1_31 + br_if $pop32, 0 # 0: down to label0 # BB#3: # %entry f64.load $push2=, tmp+24($0) f64.eq $push33=, $pop2, $1 - br_if $pop33, .LBB1_31 + br_if $pop33, 0 # 0: down to label0 # BB#4: # %entry f64.load $push3=, tmp+32($0) f64.eq $push34=, $pop3, $1 - br_if $pop34, .LBB1_31 + br_if $pop34, 0 # 0: down to label0 # BB#5: # %entry f64.load $push4=, tmp+40($0) f64.eq $push35=, $pop4, $1 - br_if $pop35, .LBB1_31 + br_if $pop35, 0 # 0: down to label0 # BB#6: # %entry f64.load $push5=, tmp+48($0) f64.eq $push36=, $pop5, $1 - br_if $pop36, .LBB1_31 + br_if $pop36, 0 # 0: down to label0 # BB#7: # %entry f64.load $push6=, tmp+56($0) f64.eq $push37=, $pop6, $1 - br_if $pop37, .LBB1_31 + br_if $pop37, 0 # 0: down to label0 # BB#8: # %entry f64.load $push7=, tmp+64($0) f64.eq $push38=, $pop7, $1 - br_if $pop38, .LBB1_31 + br_if $pop38, 0 # 0: down to label0 # BB#9: # %entry f64.load $push8=, tmp+72($0) f64.eq $push39=, $pop8, $1 - br_if $pop39, .LBB1_31 + br_if $pop39, 0 # 0: down to label0 # BB#10: # %entry f64.load $push9=, tmp+80($0) f64.eq $push40=, $pop9, $1 - br_if $pop40, .LBB1_31 + br_if $pop40, 0 # 0: down to label0 # BB#11: # %entry f64.load $push10=, tmp+88($0) f64.eq $push41=, $pop10, $1 - br_if $pop41, .LBB1_31 + br_if $pop41, 0 # 0: down to label0 # BB#12: # %entry f64.load $push11=, tmp+96($0) f64.eq $push42=, $pop11, $1 - br_if $pop42, .LBB1_31 + br_if $pop42, 0 # 0: down to label0 # BB#13: # %entry f64.load $push12=, tmp+104($0) f64.eq $push43=, $pop12, $1 - br_if $pop43, .LBB1_31 + br_if $pop43, 0 # 0: down to label0 # BB#14: # %entry f64.load $push13=, tmp+112($0) f64.eq $push44=, $pop13, $1 - br_if $pop44, .LBB1_31 + br_if $pop44, 0 # 0: down to label0 # BB#15: # %entry f64.load $push14=, tmp+120($0) f64.eq $push45=, $pop14, $1 - br_if $pop45, .LBB1_31 + br_if $pop45, 0 # 0: down to label0 # BB#16: # %entry f64.load $push15=, tmp+128($0) f64.eq $push46=, $pop15, $1 - br_if $pop46, .LBB1_31 + br_if $pop46, 0 # 0: down to label0 # BB#17: # %entry f64.load $push16=, tmp+136($0) f64.eq $push47=, $pop16, $1 - br_if $pop47, .LBB1_31 + br_if $pop47, 0 # 0: down to label0 # BB#18: # %entry f64.load $push17=, tmp+144($0) f64.eq $push48=, $pop17, $1 - br_if $pop48, .LBB1_31 + br_if $pop48, 0 # 0: down to label0 # BB#19: # %entry f64.load $push18=, tmp+152($0) f64.eq $push49=, $pop18, $1 - br_if $pop49, .LBB1_31 + br_if $pop49, 0 # 0: down to label0 # BB#20: # %entry f64.load $push19=, tmp+160($0) f64.eq $push50=, $pop19, $1 - br_if $pop50, .LBB1_31 + br_if $pop50, 0 # 0: down to label0 # BB#21: # %entry f64.load $push20=, tmp+168($0) f64.eq $push51=, $pop20, $1 - br_if $pop51, .LBB1_31 + br_if $pop51, 0 # 0: down to label0 # BB#22: # %entry f64.load $push21=, tmp+176($0) f64.eq $push52=, $pop21, $1 - br_if $pop52, .LBB1_31 + br_if $pop52, 0 # 0: down to label0 # BB#23: # %entry f64.load $push22=, tmp+184($0) f64.eq $push53=, $pop22, $1 - br_if $pop53, .LBB1_31 + br_if $pop53, 0 # 0: down to label0 # BB#24: # %entry f64.load $push23=, tmp+192($0) f64.eq $push54=, $pop23, $1 - br_if $pop54, .LBB1_31 + br_if $pop54, 0 # 0: down to label0 # BB#25: # %entry f64.load $push24=, tmp+200($0) f64.eq $push55=, $pop24, $1 - br_if $pop55, .LBB1_31 + br_if $pop55, 0 # 0: down to label0 # BB#26: # %entry f64.load $push25=, tmp+208($0) f64.eq $push56=, $pop25, $1 - br_if $pop56, .LBB1_31 + br_if $pop56, 0 # 0: down to label0 # BB#27: # %entry f64.load $push26=, tmp+216($0) f64.eq $push57=, $pop26, $1 - br_if $pop57, .LBB1_31 + br_if $pop57, 0 # 0: down to label0 # BB#28: # %entry f64.load $push27=, tmp+224($0) f64.eq $push58=, $pop27, $1 - br_if $pop58, .LBB1_31 + br_if $pop58, 0 # 0: down to label0 # BB#29: # %entry f64.load $push28=, tmp+232($0) f64.eq $push59=, $pop28, $1 - br_if $pop59, .LBB1_31 + br_if $pop59, 0 # 0: down to label0 # BB#30: # %for.cond1.5.4 return $0 .LBB1_31: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr36034-2.c.s b/test/torture-s/pr36034-2.c.s index 0f02f41dd..a1248b1a0 100644 --- a/test/torture-s/pr36034-2.c.s +++ b/test/torture-s/pr36034-2.c.s @@ -11,7 +11,7 @@ test: # @test i32.const $5=, tmp .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $push0=, x i32.add $0=, $pop0, $6 i32.const $2=, 8 @@ -47,8 +47,9 @@ test: # @test i32.add $5=, $5, $pop15 i32.const $push16=, 400 i32.ne $push17=, $6, $pop16 - br_if $pop17, .LBB0_1 -.LBB0_2: # %for.end + br_if $pop17, 0 # 0: up to label0 +# BB#2: # %for.end + end_loop # label1: return .Lfunc_end0: .size test, .Lfunc_end0-test @@ -66,47 +67,47 @@ main: # @main i32.const $1=, tmp .LBB1_1: # %for.cond1.preheader # =>This Inner Loop Header: Depth=1 - block .LBB1_9 - loop .LBB1_8 + block + loop # label3: f64.const $0=, -0x1p0 f64.load $push0=, 0($1) f64.eq $push1=, $pop0, $0 - br_if $pop1, .LBB1_9 + br_if $pop1, 2 # 2: down to label2 # BB#2: # %for.cond1 # in Loop: Header=BB1_1 Depth=1 i32.const $push2=, 8 i32.add $push3=, $1, $pop2 f64.load $push4=, 0($pop3) f64.eq $push5=, $pop4, $0 - br_if $pop5, .LBB1_9 + br_if $pop5, 2 # 2: down to label2 # BB#3: # %for.cond1.1 # in Loop: Header=BB1_1 Depth=1 i32.const $push6=, 16 i32.add $push7=, $1, $pop6 f64.load $push8=, 0($pop7) f64.eq $push9=, $pop8, $0 - br_if $pop9, .LBB1_9 + br_if $pop9, 2 # 2: down to label2 # BB#4: # %for.cond1.2 # in Loop: Header=BB1_1 Depth=1 i32.const $push10=, 24 i32.add $push11=, $1, $pop10 f64.load $push12=, 0($pop11) f64.eq $push13=, $pop12, $0 - br_if $pop13, .LBB1_9 + br_if $pop13, 2 # 2: down to label2 # BB#5: # %for.cond1.3 # in Loop: Header=BB1_1 Depth=1 i32.const $push14=, 32 i32.add $push15=, $1, $pop14 f64.load $push16=, 0($pop15) f64.eq $push17=, $pop16, $0 - br_if $pop17, .LBB1_9 + br_if $pop17, 2 # 2: down to label2 # BB#6: # %for.cond1.4 # in Loop: Header=BB1_1 Depth=1 i32.const $push18=, 40 i32.add $push19=, $1, $pop18 f64.load $push20=, 0($pop19) f64.eq $push21=, $pop20, $0 - br_if $pop21, .LBB1_9 + br_if $pop21, 2 # 2: down to label2 # BB#7: # %for.cond1.5 # in Loop: Header=BB1_1 Depth=1 i32.const $push22=, 1 @@ -115,11 +116,13 @@ main: # @main i32.add $1=, $1, $pop23 i32.const $push24=, 5 i32.lt_s $push25=, $2, $pop24 - br_if $pop25, .LBB1_1 -.LBB1_8: # %for.end7 + br_if $pop25, 0 # 0: up to label3 +# BB#8: # %for.end7 + end_loop # label4: i32.const $push26=, 0 return $pop26 .LBB1_9: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr36038.c.s b/test/torture-s/pr36038.c.s index 100982261..66f91f7df 100644 --- a/test/torture-s/pr36038.c.s +++ b/test/torture-s/pr36038.c.s @@ -9,13 +9,13 @@ doit: # @doit # BB#0: # %entry i32.const $5=, 0 i32.load $0=, markstack_ptr($5) - block .LBB0_3 + block i32.const $push2=, -4 i32.add $push3=, $0, $pop2 i32.load $1=, 0($pop3) i32.const $push4=, 6 i32.eq $push5=, $1, $pop4 - br_if $pop5, .LBB0_3 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %while.body.preheader i32.load $push0=, stack_base($5) i32.const $push1=, 40 @@ -31,7 +31,7 @@ doit: # @doit i32.sub $1=, $pop9, $pop10 .LBB0_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.add $push12=, $5, $1 i32.const $push13=, 16 i32.add $push14=, $pop12, $pop13 @@ -40,8 +40,10 @@ doit: # @doit i32.add $5=, $5, $2 i32.const $push15=, 1 i32.add $4=, $4, $pop15 - br_if $4, .LBB0_2 + br_if $4, 0 # 0: up to label1 .LBB0_3: # %while.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size doit, .Lfunc_end0-doit @@ -55,7 +57,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.const $push8=, indices+36 i32.store $discard=, markstack_ptr($0), $pop8 i32.const $push9=, 2 @@ -87,10 +89,11 @@ main: # @main i32.const $push1=, list i32.const $push16=, 80 i32.call $push17=, memcmp@FUNCTION, $pop15, $pop1, $pop16 - br_if $pop17, .LBB1_2 + br_if $pop17, 0 # 0: down to label3 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr36093.c.s b/test/torture-s/pr36093.c.s index c6b3289f6..65270250d 100644 --- a/test/torture-s/pr36093.c.s +++ b/test/torture-s/pr36093.c.s @@ -11,7 +11,7 @@ main: # @main i32.const $3=, -129 .LBB0_1: # %for.body4 # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $0=, foo i32.const $2=, 129 i32.add $push0=, $0, $3 @@ -20,46 +20,51 @@ main: # @main i32.store8 $discard=, 0($pop1), $pop2 i32.const $1=, 1 i32.add $3=, $3, $1 - br_if $3, .LBB0_1 + br_if $3, 0 # 0: up to label0 .LBB0_2: # %for.body4.1 # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + end_loop # label1: + loop # label2: i32.add $push3=, $0, $2 i32.const $push4=, 98 i32.store8 $discard=, 0($pop3), $pop4 i32.add $2=, $2, $1 i32.const $3=, 258 i32.ne $push5=, $2, $3 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: up to label2 .LBB0_3: # %for.body4.2 # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 + end_loop # label3: + loop # label4: i32.add $push6=, $0, $3 i32.const $push7=, 99 i32.store8 $discard=, 0($pop6), $pop7 i32.add $3=, $3, $1 i32.const $2=, 387 i32.ne $push8=, $3, $2 - br_if $pop8, .LBB0_3 + br_if $pop8, 0 # 0: up to label4 .LBB0_4: # %for.body4.3 # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 + end_loop # label5: + loop # label6: i32.add $push9=, $0, $2 i32.const $push10=, 100 i32.store8 $3=, 0($pop9), $pop10 i32.add $2=, $2, $1 i32.const $push11=, 516 i32.ne $push12=, $2, $pop11 - br_if $pop12, .LBB0_4 -.LBB0_5: # %for.end.3 + br_if $pop12, 0 # 0: up to label6 +# BB#5: # %for.end.3 + end_loop # label7: i32.const $2=, 0 - block .LBB0_7 + block i32.load8_u $push13=, foo+515($2) i32.ne $push14=, $pop13, $3 - br_if $pop14, .LBB0_7 + br_if $pop14, 0 # 0: down to label8 # BB#6: # %if.end return $2 .LBB0_7: # %if.then + end_block # label8: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr36339.c.s b/test/torture-s/pr36339.c.s index 3ef1d5d3e..6981a175f 100644 --- a/test/torture-s/pr36339.c.s +++ b/test/torture-s/pr36339.c.s @@ -41,22 +41,24 @@ check_a: # @check_a .local i32, i32 # BB#0: # %entry i32.const $1=, -1 - block .LBB1_3 - block .LBB1_2 + block + block i32.add $push0=, $0, $1 i32.load $push1=, 0($pop0) i32.const $push2=, 42 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %land.lhs.true i32.const $2=, 0 i32.load $push4=, 3($0) i32.const $push5=, 0 i32.eq $push6=, $pop4, $pop5 - br_if $pop6, .LBB1_3 + br_if $pop6, 1 # 1: down to label0 .LBB1_2: # %if.end + end_block # label1: copy_local $2=, $1 .LBB1_3: # %cleanup + end_block # label0: return $2 .Lfunc_end1: .size check_a, .Lfunc_end1-check_a @@ -68,16 +70,17 @@ check_a: # @check_a main: # @main .result i32 # BB#0: # %entry - block .LBB2_2 + block i32.const $push0=, 42 i32.call $push1=, try_a@FUNCTION, $pop0 i32.const $push2=, -1 i32.le_s $push3=, $pop1, $pop2 - br_if $pop3, .LBB2_2 + br_if $pop3, 0 # 0: down to label2 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB2_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr36343.c.s b/test/torture-s/pr36343.c.s index 1dac55561..933d799cf 100644 --- a/test/torture-s/pr36343.c.s +++ b/test/torture-s/pr36343.c.s @@ -38,19 +38,21 @@ foo: # @foo i32.const $push1=, 1065353216 i32.store $discard=, 8($7), $pop1 call bar@FUNCTION, $1 - block .LBB1_3 - block .LBB1_2 + block + block i32.const $push4=, 0 i32.eq $push5=, $0, $pop4 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label1 # BB#1: # %if.then2 i32.load $push2=, 0($1) i32.load $push3=, 0($pop2) f32.convert_s/i32 $2=, $pop3 - br .LBB1_3 + br 1 # 1: down to label0 .LBB1_2: # %if.end3 + end_block # label1: f32.load $2=, 8($7) .LBB1_3: # %cleanup + end_block # label0: i32.const $5=, 16 i32.add $7=, $7, $5 i32.const $5=, __stack_pointer @@ -68,14 +70,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB2_2 + block f32.call $push0=, foo@FUNCTION, $0 f32.const $push1=, 0x0p0 f32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB2_2 + br_if $pop2, 0 # 0: down to label2 # BB#1: # %if.end return $0 .LBB2_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr36765.c.s b/test/torture-s/pr36765.c.s index 48f7261d1..3e35ab284 100644 --- a/test/torture-s/pr36765.c.s +++ b/test/torture-s/pr36765.c.s @@ -32,14 +32,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.call $push0=, foo@FUNCTION, $0 i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr37102.c.s b/test/torture-s/pr37102.c.s index 4a201a639..fb6a00c31 100644 --- a/test/torture-s/pr37102.c.s +++ b/test/torture-s/pr37102.c.s @@ -7,13 +7,14 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 5 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -29,14 +30,15 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, b($0) - block .LBB1_2 + block i32.load $push0=, c($0) i32.const $push8=, 0 i32.eq $push9=, $pop0, $pop8 - br_if $pop9, .LBB1_2 + br_if $pop9, 0 # 0: down to label1 # BB#1: # %if.then.3 i32.store $discard=, a($0), $1 .LBB1_2: # %for.inc.3 + end_block # label1: i32.store $discard=, a($0), $1 i32.const $push1=, 2147483647 i32.and $push2=, $1, $pop1 diff --git a/test/torture-s/pr37125.c.s b/test/torture-s/pr37125.c.s index b49f64627..1e1a6df58 100644 --- a/test/torture-s/pr37125.c.s +++ b/test/torture-s/pr37125.c.s @@ -9,15 +9,16 @@ func_44: # @func_44 .local i32 # BB#0: # %entry i32.const $1=, -9 - block .LBB0_2 + block i32.mul $push0=, $0, $1 i32.rem_u $push1=, $pop0, $1 i32.const $push2=, 0 i32.eq $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr37573.c.s b/test/torture-s/pr37573.c.s index a42d9a4fb..6cdf52b68 100644 --- a/test/torture-s/pr37573.c.s +++ b/test/torture-s/pr37573.c.s @@ -8,16 +8,17 @@ main: # @main .result i32 # BB#0: # %entry call bar@FUNCTION - block .LBB0_2 + block i32.const $push1=, p i32.const $push0=, q i32.const $push2=, 23 i32.call $push3=, memcmp@FUNCTION, $pop1, $pop0, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -44,7 +45,7 @@ bar: # @bar copy_local $4=, $0 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label1: i32.const $push3=, 30 i32.shr_u $push4=, $3, $pop3 i32.xor $push5=, $pop4, $3 @@ -57,8 +58,9 @@ bar: # @bar i32.add $2=, $2, $1 i32.const $push8=, 624 i32.ne $push9=, $4, $pop8 - br_if $pop9, .LBB1_1 -.LBB1_2: # %for.end + br_if $pop9, 0 # 0: up to label1 +# BB#2: # %for.end + end_loop # label2: i32.const $9=, 8 i32.add $9=, $33, $9 i32.or $push10=, $9, $1 @@ -218,12 +220,12 @@ foo: # @foo .result i32 .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB2_3 + block i32.load $push0=, 4($0) i32.const $push1=, -1 i32.add $push2=, $pop0, $pop1 i32.store $push3=, 4($0), $pop2 - br_if $pop3, .LBB2_3 + br_if $pop3, 0 # 0: down to label3 # BB#1: # %if.then i32.const $3=, 8 i32.add $push4=, $0, $3 @@ -233,7 +235,7 @@ foo: # @foo copy_local $6=, $2 .LBB2_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_3 + loop # label4: i32.add $4=, $0, $6 i32.const $push5=, 12 i32.add $push6=, $4, $pop5 @@ -260,8 +262,10 @@ foo: # @foo copy_local $7=, $1 i32.const $push23=, 908 i32.ne $push24=, $6, $pop23 - br_if $pop24, .LBB2_2 + br_if $pop24, 0 # 0: up to label4 .LBB2_3: # %if.end + end_loop # label5: + end_block # label3: i32.load $6=, 0($0) i32.const $push25=, 4 i32.add $push26=, $6, $pop25 diff --git a/test/torture-s/pr38212.c.s b/test/torture-s/pr38212.c.s index b9adccf80..393caee07 100644 --- a/test/torture-s/pr38212.c.s +++ b/test/torture-s/pr38212.c.s @@ -42,10 +42,10 @@ main: # @main i32.store $0=, 12($6), $pop0 i32.const $5=, 12 i32.add $5=, $6, $5 - block .LBB1_2 + block i32.call $push1=, foo@FUNCTION, $5, $1 i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $4=, 16 i32.add $6=, $6, $4 @@ -53,6 +53,7 @@ main: # @main i32.store $6=, 0($4), $6 return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr38236.c.s b/test/torture-s/pr38236.c.s index d65145cc4..2a0a03215 100644 --- a/test/torture-s/pr38236.c.s +++ b/test/torture-s/pr38236.c.s @@ -44,13 +44,14 @@ main: # @main # BB#0: # %entry i32.const $0=, 1 i32.const $1=, 0 - block .LBB1_2 + block i32.call $push0=, foo@FUNCTION, $1, $0, $0, $0 i32.ne $push1=, $pop0, $0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $1 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr38533.c.s b/test/torture-s/pr38533.c.s index 556b1169d..996588387 100644 --- a/test/torture-s/pr38533.c.s +++ b/test/torture-s/pr38533.c.s @@ -1230,13 +1230,14 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.call $push0=, foo@FUNCTION - br_if $pop0, .LBB1_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push1=, 0 return $pop1 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr39120.c.s b/test/torture-s/pr39120.c.s index fdd9e4b8b..66b884531 100644 --- a/test/torture-s/pr39120.c.s +++ b/test/torture-s/pr39120.c.s @@ -47,11 +47,11 @@ main: # @main i32.call $push1=, foo@FUNCTION, $4 i32.store $discard=, x($0), $pop1 call bar@FUNCTION - block .LBB2_2 + block i32.load $push2=, 12($5) i32.const $push3=, 1 i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB2_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end i32.const $3=, 16 i32.add $5=, $5, $3 @@ -59,6 +59,7 @@ main: # @main i32.store $5=, 0($3), $5 return $0 .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr39228.c.s b/test/torture-s/pr39228.c.s index a64af7c57..68bd44ba0 100644 --- a/test/torture-s/pr39228.c.s +++ b/test/torture-s/pr39228.c.s @@ -11,31 +11,34 @@ main: # @main f64.const $push0=, infinity i32.call $0=, __builtin_isinff@FUNCTION, $pop0 i32.const $1=, 0 - block .LBB0_6 + block i32.le_s $push1=, $0, $1 - br_if $pop1, .LBB0_6 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_5 + block i32.const $push2=, 1 i32.const $push7=, 0 i32.eq $push8=, $pop2, $pop7 - br_if $pop8, .LBB0_5 + br_if $pop8, 0 # 0: down to label1 # BB#2: # %if.end4 - block .LBB0_4 + block i64.const $push4=, 0 i64.const $push3=, 9223090561878065152 i32.call $push5=, __builtin_isinfl@FUNCTION, $pop4, $pop3 i32.le_s $push6=, $pop5, $1 - br_if $pop6, .LBB0_4 + br_if $pop6, 0 # 0: down to label2 # BB#3: # %if.end8 return $1 .LBB0_4: # %if.then7 + end_block # label2: call abort@FUNCTION unreachable .LBB0_5: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB0_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr39233.c.s b/test/torture-s/pr39233.c.s index 7481e0998..f3fd7dd5f 100644 --- a/test/torture-s/pr39233.c.s +++ b/test/torture-s/pr39233.c.s @@ -7,17 +7,18 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push0=, 0 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.const $push2=, 7 i32.ge_s $push3=, $0, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %if.end return .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr39240.c.s b/test/torture-s/pr39240.c.s index 09f7da737..3ed33566d 100644 --- a/test/torture-s/pr39240.c.s +++ b/test/torture-s/pr39240.c.s @@ -185,58 +185,64 @@ main: # @main i32.const $0=, -10 i32.call $1=, bar1@FUNCTION, $0 i32.const $2=, 0 - block .LBB12_12 + block i32.load $push0=, l1($2) i32.ne $push1=, $1, $pop0 - br_if $pop1, .LBB12_12 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB12_11 + block i32.call $push2=, bar2@FUNCTION, $0 i32.load $push3=, l2($2) i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB12_11 + br_if $pop4, 0 # 0: down to label1 # BB#2: # %if.end5 - block .LBB12_10 + block i32.call $push5=, bar3@FUNCTION, $0 i32.load $push6=, l3($2) i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB12_10 + br_if $pop7, 0 # 0: down to label2 # BB#3: # %if.end11 - block .LBB12_9 + block i32.call $push8=, bar4@FUNCTION, $0 i32.load $push9=, l4($2) i32.ne $push10=, $pop8, $pop9 - br_if $pop10, .LBB12_9 + br_if $pop10, 0 # 0: down to label3 # BB#4: # %if.end16 - block .LBB12_8 + block i32.call $push11=, bar5@FUNCTION, $0 i32.load $push12=, l5($2) i32.ne $push13=, $pop11, $pop12 - br_if $pop13, .LBB12_8 + br_if $pop13, 0 # 0: down to label4 # BB#5: # %if.end22 - block .LBB12_7 + block i32.call $push14=, bar6@FUNCTION, $0 i32.load $push15=, l6($2) i32.ne $push16=, $pop14, $pop15 - br_if $pop16, .LBB12_7 + br_if $pop16, 0 # 0: down to label5 # BB#6: # %if.end28 return $2 .LBB12_7: # %if.then27 + end_block # label5: call abort@FUNCTION unreachable .LBB12_8: # %if.then21 + end_block # label4: call abort@FUNCTION unreachable .LBB12_9: # %if.then15 + end_block # label3: call abort@FUNCTION unreachable .LBB12_10: # %if.then10 + end_block # label2: call abort@FUNCTION unreachable .LBB12_11: # %if.then4 + end_block # label1: call abort@FUNCTION unreachable .LBB12_12: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end12: diff --git a/test/torture-s/pr39501.c.s b/test/torture-s/pr39501.c.s index 03745139d..e29c07ba7 100644 --- a/test/torture-s/pr39501.c.s +++ b/test/torture-s/pr39501.c.s @@ -122,394 +122,442 @@ main: # @main # BB#0: # %entry f32.const $0=, -0x1p0 f32.const $1=, 0x0p0 - block .LBB8_2 + block f32.call $push0=, float_min1@FUNCTION, $1, $0 f32.eq $push1=, $pop0, $0 - br_if $pop1, .LBB8_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB8_2: # %if.end - block .LBB8_4 + end_block # label0: + block f32.call $push2=, float_min1@FUNCTION, $0, $1 f32.eq $push3=, $pop2, $0 - br_if $pop3, .LBB8_4 + br_if $pop3, 0 # 0: down to label1 # BB#3: # %if.then3 call abort@FUNCTION unreachable .LBB8_4: # %if.end4 + end_block # label1: f32.const $2=, 0x1p0 - block .LBB8_6 + block f32.call $push4=, float_min1@FUNCTION, $1, $2 f32.eq $push5=, $pop4, $1 - br_if $pop5, .LBB8_6 + br_if $pop5, 0 # 0: down to label2 # BB#5: # %if.then7 call abort@FUNCTION unreachable .LBB8_6: # %if.end8 - block .LBB8_8 + end_block # label2: + block f32.call $push6=, float_min1@FUNCTION, $2, $1 f32.eq $push7=, $pop6, $1 - br_if $pop7, .LBB8_8 + br_if $pop7, 0 # 0: down to label3 # BB#7: # %if.then11 call abort@FUNCTION unreachable .LBB8_8: # %if.end12 - block .LBB8_10 + end_block # label3: + block f32.call $push8=, float_min1@FUNCTION, $0, $2 f32.eq $push9=, $pop8, $0 - br_if $pop9, .LBB8_10 + br_if $pop9, 0 # 0: down to label4 # BB#9: # %if.then15 call abort@FUNCTION unreachable .LBB8_10: # %if.end16 - block .LBB8_12 + end_block # label4: + block f32.call $push10=, float_min1@FUNCTION, $2, $0 f32.eq $push11=, $pop10, $0 - br_if $pop11, .LBB8_12 + br_if $pop11, 0 # 0: down to label5 # BB#11: # %if.then19 call abort@FUNCTION unreachable .LBB8_12: # %if.end20 - block .LBB8_14 + end_block # label5: + block f32.call $push12=, float_max1@FUNCTION, $1, $0 f32.eq $push13=, $pop12, $1 - br_if $pop13, .LBB8_14 + br_if $pop13, 0 # 0: down to label6 # BB#13: # %if.then23 call abort@FUNCTION unreachable .LBB8_14: # %if.end24 - block .LBB8_16 + end_block # label6: + block f32.call $push14=, float_max1@FUNCTION, $0, $1 f32.eq $push15=, $pop14, $1 - br_if $pop15, .LBB8_16 + br_if $pop15, 0 # 0: down to label7 # BB#15: # %if.then27 call abort@FUNCTION unreachable .LBB8_16: # %if.end28 - block .LBB8_18 + end_block # label7: + block f32.call $push16=, float_max1@FUNCTION, $1, $2 f32.eq $push17=, $pop16, $2 - br_if $pop17, .LBB8_18 + br_if $pop17, 0 # 0: down to label8 # BB#17: # %if.then31 call abort@FUNCTION unreachable .LBB8_18: # %if.end32 - block .LBB8_20 + end_block # label8: + block f32.call $push18=, float_max1@FUNCTION, $2, $1 f32.eq $push19=, $pop18, $2 - br_if $pop19, .LBB8_20 + br_if $pop19, 0 # 0: down to label9 # BB#19: # %if.then35 call abort@FUNCTION unreachable .LBB8_20: # %if.end36 - block .LBB8_22 + end_block # label9: + block f32.call $push20=, float_max1@FUNCTION, $0, $2 f32.eq $push21=, $pop20, $2 - br_if $pop21, .LBB8_22 + br_if $pop21, 0 # 0: down to label10 # BB#21: # %if.then39 call abort@FUNCTION unreachable .LBB8_22: # %if.end40 - block .LBB8_24 + end_block # label10: + block f32.call $push22=, float_max1@FUNCTION, $2, $0 f32.eq $push23=, $pop22, $2 - br_if $pop23, .LBB8_24 + br_if $pop23, 0 # 0: down to label11 # BB#23: # %if.then43 call abort@FUNCTION unreachable .LBB8_24: # %if.end44 - block .LBB8_26 + end_block # label11: + block f32.call $push24=, float_min2@FUNCTION, $1, $0 f32.eq $push25=, $pop24, $0 - br_if $pop25, .LBB8_26 + br_if $pop25, 0 # 0: down to label12 # BB#25: # %if.then47 call abort@FUNCTION unreachable .LBB8_26: # %if.end48 - block .LBB8_28 + end_block # label12: + block f32.call $push26=, float_min2@FUNCTION, $0, $1 f32.eq $push27=, $pop26, $0 - br_if $pop27, .LBB8_28 + br_if $pop27, 0 # 0: down to label13 # BB#27: # %if.then51 call abort@FUNCTION unreachable .LBB8_28: # %if.end52 - block .LBB8_30 + end_block # label13: + block f32.call $push28=, float_min2@FUNCTION, $1, $2 f32.eq $push29=, $pop28, $1 - br_if $pop29, .LBB8_30 + br_if $pop29, 0 # 0: down to label14 # BB#29: # %if.then55 call abort@FUNCTION unreachable .LBB8_30: # %if.end56 - block .LBB8_32 + end_block # label14: + block f32.call $push30=, float_min2@FUNCTION, $2, $1 f32.eq $push31=, $pop30, $1 - br_if $pop31, .LBB8_32 + br_if $pop31, 0 # 0: down to label15 # BB#31: # %if.then59 call abort@FUNCTION unreachable .LBB8_32: # %if.end60 - block .LBB8_34 + end_block # label15: + block f32.call $push32=, float_min2@FUNCTION, $0, $2 f32.eq $push33=, $pop32, $0 - br_if $pop33, .LBB8_34 + br_if $pop33, 0 # 0: down to label16 # BB#33: # %if.then63 call abort@FUNCTION unreachable .LBB8_34: # %if.end64 - block .LBB8_36 + end_block # label16: + block f32.call $push34=, float_min2@FUNCTION, $2, $0 f32.eq $push35=, $pop34, $0 - br_if $pop35, .LBB8_36 + br_if $pop35, 0 # 0: down to label17 # BB#35: # %if.then67 call abort@FUNCTION unreachable .LBB8_36: # %if.end68 - block .LBB8_38 + end_block # label17: + block f32.call $push36=, float_max2@FUNCTION, $1, $0 f32.eq $push37=, $pop36, $1 - br_if $pop37, .LBB8_38 + br_if $pop37, 0 # 0: down to label18 # BB#37: # %if.then71 call abort@FUNCTION unreachable .LBB8_38: # %if.end72 - block .LBB8_40 + end_block # label18: + block f32.call $push38=, float_max2@FUNCTION, $0, $1 f32.eq $push39=, $pop38, $1 - br_if $pop39, .LBB8_40 + br_if $pop39, 0 # 0: down to label19 # BB#39: # %if.then75 call abort@FUNCTION unreachable .LBB8_40: # %if.end76 - block .LBB8_42 + end_block # label19: + block f32.call $push40=, float_max2@FUNCTION, $1, $2 f32.eq $push41=, $pop40, $2 - br_if $pop41, .LBB8_42 + br_if $pop41, 0 # 0: down to label20 # BB#41: # %if.then79 call abort@FUNCTION unreachable .LBB8_42: # %if.end80 - block .LBB8_44 + end_block # label20: + block f32.call $push42=, float_max2@FUNCTION, $2, $1 f32.eq $push43=, $pop42, $2 - br_if $pop43, .LBB8_44 + br_if $pop43, 0 # 0: down to label21 # BB#43: # %if.then83 call abort@FUNCTION unreachable .LBB8_44: # %if.end84 - block .LBB8_46 + end_block # label21: + block f32.call $push44=, float_max2@FUNCTION, $0, $2 f32.eq $push45=, $pop44, $2 - br_if $pop45, .LBB8_46 + br_if $pop45, 0 # 0: down to label22 # BB#45: # %if.then87 call abort@FUNCTION unreachable .LBB8_46: # %if.end88 - block .LBB8_48 + end_block # label22: + block f32.call $push46=, float_max2@FUNCTION, $2, $0 f32.eq $push47=, $pop46, $2 - br_if $pop47, .LBB8_48 + br_if $pop47, 0 # 0: down to label23 # BB#47: # %if.then91 call abort@FUNCTION unreachable .LBB8_48: # %if.end92 + end_block # label23: f64.const $3=, -0x1p0 f64.const $4=, 0x0p0 - block .LBB8_50 + block f64.call $push48=, double_min1@FUNCTION, $4, $3 f64.eq $push49=, $pop48, $3 - br_if $pop49, .LBB8_50 + br_if $pop49, 0 # 0: down to label24 # BB#49: # %if.then95 call abort@FUNCTION unreachable .LBB8_50: # %if.end96 - block .LBB8_52 + end_block # label24: + block f64.call $push50=, double_min1@FUNCTION, $3, $4 f64.eq $push51=, $pop50, $3 - br_if $pop51, .LBB8_52 + br_if $pop51, 0 # 0: down to label25 # BB#51: # %if.then99 call abort@FUNCTION unreachable .LBB8_52: # %if.end100 + end_block # label25: f64.const $5=, 0x1p0 - block .LBB8_54 + block f64.call $push52=, double_min1@FUNCTION, $4, $5 f64.eq $push53=, $pop52, $4 - br_if $pop53, .LBB8_54 + br_if $pop53, 0 # 0: down to label26 # BB#53: # %if.then103 call abort@FUNCTION unreachable .LBB8_54: # %if.end104 - block .LBB8_56 + end_block # label26: + block f64.call $push54=, double_min1@FUNCTION, $5, $4 f64.eq $push55=, $pop54, $4 - br_if $pop55, .LBB8_56 + br_if $pop55, 0 # 0: down to label27 # BB#55: # %if.then107 call abort@FUNCTION unreachable .LBB8_56: # %if.end108 - block .LBB8_58 + end_block # label27: + block f64.call $push56=, double_min1@FUNCTION, $3, $5 f64.eq $push57=, $pop56, $3 - br_if $pop57, .LBB8_58 + br_if $pop57, 0 # 0: down to label28 # BB#57: # %if.then111 call abort@FUNCTION unreachable .LBB8_58: # %if.end112 - block .LBB8_60 + end_block # label28: + block f64.call $push58=, double_min1@FUNCTION, $5, $3 f64.eq $push59=, $pop58, $3 - br_if $pop59, .LBB8_60 + br_if $pop59, 0 # 0: down to label29 # BB#59: # %if.then115 call abort@FUNCTION unreachable .LBB8_60: # %if.end116 - block .LBB8_62 + end_block # label29: + block f64.call $push60=, double_max1@FUNCTION, $4, $3 f64.eq $push61=, $pop60, $4 - br_if $pop61, .LBB8_62 + br_if $pop61, 0 # 0: down to label30 # BB#61: # %if.then119 call abort@FUNCTION unreachable .LBB8_62: # %if.end120 - block .LBB8_64 + end_block # label30: + block f64.call $push62=, double_max1@FUNCTION, $3, $4 f64.eq $push63=, $pop62, $4 - br_if $pop63, .LBB8_64 + br_if $pop63, 0 # 0: down to label31 # BB#63: # %if.then123 call abort@FUNCTION unreachable .LBB8_64: # %if.end124 - block .LBB8_66 + end_block # label31: + block f64.call $push64=, double_max1@FUNCTION, $4, $5 f64.eq $push65=, $pop64, $5 - br_if $pop65, .LBB8_66 + br_if $pop65, 0 # 0: down to label32 # BB#65: # %if.then127 call abort@FUNCTION unreachable .LBB8_66: # %if.end128 - block .LBB8_68 + end_block # label32: + block f64.call $push66=, double_max1@FUNCTION, $5, $4 f64.eq $push67=, $pop66, $5 - br_if $pop67, .LBB8_68 + br_if $pop67, 0 # 0: down to label33 # BB#67: # %if.then131 call abort@FUNCTION unreachable .LBB8_68: # %if.end132 - block .LBB8_70 + end_block # label33: + block f64.call $push68=, double_max1@FUNCTION, $3, $5 f64.eq $push69=, $pop68, $5 - br_if $pop69, .LBB8_70 + br_if $pop69, 0 # 0: down to label34 # BB#69: # %if.then135 call abort@FUNCTION unreachable .LBB8_70: # %if.end136 - block .LBB8_72 + end_block # label34: + block f64.call $push70=, double_max1@FUNCTION, $5, $3 f64.eq $push71=, $pop70, $5 - br_if $pop71, .LBB8_72 + br_if $pop71, 0 # 0: down to label35 # BB#71: # %if.then139 call abort@FUNCTION unreachable .LBB8_72: # %if.end140 - block .LBB8_74 + end_block # label35: + block f64.call $push72=, double_min2@FUNCTION, $4, $3 f64.eq $push73=, $pop72, $3 - br_if $pop73, .LBB8_74 + br_if $pop73, 0 # 0: down to label36 # BB#73: # %if.then143 call abort@FUNCTION unreachable .LBB8_74: # %if.end144 - block .LBB8_76 + end_block # label36: + block f64.call $push74=, double_min2@FUNCTION, $3, $4 f64.eq $push75=, $pop74, $3 - br_if $pop75, .LBB8_76 + br_if $pop75, 0 # 0: down to label37 # BB#75: # %if.then147 call abort@FUNCTION unreachable .LBB8_76: # %if.end148 - block .LBB8_78 + end_block # label37: + block f64.call $push76=, double_min2@FUNCTION, $4, $5 f64.eq $push77=, $pop76, $4 - br_if $pop77, .LBB8_78 + br_if $pop77, 0 # 0: down to label38 # BB#77: # %if.then151 call abort@FUNCTION unreachable .LBB8_78: # %if.end152 - block .LBB8_80 + end_block # label38: + block f64.call $push78=, double_min2@FUNCTION, $5, $4 f64.eq $push79=, $pop78, $4 - br_if $pop79, .LBB8_80 + br_if $pop79, 0 # 0: down to label39 # BB#79: # %if.then155 call abort@FUNCTION unreachable .LBB8_80: # %if.end156 - block .LBB8_82 + end_block # label39: + block f64.call $push80=, double_min2@FUNCTION, $3, $5 f64.eq $push81=, $pop80, $3 - br_if $pop81, .LBB8_82 + br_if $pop81, 0 # 0: down to label40 # BB#81: # %if.then159 call abort@FUNCTION unreachable .LBB8_82: # %if.end160 - block .LBB8_84 + end_block # label40: + block f64.call $push82=, double_min2@FUNCTION, $5, $3 f64.eq $push83=, $pop82, $3 - br_if $pop83, .LBB8_84 + br_if $pop83, 0 # 0: down to label41 # BB#83: # %if.then163 call abort@FUNCTION unreachable .LBB8_84: # %if.end164 - block .LBB8_86 + end_block # label41: + block f64.call $push84=, double_max2@FUNCTION, $4, $3 f64.eq $push85=, $pop84, $4 - br_if $pop85, .LBB8_86 + br_if $pop85, 0 # 0: down to label42 # BB#85: # %if.then167 call abort@FUNCTION unreachable .LBB8_86: # %if.end168 - block .LBB8_88 + end_block # label42: + block f64.call $push86=, double_max2@FUNCTION, $3, $4 f64.eq $push87=, $pop86, $4 - br_if $pop87, .LBB8_88 + br_if $pop87, 0 # 0: down to label43 # BB#87: # %if.then171 call abort@FUNCTION unreachable .LBB8_88: # %if.end172 - block .LBB8_90 + end_block # label43: + block f64.call $push88=, double_max2@FUNCTION, $4, $5 f64.eq $push89=, $pop88, $5 - br_if $pop89, .LBB8_90 + br_if $pop89, 0 # 0: down to label44 # BB#89: # %if.then175 call abort@FUNCTION unreachable .LBB8_90: # %if.end176 - block .LBB8_92 + end_block # label44: + block f64.call $push90=, double_max2@FUNCTION, $5, $4 f64.eq $push91=, $pop90, $5 - br_if $pop91, .LBB8_92 + br_if $pop91, 0 # 0: down to label45 # BB#91: # %if.then179 call abort@FUNCTION unreachable .LBB8_92: # %if.end180 - block .LBB8_94 + end_block # label45: + block f64.call $push92=, double_max2@FUNCTION, $3, $5 f64.eq $push93=, $pop92, $5 - br_if $pop93, .LBB8_94 + br_if $pop93, 0 # 0: down to label46 # BB#93: # %if.then183 call abort@FUNCTION unreachable .LBB8_94: # %if.end184 - block .LBB8_96 + end_block # label46: + block f64.call $push94=, double_max2@FUNCTION, $5, $3 f64.eq $push95=, $pop94, $5 - br_if $pop95, .LBB8_96 + br_if $pop95, 0 # 0: down to label47 # BB#95: # %if.then187 call abort@FUNCTION unreachable .LBB8_96: # %if.end188 + end_block # label47: i32.const $push96=, 0 call exit@FUNCTION, $pop96 unreachable diff --git a/test/torture-s/pr40022.c.s b/test/torture-s/pr40022.c.s index 4f0b1d7c4..a0a063d2a 100644 --- a/test/torture-s/pr40022.c.s +++ b/test/torture-s/pr40022.c.s @@ -35,32 +35,36 @@ foo: # @foo bar: # @bar .param i32, i32, i32, i32 # BB#0: # %entry - block .LBB1_2 + block i32.call $push0=, foo@FUNCTION, $1 i32.store $1=, 0($0), $pop0 i32.const $push3=, 0 i32.eq $push4=, $1, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label0 .LBB1_1: # %while.cond.while.cond_crit_edge # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label1: copy_local $0=, $1 i32.load $1=, 0($1) - br_if $1, .LBB1_1 + br_if $1, 0 # 0: up to label1 .LBB1_2: # %while.end - block .LBB1_4 + end_loop # label2: + end_block # label0: + block i32.call $push1=, foo@FUNCTION, $2 i32.store $1=, 0($0), $pop1 i32.const $push5=, 0 i32.eq $push6=, $1, $pop5 - br_if $pop6, .LBB1_4 + br_if $pop6, 0 # 0: down to label3 .LBB1_3: # %while.cond2.while.cond2_crit_edge # =>This Inner Loop Header: Depth=1 - loop .LBB1_4 + loop # label4: copy_local $0=, $1 i32.load $1=, 0($1) - br_if $1, .LBB1_3 + br_if $1, 0 # 0: up to label4 .LBB1_4: # %while.end6 + end_loop # label5: + end_block # label3: i32.call $push2=, foo@FUNCTION, $3 i32.store $discard=, 0($0), $pop2 return @@ -83,26 +87,27 @@ main: # @main i32.const $push1=, f call bar@FUNCTION, $pop3, $pop2, $pop1, $1 i32.load $0=, d($1) - block .LBB2_5 + block i32.const $push5=, 0 i32.eq $push6=, $0, $pop5 - br_if $pop6, .LBB2_5 + br_if $pop6, 0 # 0: down to label6 # BB#1: # %lor.lhs.false i32.load $0=, 0($0) i32.const $push7=, 0 i32.eq $push8=, $0, $pop7 - br_if $pop8, .LBB2_5 + br_if $pop8, 0 # 0: down to label6 # BB#2: # %lor.lhs.false2 i32.load $0=, 0($0) i32.const $push9=, 0 i32.eq $push10=, $0, $pop9 - br_if $pop10, .LBB2_5 + br_if $pop10, 0 # 0: down to label6 # BB#3: # %lor.lhs.false6 i32.load $push4=, 0($0) - br_if $pop4, .LBB2_5 + br_if $pop4, 0 # 0: down to label6 # BB#4: # %if.end return $1 .LBB2_5: # %if.then + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr40057.c.s b/test/torture-s/pr40057.c.s index 61c5b6630..b926cd797 100644 --- a/test/torture-s/pr40057.c.s +++ b/test/torture-s/pr40057.c.s @@ -39,39 +39,43 @@ main: # @main .local i64, i64 # BB#0: # %entry i64.const $0=, 6042589866 - block .LBB2_8 + block i32.call $push0=, foo@FUNCTION, $0 - br_if $pop0, .LBB2_8 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end i64.const $1=, 6579460778 - block .LBB2_7 + block i32.call $push1=, foo@FUNCTION, $1 i32.const $push5=, 0 i32.eq $push6=, $pop1, $pop5 - br_if $pop6, .LBB2_7 + br_if $pop6, 0 # 0: down to label1 # BB#2: # %if.end4 - block .LBB2_6 + block i32.call $push2=, bar@FUNCTION, $0 - br_if $pop2, .LBB2_6 + br_if $pop2, 0 # 0: down to label2 # BB#3: # %if.end8 - block .LBB2_5 + block i32.call $push3=, bar@FUNCTION, $1 i32.const $push7=, 0 i32.eq $push8=, $pop3, $pop7 - br_if $pop8, .LBB2_5 + br_if $pop8, 0 # 0: down to label3 # BB#4: # %if.end12 i32.const $push4=, 0 return $pop4 .LBB2_5: # %if.then11 + end_block # label3: call abort@FUNCTION unreachable .LBB2_6: # %if.then7 + end_block # label2: call abort@FUNCTION unreachable .LBB2_7: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB2_8: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr40386.c.s b/test/torture-s/pr40386.c.s index 18f1b6aa4..b323b7881 100644 --- a/test/torture-s/pr40386.c.s +++ b/test/torture-s/pr40386.c.s @@ -14,74 +14,74 @@ main: # @main i32.const $push1=, 8 i32.sub $2=, $pop1, $1 i32.const $12=, 835 - block .LBB0_42 + block i32.shl $push2=, $0, $2 i32.shr_s $push0=, $0, $1 i32.or $push3=, $pop2, $pop0 i32.ne $push4=, $pop3, $12 - br_if $pop4, .LBB0_42 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end i32.const $13=, 4 - block .LBB0_41 + block i32.shr_s $push5=, $0, $13 i32.shl $push6=, $0, $13 i32.or $push7=, $pop5, $pop6 i32.ne $push8=, $pop7, $12 - br_if $pop8, .LBB0_41 + br_if $pop8, 0 # 0: down to label1 # BB#2: # %if.end11 i32.load16_s $3=, s($11) i32.const $push10=, 16 i32.sub $4=, $pop10, $1 i32.const $14=, -221 - block .LBB0_40 + block i32.shr_s $push9=, $3, $1 i32.shl $push11=, $3, $4 i32.or $push12=, $pop9, $pop11 i32.ne $push13=, $pop12, $14 - br_if $pop13, .LBB0_40 + br_if $pop13, 0 # 0: down to label2 # BB#3: # %if.end21 i32.const $15=, 12 - block .LBB0_39 + block i32.shr_s $push14=, $3, $13 i32.shl $push15=, $3, $15 i32.or $push16=, $pop14, $pop15 i32.ne $push17=, $pop16, $14 - br_if $pop17, .LBB0_39 + br_if $pop17, 0 # 0: down to label3 # BB#4: # %if.end30 i32.load $14=, i($11) i32.const $push19=, 32 i32.sub $5=, $pop19, $1 i32.const $16=, 1073745699 - block .LBB0_38 + block i32.shr_s $push18=, $14, $1 i32.shl $push20=, $14, $5 i32.or $push21=, $pop18, $pop20 i32.ne $push22=, $pop21, $16 - br_if $pop22, .LBB0_38 + br_if $pop22, 0 # 0: down to label4 # BB#5: # %if.end38 i32.const $17=, 28 - block .LBB0_37 + block i32.shr_s $push23=, $14, $13 i32.shl $push24=, $14, $17 i32.or $push25=, $pop23, $pop24 i32.ne $push26=, $pop25, $16 - br_if $pop26, .LBB0_37 + br_if $pop26, 0 # 0: down to label5 # BB#6: # %if.end45 i32.load $16=, l($11) i32.const $18=, -14465689 - block .LBB0_36 + block i32.shr_s $push27=, $16, $1 i32.shl $push28=, $16, $5 i32.or $push29=, $pop27, $pop28 i32.ne $push30=, $pop29, $18 - br_if $pop30, .LBB0_36 + br_if $pop30, 0 # 0: down to label6 # BB#7: # %if.end53 - block .LBB0_35 + block i32.shr_s $push31=, $16, $13 i32.shl $push32=, $16, $17 i32.or $push33=, $pop31, $pop32 i32.ne $push34=, $pop33, $18 - br_if $pop34, .LBB0_35 + br_if $pop34, 0 # 0: down to label7 # BB#8: # %if.end60 i64.load $6=, ll($11) i32.const $18=, 64 @@ -89,169 +89,190 @@ main: # @main i64.extend_u/i32 $8=, $pop36 i64.extend_u/i32 $7=, $1 i64.const $19=, 68174490360335855 - block .LBB0_34 + block i64.shr_s $push35=, $6, $7 i64.shl $push37=, $6, $8 i64.or $push38=, $pop35, $pop37 i64.ne $push39=, $pop38, $19 - br_if $pop39, .LBB0_34 + br_if $pop39, 0 # 0: down to label8 # BB#9: # %if.end69 i64.const $20=, 4 i64.const $21=, 60 - block .LBB0_33 + block i64.shr_s $push40=, $6, $20 i64.shl $push41=, $6, $21 i64.or $push42=, $pop40, $pop41 i64.ne $push43=, $pop42, $19 - br_if $pop43, .LBB0_33 + br_if $pop43, 0 # 0: down to label9 # BB#10: # %if.end76 i32.load $22=, shift2($11) i64.extend_u/i32 $9=, $22 i32.sub $push45=, $18, $22 i64.extend_u/i32 $10=, $pop45 i64.const $23=, -994074541463572736 - block .LBB0_32 + block i64.shl $push46=, $6, $10 i64.shr_s $push44=, $6, $9 i64.or $push47=, $pop46, $pop44 i64.ne $push48=, $pop47, $23 - br_if $pop48, .LBB0_32 + br_if $pop48, 0 # 0: down to label10 # BB#11: # %if.end86 - block .LBB0_31 + block i64.shr_s $push49=, $6, $21 i64.shl $push50=, $6, $20 i64.or $push51=, $pop49, $pop50 i64.ne $push52=, $pop51, $23 - br_if $pop52, .LBB0_31 + br_if $pop52, 0 # 0: down to label11 # BB#12: # %if.end93 - block .LBB0_30 + block i32.shr_s $push54=, $0, $2 i32.shl $push53=, $0, $1 i32.or $push55=, $pop54, $pop53 i32.ne $push56=, $pop55, $12 - br_if $pop56, .LBB0_30 + br_if $pop56, 0 # 0: down to label12 # BB#13: # %if.end112 i32.const $0=, -1 - block .LBB0_29 + block i32.shl $push57=, $3, $1 i32.shr_s $push58=, $3, $4 i32.or $push59=, $pop57, $pop58 i32.ne $push60=, $pop59, $0 - br_if $pop60, .LBB0_29 + br_if $pop60, 0 # 0: down to label13 # BB#14: # %if.end122 - block .LBB0_28 + block i32.shl $push61=, $3, $13 i32.shr_s $push62=, $3, $15 i32.or $push63=, $pop61, $pop62 i32.ne $push64=, $pop63, $0 - br_if $pop64, .LBB0_28 + br_if $pop64, 0 # 0: down to label14 # BB#15: # %if.end131 i32.const $12=, 992064 - block .LBB0_27 + block i32.shl $push65=, $14, $1 i32.shr_s $push66=, $14, $5 i32.or $push67=, $pop65, $pop66 i32.ne $push68=, $pop67, $12 - br_if $pop68, .LBB0_27 + br_if $pop68, 0 # 0: down to label15 # BB#16: # %if.end139 - block .LBB0_26 + block i32.shl $push69=, $14, $13 i32.shr_s $push70=, $14, $17 i32.or $push71=, $pop69, $pop70 i32.ne $push72=, $pop71, $12 - br_if $pop72, .LBB0_26 + br_if $pop72, 0 # 0: down to label16 # BB#17: # %if.end146 - block .LBB0_25 + block i32.shl $push73=, $16, $1 i32.shr_s $push74=, $16, $5 i32.or $push75=, $pop73, $pop74 i32.ne $push76=, $pop75, $0 - br_if $pop76, .LBB0_25 + br_if $pop76, 0 # 0: down to label17 # BB#18: # %if.end154 - block .LBB0_24 + block i32.shl $push77=, $16, $13 i32.shr_s $push78=, $16, $17 i32.or $push79=, $pop77, $pop78 i32.ne $push80=, $pop79, $0 - br_if $pop80, .LBB0_24 + br_if $pop80, 0 # 0: down to label18 # BB#19: # %if.end161 - block .LBB0_23 + block i64.shl $push81=, $6, $7 i64.shr_s $push82=, $6, $8 i64.or $push83=, $pop81, $pop82 i64.ne $push84=, $pop83, $23 - br_if $pop84, .LBB0_23 + br_if $pop84, 0 # 0: down to label19 # BB#20: # %if.end178 - block .LBB0_22 + block i64.shr_s $push86=, $6, $10 i64.shl $push85=, $6, $9 i64.or $push87=, $pop86, $pop85 i64.ne $push88=, $pop87, $19 - br_if $pop88, .LBB0_22 + br_if $pop88, 0 # 0: down to label20 # BB#21: # %if.end195 call exit@FUNCTION, $11 unreachable .LBB0_22: # %if.then187 + end_block # label20: call abort@FUNCTION unreachable .LBB0_23: # %if.then170 + end_block # label19: call abort@FUNCTION unreachable .LBB0_24: # %if.then160 + end_block # label18: call abort@FUNCTION unreachable .LBB0_25: # %if.then153 + end_block # label17: call abort@FUNCTION unreachable .LBB0_26: # %if.then145 + end_block # label16: call abort@FUNCTION unreachable .LBB0_27: # %if.then138 + end_block # label15: call abort@FUNCTION unreachable .LBB0_28: # %if.then130 + end_block # label14: call abort@FUNCTION unreachable .LBB0_29: # %if.then121 + end_block # label13: call abort@FUNCTION unreachable .LBB0_30: # %if.then102 + end_block # label12: call abort@FUNCTION unreachable .LBB0_31: # %if.then92 + end_block # label11: call abort@FUNCTION unreachable .LBB0_32: # %if.then85 + end_block # label10: call abort@FUNCTION unreachable .LBB0_33: # %if.then75 + end_block # label9: call abort@FUNCTION unreachable .LBB0_34: # %if.then68 + end_block # label8: call abort@FUNCTION unreachable .LBB0_35: # %if.then59 + end_block # label7: call abort@FUNCTION unreachable .LBB0_36: # %if.then52 + end_block # label6: call abort@FUNCTION unreachable .LBB0_37: # %if.then44 + end_block # label5: call abort@FUNCTION unreachable .LBB0_38: # %if.then37 + end_block # label4: call abort@FUNCTION unreachable .LBB0_39: # %if.then29 + end_block # label3: call abort@FUNCTION unreachable .LBB0_40: # %if.then20 + end_block # label2: call abort@FUNCTION unreachable .LBB0_41: # %if.then10 + end_block # label1: call abort@FUNCTION unreachable .LBB0_42: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr40579.c.s b/test/torture-s/pr40579.c.s index 147433ed2..5f8de0beb 100644 --- a/test/torture-s/pr40579.c.s +++ b/test/torture-s/pr40579.c.s @@ -25,13 +25,14 @@ main: # @main foo: # @foo .param i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 4 i32.ge_s $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr40657.c.s b/test/torture-s/pr40657.c.s index 7864c5094..4957ba14d 100644 --- a/test/torture-s/pr40657.c.s +++ b/test/torture-s/pr40657.c.s @@ -64,14 +64,15 @@ main: # @main # BB#0: # %entry i64.call $0=, foo@FUNCTION i32.const $1=, 0 - block .LBB2_2 + block i64.load $push0=, v($1) i64.ne $push1=, $0, $pop0 - br_if $pop1, .LBB2_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $1 unreachable .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr40668.c.s b/test/torture-s/pr40668.c.s index 16fc3aeca..d75221e5b 100644 --- a/test/torture-s/pr40668.c.s +++ b/test/torture-s/pr40668.c.s @@ -7,19 +7,24 @@ bar: # @bar .param i32, i32 # BB#0: # %entry - block .LBB0_6 + block i32.const $push0=, -1 i32.add $0=, $0, $pop0 i32.const $push1=, 8 i32.gt_u $push2=, $0, $pop1 - br_if $pop2, .LBB0_6 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %entry - block .LBB0_5 - block .LBB0_4 - block .LBB0_3 - block .LBB0_2 - tableswitch $0, .LBB0_2, .LBB0_2, .LBB0_6, .LBB0_6, .LBB0_6, .LBB0_6, .LBB0_6, .LBB0_3, .LBB0_4, .LBB0_5 + block + block + block + block + tableswitch $0, 0, 0, 4, 4, 4, 4, 4, 1, 2, 3 # 0: down to label4 + # 4: down to label0 + # 1: down to label3 + # 2: down to label2 + # 3: down to label1 .LBB0_2: # %sw.bb + end_block # label4: i32.const $push24=, 120 i32.store8 $discard=, 0($1), $pop24 i32.const $push25=, 3 @@ -34,8 +39,9 @@ bar: # @bar i32.add $push32=, $1, $pop31 i32.const $push33=, 86 i32.store8 $discard=, 0($pop32), $pop33 - br .LBB0_6 + br 3 # 3: down to label0 .LBB0_3: # %sw.bb1 + end_block # label3: i32.const $push17=, 0 i32.store8 $0=, 0($1), $pop17 i32.const $push18=, 3 @@ -47,8 +53,9 @@ bar: # @bar i32.const $push22=, 1 i32.add $push23=, $1, $pop22 i32.store8 $discard=, 0($pop23), $0 - br .LBB0_6 + br 2 # 2: down to label0 .LBB0_4: # %sw.bb2 + end_block # label2: i32.const $push10=, 0 i32.store8 $0=, 0($1), $pop10 i32.const $push11=, 3 @@ -60,8 +67,9 @@ bar: # @bar i32.const $push15=, 1 i32.add $push16=, $1, $pop15 i32.store8 $discard=, 0($pop16), $0 - br .LBB0_6 + br 1 # 1: down to label0 .LBB0_5: # %sw.bb3 + end_block # label1: i32.const $push3=, 0 i32.store8 $0=, 0($1), $pop3 i32.const $push4=, 3 @@ -74,6 +82,7 @@ bar: # @bar i32.add $push9=, $1, $pop8 i32.store8 $discard=, 0($pop9), $0 .LBB0_6: # %sw.epilog + end_block # label0: return .Lfunc_end0: .size bar, .Lfunc_end0-bar diff --git a/test/torture-s/pr41239.c.s b/test/torture-s/pr41239.c.s index 6ce60f215..4691763c0 100644 --- a/test/torture-s/pr41239.c.s +++ b/test/torture-s/pr41239.c.s @@ -16,11 +16,11 @@ test: # @test i32.const $9=, __stack_pointer i32.store $10=, 0($9), $10 i32.load $1=, 4($0) - block .LBB0_3 + block i32.const $push0=, 8 i32.add $push1=, $0, $pop0 i32.load $0=, 0($pop1) - br_if $0, .LBB0_3 + br_if $0, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push6=, 20 i32.const $push3=, .L.str @@ -32,7 +32,7 @@ test: # @test i32.and $push8=, $2, $pop7 i32.const $push12=, 0 i32.eq $push13=, $pop8, $pop12 - br_if $pop13, .LBB0_3 + br_if $pop13, 0 # 0: down to label0 # BB#2: # %cond.true i32.const $push9=, 33816706 i32.call $2=, fn3@FUNCTION, $pop9 @@ -53,6 +53,7 @@ test: # @test i32.const $7=, __stack_pointer i32.store $10=, 0($7), $10 .LBB0_3: # %if.end + end_block # label0: i32.div_s $push11=, $1, $0 i32.const $10=, 16 i32.add $10=, $10, $10 @@ -90,11 +91,12 @@ fn2: # @fn2 # BB#0: # %entry #APP #NO_APP - block .LBB2_2 - br_if $0, .LBB2_2 + block + br_if $0, 0 # 0: down to label1 # BB#1: # %if.end return .LBB2_2: # %if.then + end_block # label1: i32.const $push0=, 0 call exit@FUNCTION, $pop0 unreachable @@ -144,7 +146,7 @@ main: # @main i32.sub $8=, $6, $7 i32.const $7=, __stack_pointer i32.store $8=, 0($7), $8 - block .LBB5_2 + block i32.const $push4=, 20 i32.const $push1=, .L.str i32.const $push3=, 924 @@ -155,7 +157,7 @@ main: # @main i32.and $push6=, $0, $pop5 i32.const $push9=, 0 i32.eq $push10=, $pop6, $pop9 - br_if $pop10, .LBB5_2 + br_if $pop10, 0 # 0: down to label2 # BB#1: # %cond.true.i i32.const $push7=, 33816706 i32.call $0=, fn3@FUNCTION, $pop7 @@ -176,6 +178,7 @@ main: # @main i32.const $5=, __stack_pointer i32.store $8=, 0($5), $8 .LBB5_2: # %test.exit + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end5: diff --git a/test/torture-s/pr41395-1.c.s b/test/torture-s/pr41395-1.c.s index 16768da71..12736cd4e 100644 --- a/test/torture-s/pr41395-1.c.s +++ b/test/torture-s/pr41395-1.c.s @@ -31,7 +31,7 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 268 i32.call $push1=, malloc@FUNCTION, $pop0 i32.const $push2=, 8 @@ -40,11 +40,12 @@ main: # @main i32.and $push5=, $pop3, $pop4 i32.const $push6=, 1 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_2 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push8=, 0 return $pop8 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr41395-2.c.s b/test/torture-s/pr41395-2.c.s index f2b14e45f..d1e17e958 100644 --- a/test/torture-s/pr41395-2.c.s +++ b/test/torture-s/pr41395-2.c.s @@ -31,7 +31,7 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 276 i32.call $push1=, malloc@FUNCTION, $pop0 i32.const $push2=, 16 @@ -40,11 +40,12 @@ main: # @main i32.and $push5=, $pop3, $pop4 i32.const $push6=, 1 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_2 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push8=, 0 return $pop8 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr41463.c.s b/test/torture-s/pr41463.c.s index e40d9dfd5..0c178234f 100644 --- a/test/torture-s/pr41463.c.s +++ b/test/torture-s/pr41463.c.s @@ -31,18 +31,19 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 76 i32.call $push1=, malloc@FUNCTION, $pop0 i32.const $push2=, 1 i32.call $push3=, foo@FUNCTION, $pop1, $pop2 i32.const $push4=, global i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push6=, 0 return $pop6 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr41750.c.s b/test/torture-s/pr41750.c.s index c58985424..663d1e7b8 100644 --- a/test/torture-s/pr41750.c.s +++ b/test/torture-s/pr41750.c.s @@ -26,22 +26,24 @@ elf64_ia64_check_relocs: # @elf64_ia64_check_relocs # BB#0: # %entry i32.load $2=, 0($1) i32.load $3=, 8($2) - block .LBB1_4 - br_if $3, .LBB1_4 + block + br_if $3, 0 # 0: down to label0 # BB#1: # %if.then.i i32.load $3=, 4($2) - block .LBB1_3 - br_if $3, .LBB1_3 + block + br_if $3, 0 # 0: down to label1 # BB#2: # %if.then3.i i32.const $push0=, 4 i32.add $push1=, $2, $pop0 i32.store $3=, 0($pop1), $0 .LBB1_3: # %if.end.i + end_block # label1: i32.call $discard=, foo_create_got_section@FUNCTION, $3, $1 i32.const $push2=, 8 i32.add $push3=, $2, $pop2 i32.load $3=, 0($pop3) .LBB1_4: # %get_got.exit + end_block # label0: return $3 .Lfunc_end1: .size elf64_ia64_check_relocs, .Lfunc_end1-elf64_ia64_check_relocs @@ -56,16 +58,17 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.const $1=, abfd - block .LBB2_2 + block i32.const $push0=, hash i32.store $discard=, link_info($0), $pop0 i32.const $push1=, link_info i32.call $push2=, elf64_ia64_check_relocs@FUNCTION, $1, $pop1 i32.ne $push3=, $pop2, $1 - br_if $pop3, .LBB2_2 + br_if $pop3, 0 # 0: down to label2 # BB#1: # %if.end return $0 .LBB2_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr41917.c.s b/test/torture-s/pr41917.c.s index 041cdbd87..9143fe4a1 100644 --- a/test/torture-s/pr41917.c.s +++ b/test/torture-s/pr41917.c.s @@ -10,16 +10,17 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.const $1=, -942519458 - block .LBB0_2 + block i32.load $push0=, a($0) i32.const $push1=, -2 i32.or $push2=, $pop0, $pop1 i32.rem_u $push3=, $1, $pop2 i32.ne $push4=, $pop3, $1 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr42142.c.s b/test/torture-s/pr42142.c.s index fd3a6f672..b38ce2bc3 100644 --- a/test/torture-s/pr42142.c.s +++ b/test/torture-s/pr42142.c.s @@ -28,16 +28,17 @@ sort: # @sort main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 5 i32.call $push1=, sort@FUNCTION, $pop0 i32.const $push2=, 1 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr42154.c.s b/test/torture-s/pr42154.c.s index eeae6e6c5..e29d67427 100644 --- a/test/torture-s/pr42154.c.s +++ b/test/torture-s/pr42154.c.s @@ -7,15 +7,16 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 255 i32.and $push1=, $0, $pop0 i32.const $push2=, 97 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr42231.c.s b/test/torture-s/pr42231.c.s index a75a7d791..58a2d09ee 100644 --- a/test/torture-s/pr42231.c.s +++ b/test/torture-s/pr42231.c.s @@ -8,25 +8,27 @@ main: # @main .result i32 .local i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 1 i32.call $push1=, CallFunctionRec@FUNCTION, $pop0 i32.const $push6=, 0 i32.eq $push7=, $pop1, $pop6 - br_if $pop7, .LBB0_2 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %land.rhs.i i32.const $push2=, 0 call storemax@FUNCTION, $pop2 .LBB0_2: # %CallFunction.exit + end_block # label0: i32.const $0=, 0 - block .LBB0_4 + block i32.load $push3=, max($0) i32.const $push4=, 10 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB0_4 + br_if $pop5, 0 # 0: down to label1 # BB#3: # %if.end return $0 .LBB0_4: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end0: @@ -41,21 +43,22 @@ CallFunctionRec: # @CallFunctionRec # BB#0: # %entry call storemax@FUNCTION, $0 i32.const $1=, 0 - block .LBB1_3 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB1_3 + br_if $pop4, 0 # 0: down to label2 # BB#1: # %if.end i32.const $1=, 1 i32.const $push0=, 9 i32.gt_s $push1=, $0, $pop0 - br_if $pop1, .LBB1_3 + br_if $pop1, 0 # 0: down to label2 # BB#2: # %if.then1 i32.const $1=, 1 i32.add $push2=, $0, $1 i32.call $discard=, CallFunctionRec@FUNCTION, $pop2 return $1 .LBB1_3: # %return + end_block # label2: return $1 .Lfunc_end1: .size CallFunctionRec, .Lfunc_end1-CallFunctionRec @@ -67,13 +70,14 @@ storemax: # @storemax .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB2_2 + block i32.load $push0=, max($1) i32.ge_s $push1=, $pop0, $0 - br_if $pop1, .LBB2_2 + br_if $pop1, 0 # 0: down to label3 # BB#1: # %if.then i32.store $discard=, max($1), $0 .LBB2_2: # %if.end + end_block # label3: return .Lfunc_end2: .size storemax, .Lfunc_end2-storemax diff --git a/test/torture-s/pr42512.c.s b/test/torture-s/pr42512.c.s index c8ba84fe1..9249759e7 100644 --- a/test/torture-s/pr42512.c.s +++ b/test/torture-s/pr42512.c.s @@ -13,23 +13,25 @@ main: # @main i32.const $3=, -1 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $1=, 65535 i32.and $push0=, $4, $1 i32.or $4=, $pop0, $3 i32.const $2=, 255 i32.add $push1=, $3, $2 i32.and $3=, $pop1, $2 - br_if $3, .LBB0_1 -.LBB0_2: # %for.end + br_if $3, 0 # 0: up to label0 +# BB#2: # %for.end + end_loop # label1: i32.store16 $discard=, g_3($0), $4 - block .LBB0_4 + block i32.and $push2=, $4, $1 i32.ne $push3=, $pop2, $1 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label2 # BB#3: # %if.end return $0 .LBB0_4: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr42614.c.s b/test/torture-s/pr42614.c.s index f691a47ca..3ea2037fd 100644 --- a/test/torture-s/pr42614.c.s +++ b/test/torture-s/pr42614.c.s @@ -20,21 +20,23 @@ init: # @init expect_func: # @expect_func .param i32, i32 # BB#0: # %entry - block .LBB1_4 + block i32.const $push0=, 0 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB1_4 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB1_3 + block i32.const $push2=, 0 i32.eq $push3=, $1, $pop2 - br_if $pop3, .LBB1_3 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %if.end6 return .LBB1_3: # %if.then5 + end_block # label1: call abort@FUNCTION unreachable .LBB1_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr42691.c.s b/test/torture-s/pr42691.c.s index 710ae2e92..cc1c023b8 100644 --- a/test/torture-s/pr42691.c.s +++ b/test/torture-s/pr42691.c.s @@ -11,29 +11,31 @@ add: # @add # BB#0: # %entry f64.load $3=, 0($1) f64.load $2=, 0($0) - block .LBB0_5 + block f64.eq $push0=, $3, $2 - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end.preheader i32.const $0=, 8 i32.add $1=, $1, $0 .LBB0_2: # %if.end # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 + loop # label1: f64.const $push1=, infinity f64.ne $push2=, $3, $pop1 - br_if $pop2, .LBB0_4 + br_if $pop2, 1 # 1: down to label2 # BB#3: # %while.body # in Loop: Header=BB0_2 Depth=1 f64.load $3=, 0($1) i32.add $1=, $1, $0 f64.ne $push3=, $3, $2 - br_if $pop3, .LBB0_2 - br .LBB0_5 + br_if $pop3, 0 # 0: up to label1 + br 2 # 2: down to label0 .LBB0_4: # %if.then3 + end_loop # label2: call abort@FUNCTION unreachable .LBB0_5: # %if.end10 + end_block # label0: i32.const $push4=, 0 return $pop4 .Lfunc_end0: @@ -65,18 +67,19 @@ main: # @main copy_local $3=, $0 .LBB1_1: # %if.end.i # =>This Inner Loop Header: Depth=1 - block .LBB1_4 - loop .LBB1_3 + block + loop # label4: f64.ne $push2=, $3, $0 - br_if $pop2, .LBB1_4 + br_if $pop2, 2 # 2: down to label3 # BB#2: # %while.body.i # in Loop: Header=BB1_1 Depth=1 f64.load $3=, 0($2) i32.add $2=, $2, $1 f64.const $push3=, 0x1.7p4 f64.ne $push4=, $3, $pop3 - br_if $pop4, .LBB1_1 -.LBB1_3: # %add.exit + br_if $pop4, 0 # 0: up to label4 +# BB#3: # %add.exit + end_loop # label5: i32.const $push5=, 0 i32.const $6=, 16 i32.add $8=, $8, $6 @@ -84,6 +87,7 @@ main: # @main i32.store $8=, 0($6), $8 return $pop5 .LBB1_4: # %if.then3.i + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr42721.c.s b/test/torture-s/pr42721.c.s index 6bac03027..0f0379cf1 100644 --- a/test/torture-s/pr42721.c.s +++ b/test/torture-s/pr42721.c.s @@ -10,14 +10,15 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, b($0) - block .LBB0_2 + block i32.const $push0=, 1 i32.xor $push1=, $1, $pop0 i32.store $discard=, b($0), $pop1 - br_if $1, .LBB0_2 + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr42833.c.s b/test/torture-s/pr42833.c.s index f46356c97..8fb7cf9a2 100644 --- a/test/torture-s/pr42833.c.s +++ b/test/torture-s/pr42833.c.s @@ -14,37 +14,39 @@ helper_neon_rshl_s8: # @helper_neon_rshl_s8 i32.const $11=, 0 i32.const $5=, 16 copy_local $8=, $11 - block .LBB0_7 + block i32.const $push0=, 117440512 i32.gt_s $push1=, $7, $pop0 - br_if $pop1, .LBB0_7 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.else - block .LBB0_3 + block i32.const $push2=, -134217729 i32.gt_s $push3=, $7, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label1 # BB#2: # %if.then13 i32.shl $push14=, $0, $6 i32.const $push15=, 31 i32.shr_s $8=, $pop14, $pop15 - br .LBB0_7 + br 1 # 1: down to label0 .LBB0_3: # %if.else18 + end_block # label1: i32.shr_s $4=, $7, $6 copy_local $8=, $11 i32.const $push4=, -8 i32.eq $push5=, $4, $pop4 - br_if $pop5, .LBB0_7 + br_if $pop5, 0 # 0: down to label0 # BB#4: # %if.else34 i32.shl $push6=, $0, $6 i32.shr_s $8=, $pop6, $6 i32.const $3=, -1 - block .LBB0_6 + block i32.le_s $push7=, $7, $3 - br_if $pop7, .LBB0_6 + br_if $pop7, 0 # 0: down to label2 # BB#5: # %if.else48 i32.shl $8=, $8, $4 - br .LBB0_7 + br 1 # 1: down to label0 .LBB0_6: # %if.then38 + end_block # label2: i32.const $push9=, 1 i32.xor $push8=, $4, $3 i32.shl $push10=, $pop9, $pop8 @@ -53,41 +55,44 @@ helper_neon_rshl_s8: # @helper_neon_rshl_s8 i32.sub $push13=, $pop12, $4 i32.shr_s $8=, $pop11, $pop13 .LBB0_7: # %if.end57 + end_block # label0: i32.shl $push16=, $1, $5 i32.shr_s $3=, $pop16, $6 i32.const $4=, 8 i32.const $7=, 7 copy_local $9=, $11 - block .LBB0_14 + block i32.gt_s $push17=, $3, $7 - br_if $pop17, .LBB0_14 + br_if $pop17, 0 # 0: down to label3 # BB#8: # %if.else68 i32.shr_u $10=, $0, $4 - block .LBB0_10 + block i32.const $push18=, -9 i32.gt_s $push19=, $3, $pop18 - br_if $pop19, .LBB0_10 + br_if $pop19, 0 # 0: down to label4 # BB#9: # %if.then72 i32.shl $push30=, $10, $6 i32.const $push31=, 31 i32.shr_s $9=, $pop30, $pop31 - br .LBB0_14 + br 1 # 1: down to label3 .LBB0_10: # %if.else78 + end_block # label4: copy_local $9=, $11 i32.const $push20=, -8 i32.eq $push21=, $3, $pop20 - br_if $pop21, .LBB0_14 + br_if $pop21, 0 # 0: down to label3 # BB#11: # %if.else96 i32.shl $push22=, $10, $6 i32.shr_s $10=, $pop22, $6 i32.const $9=, -1 - block .LBB0_13 + block i32.le_s $push23=, $3, $9 - br_if $pop23, .LBB0_13 + br_if $pop23, 0 # 0: down to label5 # BB#12: # %if.else112 i32.shl $9=, $10, $3 - br .LBB0_14 + br 1 # 1: down to label3 .LBB0_13: # %if.then100 + end_block # label5: i32.const $push25=, 1 i32.xor $push24=, $3, $9 i32.shl $push26=, $pop25, $pop24 @@ -96,39 +101,42 @@ helper_neon_rshl_s8: # @helper_neon_rshl_s8 i32.sub $push29=, $pop28, $3 i32.shr_s $9=, $pop27, $pop29 .LBB0_14: # %if.end122 + end_block # label3: i32.shl $push32=, $1, $4 i32.shr_s $3=, $pop32, $6 copy_local $10=, $11 - block .LBB0_21 + block i32.gt_s $push33=, $3, $7 - br_if $pop33, .LBB0_21 + br_if $pop33, 0 # 0: down to label6 # BB#15: # %if.else133 i32.shr_u $2=, $0, $5 - block .LBB0_17 + block i32.const $push34=, -9 i32.gt_s $push35=, $3, $pop34 - br_if $pop35, .LBB0_17 + br_if $pop35, 0 # 0: down to label7 # BB#16: # %if.then137 i32.shl $push46=, $2, $6 i32.const $push47=, 31 i32.shr_s $10=, $pop46, $pop47 - br .LBB0_21 + br 1 # 1: down to label6 .LBB0_17: # %if.else143 + end_block # label7: copy_local $10=, $11 i32.const $push36=, -8 i32.eq $push37=, $3, $pop36 - br_if $pop37, .LBB0_21 + br_if $pop37, 0 # 0: down to label6 # BB#18: # %if.else161 i32.shl $push38=, $2, $6 i32.shr_s $2=, $pop38, $6 i32.const $10=, -1 - block .LBB0_20 + block i32.le_s $push39=, $3, $10 - br_if $pop39, .LBB0_20 + br_if $pop39, 0 # 0: down to label8 # BB#19: # %if.else177 i32.shl $10=, $2, $3 - br .LBB0_21 + br 1 # 1: down to label6 .LBB0_20: # %if.then165 + end_block # label8: i32.const $push41=, 1 i32.xor $push40=, $3, $10 i32.shl $push42=, $pop41, $pop40 @@ -137,33 +145,36 @@ helper_neon_rshl_s8: # @helper_neon_rshl_s8 i32.sub $push45=, $pop44, $3 i32.shr_s $10=, $pop43, $pop45 .LBB0_21: # %if.end187 + end_block # label6: i32.shr_s $1=, $1, $6 - block .LBB0_28 + block i32.gt_s $push48=, $1, $7 - br_if $pop48, .LBB0_28 + br_if $pop48, 0 # 0: down to label9 # BB#22: # %if.else199 - block .LBB0_24 + block i32.const $push49=, -9 i32.gt_s $push50=, $1, $pop49 - br_if $pop50, .LBB0_24 + br_if $pop50, 0 # 0: down to label10 # BB#23: # %if.then203 i32.const $push60=, 31 i32.shr_s $11=, $0, $pop60 - br .LBB0_28 + br 1 # 1: down to label9 .LBB0_24: # %if.else209 + end_block # label10: i32.const $push51=, -8 i32.eq $push52=, $1, $pop51 - br_if $pop52, .LBB0_28 + br_if $pop52, 0 # 0: down to label9 # BB#25: # %if.else227 i32.shr_s $7=, $0, $6 i32.const $11=, -1 - block .LBB0_27 + block i32.le_s $push53=, $1, $11 - br_if $pop53, .LBB0_27 + br_if $pop53, 0 # 0: down to label11 # BB#26: # %if.else243 i32.shl $11=, $7, $1 - br .LBB0_28 + br 1 # 1: down to label9 .LBB0_27: # %if.then231 + end_block # label11: i32.const $push55=, 1 i32.xor $push54=, $1, $11 i32.shl $push56=, $pop55, $pop54 @@ -172,6 +183,7 @@ helper_neon_rshl_s8: # @helper_neon_rshl_s8 i32.sub $push59=, $pop58, $1 i32.shr_s $11=, $pop57, $pop59 .LBB0_28: # %if.end253 + end_block # label9: i32.shl $push65=, $9, $4 i32.const $push66=, 65280 i32.and $push67=, $pop65, $pop66 diff --git a/test/torture-s/pr43008.c.s b/test/torture-s/pr43008.c.s index 2fc514f1d..bab89c583 100644 --- a/test/torture-s/pr43008.c.s +++ b/test/torture-s/pr43008.c.s @@ -35,12 +35,13 @@ main: # @main i32.store $discard=, 0($0), $pop3 i32.const $1=, 0 i32.store $discard=, i($1), $1 - block .LBB1_2 + block i32.load $push4=, 0($0) - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end return $1 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr43236.c.s b/test/torture-s/pr43236.c.s index 1c84cba58..57e708a8c 100644 --- a/test/torture-s/pr43236.c.s +++ b/test/torture-s/pr43236.c.s @@ -158,16 +158,16 @@ main: # @main i32.add $38=, $42, $38 i32.const $39=, 0 i32.add $39=, $42, $39 - block .LBB0_3 + block i32.call $push41=, memcmp@FUNCTION, $38, $39, $0 - br_if $pop41, .LBB0_3 + br_if $pop41, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.const $40=, 32 i32.add $40=, $42, $40 i32.const $41=, 0 i32.add $41=, $42, $41 i32.call $push42=, memcmp@FUNCTION, $40, $41, $0 - br_if $pop42, .LBB0_3 + br_if $pop42, 0 # 0: down to label0 # BB#2: # %if.end i32.const $9=, 96 i32.add $42=, $42, $9 @@ -175,6 +175,7 @@ main: # @main i32.store $42=, 0($9), $42 return $2 .LBB0_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr43269.c.s b/test/torture-s/pr43269.c.s index f5412e32e..dd69d3a5d 100644 --- a/test/torture-s/pr43269.c.s +++ b/test/torture-s/pr43269.c.s @@ -10,14 +10,15 @@ main: # @main # BB#0: # %entry call func_32@FUNCTION i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, g_261($0) i32.const $push1=, -1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -29,19 +30,21 @@ func_32: # @func_32 .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push2=, g_211($0) i32.const $push0=, -1 i32.store $push1=, g_261($0), $pop0 i32.eq $push3=, $pop2, $pop1 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %for.end return .LBB1_2: # %if.else # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 - br .LBB1_2 + end_block # label1: + loop # label2: + br 0 # 0: up to label2 .LBB1_3: + end_loop # label3: .Lfunc_end1: .size func_32, .Lfunc_end1-func_32 diff --git a/test/torture-s/pr43385.c.s b/test/torture-s/pr43385.c.s index abafd52e9..be1512170 100644 --- a/test/torture-s/pr43385.c.s +++ b/test/torture-s/pr43385.c.s @@ -7,14 +7,14 @@ foo: # @foo .param i32, i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB0_3 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %entry i32.const $push5=, 0 i32.eq $push6=, $1, $pop5 - br_if $pop6, .LBB0_3 + br_if $pop6, 0 # 0: down to label0 # BB#2: # %if.then i32.const $0=, 0 i32.load $push0=, e($0) @@ -22,6 +22,7 @@ foo: # @foo i32.add $push2=, $pop0, $pop1 i32.store $discard=, e($0), $pop2 .LBB0_3: # %if.end + end_block # label0: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -60,102 +61,114 @@ main: # @main i32.const $5=, 1 i32.add $2=, $0, $5 call foo@FUNCTION, $1, $2 - block .LBB2_24 + block i32.load $push0=, e($3) i32.ne $push1=, $pop0, $5 - br_if $pop1, .LBB2_24 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %if.end call foo@FUNCTION, $1, $0 - block .LBB2_23 + block i32.load $push2=, e($3) i32.ne $push3=, $pop2, $5 - br_if $pop3, .LBB2_23 + br_if $pop3, 0 # 0: down to label2 # BB#2: # %if.end5 call foo@FUNCTION, $2, $2 - block .LBB2_22 + block i32.load $push4=, e($3) i32.ne $push5=, $pop4, $4 - br_if $pop5, .LBB2_22 + br_if $pop5, 0 # 0: down to label3 # BB#3: # %if.end10 call foo@FUNCTION, $2, $0 - block .LBB2_21 + block i32.load $push6=, e($3) i32.ne $push7=, $pop6, $4 - br_if $pop7, .LBB2_21 + br_if $pop7, 0 # 0: down to label4 # BB#4: # %if.end14 call foo@FUNCTION, $0, $2 - block .LBB2_20 + block i32.load $push8=, e($3) i32.ne $push9=, $pop8, $4 - br_if $pop9, .LBB2_20 + br_if $pop9, 0 # 0: down to label5 # BB#5: # %if.end18 call foo@FUNCTION, $0, $0 - block .LBB2_19 + block i32.load $push10=, e($3) i32.ne $push11=, $pop10, $4 - br_if $pop11, .LBB2_19 + br_if $pop11, 0 # 0: down to label6 # BB#6: # %if.end21 - block .LBB2_18 + block i32.call $push12=, bar@FUNCTION, $1, $2 i32.ne $push13=, $pop12, $5 - br_if $pop13, .LBB2_18 + br_if $pop13, 0 # 0: down to label7 # BB#7: # %if.end26 - block .LBB2_17 + block i32.call $push14=, bar@FUNCTION, $1, $0 - br_if $pop14, .LBB2_17 + br_if $pop14, 0 # 0: down to label8 # BB#8: # %if.end31 - block .LBB2_16 + block i32.call $push15=, bar@FUNCTION, $2, $2 i32.ne $push16=, $pop15, $5 - br_if $pop16, .LBB2_16 + br_if $pop16, 0 # 0: down to label9 # BB#9: # %if.end37 - block .LBB2_15 + block i32.call $push17=, bar@FUNCTION, $2, $0 - br_if $pop17, .LBB2_15 + br_if $pop17, 0 # 0: down to label10 # BB#10: # %if.end42 - block .LBB2_14 + block i32.call $push18=, bar@FUNCTION, $0, $2 - br_if $pop18, .LBB2_14 + br_if $pop18, 0 # 0: down to label11 # BB#11: # %if.end47 - block .LBB2_13 + block i32.call $push19=, bar@FUNCTION, $0, $0 - br_if $pop19, .LBB2_13 + br_if $pop19, 0 # 0: down to label12 # BB#12: # %if.end51 return $3 .LBB2_13: # %if.then50 + end_block # label12: call abort@FUNCTION unreachable .LBB2_14: # %if.then46 + end_block # label11: call abort@FUNCTION unreachable .LBB2_15: # %if.then41 + end_block # label10: call abort@FUNCTION unreachable .LBB2_16: # %if.then36 + end_block # label9: call abort@FUNCTION unreachable .LBB2_17: # %if.then30 + end_block # label8: call abort@FUNCTION unreachable .LBB2_18: # %if.then25 + end_block # label7: call abort@FUNCTION unreachable .LBB2_19: # %if.then20 + end_block # label6: call abort@FUNCTION unreachable .LBB2_20: # %if.then17 + end_block # label5: call abort@FUNCTION unreachable .LBB2_21: # %if.then13 + end_block # label4: call abort@FUNCTION unreachable .LBB2_22: # %if.then9 + end_block # label3: call abort@FUNCTION unreachable .LBB2_23: # %if.then4 + end_block # label2: call abort@FUNCTION unreachable .LBB2_24: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr43560.c.s b/test/torture-s/pr43560.c.s index 252bd2fa6..e397ff03c 100644 --- a/test/torture-s/pr43560.c.s +++ b/test/torture-s/pr43560.c.s @@ -9,13 +9,13 @@ test: # @test .local i32, i32, i32 # BB#0: # %entry i32.load $3=, 4($0) - block .LBB0_3 + block i32.const $push0=, 2 i32.lt_s $push1=, $3, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 .LBB0_1: # %land.rhs # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: i32.const $push2=, -1 i32.add $3=, $3, $pop2 i32.add $push3=, $0, $3 @@ -24,7 +24,7 @@ test: # @test i32.load8_u $push5=, 0($1) i32.const $push6=, 47 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB0_3 + br_if $pop7, 1 # 1: down to label2 # BB#2: # %while.body # in Loop: Header=BB0_1 Depth=1 i32.const $push8=, 4 @@ -35,8 +35,10 @@ test: # @test i32.load $3=, 0($2) i32.const $push10=, 1 i32.gt_s $push11=, $3, $pop10 - br_if $pop11, .LBB0_1 + br_if $pop11, 0 # 0: up to label1 .LBB0_3: # %while.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size test, .Lfunc_end0-test diff --git a/test/torture-s/pr43629.c.s b/test/torture-s/pr43629.c.s index 4aec95f7d..68d6ef54c 100644 --- a/test/torture-s/pr43629.c.s +++ b/test/torture-s/pr43629.c.s @@ -9,12 +9,13 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, flag($0) - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end4 return $0 .LBB0_2: # %if.then3 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr43784.c.s b/test/torture-s/pr43784.c.s index 0ea75360c..03bd6c62f 100644 --- a/test/torture-s/pr43784.c.s +++ b/test/torture-s/pr43784.c.s @@ -17,7 +17,7 @@ main: # @main i32.const $3=, 0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $0=, v i32.add $push0=, $0, $3 i32.store8 $discard=, 0($pop0), $3 @@ -25,8 +25,9 @@ main: # @main i32.add $3=, $3, $1 i32.const $2=, 256 i32.ne $push1=, $3, $2 - br_if $pop1, .LBB0_1 -.LBB0_2: # %for.end + br_if $pop1, 0 # 0: up to label0 +# BB#2: # %for.end + end_loop # label1: i32.const $7=, 0 i32.add $7=, $9, $7 call rp@FUNCTION, $7 @@ -37,21 +38,22 @@ main: # @main i32.const $3=, 0 .LBB0_3: # %for.body4 # =>This Inner Loop Header: Depth=1 - block .LBB0_6 - loop .LBB0_5 + block + loop # label3: i32.add $push3=, $0, $3 i32.const $push4=, 4 i32.add $push5=, $pop3, $pop4 i32.load8_u $push6=, 0($pop5) i32.ne $push7=, $3, $pop6 - br_if $pop7, .LBB0_6 + br_if $pop7, 2 # 2: down to label2 # BB#4: # %for.cond1 # in Loop: Header=BB0_3 Depth=1 i32.add $3=, $3, $1 i32.const $push8=, 255 i32.le_s $push9=, $3, $pop8 - br_if $pop9, .LBB0_3 -.LBB0_5: # %for.end12 + br_if $pop9, 0 # 0: up to label3 +# BB#5: # %for.end12 + end_loop # label4: i32.const $push10=, 0 i32.const $6=, 256 i32.add $9=, $9, $6 @@ -59,6 +61,7 @@ main: # @main i32.store $9=, 0($6), $9 return $pop10 .LBB0_6: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr43835.c.s b/test/torture-s/pr43835.c.s index 5007fe8ba..3b23bbc80 100644 --- a/test/torture-s/pr43835.c.s +++ b/test/torture-s/pr43835.c.s @@ -31,25 +31,26 @@ mark_cell: # @mark_cell .local i32 # BB#0: # %entry i32.const $2=, 4 - block .LBB2_4 + block i32.load $push0=, 8($1) i32.ne $push1=, $pop0, $2 - br_if $pop1, .LBB2_4 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %land.lhs.true i32.load $1=, 0($1) i32.const $push6=, 0 i32.eq $push7=, $1, $pop6 - br_if $pop7, .LBB2_4 + br_if $pop7, 0 # 0: down to label0 # BB#2: # %land.lhs.true1 i32.const $push2=, 2 i32.add $push3=, $1, $pop2 i32.load8_u $push4=, 0($pop3) i32.and $push5=, $pop4, $2 - br_if $pop5, .LBB2_4 + br_if $pop5, 0 # 0: down to label0 # BB#3: # %if.then call Parrot_gc_mark_PMC_alive_fun@FUNCTION, $1, $1 unreachable .LBB2_4: # %if.end + end_block # label0: return .Lfunc_end2: .size mark_cell, .Lfunc_end2-mark_cell diff --git a/test/torture-s/pr44164.c.s b/test/torture-s/pr44164.c.s index b5d673a07..77cbf2d4b 100644 --- a/test/torture-s/pr44164.c.s +++ b/test/torture-s/pr44164.c.s @@ -27,16 +27,17 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.const $push2=, a i32.call $push3=, foo@FUNCTION, $pop2 i32.const $push0=, 1 i32.store $push1=, a($0), $pop0 i32.ne $push4=, $pop3, $pop1 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr44202-1.c.s b/test/torture-s/pr44202-1.c.s index 1dd618bfe..bb9dd9c98 100644 --- a/test/torture-s/pr44202-1.c.s +++ b/test/torture-s/pr44202-1.c.s @@ -9,15 +9,16 @@ add512: # @add512 .result i32 .local i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 512 i32.add $2=, $0, $pop0 i32.const $push1=, 0 i32.eq $push2=, $2, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.then i32.store $discard=, 0($1), $0 .LBB0_2: # %if.end + end_block # label0: return $2 .Lfunc_end0: .size add512, .Lfunc_end0-add512 @@ -31,13 +32,14 @@ add513: # @add513 .result i32 .local i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 513 i32.add $2=, $0, $pop0 - br_if $2, .LBB1_2 + br_if $2, 0 # 0: down to label1 # BB#1: # %if.then i32.store $discard=, 0($1), $0 .LBB1_2: # %if.end + end_block # label1: return $2 .Lfunc_end1: .size add513, .Lfunc_end1-add513 @@ -62,28 +64,29 @@ main: # @main i32.const $push3=, -512 i32.const $3=, 12 i32.add $3=, $5, $3 - block .LBB2_5 + block i32.call $push4=, add512@FUNCTION, $pop3, $3 - br_if $pop4, .LBB2_5 + br_if $pop4, 0 # 0: down to label2 # BB#1: # %entry i32.load $push0=, 12($5) i32.ne $push5=, $pop0, $0 - br_if $pop5, .LBB2_5 + br_if $pop5, 0 # 0: down to label2 # BB#2: # %lor.lhs.false2 i32.const $0=, -513 i32.const $4=, 8 i32.add $4=, $5, $4 i32.call $push7=, add513@FUNCTION, $0, $4 - br_if $pop7, .LBB2_5 + br_if $pop7, 0 # 0: down to label2 # BB#3: # %lor.lhs.false2 i32.load $push6=, 8($5) i32.ne $push8=, $pop6, $0 - br_if $pop8, .LBB2_5 + br_if $pop8, 0 # 0: down to label2 # BB#4: # %if.end i32.const $push9=, 0 call exit@FUNCTION, $pop9 unreachable .LBB2_5: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr44468.c.s b/test/torture-s/pr44468.c.s index fb24448bf..383d01712 100644 --- a/test/torture-s/pr44468.c.s +++ b/test/torture-s/pr44468.c.s @@ -70,32 +70,35 @@ main: # @main i32.store $3=, s+8($0), $pop1 i32.call $4=, test1@FUNCTION, $2 i32.const $5=, 3 - block .LBB3_6 + block i32.ne $push2=, $4, $5 - br_if $pop2, .LBB3_6 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.store $4=, s+4($0), $1 i32.store $1=, s+8($0), $3 - block .LBB3_5 + block i32.call $push3=, test2@FUNCTION, $2 i32.ne $push4=, $pop3, $5 - br_if $pop4, .LBB3_5 + br_if $pop4, 0 # 0: down to label1 # BB#2: # %if.end4 i32.store $discard=, s+4($0), $4 i32.store $discard=, s+8($0), $1 - block .LBB3_4 + block i32.call $push5=, test3@FUNCTION, $2 i32.ne $push6=, $pop5, $5 - br_if $pop6, .LBB3_4 + br_if $pop6, 0 # 0: down to label2 # BB#3: # %if.end8 return $0 .LBB3_4: # %if.then7 + end_block # label2: call abort@FUNCTION unreachable .LBB3_5: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB3_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr44683.c.s b/test/torture-s/pr44683.c.s index 2a265a728..9f568b859 100644 --- a/test/torture-s/pr44683.c.s +++ b/test/torture-s/pr44683.c.s @@ -10,17 +10,18 @@ copysign_bug: # @copysign_bug .local f64, i32 # BB#0: # %entry f64.const $1=, 0x0p0 - block .LBB0_3 - block .LBB0_2 + block + block f64.eq $push2=, $0, $1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %entry i32.const $2=, 1 f64.const $push1=, 0x1p-1 f64.mul $push0=, $0, $pop1 f64.eq $push3=, $pop0, $0 - br_if $pop3, .LBB0_3 + br_if $pop3, 1 # 1: down to label0 .LBB0_2: # %if.end + end_block # label1: f64.const $push4=, 0x1p0 f64.copysign $push5=, $pop4, $0 f64.lt $push6=, $pop5, $1 @@ -28,6 +29,7 @@ copysign_bug: # @copysign_bug i32.const $push7=, 3 i32.select $2=, $pop6, $pop8, $pop7 .LBB0_3: # %return + end_block # label0: return $2 .Lfunc_end0: .size copysign_bug, .Lfunc_end0-copysign_bug @@ -39,16 +41,17 @@ copysign_bug: # @copysign_bug main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block f64.const $push0=, -0x0p0 i32.call $push1=, copysign_bug@FUNCTION, $pop0 i32.const $push2=, 2 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label2 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr44828.c.s b/test/torture-s/pr44828.c.s index e9762e8b9..27a3521cb 100644 --- a/test/torture-s/pr44828.c.s +++ b/test/torture-s/pr44828.c.s @@ -9,7 +9,7 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load8_u $push0=, a($0) i32.const $push1=, -939524096 i32.mul $push2=, $pop0, $pop1 @@ -17,10 +17,11 @@ main: # @main i32.shr_s $push4=, $pop2, $pop3 i32.const $push5=, 1 i32.ge_s $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr44852.c.s b/test/torture-s/pr44852.c.s index 20c2e8c77..0d7fbc46d 100644 --- a/test/torture-s/pr44852.c.s +++ b/test/torture-s/pr44852.c.s @@ -13,32 +13,35 @@ sf: # @sf #NO_APP .LBB0_1: # %while.cond # =>This Inner Loop Header: Depth=1 - block .LBB0_5 - block .LBB0_4 - loop .LBB0_3 + block + block + loop # label2: i32.const $push0=, -1 i32.add $3=, $0, $pop0 i32.load8_u $2=, 0($3) i32.const $push1=, 57 i32.ne $push2=, $2, $pop1 - br_if $pop2, .LBB0_4 + br_if $pop2, 2 # 2: down to label1 # BB#2: # %while.body # in Loop: Header=BB0_1 Depth=1 copy_local $0=, $3 i32.ne $push5=, $1, $3 - br_if $pop5, .LBB0_1 -.LBB0_3: # %if.then + br_if $pop5, 0 # 0: up to label2 +# BB#3: # %if.then + end_loop # label3: i32.const $push4=, 1 i32.add $0=, $3, $pop4 i32.const $push6=, 48 i32.store8 $discard=, 0($1), $pop6 i32.const $2=, 49 - br .LBB0_5 + br 1 # 1: down to label0 .LBB0_4: # %while.end.loopexit + end_block # label1: i32.const $push3=, 1 i32.add $2=, $2, $pop3 copy_local $1=, $3 .LBB0_5: # %while.end + end_block # label0: i32.store8 $discard=, 0($1), $2 return $0 .Lfunc_end0: @@ -104,16 +107,16 @@ main: # @main i32.call $push27=, sf@FUNCTION, $pop26, $11 i32.const $12=, 8 i32.add $12=, $14, $12 - block .LBB1_3 + block i32.or $push28=, $12, $1 i32.ne $push29=, $pop27, $pop28 - br_if $pop29, .LBB1_3 + br_if $pop29, 0 # 0: down to label4 # BB#1: # %lor.lhs.false i32.const $push30=, .L.str i32.const $13=, 8 i32.add $13=, $14, $13 i32.call $push31=, strcmp@FUNCTION, $13, $pop30 - br_if $pop31, .LBB1_3 + br_if $pop31, 0 # 0: down to label4 # BB#2: # %if.end i32.const $7=, 16 i32.add $14=, $14, $7 @@ -121,6 +124,7 @@ main: # @main i32.store $14=, 0($7), $14 return $0 .LBB1_3: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr44858.c.s b/test/torture-s/pr44858.c.s index 2a1514e26..34025744f 100644 --- a/test/torture-s/pr44858.c.s +++ b/test/torture-s/pr44858.c.s @@ -40,14 +40,15 @@ main: # @main # BB#0: # %entry i32.call $discard=, bar@FUNCTION i32.const $0=, 0 - block .LBB2_2 + block i32.load $push0=, b($0) i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB2_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr45034.c.s b/test/torture-s/pr45034.c.s index 080b88b90..6a11c716c 100644 --- a/test/torture-s/pr45034.c.s +++ b/test/torture-s/pr45034.c.s @@ -7,15 +7,16 @@ foo: # @foo .param i32, i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 128 i32.add $push1=, $1, $pop0 i32.const $push2=, 256 i32.ge_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -33,7 +34,7 @@ test_neg: # @test_neg copy_local $7=, $1 .LBB1_1: # %for.cond # =>This Inner Loop Header: Depth=1 - loop .LBB1_5 + loop # label1: i32.const $push0=, 255 i32.and $2=, $7, $pop0 i32.const $3=, 0 @@ -41,17 +42,18 @@ test_neg: # @test_neg i32.const $5=, 24 i32.shl $0=, $4, $5 i32.const $6=, 127 - block .LBB1_4 - block .LBB1_3 + block + block i32.and $push1=, $4, $1 i32.gt_u $push2=, $pop1, $6 - br_if $pop2, .LBB1_3 + br_if $pop2, 0 # 0: down to label4 # BB#2: # %cond.true.i # in Loop: Header=BB1_1 Depth=1 i32.shr_s $4=, $0, $5 - br .LBB1_4 + br 1 # 1: down to label3 .LBB1_3: # %cond.false.i # in Loop: Header=BB1_1 Depth=1 + end_block # label4: i32.const $push3=, -16777216 i32.xor $push4=, $0, $pop3 i32.shr_s $push5=, $pop4, $5 @@ -59,12 +61,14 @@ test_neg: # @test_neg i32.xor $4=, $pop5, $pop6 .LBB1_4: # %fixnum_neg.exit # in Loop: Header=BB1_1 Depth=1 + end_block # label3: call foo@FUNCTION, $7, $4, $7 i32.const $push7=, 1 i32.add $7=, $7, $pop7 i32.ne $push8=, $2, $6 - br_if $pop8, .LBB1_1 -.LBB1_5: # %for.end + br_if $pop8, 0 # 0: up to label1 +# BB#5: # %for.end + end_loop # label2: return $3 .Lfunc_end1: .size test_neg, .Lfunc_end1-test_neg @@ -81,7 +85,7 @@ main: # @main copy_local $7=, $1 .LBB2_1: # %for.cond.i # =>This Inner Loop Header: Depth=1 - loop .LBB2_5 + loop # label5: i32.const $push0=, 255 i32.and $2=, $7, $pop0 i32.const $3=, 0 @@ -89,17 +93,18 @@ main: # @main i32.const $5=, 24 i32.shl $0=, $4, $5 i32.const $6=, 127 - block .LBB2_4 - block .LBB2_3 + block + block i32.and $push1=, $4, $1 i32.gt_u $push2=, $pop1, $6 - br_if $pop2, .LBB2_3 + br_if $pop2, 0 # 0: down to label8 # BB#2: # %cond.true.i.i # in Loop: Header=BB2_1 Depth=1 i32.shr_s $4=, $0, $5 - br .LBB2_4 + br 1 # 1: down to label7 .LBB2_3: # %cond.false.i.i # in Loop: Header=BB2_1 Depth=1 + end_block # label8: i32.const $push3=, -16777216 i32.xor $push4=, $0, $pop3 i32.shr_s $push5=, $pop4, $5 @@ -107,12 +112,14 @@ main: # @main i32.xor $4=, $pop5, $pop6 .LBB2_4: # %fixnum_neg.exit.i # in Loop: Header=BB2_1 Depth=1 + end_block # label7: call foo@FUNCTION, $7, $4, $7 i32.const $push7=, 1 i32.add $7=, $7, $pop7 i32.ne $push8=, $2, $6 - br_if $pop8, .LBB2_1 -.LBB2_5: # %if.end + br_if $pop8, 0 # 0: up to label5 +# BB#5: # %if.end + end_loop # label6: return $3 .Lfunc_end2: .size main, .Lfunc_end2-main diff --git a/test/torture-s/pr45070.c.s b/test/torture-s/pr45070.c.s index 956fb21f3..04c5e6db5 100644 --- a/test/torture-s/pr45070.c.s +++ b/test/torture-s/pr45070.c.s @@ -24,42 +24,46 @@ main: # @main i32.store $2=, 8($8), $pop3 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_7 + loop # label0: i32.const $7=, 0 i32.add $7=, $8, $7 i32.call $0=, next@FUNCTION, $7 - block .LBB0_6 - block .LBB0_5 - block .LBB0_3 - br_if $2, .LBB0_3 + block + block + block + br_if $2, 0 # 0: down to label4 # BB#2: # %for.body # in Loop: Header=BB0_1 Depth=1 i32.const $1=, 65535 i32.and $push4=, $0, $1 i32.ne $push5=, $pop4, $1 - br_if $pop5, .LBB0_5 + br_if $pop5, 1 # 1: down to label3 .LBB0_3: # %lor.lhs.false # in Loop: Header=BB0_1 Depth=1 + end_block # label4: i32.const $1=, 1 i32.lt_s $push6=, $2, $1 - br_if $pop6, .LBB0_6 + br_if $pop6, 1 # 1: down to label2 # BB#4: # %lor.lhs.false # in Loop: Header=BB0_1 Depth=1 i32.const $push7=, 65535 i32.and $push8=, $0, $pop7 i32.const $push12=, 0 i32.eq $push13=, $pop8, $pop12 - br_if $pop13, .LBB0_6 + br_if $pop13, 1 # 1: down to label2 .LBB0_5: # %if.then + end_block # label3: call abort@FUNCTION unreachable .LBB0_6: # %for.cond # in Loop: Header=BB0_1 Depth=1 + end_block # label2: i32.add $2=, $2, $1 i32.const $push9=, 15 i32.le_s $push10=, $2, $pop9 - br_if $pop10, .LBB0_1 -.LBB0_7: # %for.end + br_if $pop10, 0 # 0: up to label0 +# BB#7: # %for.end + end_loop # label1: i32.const $push11=, 0 i32.const $5=, 16 i32.add $8=, $8, $5 @@ -77,20 +81,20 @@ next: # @next .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB1_4 + block i32.load $push0=, 0($0) i32.load $push1=, 4($0) i32.lt_s $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_4 + br_if $pop2, 0 # 0: down to label5 .LBB1_1: # %if.then # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label6: i32.const $push3=, 8 i32.add $1=, $0, $pop3 i32.load $push4=, 0($1) i32.const $push12=, 0 i32.eq $push13=, $pop4, $pop12 - br_if $pop13, .LBB1_3 + br_if $pop13, 1 # 1: down to label7 # BB#2: # %if.then1 # in Loop: Header=BB1_1 Depth=1 i32.const $push5=, 0 @@ -101,13 +105,15 @@ next: # @next i32.add $push8=, $0, $pop7 i32.load $push9=, 0($pop8) i32.ge_s $push10=, $pop6, $pop9 - br_if $pop10, .LBB1_1 - br .LBB1_4 + br_if $pop10, 0 # 0: up to label6 + br 2 # 2: down to label5 .LBB1_3: # %if.end + end_loop # label7: i32.const $push11=, 1 i32.store $discard=, 0($1), $pop11 i32.const $1=, 65535 .LBB1_4: # %cleanup + end_block # label5: return $1 .Lfunc_end1: .size next, .Lfunc_end1-next diff --git a/test/torture-s/pr45695.c.s b/test/torture-s/pr45695.c.s index 68d6d59d0..9e4f4ce21 100644 --- a/test/torture-s/pr45695.c.s +++ b/test/torture-s/pr45695.c.s @@ -46,22 +46,24 @@ main: # @main i32.add $1=, $2, $pop0 i32.const $4=, 1 i32.add $0=, $2, $4 - block .LBB2_4 + block i32.call $push1=, f@FUNCTION, $2, $0, $1 i32.const $push2=, -1 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB2_4 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB2_3 + block i32.call $push4=, f@FUNCTION, $1, $0, $1 i32.ne $push5=, $pop4, $4 - br_if $pop5, .LBB2_3 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %if.end9 return $3 .LBB2_3: # %if.then8 + end_block # label1: call abort@FUNCTION unreachable .LBB2_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr46316.c.s b/test/torture-s/pr46316.c.s index c0bf4fedb..04d6dd45b 100644 --- a/test/torture-s/pr46316.c.s +++ b/test/torture-s/pr46316.c.s @@ -31,16 +31,17 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i64.const $push0=, 0 i64.call $push1=, foo@FUNCTION, $pop0 i64.const $push2=, -4 i64.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr46909-1.c.s b/test/torture-s/pr46909-1.c.s index 6c5c0f543..584227e2a 100644 --- a/test/torture-s/pr46909-1.c.s +++ b/test/torture-s/pr46909-1.c.s @@ -35,8 +35,8 @@ main: # @main i32.const $3=, -14 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB1_4 - loop .LBB1_3 + block + loop # label1: i32.const $push0=, 4 i32.add $push1=, $3, $pop0 i32.call $0=, foo@FUNCTION, $pop1 @@ -46,7 +46,7 @@ main: # @main i32.shl $push3=, $pop2, $2 i32.sub $push4=, $2, $pop3 i32.ne $push5=, $0, $pop4 - br_if $pop5, .LBB1_4 + br_if $pop5, 2 # 2: down to label0 # BB#2: # %for.cond # in Loop: Header=BB1_1 Depth=1 i32.const $push6=, 5 @@ -54,10 +54,12 @@ main: # @main i32.add $3=, $3, $2 i32.const $push7=, 9 i32.le_s $push8=, $0, $pop7 - br_if $pop8, .LBB1_1 -.LBB1_3: # %for.end + br_if $pop8, 0 # 0: up to label1 +# BB#3: # %for.end + end_loop # label2: return $1 .LBB1_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr46909-2.c.s b/test/torture-s/pr46909-2.c.s index c8df1d8e5..22c27675e 100644 --- a/test/torture-s/pr46909-2.c.s +++ b/test/torture-s/pr46909-2.c.s @@ -9,17 +9,19 @@ foo: # @foo .result i32 .local i32 # BB#0: # %entry - block .LBB0_3 - block .LBB0_2 + block + block i32.const $push0=, 13 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %entry i32.const $1=, 1 - br_if $0, .LBB0_3 + br_if $0, 1 # 1: down to label0 .LBB0_2: # %if.end + end_block # label1: i32.const $1=, -1 .LBB0_3: # %return + end_block # label0: return $1 .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -35,8 +37,8 @@ main: # @main i32.const $3=, -10 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB1_4 - loop .LBB1_3 + block + loop # label3: i32.call $0=, foo@FUNCTION, $3 i32.const $1=, 0 i32.const $2=, 1 @@ -48,16 +50,18 @@ main: # @main i32.shl $push5=, $pop4, $2 i32.sub $push6=, $pop2, $pop5 i32.ne $push7=, $0, $pop6 - br_if $pop7, .LBB1_4 + br_if $pop7, 2 # 2: down to label2 # BB#2: # %for.cond # in Loop: Header=BB1_1 Depth=1 i32.add $3=, $3, $2 i32.const $push8=, 29 i32.le_s $push9=, $3, $pop8 - br_if $pop9, .LBB1_1 -.LBB1_3: # %for.end + br_if $pop9, 0 # 0: up to label3 +# BB#3: # %for.end + end_loop # label4: return $1 .LBB1_4: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr47237.c.s b/test/torture-s/pr47237.c.s index 32dc2d2c2..6fa7318e9 100644 --- a/test/torture-s/pr47237.c.s +++ b/test/torture-s/pr47237.c.s @@ -22,13 +22,14 @@ main: # @main foo: # @foo .param i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 5 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr47299.c.s b/test/torture-s/pr47299.c.s index a17414dc8..0fea35fb1 100644 --- a/test/torture-s/pr47299.c.s +++ b/test/torture-s/pr47299.c.s @@ -21,16 +21,17 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 64 i32.call $push1=, foo@FUNCTION, $pop0 i32.const $push2=, 16320 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr47337.c.s b/test/torture-s/pr47337.c.s index 687d2671d..f7506fdb4 100644 --- a/test/torture-s/pr47337.c.s +++ b/test/torture-s/pr47337.c.s @@ -15,7 +15,7 @@ main: # @main i32.const $4=, -1024 .LBB0_1: # %for.cond2.preheader # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $2=, a i32.add $push2=, $2, $4 i32.const $push3=, 1024 @@ -24,13 +24,14 @@ main: # @main i32.store $3=, 0($pop4), $pop5 i32.const $push6=, 4 i32.add $4=, $4, $pop6 - br_if $4, .LBB0_1 -.LBB0_2: # %for.cond7.preheader + br_if $4, 0 # 0: up to label0 +# BB#2: # %for.cond7.preheader + end_loop # label1: i32.store $discard=, d($1), $1 - block .LBB0_4 + block i32.const $push40=, 0 i32.eq $push41=, $0, $pop40 - br_if $pop41, .LBB0_4 + br_if $pop41, 0 # 0: down to label2 # BB#3: # %fnx.exit i32.const $4=, 2 i32.load $push7=, b($1) @@ -68,6 +69,7 @@ main: # @main i32.load $push39=, 0($pop38) i32.store $discard=, b($1), $pop39 .LBB0_4: # %if.end25 + end_block # label2: return $1 .Lfunc_end0: .size main, .Lfunc_end0-main diff --git a/test/torture-s/pr48571-1.c.s b/test/torture-s/pr48571-1.c.s index a93d6ca74..08be0606b 100644 --- a/test/torture-s/pr48571-1.c.s +++ b/test/torture-s/pr48571-1.c.s @@ -10,7 +10,7 @@ bar: # @bar i32.const $1=, -2492 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $push0=, c i32.add $0=, $pop0, $1 i32.const $push6=, 2496 @@ -23,8 +23,9 @@ bar: # @bar i32.store $discard=, 0($pop7), $pop5 i32.const $push8=, 4 i32.add $1=, $1, $pop8 - br_if $1, .LBB0_1 -.LBB0_2: # %for.end + br_if $1, 0 # 0: up to label0 +# BB#2: # %for.end + end_loop # label1: return .Lfunc_end0: .size bar, .Lfunc_end0-bar @@ -40,7 +41,7 @@ main: # @main i32.const $2=, -2496 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label2: i32.const $3=, c i32.add $push0=, $3, $2 i32.const $push1=, 2496 @@ -49,17 +50,18 @@ main: # @main i32.store $4=, 0($pop2), $pop3 i32.const $0=, 4 i32.add $2=, $2, $0 - br_if $2, .LBB1_1 -.LBB1_2: # %for.end + br_if $2, 0 # 0: up to label2 +# BB#2: # %for.end + end_loop # label3: call bar@FUNCTION i32.const $2=, 0 .LBB1_3: # %for.body3 # =>This Inner Loop Header: Depth=1 - block .LBB1_6 - loop .LBB1_5 + block + loop # label5: i32.load $push4=, 0($3) i32.ne $push5=, $pop4, $4 - br_if $pop5, .LBB1_6 + br_if $pop5, 2 # 2: down to label4 # BB#4: # %if.end # in Loop: Header=BB1_3 Depth=1 i32.const $1=, 1 @@ -68,11 +70,13 @@ main: # @main i32.add $3=, $3, $0 i32.const $push6=, 624 i32.lt_u $push7=, $2, $pop6 - br_if $pop7, .LBB1_3 -.LBB1_5: # %for.end8 + br_if $pop7, 0 # 0: up to label5 +# BB#5: # %for.end8 + end_loop # label6: i32.const $push8=, 0 return $pop8 .LBB1_6: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr48717.c.s b/test/torture-s/pr48717.c.s index 9b9b14189..54fb539f3 100644 --- a/test/torture-s/pr48717.c.s +++ b/test/torture-s/pr48717.c.s @@ -45,17 +45,18 @@ main: # @main i32.const $0=, 0 i32.load $1=, w($0) i32.const $2=, 65535 - block .LBB2_2 + block i32.const $push0=, -1 i32.xor $push1=, $1, $pop0 i32.add $push2=, $pop1, $1 i32.and $push3=, $pop2, $2 i32.store $push4=, v($0), $pop3 i32.ne $push5=, $pop4, $2 - br_if $pop5, .LBB2_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr48809.c.s b/test/torture-s/pr48809.c.s index a9044d179..49c5bd6c3 100644 --- a/test/torture-s/pr48809.c.s +++ b/test/torture-s/pr48809.c.s @@ -9,142 +9,205 @@ foo: # @foo .result i32 .local i32, i32 # BB#0: # %entry - block .LBB0_37 - block .LBB0_33 + block + block i32.const $push0=, 32 i32.gt_u $push1=, $0, $pop0 - br_if $pop1, .LBB0_33 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %entry - block .LBB0_32 - block .LBB0_31 - block .LBB0_30 - block .LBB0_29 - block .LBB0_28 - block .LBB0_27 - block .LBB0_26 - block .LBB0_25 - block .LBB0_24 - block .LBB0_23 - block .LBB0_22 - block .LBB0_21 - block .LBB0_20 - block .LBB0_19 - block .LBB0_18 - block .LBB0_17 - block .LBB0_16 - block .LBB0_15 - block .LBB0_14 - block .LBB0_13 - block .LBB0_12 - block .LBB0_11 - block .LBB0_10 - block .LBB0_9 - block .LBB0_8 - block .LBB0_7 - block .LBB0_6 - block .LBB0_5 - block .LBB0_4 - block .LBB0_3 - block .LBB0_2 - tableswitch $0, .LBB0_2, .LBB0_2, .LBB0_3, .LBB0_37, .LBB0_4, .LBB0_5, .LBB0_6, .LBB0_7, .LBB0_8, .LBB0_9, .LBB0_10, .LBB0_11, .LBB0_12, .LBB0_13, .LBB0_14, .LBB0_15, .LBB0_16, .LBB0_17, .LBB0_18, .LBB0_19, .LBB0_37, .LBB0_20, .LBB0_21, .LBB0_22, .LBB0_23, .LBB0_24, .LBB0_25, .LBB0_26, .LBB0_27, .LBB0_28, .LBB0_29, .LBB0_30, .LBB0_31, .LBB0_32 + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + tableswitch $0, 0, 0, 1, 32, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 32, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 # 0: down to label32 + # 1: down to label31 + # 32: down to label0 + # 2: down to label30 + # 3: down to label29 + # 4: down to label28 + # 5: down to label27 + # 6: down to label26 + # 7: down to label25 + # 8: down to label24 + # 9: down to label23 + # 10: down to label22 + # 11: down to label21 + # 12: down to label20 + # 13: down to label19 + # 14: down to label18 + # 15: down to label17 + # 16: down to label16 + # 17: down to label15 + # 18: down to label14 + # 19: down to label13 + # 20: down to label12 + # 21: down to label11 + # 22: down to label10 + # 23: down to label9 + # 24: down to label8 + # 25: down to label7 + # 26: down to label6 + # 27: down to label5 + # 28: down to label4 + # 29: down to label3 + # 30: down to label2 .LBB0_2: # %sw.bb + end_block # label32: i32.const $0=, 1 - br .LBB0_37 + br 31 # 31: down to label0 .LBB0_3: # %sw.bb1 + end_block # label31: i32.const $0=, 7 - br .LBB0_37 + br 30 # 30: down to label0 .LBB0_4: # %sw.bb3 + end_block # label30: i32.const $0=, 19 - br .LBB0_37 + br 29 # 29: down to label0 .LBB0_5: # %sw.bb4 + end_block # label29: i32.const $0=, 5 - br .LBB0_37 + br 28 # 28: down to label0 .LBB0_6: # %sw.bb5 + end_block # label28: i32.const $0=, 17 - br .LBB0_37 + br 27 # 27: down to label0 .LBB0_7: # %sw.bb6 + end_block # label27: i32.const $0=, 31 - br .LBB0_37 + br 26 # 26: down to label0 .LBB0_8: # %sw.bb7 + end_block # label26: i32.const $0=, 8 - br .LBB0_37 + br 25 # 25: down to label0 .LBB0_9: # %sw.bb8 + end_block # label25: i32.const $0=, 28 - br .LBB0_37 + br 24 # 24: down to label0 .LBB0_10: # %sw.bb9 + end_block # label24: i32.const $0=, 16 - br .LBB0_37 + br 23 # 23: down to label0 .LBB0_11: # %sw.bb10 + end_block # label23: i32.const $0=, 31 - br .LBB0_37 + br 22 # 22: down to label0 .LBB0_12: # %sw.bb11 + end_block # label22: i32.const $0=, 12 - br .LBB0_37 + br 21 # 21: down to label0 .LBB0_13: # %sw.bb12 + end_block # label21: i32.const $0=, 15 - br .LBB0_37 + br 20 # 20: down to label0 .LBB0_14: # %sw.bb13 + end_block # label20: i32.const $0=, 111 - br .LBB0_37 + br 19 # 19: down to label0 .LBB0_15: # %sw.bb14 + end_block # label19: i32.const $0=, 17 - br .LBB0_37 + br 18 # 18: down to label0 .LBB0_16: # %sw.bb15 + end_block # label18: i32.const $0=, 10 - br .LBB0_37 + br 17 # 17: down to label0 .LBB0_17: # %sw.bb16 + end_block # label17: i32.const $0=, 31 - br .LBB0_37 + br 16 # 16: down to label0 .LBB0_18: # %sw.bb17 + end_block # label16: i32.const $0=, 7 - br .LBB0_37 + br 15 # 15: down to label0 .LBB0_19: # %sw.bb18 + end_block # label15: i32.const $0=, 2 - br .LBB0_37 + br 14 # 14: down to label0 .LBB0_20: # %sw.bb20 + end_block # label14: i32.const $0=, 5 - br .LBB0_37 + br 13 # 13: down to label0 .LBB0_21: # %sw.bb21 + end_block # label13: i32.const $0=, 107 - br .LBB0_37 + br 12 # 12: down to label0 .LBB0_22: # %sw.bb22 + end_block # label12: i32.const $0=, 31 - br .LBB0_37 + br 11 # 11: down to label0 .LBB0_23: # %sw.bb23 + end_block # label11: i32.const $0=, 8 - br .LBB0_37 + br 10 # 10: down to label0 .LBB0_24: # %sw.bb24 + end_block # label10: i32.const $0=, 28 - br .LBB0_37 + br 9 # 9: down to label0 .LBB0_25: # %sw.bb25 + end_block # label9: i32.const $0=, 106 - br .LBB0_37 + br 8 # 8: down to label0 .LBB0_26: # %sw.bb26 + end_block # label8: i32.const $0=, 31 - br .LBB0_37 + br 7 # 7: down to label0 .LBB0_27: # %sw.bb27 + end_block # label7: i32.const $0=, 102 - br .LBB0_37 + br 6 # 6: down to label0 .LBB0_28: # %sw.bb28 + end_block # label6: i32.const $0=, 105 - br .LBB0_37 + br 5 # 5: down to label0 .LBB0_29: # %sw.bb29 + end_block # label5: i32.const $0=, 111 - br .LBB0_37 + br 4 # 4: down to label0 .LBB0_30: # %sw.bb30 + end_block # label4: i32.const $0=, 17 - br .LBB0_37 + br 3 # 3: down to label0 .LBB0_31: # %sw.bb31 + end_block # label3: i32.const $0=, 10 - br .LBB0_37 + br 2 # 2: down to label0 .LBB0_32: # %sw.bb32 + end_block # label2: i32.const $0=, 31 - br .LBB0_37 + br 1 # 1: down to label0 .LBB0_33: # %entry - block .LBB0_36 + end_block # label1: + block i32.const $push2=, -62 i32.eq $push3=, $0, $pop2 - br_if $pop3, .LBB0_36 + br_if $pop3, 0 # 0: down to label33 # BB#34: # %entry i32.const $1=, 0 i32.const $push4=, 98 @@ -152,13 +215,15 @@ foo: # @foo copy_local $0=, $1 i32.const $push5=, 0 i32.eq $push6=, $2, $pop5 - br_if $pop6, .LBB0_37 + br_if $pop6, 1 # 1: down to label0 # BB#35: # %sw.bb33 i32.const $0=, 18 - br .LBB0_37 + br 1 # 1: down to label0 .LBB0_36: # %sw.bb34 + end_block # label33: i32.const $0=, 19 .LBB0_37: # %sw.epilog + end_block # label0: return $0 .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/pr48814-1.c.s b/test/torture-s/pr48814-1.c.s index 57ffcbc85..8f789fd2b 100644 --- a/test/torture-s/pr48814-1.c.s +++ b/test/torture-s/pr48814-1.c.s @@ -29,7 +29,7 @@ main: # @main i32.const $1=, 0 i32.load $2=, count($1) i32.const $3=, 2 - block .LBB1_3 + block i32.const $push5=, arr i32.shl $push4=, $2, $3 i32.add $push6=, $pop5, $pop4 @@ -38,15 +38,16 @@ main: # @main i32.add $push2=, $2, $pop1 i32.store $push3=, count($1), $pop2 i32.ne $push7=, $pop3, $3 - br_if $pop7, .LBB1_3 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %entry i32.load $push0=, arr+8($1) i32.const $push8=, 3 i32.ne $push9=, $pop0, $pop8 - br_if $pop9, .LBB1_3 + br_if $pop9, 0 # 0: down to label0 # BB#2: # %if.end return $1 .LBB1_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr48814-2.c.s b/test/torture-s/pr48814-2.c.s index de1417ead..ca4a7148d 100644 --- a/test/torture-s/pr48814-2.c.s +++ b/test/torture-s/pr48814-2.c.s @@ -31,23 +31,24 @@ main: # @main i32.add $2=, $1, $pop1 i32.const $3=, 2 i32.const $4=, arr - block .LBB1_3 + block i32.shl $push2=, $2, $3 i32.add $push3=, $4, $pop2 i32.store $discard=, 0($pop3), $2 i32.add $push0=, $1, $3 i32.store $2=, count($0), $pop0 - br_if $1, .LBB1_3 + br_if $1, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.shl $push4=, $2, $3 i32.add $push5=, $4, $pop4 i32.load $push6=, 0($pop5) i32.const $push7=, 3 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB1_3 + br_if $pop8, 0 # 0: down to label0 # BB#2: # %if.end return $0 .LBB1_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr48973-1.c.s b/test/torture-s/pr48973-1.c.s index 40ba8ccdb..c47e89e77 100644 --- a/test/torture-s/pr48973-1.c.s +++ b/test/torture-s/pr48973-1.c.s @@ -7,13 +7,14 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, -1 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -28,7 +29,7 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, v($0) i32.const $push4=, 1 i32.and $1=, $pop0, $pop4 @@ -39,10 +40,11 @@ main: # @main i32.store8 $discard=, s($0), $pop5 i32.const $push6=, 0 i32.eq $push7=, $1, $pop6 - br_if $pop7, .LBB1_2 + br_if $pop7, 0 # 0: down to label1 # BB#1: # %foo.exit return $0 .LBB1_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr48973-2.c.s b/test/torture-s/pr48973-2.c.s index 3a9158afc..9007f6287 100644 --- a/test/torture-s/pr48973-2.c.s +++ b/test/torture-s/pr48973-2.c.s @@ -9,7 +9,7 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, v($0) i32.const $push1=, 31 i32.shr_u $1=, $pop0, $pop1 @@ -20,10 +20,11 @@ main: # @main i32.store8 $discard=, s($0), $pop5 i32.const $push6=, 1 i32.ne $push7=, $1, $pop6 - br_if $pop7, .LBB0_2 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr49039.c.s b/test/torture-s/pr49039.c.s index ed290f3a1..ba56ed409 100644 --- a/test/torture-s/pr49039.c.s +++ b/test/torture-s/pr49039.c.s @@ -9,35 +9,37 @@ foo: # @foo .local i32, i32, i32 # BB#0: # %entry i32.const $3=, 1 - block .LBB0_6 + block i32.eq $push0=, $0, $3 - br_if $pop0, .LBB0_6 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %entry i32.const $4=, -2 i32.eq $push1=, $1, $4 - br_if $pop1, .LBB0_6 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %if.end - block .LBB0_4 + block i32.gt_u $push4=, $0, $1 i32.select $2=, $pop4, $0, $1 i32.lt_u $push2=, $0, $1 i32.select $push3=, $pop2, $0, $1 i32.ne $push5=, $pop3, $3 - br_if $pop5, .LBB0_4 + br_if $pop5, 0 # 0: down to label1 # BB#3: # %if.then9 i32.const $0=, 0 i32.load $push6=, cnt($0) i32.add $push7=, $pop6, $3 i32.store $discard=, cnt($0), $pop7 .LBB0_4: # %if.end10 + end_block # label1: i32.ne $push8=, $2, $4 - br_if $pop8, .LBB0_6 + br_if $pop8, 0 # 0: down to label0 # BB#5: # %if.then12 i32.const $0=, 0 i32.load $push9=, cnt($0) i32.add $push10=, $pop9, $3 i32.store $discard=, cnt($0), $pop10 .LBB0_6: # %cleanup + end_block # label0: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -54,14 +56,15 @@ main: # @main i32.const $push0=, 1 call foo@FUNCTION, $pop1, $pop0 i32.const $0=, 0 - block .LBB1_2 + block i32.load $push2=, cnt($0) i32.const $push3=, 2 i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label2 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr49073.c.s b/test/torture-s/pr49073.c.s index f6f4f60c8..877bf16f8 100644 --- a/test/torture-s/pr49073.c.s +++ b/test/torture-s/pr49073.c.s @@ -12,46 +12,50 @@ main: # @main i32.const $2=, a+4 .LBB0_1: # %do.body # =>This Inner Loop Header: Depth=1 - block .LBB0_6 - loop .LBB0_5 + block + loop # label1: i32.load $0=, 0($2) i32.const $1=, 1 - block .LBB0_4 + block i32.and $push1=, $3, $1 i32.const $push12=, 0 i32.eq $push13=, $pop1, $pop12 - br_if $pop13, .LBB0_4 + br_if $pop13, 0 # 0: down to label3 # BB#2: # %do.body # in Loop: Header=BB0_1 Depth=1 i32.const $push2=, 4 i32.ne $push3=, $0, $pop2 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label3 # BB#3: # %if.then i32.const $0=, 0 i32.load $push9=, c($0) i32.add $push0=, $pop9, $1 i32.store $0=, c($0), $pop0 - br .LBB0_6 + br 3 # 3: down to label0 .LBB0_4: # %if.end # in Loop: Header=BB0_1 Depth=1 + end_block # label3: i32.const $push4=, 3 i32.eq $3=, $0, $pop4 i32.const $push7=, 4 i32.add $2=, $2, $pop7 i32.const $push5=, 7 i32.lt_s $push6=, $0, $pop5 - br_if $pop6, .LBB0_1 -.LBB0_5: # %do.endthread-pre-split + br_if $pop6, 0 # 0: up to label1 +# BB#5: # %do.endthread-pre-split + end_loop # label2: i32.const $push8=, 0 i32.load $0=, c($pop8) .LBB0_6: # %do.end - block .LBB0_8 + end_block # label0: + block i32.ne $push10=, $0, $1 - br_if $pop10, .LBB0_8 + br_if $pop10, 0 # 0: down to label4 # BB#7: # %if.end6 i32.const $push11=, 0 return $pop11 .LBB0_8: # %if.then5 + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr49161.c.s b/test/torture-s/pr49161.c.s index ba683b3fb..97d35ae5b 100644 --- a/test/torture-s/pr49161.c.s +++ b/test/torture-s/pr49161.c.s @@ -10,15 +10,16 @@ bar: # @bar # BB#0: # %entry i32.const $1=, 0 i32.load $2=, c($1) - block .LBB0_2 + block i32.const $push0=, 1 i32.add $push1=, $2, $pop0 i32.store $discard=, c($1), $pop1 i32.ne $push2=, $2, $0 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -33,28 +34,29 @@ foo: # @foo .local i32 # BB#0: # %entry i32.const $1=, 2 - block .LBB1_7 - block .LBB1_6 - block .LBB1_5 - block .LBB1_3 + block + block + block + block i32.const $push0=, -3 i32.add $push1=, $0, $pop0 i32.ge_u $push2=, $pop1, $1 - br_if $pop2, .LBB1_3 + br_if $pop2, 0 # 0: down to label4 # BB#1: # %l4 i32.const $push8=, 0 call bar@FUNCTION, $pop8 i32.const $push9=, 4 i32.eq $push10=, $0, $pop9 - br_if $pop10, .LBB1_5 + br_if $pop10, 1 # 1: down to label3 # BB#2: # %if.then.thread i32.const $push11=, 1 call bar@FUNCTION, $pop11 - br .LBB1_6 + br 2 # 2: down to label2 .LBB1_3: # %entry + end_block # label4: i32.const $push3=, 6 i32.ne $push4=, $0, $pop3 - br_if $pop4, .LBB1_7 + br_if $pop4, 2 # 2: down to label1 # BB#4: # %if.then i32.const $push5=, -1 call bar@FUNCTION, $pop5 @@ -63,11 +65,14 @@ foo: # @foo i32.const $push7=, 1 call bar@FUNCTION, $pop7 .LBB1_5: # %if.then4 + end_block # label3: i32.const $push12=, -1 call bar@FUNCTION, $pop12 .LBB1_6: # %if.end5 + end_block # label2: call bar@FUNCTION, $1 .LBB1_7: # %return + end_block # label1: return .Lfunc_end1: .size foo, .Lfunc_end1-foo @@ -83,13 +88,14 @@ main: # @main i32.const $0=, 3 call foo@FUNCTION, $0 i32.const $1=, 0 - block .LBB2_2 + block i32.load $push0=, c($1) i32.ne $push1=, $pop0, $0 - br_if $pop1, .LBB2_2 + br_if $pop1, 0 # 0: down to label5 # BB#1: # %if.end return $1 .LBB2_2: # %if.then + end_block # label5: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr49218.c.s b/test/torture-s/pr49218.c.s index 2a29a7e05..72b874bff 100644 --- a/test/torture-s/pr49218.c.s +++ b/test/torture-s/pr49218.c.s @@ -26,16 +26,16 @@ main: # @main i32.add $push2=, $11, $pop1 i64.load $6=, 0($pop2) i64.const $2=, 0 - block .LBB0_2 + block i64.eq $push6=, $6, $2 i64.const $push4=, 10 i64.gt_u $push5=, $5, $pop4 i64.gt_s $push3=, $6, $2 i32.select $push7=, $pop6, $pop5, $pop3 - br_if $pop7, .LBB0_2 + br_if $pop7, 0 # 0: down to label0 .LBB0_1: # %do.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i64.const $3=, 1 i64.add $0=, $5, $3 i64.lt_u $4=, $0, $5 @@ -50,8 +50,10 @@ main: # @main i64.xor $push9=, $0, $pop8 i64.or $push10=, $pop9, $6 i64.ne $push11=, $pop10, $2 - br_if $pop11, .LBB0_1 + br_if $pop11, 0 # 0: up to label1 .LBB0_2: # %if.end + end_loop # label2: + end_block # label0: i32.const $9=, 16 i32.add $12=, $12, $9 i32.const $9=, __stack_pointer diff --git a/test/torture-s/pr49279.c.s b/test/torture-s/pr49279.c.s index fd9ab8913..6487ea90d 100644 --- a/test/torture-s/pr49279.c.s +++ b/test/torture-s/pr49279.c.s @@ -71,11 +71,11 @@ main: # @main i32.add $3=, $5, $3 i32.const $4=, 8 i32.add $4=, $5, $4 - block .LBB2_2 + block i32.call $push0=, foo@FUNCTION, $3, $4 i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB2_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push3=, 0 i32.const $2=, 16 @@ -84,6 +84,7 @@ main: # @main i32.store $5=, 0($2), $5 return $pop3 .LBB2_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr49281.c.s b/test/torture-s/pr49281.c.s index 9c72e3c45..d8a34ed79 100644 --- a/test/torture-s/pr49281.c.s +++ b/test/torture-s/pr49281.c.s @@ -41,46 +41,48 @@ main: # @main .local i32, i32, i32 # BB#0: # %entry i32.const $0=, 43 - block .LBB2_8 + block i32.call $push0=, foo@FUNCTION, $0 i32.const $push1=, 172 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB2_8 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.const $1=, 1 i32.call $push3=, foo@FUNCTION, $1 i32.const $push4=, 4 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB2_8 + br_if $pop5, 0 # 0: down to label0 # BB#2: # %lor.lhs.false3 i32.const $2=, 2 i32.call $push6=, foo@FUNCTION, $2 i32.const $push7=, 12 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB2_8 + br_if $pop8, 0 # 0: down to label0 # BB#3: # %if.end - block .LBB2_7 + block i32.call $push9=, bar@FUNCTION, $0 i32.const $push10=, 175 i32.ne $push11=, $pop9, $pop10 - br_if $pop11, .LBB2_7 + br_if $pop11, 0 # 0: down to label1 # BB#4: # %lor.lhs.false8 i32.call $push12=, bar@FUNCTION, $1 i32.const $push13=, 7 i32.ne $push14=, $pop12, $pop13 - br_if $pop14, .LBB2_7 + br_if $pop14, 0 # 0: down to label1 # BB#5: # %lor.lhs.false11 i32.call $push15=, bar@FUNCTION, $2 i32.const $push16=, 11 i32.ne $push17=, $pop15, $pop16 - br_if $pop17, .LBB2_7 + br_if $pop17, 0 # 0: down to label1 # BB#6: # %if.end15 i32.const $push18=, 0 return $pop18 .LBB2_7: # %if.then14 + end_block # label1: call abort@FUNCTION unreachable .LBB2_8: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr49712.c.s b/test/torture-s/pr49712.c.s index 35a8447d4..0d1b8516b 100644 --- a/test/torture-s/pr49712.c.s +++ b/test/torture-s/pr49712.c.s @@ -20,15 +20,16 @@ bar: # @bar .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, d($0) i32.gt_s $push1=, $pop0, $0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %for.cond4.preheader.preheader i32.store $push2=, e($0), $0 i32.const $push3=, 1 i32.store $discard=, d($pop2), $pop3 .LBB1_2: # %for.end9 + end_block # label0: return $0 .Lfunc_end1: .size bar, .Lfunc_end1-bar @@ -43,29 +44,31 @@ main: # @main # BB#0: # %entry i32.const $2=, 0 i32.store $0=, b($2), $2 - block .LBB2_4 + block i32.load $push0=, c($0) i32.const $push4=, 0 i32.eq $push5=, $pop0, $pop4 - br_if $pop5, .LBB2_4 + br_if $pop5, 0 # 0: down to label1 # BB#1: # %while.body.preheader i32.const $1=, 1 i32.load $push1=, d($0) i32.lt_s $2=, $pop1, $1 .LBB2_2: # %while.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_4 + loop # label2: i32.and $push2=, $2, $1 i32.const $push6=, 0 i32.eq $push7=, $pop2, $pop6 - br_if $pop7, .LBB2_2 + br_if $pop7, 0 # 0: up to label2 # BB#3: # %for.cond4.preheader.preheader.i # in Loop: Header=BB2_2 Depth=1 i32.store $2=, a($0), $0 i32.store $discard=, e($2), $2 i32.store $discard=, d($2), $1 - br .LBB2_2 + br 0 # 0: up to label2 .LBB2_4: # %for.inc.1 + end_loop # label3: + end_block # label1: i32.const $2=, 0 i32.const $push3=, 2 i32.store $discard=, b($2), $pop3 diff --git a/test/torture-s/pr49886.c.s b/test/torture-s/pr49886.c.s index f87a70269..93de7786a 100644 --- a/test/torture-s/pr49886.c.s +++ b/test/torture-s/pr49886.c.s @@ -49,123 +49,132 @@ mark_cell: # @mark_cell .param i32 .local i32, i32, i32 # BB#0: # %entry - block .LBB3_22 + block i32.const $push27=, 0 i32.eq $push28=, $0, $pop27 - br_if $pop28, .LBB3_22 + br_if $pop28, 0 # 0: down to label0 # BB#1: # %entry i32.const $push1=, 0 i32.load $push0=, cond($pop1) i32.const $push29=, 0 i32.eq $push30=, $pop0, $pop29 - br_if $pop30, .LBB3_22 + br_if $pop30, 0 # 0: down to label0 # BB#2: # %land.lhs.true i32.const $1=, 4 i32.load $push2=, 8($0) i32.ne $push3=, $pop2, $1 - br_if $pop3, .LBB3_22 + br_if $pop3, 0 # 0: down to label0 # BB#3: # %land.lhs.true2 i32.load $0=, 0($0) i32.const $push31=, 0 i32.eq $push32=, $0, $pop31 - br_if $pop32, .LBB3_22 + br_if $pop32, 0 # 0: down to label0 # BB#4: # %land.lhs.true4 i32.const $2=, 2 i32.add $3=, $0, $2 - block .LBB3_21 + block i32.load8_u $push4=, 0($3) i32.and $push5=, $pop4, $1 i32.const $push33=, 0 i32.eq $push34=, $pop5, $pop33 - br_if $pop34, .LBB3_21 + br_if $pop34, 0 # 0: down to label1 # BB#5: # %land.lhs.true17 - block .LBB3_20 + block i32.load8_u $push6=, 0($3) i32.and $push7=, $pop6, $2 i32.const $push35=, 0 i32.eq $push36=, $pop7, $pop35 - br_if $pop36, .LBB3_20 + br_if $pop36, 0 # 0: down to label2 # BB#6: # %land.lhs.true33 i32.const $2=, 1 - block .LBB3_19 + block i32.load8_u $push8=, 0($3) i32.and $push9=, $pop8, $2 i32.const $push37=, 0 i32.eq $push38=, $pop9, $pop37 - br_if $pop38, .LBB3_19 + br_if $pop38, 0 # 0: down to label3 # BB#7: # %land.lhs.true49 i32.add $0=, $0, $2 - block .LBB3_18 + block i32.load8_u $push10=, 0($0) i32.const $push11=, 7 i32.shr_u $push12=, $pop10, $pop11 i32.const $push39=, 0 i32.eq $push40=, $pop12, $pop39 - br_if $pop40, .LBB3_18 + br_if $pop40, 0 # 0: down to label4 # BB#8: # %land.lhs.true65 - block .LBB3_17 + block i32.load8_u $push13=, 0($0) i32.const $push14=, 64 i32.and $push15=, $pop13, $pop14 i32.const $push41=, 0 i32.eq $push42=, $pop15, $pop41 - br_if $pop42, .LBB3_17 + br_if $pop42, 0 # 0: down to label5 # BB#9: # %land.lhs.true81 - block .LBB3_16 + block i32.load8_u $push16=, 0($0) i32.const $push17=, 32 i32.and $push18=, $pop16, $pop17 i32.const $push43=, 0 i32.eq $push44=, $pop18, $pop43 - br_if $pop44, .LBB3_16 + br_if $pop44, 0 # 0: down to label6 # BB#10: # %land.lhs.true97 - block .LBB3_15 + block i32.load8_u $push19=, 0($0) i32.const $push20=, 16 i32.and $push21=, $pop19, $pop20 i32.const $push45=, 0 i32.eq $push46=, $pop21, $pop45 - br_if $pop46, .LBB3_15 + br_if $pop46, 0 # 0: down to label7 # BB#11: # %land.lhs.true113 - block .LBB3_14 + block i32.load8_u $push22=, 0($0) i32.const $push23=, 8 i32.and $push24=, $pop22, $pop23 i32.const $push47=, 0 i32.eq $push48=, $pop24, $pop47 - br_if $pop48, .LBB3_14 + br_if $pop48, 0 # 0: down to label8 # BB#12: # %land.lhs.true129 i32.load8_u $push25=, 0($0) i32.and $push26=, $pop25, $1 - br_if $pop26, .LBB3_22 + br_if $pop26, 8 # 8: down to label0 # BB#13: # %if.then134 call never_ever@FUNCTION, $0, $0 unreachable .LBB3_14: # %if.then118 + end_block # label8: call never_ever@FUNCTION, $0, $0 unreachable .LBB3_15: # %if.then102 + end_block # label7: call never_ever@FUNCTION, $0, $0 unreachable .LBB3_16: # %if.then86 + end_block # label6: call never_ever@FUNCTION, $0, $0 unreachable .LBB3_17: # %if.then70 + end_block # label5: call never_ever@FUNCTION, $0, $0 unreachable .LBB3_18: # %if.then54 + end_block # label4: call never_ever@FUNCTION, $0, $0 unreachable .LBB3_19: # %if.then38 + end_block # label3: call never_ever@FUNCTION, $0, $0 unreachable .LBB3_20: # %if.then22 + end_block # label2: call never_ever@FUNCTION, $0, $0 unreachable .LBB3_21: # %if.then7 + end_block # label1: call never_ever@FUNCTION, $0, $0 unreachable .LBB3_22: # %if.end137 + end_block # label0: return .Lfunc_end3: .size mark_cell, .Lfunc_end3-mark_cell diff --git a/test/torture-s/pr51466.c.s b/test/torture-s/pr51466.c.s index 6cb5dc7fb..8ef47da6d 100644 --- a/test/torture-s/pr51466.c.s +++ b/test/torture-s/pr51466.c.s @@ -109,23 +109,24 @@ main: # @main i32.const $push1=, 2 i32.call $1=, bar@FUNCTION, $pop1 i32.const $0=, 8 - block .LBB3_4 + block i32.ne $push2=, $1, $0 - br_if $pop2, .LBB3_4 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %lor.lhs.false3 i32.const $1=, 0 i32.call $push3=, baz@FUNCTION, $1 i32.ne $push4=, $pop3, $0 - br_if $pop4, .LBB3_4 + br_if $pop4, 0 # 0: down to label0 # BB#2: # %lor.lhs.false6 i32.const $push5=, 1 i32.call $push6=, baz@FUNCTION, $pop5 i32.const $push7=, 6 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB3_4 + br_if $pop8, 0 # 0: down to label0 # BB#3: # %if.end return $1 .LBB3_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr51581-1.c.s b/test/torture-s/pr51581-1.c.s index e56ca12c2..c7d9fbee2 100644 --- a/test/torture-s/pr51581-1.c.s +++ b/test/torture-s/pr51581-1.c.s @@ -10,7 +10,7 @@ f1: # @f1 i32.const $2=, -16384 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $2 @@ -24,8 +24,9 @@ f1: # @f1 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB0_1 -.LBB0_2: # %for.end + br_if $2, 0 # 0: up to label0 +# BB#2: # %for.end + end_loop # label1: return .Lfunc_end0: .size f1, .Lfunc_end0-f1 @@ -40,7 +41,7 @@ f2: # @f2 i32.const $2=, -16384 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label2: i32.const $0=, 16384 i32.const $push0=, b i32.add $push1=, $pop0, $2 @@ -54,8 +55,9 @@ f2: # @f2 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB1_1 -.LBB1_2: # %for.end + br_if $2, 0 # 0: up to label2 +# BB#2: # %for.end + end_loop # label3: return .Lfunc_end1: .size f2, .Lfunc_end1-f2 @@ -70,7 +72,7 @@ f3: # @f3 i32.const $2=, -16384 .LBB2_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label4: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $2 @@ -84,8 +86,9 @@ f3: # @f3 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB2_1 -.LBB2_2: # %for.end + br_if $2, 0 # 0: up to label4 +# BB#2: # %for.end + end_loop # label5: return .Lfunc_end2: .size f3, .Lfunc_end2-f3 @@ -100,7 +103,7 @@ f4: # @f4 i32.const $2=, -16384 .LBB3_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB3_2 + loop # label6: i32.const $0=, 16384 i32.const $push0=, b i32.add $push1=, $pop0, $2 @@ -114,8 +117,9 @@ f4: # @f4 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB3_1 -.LBB3_2: # %for.end + br_if $2, 0 # 0: up to label6 +# BB#2: # %for.end + end_loop # label7: return .Lfunc_end3: .size f4, .Lfunc_end3-f4 @@ -130,7 +134,7 @@ f5: # @f5 i32.const $2=, -16384 .LBB4_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB4_2 + loop # label8: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $2 @@ -144,8 +148,9 @@ f5: # @f5 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB4_1 -.LBB4_2: # %for.end + br_if $2, 0 # 0: up to label8 +# BB#2: # %for.end + end_loop # label9: return .Lfunc_end4: .size f5, .Lfunc_end4-f5 @@ -160,7 +165,7 @@ f6: # @f6 i32.const $2=, -16384 .LBB5_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB5_2 + loop # label10: i32.const $0=, 16384 i32.const $push0=, b i32.add $push1=, $pop0, $2 @@ -174,8 +179,9 @@ f6: # @f6 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB5_1 -.LBB5_2: # %for.end + br_if $2, 0 # 0: up to label10 +# BB#2: # %for.end + end_loop # label11: return .Lfunc_end5: .size f6, .Lfunc_end5-f6 @@ -191,7 +197,7 @@ f7: # @f7 i32.const $3=, -16384 .LBB6_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB6_2 + loop # label12: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $3 @@ -211,8 +217,9 @@ f7: # @f7 i32.store $discard=, 0($pop13), $pop10 i32.const $push14=, 4 i32.add $3=, $3, $pop14 - br_if $3, .LBB6_1 -.LBB6_2: # %for.end + br_if $3, 0 # 0: up to label12 +# BB#2: # %for.end + end_loop # label13: return .Lfunc_end6: .size f7, .Lfunc_end6-f7 @@ -228,7 +235,7 @@ f8: # @f8 i32.const $2=, -16384 .LBB7_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB7_2 + loop # label14: i32.const $0=, 16384 i32.const $push7=, d i32.add $push8=, $pop7, $2 @@ -243,8 +250,9 @@ f8: # @f8 i64.store32 $discard=, 0($pop9), $pop6 i32.const $push10=, 4 i32.add $2=, $2, $pop10 - br_if $2, .LBB7_1 -.LBB7_2: # %for.end + br_if $2, 0 # 0: up to label14 +# BB#2: # %for.end + end_loop # label15: return .Lfunc_end7: .size f8, .Lfunc_end7-f8 @@ -260,7 +268,7 @@ f9: # @f9 i32.const $3=, -16384 .LBB8_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB8_2 + loop # label16: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $3 @@ -280,8 +288,9 @@ f9: # @f9 i32.store $discard=, 0($pop13), $pop10 i32.const $push14=, 4 i32.add $3=, $3, $pop14 - br_if $3, .LBB8_1 -.LBB8_2: # %for.end + br_if $3, 0 # 0: up to label16 +# BB#2: # %for.end + end_loop # label17: return .Lfunc_end8: .size f9, .Lfunc_end8-f9 @@ -297,7 +306,7 @@ f10: # @f10 i32.const $2=, -16384 .LBB9_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB9_2 + loop # label18: i32.const $0=, 16384 i32.const $push7=, d i32.add $push8=, $pop7, $2 @@ -312,8 +321,9 @@ f10: # @f10 i64.store32 $discard=, 0($pop9), $pop6 i32.const $push10=, 4 i32.add $2=, $2, $pop10 - br_if $2, .LBB9_1 -.LBB9_2: # %for.end + br_if $2, 0 # 0: up to label18 +# BB#2: # %for.end + end_loop # label19: return .Lfunc_end9: .size f10, .Lfunc_end9-f10 @@ -329,7 +339,7 @@ f11: # @f11 i32.const $3=, -16384 .LBB10_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB10_2 + loop # label20: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $3 @@ -349,8 +359,9 @@ f11: # @f11 i32.store $discard=, 0($pop13), $pop10 i32.const $push14=, 4 i32.add $3=, $3, $pop14 - br_if $3, .LBB10_1 -.LBB10_2: # %for.end + br_if $3, 0 # 0: up to label20 +# BB#2: # %for.end + end_loop # label21: return .Lfunc_end10: .size f11, .Lfunc_end10-f11 @@ -366,7 +377,7 @@ f12: # @f12 i32.const $5=, -16384 .LBB11_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB11_2 + loop # label22: i32.const $0=, 16384 i32.const $push0=, b i32.add $push1=, $pop0, $5 @@ -388,8 +399,9 @@ f12: # @f12 i32.shr_u $push11=, $pop10, $4 i32.store $discard=, 0($pop14), $pop11 i32.add $5=, $5, $4 - br_if $5, .LBB11_1 -.LBB11_2: # %for.end + br_if $5, 0 # 0: up to label22 +# BB#2: # %for.end + end_loop # label23: return .Lfunc_end11: .size f12, .Lfunc_end11-f12 @@ -406,7 +418,7 @@ main: # @main i32.const $4=, -16384 .LBB12_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB12_2 + loop # label24: #APP #NO_APP i32.const $0=, a @@ -424,8 +436,9 @@ main: # @main i32.add $6=, $3, $2 i32.const $3=, 4 i32.add $4=, $4, $3 - br_if $4, .LBB12_1 -.LBB12_2: # %for.end + br_if $4, 0 # 0: up to label24 +# BB#2: # %for.end + end_loop # label25: i32.const $10=, 0 i32.const $push6=, -2147483648 i32.store $discard=, a($10), $pop6 @@ -440,8 +453,8 @@ main: # @main copy_local $8=, $10 .LBB12_3: # %for.body4 # =>This Inner Loop Header: Depth=1 - block .LBB12_32 - loop .LBB12_6 + block + loop # label27: i32.const $4=, c i32.const $5=, 3 i32.add $push10=, $4, $10 @@ -450,7 +463,7 @@ main: # @main i32.load $push13=, 0($pop12) i32.div_s $push14=, $pop13, $5 i32.ne $push15=, $pop11, $pop14 - br_if $pop15, .LBB12_32 + br_if $pop15, 2 # 2: down to label26 # BB#4: # %lor.lhs.false # in Loop: Header=BB12_3 Depth=1 i32.const $6=, d @@ -460,23 +473,24 @@ main: # @main i32.load $push19=, 0($pop18) i32.div_u $push20=, $pop19, $5 i32.ne $push21=, $pop17, $pop20 - br_if $pop21, .LBB12_32 + br_if $pop21, 2 # 2: down to label26 # BB#5: # %for.cond2 # in Loop: Header=BB12_3 Depth=1 i32.add $8=, $8, $2 i32.add $10=, $10, $3 i32.const $7=, 4095 i32.le_s $push22=, $8, $7 - br_if $pop22, .LBB12_3 -.LBB12_6: # %for.end14 + br_if $pop22, 0 # 0: up to label27 +# BB#6: # %for.end14 + end_loop # label28: call f3@FUNCTION call f4@FUNCTION i32.const $10=, 0 copy_local $9=, $10 .LBB12_7: # %for.body17 # =>This Inner Loop Header: Depth=1 - block .LBB12_31 - loop .LBB12_10 + block + loop # label30: i32.const $8=, 18 i32.add $push23=, $4, $10 i32.load $push24=, 0($pop23) @@ -484,7 +498,7 @@ main: # @main i32.load $push26=, 0($pop25) i32.div_s $push27=, $pop26, $8 i32.ne $push28=, $pop24, $pop27 - br_if $pop28, .LBB12_31 + br_if $pop28, 2 # 2: down to label29 # BB#8: # %lor.lhs.false22 # in Loop: Header=BB12_7 Depth=1 i32.add $push29=, $6, $10 @@ -493,22 +507,23 @@ main: # @main i32.load $push32=, 0($pop31) i32.div_u $push33=, $pop32, $8 i32.ne $push34=, $pop30, $pop33 - br_if $pop34, .LBB12_31 + br_if $pop34, 2 # 2: down to label29 # BB#9: # %for.cond15 # in Loop: Header=BB12_7 Depth=1 i32.add $9=, $9, $2 i32.add $10=, $10, $3 i32.le_s $push35=, $9, $7 - br_if $pop35, .LBB12_7 -.LBB12_10: # %for.end31 + br_if $pop35, 0 # 0: up to label30 +# BB#10: # %for.end31 + end_loop # label31: call f5@FUNCTION call f6@FUNCTION i32.const $10=, 0 copy_local $11=, $10 .LBB12_11: # %for.body34 # =>This Inner Loop Header: Depth=1 - block .LBB12_30 - loop .LBB12_14 + block + loop # label33: i32.const $9=, 19 i32.add $push36=, $4, $10 i32.load $push37=, 0($pop36) @@ -516,7 +531,7 @@ main: # @main i32.load $push39=, 0($pop38) i32.div_s $push40=, $pop39, $9 i32.ne $push41=, $pop37, $pop40 - br_if $pop41, .LBB12_30 + br_if $pop41, 2 # 2: down to label32 # BB#12: # %lor.lhs.false39 # in Loop: Header=BB12_11 Depth=1 i32.add $push42=, $6, $10 @@ -525,29 +540,30 @@ main: # @main i32.load $push45=, 0($pop44) i32.div_u $push46=, $pop45, $9 i32.ne $push47=, $pop43, $pop46 - br_if $pop47, .LBB12_30 + br_if $pop47, 2 # 2: down to label32 # BB#13: # %for.cond32 # in Loop: Header=BB12_11 Depth=1 i32.add $11=, $11, $2 i32.add $10=, $10, $3 i32.le_s $push48=, $11, $7 - br_if $pop48, .LBB12_11 -.LBB12_14: # %for.end48 + br_if $pop48, 0 # 0: up to label33 +# BB#14: # %for.end48 + end_loop # label34: call f7@FUNCTION call f8@FUNCTION i32.const $10=, 0 copy_local $11=, $10 .LBB12_15: # %for.body51 # =>This Inner Loop Header: Depth=1 - block .LBB12_29 - loop .LBB12_18 + block + loop # label36: i32.add $push49=, $4, $10 i32.load $push50=, 0($pop49) i32.add $push51=, $0, $10 i32.load $push52=, 0($pop51) i32.div_s $push53=, $pop52, $5 i32.ne $push54=, $pop50, $pop53 - br_if $pop54, .LBB12_29 + br_if $pop54, 2 # 2: down to label35 # BB#16: # %lor.lhs.false56 # in Loop: Header=BB12_15 Depth=1 i32.add $push55=, $6, $10 @@ -556,29 +572,30 @@ main: # @main i32.load $push58=, 0($pop57) i32.div_u $push59=, $pop58, $5 i32.ne $push60=, $pop56, $pop59 - br_if $pop60, .LBB12_29 + br_if $pop60, 2 # 2: down to label35 # BB#17: # %for.cond49 # in Loop: Header=BB12_15 Depth=1 i32.add $11=, $11, $2 i32.add $10=, $10, $3 i32.le_s $push61=, $11, $7 - br_if $pop61, .LBB12_15 -.LBB12_18: # %for.end65 + br_if $pop61, 0 # 0: up to label36 +# BB#18: # %for.end65 + end_loop # label37: call f9@FUNCTION call f10@FUNCTION i32.const $10=, 0 copy_local $5=, $10 .LBB12_19: # %for.body68 # =>This Inner Loop Header: Depth=1 - block .LBB12_28 - loop .LBB12_22 + block + loop # label39: i32.add $push62=, $4, $10 i32.load $push63=, 0($pop62) i32.add $push64=, $0, $10 i32.load $push65=, 0($pop64) i32.div_s $push66=, $pop65, $8 i32.ne $push67=, $pop63, $pop66 - br_if $pop67, .LBB12_28 + br_if $pop67, 2 # 2: down to label38 # BB#20: # %lor.lhs.false73 # in Loop: Header=BB12_19 Depth=1 i32.add $push68=, $6, $10 @@ -587,29 +604,30 @@ main: # @main i32.load $push71=, 0($pop70) i32.div_u $push72=, $pop71, $8 i32.ne $push73=, $pop69, $pop72 - br_if $pop73, .LBB12_28 + br_if $pop73, 2 # 2: down to label38 # BB#21: # %for.cond66 # in Loop: Header=BB12_19 Depth=1 i32.add $5=, $5, $2 i32.add $10=, $10, $3 i32.le_s $push74=, $5, $7 - br_if $pop74, .LBB12_19 -.LBB12_22: # %for.end82 + br_if $pop74, 0 # 0: up to label39 +# BB#22: # %for.end82 + end_loop # label40: call f11@FUNCTION call f12@FUNCTION i32.const $10=, 0 copy_local $5=, $10 .LBB12_23: # %for.body85 # =>This Inner Loop Header: Depth=1 - block .LBB12_27 - loop .LBB12_26 + block + loop # label42: i32.add $push75=, $4, $10 i32.load $push76=, 0($pop75) i32.add $push77=, $0, $10 i32.load $push78=, 0($pop77) i32.div_s $push79=, $pop78, $9 i32.ne $push80=, $pop76, $pop79 - br_if $pop80, .LBB12_27 + br_if $pop80, 2 # 2: down to label41 # BB#24: # %lor.lhs.false90 # in Loop: Header=BB12_23 Depth=1 i32.add $push81=, $6, $10 @@ -618,32 +636,39 @@ main: # @main i32.load $push84=, 0($pop83) i32.div_u $push85=, $pop84, $9 i32.ne $push86=, $pop82, $pop85 - br_if $pop86, .LBB12_27 + br_if $pop86, 2 # 2: down to label41 # BB#25: # %for.cond83 # in Loop: Header=BB12_23 Depth=1 i32.add $5=, $5, $2 i32.add $10=, $10, $3 i32.le_s $push87=, $5, $7 - br_if $pop87, .LBB12_23 -.LBB12_26: # %for.end99 + br_if $pop87, 0 # 0: up to label42 +# BB#26: # %for.end99 + end_loop # label43: i32.const $push88=, 0 return $pop88 .LBB12_27: # %if.then95 + end_block # label41: call abort@FUNCTION unreachable .LBB12_28: # %if.then78 + end_block # label38: call abort@FUNCTION unreachable .LBB12_29: # %if.then61 + end_block # label35: call abort@FUNCTION unreachable .LBB12_30: # %if.then44 + end_block # label32: call abort@FUNCTION unreachable .LBB12_31: # %if.then27 + end_block # label29: call abort@FUNCTION unreachable .LBB12_32: # %if.then + end_block # label26: call abort@FUNCTION unreachable .Lfunc_end12: diff --git a/test/torture-s/pr51581-2.c.s b/test/torture-s/pr51581-2.c.s index 2848a0b05..35a6e32ff 100644 --- a/test/torture-s/pr51581-2.c.s +++ b/test/torture-s/pr51581-2.c.s @@ -10,7 +10,7 @@ f1: # @f1 i32.const $2=, -16384 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $2 @@ -24,8 +24,9 @@ f1: # @f1 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB0_1 -.LBB0_2: # %for.end + br_if $2, 0 # 0: up to label0 +# BB#2: # %for.end + end_loop # label1: return .Lfunc_end0: .size f1, .Lfunc_end0-f1 @@ -40,7 +41,7 @@ f2: # @f2 i32.const $2=, -16384 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label2: i32.const $0=, 16384 i32.const $push0=, b i32.add $push1=, $pop0, $2 @@ -54,8 +55,9 @@ f2: # @f2 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB1_1 -.LBB1_2: # %for.end + br_if $2, 0 # 0: up to label2 +# BB#2: # %for.end + end_loop # label3: return .Lfunc_end1: .size f2, .Lfunc_end1-f2 @@ -70,7 +72,7 @@ f3: # @f3 i32.const $2=, -16384 .LBB2_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label4: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $2 @@ -84,8 +86,9 @@ f3: # @f3 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB2_1 -.LBB2_2: # %for.end + br_if $2, 0 # 0: up to label4 +# BB#2: # %for.end + end_loop # label5: return .Lfunc_end2: .size f3, .Lfunc_end2-f3 @@ -100,7 +103,7 @@ f4: # @f4 i32.const $2=, -16384 .LBB3_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB3_2 + loop # label6: i32.const $0=, 16384 i32.const $push0=, b i32.add $push1=, $pop0, $2 @@ -114,8 +117,9 @@ f4: # @f4 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB3_1 -.LBB3_2: # %for.end + br_if $2, 0 # 0: up to label6 +# BB#2: # %for.end + end_loop # label7: return .Lfunc_end3: .size f4, .Lfunc_end3-f4 @@ -130,7 +134,7 @@ f5: # @f5 i32.const $2=, -16384 .LBB4_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB4_2 + loop # label8: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $2 @@ -144,8 +148,9 @@ f5: # @f5 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB4_1 -.LBB4_2: # %for.end + br_if $2, 0 # 0: up to label8 +# BB#2: # %for.end + end_loop # label9: return .Lfunc_end4: .size f5, .Lfunc_end4-f5 @@ -160,7 +165,7 @@ f6: # @f6 i32.const $2=, -16384 .LBB5_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB5_2 + loop # label10: i32.const $0=, 16384 i32.const $push0=, b i32.add $push1=, $pop0, $2 @@ -174,8 +179,9 @@ f6: # @f6 i32.store $discard=, 0($pop7), $1 i32.const $push8=, 4 i32.add $2=, $2, $pop8 - br_if $2, .LBB5_1 -.LBB5_2: # %for.end + br_if $2, 0 # 0: up to label10 +# BB#2: # %for.end + end_loop # label11: return .Lfunc_end5: .size f6, .Lfunc_end5-f6 @@ -191,7 +197,7 @@ f7: # @f7 i32.const $3=, -16384 .LBB6_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB6_2 + loop # label12: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $3 @@ -214,8 +220,9 @@ f7: # @f7 i32.store $discard=, 0($pop16), $pop13 i32.const $push17=, 4 i32.add $3=, $3, $pop17 - br_if $3, .LBB6_1 -.LBB6_2: # %for.end + br_if $3, 0 # 0: up to label12 +# BB#2: # %for.end + end_loop # label13: return .Lfunc_end6: .size f7, .Lfunc_end6-f7 @@ -231,7 +238,7 @@ f8: # @f8 i32.const $3=, -16384 .LBB7_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB7_2 + loop # label14: i32.const $0=, 16384 i32.const $push0=, b i32.add $push1=, $pop0, $3 @@ -251,8 +258,9 @@ f8: # @f8 i32.store $discard=, 0($pop13), $pop10 i32.const $push14=, 4 i32.add $3=, $3, $pop14 - br_if $3, .LBB7_1 -.LBB7_2: # %for.end + br_if $3, 0 # 0: up to label14 +# BB#2: # %for.end + end_loop # label15: return .Lfunc_end7: .size f8, .Lfunc_end7-f8 @@ -268,7 +276,7 @@ f9: # @f9 i32.const $3=, -16384 .LBB8_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB8_2 + loop # label16: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $3 @@ -291,8 +299,9 @@ f9: # @f9 i32.store $discard=, 0($pop16), $pop13 i32.const $push17=, 4 i32.add $3=, $3, $pop17 - br_if $3, .LBB8_1 -.LBB8_2: # %for.end + br_if $3, 0 # 0: up to label16 +# BB#2: # %for.end + end_loop # label17: return .Lfunc_end8: .size f9, .Lfunc_end8-f9 @@ -308,7 +317,7 @@ f10: # @f10 i32.const $3=, -16384 .LBB9_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB9_2 + loop # label18: i32.const $0=, 16384 i32.const $push0=, b i32.add $push1=, $pop0, $3 @@ -328,8 +337,9 @@ f10: # @f10 i32.store $discard=, 0($pop13), $pop10 i32.const $push14=, 4 i32.add $3=, $3, $pop14 - br_if $3, .LBB9_1 -.LBB9_2: # %for.end + br_if $3, 0 # 0: up to label18 +# BB#2: # %for.end + end_loop # label19: return .Lfunc_end9: .size f10, .Lfunc_end9-f10 @@ -345,7 +355,7 @@ f11: # @f11 i32.const $3=, -16384 .LBB10_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB10_2 + loop # label20: i32.const $0=, 16384 i32.const $push0=, a i32.add $push1=, $pop0, $3 @@ -368,8 +378,9 @@ f11: # @f11 i32.store $discard=, 0($pop16), $pop13 i32.const $push17=, 4 i32.add $3=, $3, $pop17 - br_if $3, .LBB10_1 -.LBB10_2: # %for.end + br_if $3, 0 # 0: up to label20 +# BB#2: # %for.end + end_loop # label21: return .Lfunc_end10: .size f11, .Lfunc_end10-f11 @@ -385,7 +396,7 @@ f12: # @f12 i32.const $5=, -16384 .LBB11_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB11_2 + loop # label22: i32.const $0=, 16384 i32.const $push0=, b i32.add $push1=, $pop0, $5 @@ -410,8 +421,9 @@ f12: # @f12 i32.add $push14=, $pop13, $1 i32.store $discard=, 0($pop17), $pop14 i32.add $5=, $5, $4 - br_if $5, .LBB11_1 -.LBB11_2: # %for.end + br_if $5, 0 # 0: up to label22 +# BB#2: # %for.end + end_loop # label23: return .Lfunc_end11: .size f12, .Lfunc_end11-f12 @@ -428,7 +440,7 @@ main: # @main i32.const $4=, -16384 .LBB12_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB12_2 + loop # label24: #APP #NO_APP i32.const $0=, a @@ -446,8 +458,9 @@ main: # @main i32.add $6=, $3, $2 i32.const $3=, 4 i32.add $4=, $4, $3 - br_if $4, .LBB12_1 -.LBB12_2: # %for.end + br_if $4, 0 # 0: up to label24 +# BB#2: # %for.end + end_loop # label25: i32.const $10=, 0 i32.const $push6=, -2147483648 i32.store $discard=, a($10), $pop6 @@ -462,8 +475,8 @@ main: # @main copy_local $8=, $10 .LBB12_3: # %for.body4 # =>This Inner Loop Header: Depth=1 - block .LBB12_32 - loop .LBB12_6 + block + loop # label27: i32.const $4=, c i32.const $5=, 3 i32.add $push10=, $4, $10 @@ -472,7 +485,7 @@ main: # @main i32.load $push13=, 0($pop12) i32.rem_s $push14=, $pop13, $5 i32.ne $push15=, $pop11, $pop14 - br_if $pop15, .LBB12_32 + br_if $pop15, 2 # 2: down to label26 # BB#4: # %lor.lhs.false # in Loop: Header=BB12_3 Depth=1 i32.const $6=, d @@ -482,23 +495,24 @@ main: # @main i32.load $push19=, 0($pop18) i32.rem_u $push20=, $pop19, $5 i32.ne $push21=, $pop17, $pop20 - br_if $pop21, .LBB12_32 + br_if $pop21, 2 # 2: down to label26 # BB#5: # %for.cond2 # in Loop: Header=BB12_3 Depth=1 i32.add $8=, $8, $2 i32.add $10=, $10, $3 i32.const $7=, 4095 i32.le_s $push22=, $8, $7 - br_if $pop22, .LBB12_3 -.LBB12_6: # %for.end14 + br_if $pop22, 0 # 0: up to label27 +# BB#6: # %for.end14 + end_loop # label28: call f3@FUNCTION call f4@FUNCTION i32.const $10=, 0 copy_local $9=, $10 .LBB12_7: # %for.body17 # =>This Inner Loop Header: Depth=1 - block .LBB12_31 - loop .LBB12_10 + block + loop # label30: i32.const $8=, 18 i32.add $push23=, $4, $10 i32.load $push24=, 0($pop23) @@ -506,7 +520,7 @@ main: # @main i32.load $push26=, 0($pop25) i32.rem_s $push27=, $pop26, $8 i32.ne $push28=, $pop24, $pop27 - br_if $pop28, .LBB12_31 + br_if $pop28, 2 # 2: down to label29 # BB#8: # %lor.lhs.false22 # in Loop: Header=BB12_7 Depth=1 i32.add $push29=, $6, $10 @@ -515,22 +529,23 @@ main: # @main i32.load $push32=, 0($pop31) i32.rem_u $push33=, $pop32, $8 i32.ne $push34=, $pop30, $pop33 - br_if $pop34, .LBB12_31 + br_if $pop34, 2 # 2: down to label29 # BB#9: # %for.cond15 # in Loop: Header=BB12_7 Depth=1 i32.add $9=, $9, $2 i32.add $10=, $10, $3 i32.le_s $push35=, $9, $7 - br_if $pop35, .LBB12_7 -.LBB12_10: # %for.end31 + br_if $pop35, 0 # 0: up to label30 +# BB#10: # %for.end31 + end_loop # label31: call f5@FUNCTION call f6@FUNCTION i32.const $10=, 0 copy_local $11=, $10 .LBB12_11: # %for.body34 # =>This Inner Loop Header: Depth=1 - block .LBB12_30 - loop .LBB12_14 + block + loop # label33: i32.const $9=, 19 i32.add $push36=, $4, $10 i32.load $push37=, 0($pop36) @@ -538,7 +553,7 @@ main: # @main i32.load $push39=, 0($pop38) i32.rem_s $push40=, $pop39, $9 i32.ne $push41=, $pop37, $pop40 - br_if $pop41, .LBB12_30 + br_if $pop41, 2 # 2: down to label32 # BB#12: # %lor.lhs.false39 # in Loop: Header=BB12_11 Depth=1 i32.add $push42=, $6, $10 @@ -547,29 +562,30 @@ main: # @main i32.load $push45=, 0($pop44) i32.rem_u $push46=, $pop45, $9 i32.ne $push47=, $pop43, $pop46 - br_if $pop47, .LBB12_30 + br_if $pop47, 2 # 2: down to label32 # BB#13: # %for.cond32 # in Loop: Header=BB12_11 Depth=1 i32.add $11=, $11, $2 i32.add $10=, $10, $3 i32.le_s $push48=, $11, $7 - br_if $pop48, .LBB12_11 -.LBB12_14: # %for.end48 + br_if $pop48, 0 # 0: up to label33 +# BB#14: # %for.end48 + end_loop # label34: call f7@FUNCTION call f8@FUNCTION i32.const $10=, 0 copy_local $11=, $10 .LBB12_15: # %for.body51 # =>This Inner Loop Header: Depth=1 - block .LBB12_29 - loop .LBB12_18 + block + loop # label36: i32.add $push49=, $4, $10 i32.load $push50=, 0($pop49) i32.add $push51=, $0, $10 i32.load $push52=, 0($pop51) i32.rem_s $push53=, $pop52, $5 i32.ne $push54=, $pop50, $pop53 - br_if $pop54, .LBB12_29 + br_if $pop54, 2 # 2: down to label35 # BB#16: # %lor.lhs.false56 # in Loop: Header=BB12_15 Depth=1 i32.add $push55=, $6, $10 @@ -578,29 +594,30 @@ main: # @main i32.load $push58=, 0($pop57) i32.rem_u $push59=, $pop58, $5 i32.ne $push60=, $pop56, $pop59 - br_if $pop60, .LBB12_29 + br_if $pop60, 2 # 2: down to label35 # BB#17: # %for.cond49 # in Loop: Header=BB12_15 Depth=1 i32.add $11=, $11, $2 i32.add $10=, $10, $3 i32.le_s $push61=, $11, $7 - br_if $pop61, .LBB12_15 -.LBB12_18: # %for.end65 + br_if $pop61, 0 # 0: up to label36 +# BB#18: # %for.end65 + end_loop # label37: call f9@FUNCTION call f10@FUNCTION i32.const $10=, 0 copy_local $5=, $10 .LBB12_19: # %for.body68 # =>This Inner Loop Header: Depth=1 - block .LBB12_28 - loop .LBB12_22 + block + loop # label39: i32.add $push62=, $4, $10 i32.load $push63=, 0($pop62) i32.add $push64=, $0, $10 i32.load $push65=, 0($pop64) i32.rem_s $push66=, $pop65, $8 i32.ne $push67=, $pop63, $pop66 - br_if $pop67, .LBB12_28 + br_if $pop67, 2 # 2: down to label38 # BB#20: # %lor.lhs.false73 # in Loop: Header=BB12_19 Depth=1 i32.add $push68=, $6, $10 @@ -609,29 +626,30 @@ main: # @main i32.load $push71=, 0($pop70) i32.rem_u $push72=, $pop71, $8 i32.ne $push73=, $pop69, $pop72 - br_if $pop73, .LBB12_28 + br_if $pop73, 2 # 2: down to label38 # BB#21: # %for.cond66 # in Loop: Header=BB12_19 Depth=1 i32.add $5=, $5, $2 i32.add $10=, $10, $3 i32.le_s $push74=, $5, $7 - br_if $pop74, .LBB12_19 -.LBB12_22: # %for.end82 + br_if $pop74, 0 # 0: up to label39 +# BB#22: # %for.end82 + end_loop # label40: call f11@FUNCTION call f12@FUNCTION i32.const $10=, 0 copy_local $5=, $10 .LBB12_23: # %for.body85 # =>This Inner Loop Header: Depth=1 - block .LBB12_27 - loop .LBB12_26 + block + loop # label42: i32.add $push75=, $4, $10 i32.load $push76=, 0($pop75) i32.add $push77=, $0, $10 i32.load $push78=, 0($pop77) i32.rem_s $push79=, $pop78, $9 i32.ne $push80=, $pop76, $pop79 - br_if $pop80, .LBB12_27 + br_if $pop80, 2 # 2: down to label41 # BB#24: # %lor.lhs.false90 # in Loop: Header=BB12_23 Depth=1 i32.add $push81=, $6, $10 @@ -640,32 +658,39 @@ main: # @main i32.load $push84=, 0($pop83) i32.rem_u $push85=, $pop84, $9 i32.ne $push86=, $pop82, $pop85 - br_if $pop86, .LBB12_27 + br_if $pop86, 2 # 2: down to label41 # BB#25: # %for.cond83 # in Loop: Header=BB12_23 Depth=1 i32.add $5=, $5, $2 i32.add $10=, $10, $3 i32.le_s $push87=, $5, $7 - br_if $pop87, .LBB12_23 -.LBB12_26: # %for.end99 + br_if $pop87, 0 # 0: up to label42 +# BB#26: # %for.end99 + end_loop # label43: i32.const $push88=, 0 return $pop88 .LBB12_27: # %if.then95 + end_block # label41: call abort@FUNCTION unreachable .LBB12_28: # %if.then78 + end_block # label38: call abort@FUNCTION unreachable .LBB12_29: # %if.then61 + end_block # label35: call abort@FUNCTION unreachable .LBB12_30: # %if.then44 + end_block # label32: call abort@FUNCTION unreachable .LBB12_31: # %if.then27 + end_block # label29: call abort@FUNCTION unreachable .LBB12_32: # %if.then + end_block # label26: call abort@FUNCTION unreachable .Lfunc_end12: diff --git a/test/torture-s/pr51877.c.s b/test/torture-s/pr51877.c.s index 8f6ca193b..ea5ff9db0 100644 --- a/test/torture-s/pr51877.c.s +++ b/test/torture-s/pr51877.c.s @@ -88,11 +88,11 @@ foo: # @foo i32.sub $7=, $2, $3 i32.const $3=, __stack_pointer i32.store $7=, 0($3), $7 - block .LBB2_3 - block .LBB2_2 + block + block i32.const $push0=, 6 i32.ne $push1=, $1, $pop0 - br_if $pop1, .LBB2_2 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %if.then i32.const $push4=, 7 i32.const $5=, 40 @@ -103,8 +103,9 @@ foo: # @foo i32.const $6=, 40 i32.add $6=, $7, $6 call memcpy@FUNCTION, $pop5, $6, $pop6 - br .LBB2_3 + br 1 # 1: down to label0 .LBB2_2: # %if.else + end_block # label1: i32.const $push2=, 7 i32.const $7=, 0 i32.add $7=, $7, $7 @@ -114,6 +115,7 @@ foo: # @foo i32.add $8=, $7, $8 call memcpy@FUNCTION, $0, $8, $pop3 .LBB2_3: # %if.end + end_block # label0: call baz@FUNCTION i32.const $4=, 80 i32.add $7=, $7, $4 @@ -156,65 +158,65 @@ main: # @main call memcpy@FUNCTION, $2, $12, $3 i32.const $3=, 0 i32.const $5=, 1 - block .LBB3_15 + block i32.load $push1=, a($3) i32.ne $push2=, $pop1, $5 - br_if $pop2, .LBB3_15 + br_if $pop2, 0 # 0: down to label2 # BB#1: # %lor.lhs.false i32.load8_u $push5=, a+4($3) i32.ne $push6=, $pop5, $0 - br_if $pop6, .LBB3_15 + br_if $pop6, 0 # 0: down to label2 # BB#2: # %lor.lhs.false i32.load $push3=, b($3) i32.const $push7=, 2 i32.ne $push8=, $pop3, $pop7 - br_if $pop8, .LBB3_15 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %lor.lhs.false i32.const $4=, 255 i32.load8_u $push4=, b+4($3) i32.and $push9=, $pop4, $4 i32.ne $push10=, $pop9, $1 - br_if $pop10, .LBB3_15 + br_if $pop10, 0 # 0: down to label2 # BB#4: # %if.end call foo@FUNCTION, $2, $3 - block .LBB3_14 + block i32.load $push11=, a($3) i32.ne $push12=, $pop11, $5 - br_if $pop12, .LBB3_14 + br_if $pop12, 0 # 0: down to label3 # BB#5: # %lor.lhs.false13 i32.load8_u $push15=, a+4($3) i32.ne $push16=, $pop15, $0 - br_if $pop16, .LBB3_14 + br_if $pop16, 0 # 0: down to label3 # BB#6: # %lor.lhs.false13 i32.load $push13=, b($3) i32.ne $push17=, $pop13, $0 - br_if $pop17, .LBB3_14 + br_if $pop17, 0 # 0: down to label3 # BB#7: # %lor.lhs.false13 i32.const $5=, 7 i32.load8_u $push14=, b+4($3) i32.and $push18=, $pop14, $4 i32.ne $push19=, $pop18, $5 - br_if $pop19, .LBB3_14 + br_if $pop19, 0 # 0: down to label3 # BB#8: # %if.end25 - block .LBB3_13 + block i32.const $push20=, 6 call foo@FUNCTION, $2, $pop20 i32.load $push21=, a($3) i32.ne $push22=, $pop21, $1 - br_if $pop22, .LBB3_13 + br_if $pop22, 0 # 0: down to label4 # BB#9: # %lor.lhs.false28 i32.load8_u $push25=, a+4($3) i32.ne $push26=, $pop25, $5 - br_if $pop26, .LBB3_13 + br_if $pop26, 0 # 0: down to label4 # BB#10: # %lor.lhs.false28 i32.load $push23=, b($3) i32.ne $push27=, $pop23, $0 - br_if $pop27, .LBB3_13 + br_if $pop27, 0 # 0: down to label4 # BB#11: # %lor.lhs.false28 i32.load8_u $push24=, b+4($3) i32.and $push28=, $pop24, $4 i32.ne $push29=, $pop28, $5 - br_if $pop29, .LBB3_13 + br_if $pop29, 0 # 0: down to label4 # BB#12: # %if.end40 i32.const $8=, 80 i32.add $13=, $13, $8 @@ -222,12 +224,15 @@ main: # @main i32.store $13=, 0($8), $13 return $3 .LBB3_13: # %if.then39 + end_block # label4: call abort@FUNCTION unreachable .LBB3_14: # %if.then24 + end_block # label3: call abort@FUNCTION unreachable .LBB3_15: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr51933.c.s b/test/torture-s/pr51933.c.s index ae5282666..10eb25cb8 100644 --- a/test/torture-s/pr51933.c.s +++ b/test/torture-s/pr51933.c.s @@ -22,21 +22,22 @@ bar: # @bar .local i32, i32, i32, i32, i32 # BB#0: # %entry i32.const $3=, 0 - block .LBB1_2 + block i32.load8_u $push0=, v1($3) - br_if $pop0, .LBB1_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then call foo@FUNCTION .LBB1_2: # %for.cond.preheader + end_block # label0: i32.const $4=, 1 copy_local $6=, $0 copy_local $7=, $2 - block .LBB1_4 + block i32.lt_s $push1=, $0, $4 - br_if $pop1, .LBB1_4 + br_if $pop1, 0 # 0: down to label1 .LBB1_3: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_4 + loop # label2: i32.load16_u $5=, 0($1) i32.const $push2=, 256 i32.lt_u $push3=, $5, $pop2 @@ -54,8 +55,10 @@ bar: # @bar i32.const $push13=, -1 i32.add $6=, $6, $pop13 i32.add $7=, $7, $4 - br_if $6, .LBB1_3 + br_if $6, 0 # 0: up to label2 .LBB1_4: # %for.end + end_loop # label3: + end_block # label1: i32.add $push14=, $2, $0 i32.store8 $discard=, 0($pop14), $3 return $0 @@ -79,7 +82,7 @@ main: # @main i32.const $1=, 0 .LBB2_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label4: i32.const $push1=, v2 i32.add $push2=, $pop1, $1 i32.store8 $discard=, 0($pop2), $1 @@ -90,8 +93,9 @@ main: # @main i32.store8 $1=, 0($pop5), $pop0 i32.const $push6=, 256 i32.ne $push7=, $1, $pop6 - br_if $pop7, .LBB2_1 -.LBB2_2: # %for.body6.preheader + br_if $pop7, 0 # 0: up to label4 +# BB#2: # %for.body6.preheader + end_loop # label5: i32.const $push9=, 8 i32.const $5=, 0 i32.add $5=, $12, $5 @@ -144,17 +148,17 @@ main: # @main i32.add $9=, $12, $9 i32.const $10=, 48 i32.add $10=, $12, $10 - block .LBB2_5 + block i32.call $push31=, bar@FUNCTION, $1, $9, $10 i32.ne $push32=, $pop31, $1 - br_if $pop32, .LBB2_5 + br_if $pop32, 0 # 0: down to label6 # BB#3: # %lor.lhs.false i32.const $push33=, .L.str i32.const $push34=, 18 i32.const $11=, 48 i32.add $11=, $12, $11 i32.call $push35=, memcmp@FUNCTION, $11, $pop33, $pop34 - br_if $pop35, .LBB2_5 + br_if $pop35, 0 # 0: down to label6 # BB#4: # %if.end i32.const $4=, 80 i32.add $12=, $12, $4 @@ -162,6 +166,7 @@ main: # @main i32.store $12=, 0($4), $12 return $0 .LBB2_5: # %if.then + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr52209.c.s b/test/torture-s/pr52209.c.s index 9d4fb385b..e73f24428 100644 --- a/test/torture-s/pr52209.c.s +++ b/test/torture-s/pr52209.c.s @@ -11,7 +11,7 @@ main: # @main i32.const $0=, 0 i32.load8_u $1=, c($0) i32.const $2=, 31 - block .LBB0_2 + block i32.shl $push0=, $1, $2 i32.shr_s $push1=, $pop0, $2 i32.const $push2=, -1 @@ -19,10 +19,11 @@ main: # @main i32.store $discard=, b($0), $pop3 i32.const $push4=, 1 i32.and $push5=, $1, $pop4 - br_if $pop5, .LBB0_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr52286.c.s b/test/torture-s/pr52286.c.s index bb2ea0036..ebdaeef72 100644 --- a/test/torture-s/pr52286.c.s +++ b/test/torture-s/pr52286.c.s @@ -12,13 +12,14 @@ main: # @main copy_local $0=, $1 #APP #NO_APP - block .LBB0_2 + block i32.const $push0=, -1 i32.le_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $1 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr52760.c.s b/test/torture-s/pr52760.c.s index 5d80ebd4b..e6a76bbbc 100644 --- a/test/torture-s/pr52760.c.s +++ b/test/torture-s/pr52760.c.s @@ -8,13 +8,13 @@ foo: # @foo .param i32, i32 .local i32, i32, i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 1 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.load16_u $2=, 0($1) i32.const $3=, 8 i32.shr_u $push2=, $2, $3 @@ -45,8 +45,10 @@ foo: # @foo i32.const $push17=, -1 i32.add $0=, $0, $pop17 i32.add $1=, $1, $3 - br_if $0, .LBB0_1 + br_if $0, 0 # 0: up to label1 .LBB0_2: # %for.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -70,12 +72,12 @@ main: # @main i32.const $push1=, 1 i32.const $3=, 8 i32.add $3=, $4, $3 - block .LBB1_2 + block call foo@FUNCTION, $pop1, $3 i64.load $push2=, 8($4) i64.const $push3=, 506097522914230528 i64.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label3 # BB#1: # %if.end i32.const $push5=, 0 i32.const $2=, 16 @@ -84,6 +86,7 @@ main: # @main i32.store $4=, 0($2), $4 return $pop5 .LBB1_2: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr52979-1.c.s b/test/torture-s/pr52979-1.c.s index 241330ea5..468f282a7 100644 --- a/test/torture-s/pr52979-1.c.s +++ b/test/torture-s/pr52979-1.c.s @@ -65,19 +65,20 @@ bar: # @bar i32.store8 $discard=, b($6), $7 i32.store $discard=, e($6), $6 i32.load $1=, d($6) - block .LBB1_2 + block i64.const $push5=, 2147483648 i64.or $push6=, $4, $pop5 i64.store32 $discard=, a($3), $pop6 i32.const $push18=, 0 i32.eq $push19=, $1, $pop18 - br_if $pop19, .LBB1_2 + br_if $pop19, 0 # 0: down to label0 # BB#1: # %if.then i64.const $2=, 33 i64.shl $push16=, $0, $2 i64.shr_s $push17=, $pop16, $2 i64.store32 $discard=, c($6), $pop17 .LBB1_2: # %if.end + end_block # label0: i32.const $10=, 16 i32.add $15=, $15, $10 i32.const $10=, __stack_pointer @@ -141,19 +142,20 @@ baz: # @baz i32.store8 $discard=, b($7), $6 i32.store $discard=, e($7), $7 i32.load $1=, d($7) - block .LBB2_2 + block i64.const $push5=, 2147483648 i64.or $push6=, $4, $pop5 i64.store32 $discard=, a($3), $pop6 i32.const $push20=, 0 i32.eq $push21=, $1, $pop20 - br_if $pop21, .LBB2_2 + br_if $pop21, 0 # 0: down to label1 # BB#1: # %if.then.i i64.const $2=, 33 i64.shl $push16=, $0, $2 i64.shr_s $push17=, $pop16, $2 i64.store32 $discard=, c($7), $pop17 .LBB2_2: # %bar.exit + end_block # label1: i32.load8_u $push18=, b+4($7) i32.store8 $discard=, a+4($7), $pop18 i32.load8_u $3=, b+2($7) @@ -228,19 +230,20 @@ main: # @main i32.store8 $discard=, b($7), $6 i32.store $discard=, e($7), $7 i32.load $1=, d($7) - block .LBB3_2 + block i64.const $push5=, 2147483648 i64.or $push6=, $4, $pop5 i64.store32 $discard=, a($3), $pop6 i32.const $push24=, 0 i32.eq $push25=, $1, $pop24 - br_if $pop25, .LBB3_2 + br_if $pop25, 0 # 0: down to label2 # BB#1: # %if.then.i.i i64.const $2=, 33 i64.shl $push16=, $0, $2 i64.shr_s $push17=, $pop16, $2 i64.store32 $discard=, c($7), $pop17 .LBB3_2: # %baz.exit + end_block # label2: i32.load8_u $push18=, b+4($7) i32.store8 $discard=, a+4($7), $pop18 i32.load8_u $3=, b+2($7) @@ -252,12 +255,12 @@ main: # @main i32.store8 $discard=, a+1($7), $1 i32.store8 $discard=, a($7), $5 i64.const $2=, 33 - block .LBB3_4 + block i64.load32_u $push20=, a($7) i64.shl $push21=, $pop20, $2 i64.shr_s $push22=, $pop21, $2 i32.wrap/i64 $push23=, $pop22 - br_if $pop23, .LBB3_4 + br_if $pop23, 0 # 0: down to label3 # BB#3: # %if.end i32.const $10=, 16 i32.add $15=, $15, $10 @@ -265,6 +268,7 @@ main: # @main i32.store $15=, 0($10), $15 return $7 .LBB3_4: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr52979-2.c.s b/test/torture-s/pr52979-2.c.s index 387ed7bd5..f31bedbec 100644 --- a/test/torture-s/pr52979-2.c.s +++ b/test/torture-s/pr52979-2.c.s @@ -65,19 +65,20 @@ bar: # @bar i32.store8 $discard=, b($6), $7 i32.store $discard=, e($6), $6 i32.load $1=, d($6) - block .LBB1_2 + block i64.const $push5=, 2147483648 i64.or $push6=, $4, $pop5 i64.store32 $discard=, a($3), $pop6 i32.const $push18=, 0 i32.eq $push19=, $1, $pop18 - br_if $pop19, .LBB1_2 + br_if $pop19, 0 # 0: down to label0 # BB#1: # %if.then i64.const $2=, 33 i64.shl $push16=, $0, $2 i64.shr_s $push17=, $pop16, $2 i64.store32 $discard=, c($6), $pop17 .LBB1_2: # %if.end + end_block # label0: i32.const $10=, 16 i32.add $15=, $15, $10 i32.const $10=, __stack_pointer @@ -141,19 +142,20 @@ baz: # @baz i32.store8 $discard=, b($7), $6 i32.store $discard=, e($7), $7 i32.load $1=, d($7) - block .LBB2_2 + block i64.const $push5=, 2147483648 i64.or $push6=, $4, $pop5 i64.store32 $discard=, a($3), $pop6 i32.const $push20=, 0 i32.eq $push21=, $1, $pop20 - br_if $pop21, .LBB2_2 + br_if $pop21, 0 # 0: down to label1 # BB#1: # %if.then.i i64.const $2=, 33 i64.shl $push16=, $0, $2 i64.shr_s $push17=, $pop16, $2 i64.store32 $discard=, c($7), $pop17 .LBB2_2: # %bar.exit + end_block # label1: i32.load8_u $push18=, b+4($7) i32.store8 $discard=, a+4($7), $pop18 i32.load8_u $3=, b+2($7) @@ -228,19 +230,20 @@ main: # @main i32.store8 $discard=, b($7), $6 i32.store $discard=, e($7), $7 i32.load $1=, d($7) - block .LBB3_2 + block i64.const $push5=, 2147483648 i64.or $push6=, $4, $pop5 i64.store32 $discard=, a($3), $pop6 i32.const $push24=, 0 i32.eq $push25=, $1, $pop24 - br_if $pop25, .LBB3_2 + br_if $pop25, 0 # 0: down to label2 # BB#1: # %if.then.i.i i64.const $2=, 33 i64.shl $push16=, $0, $2 i64.shr_s $push17=, $pop16, $2 i64.store32 $discard=, c($7), $pop17 .LBB3_2: # %baz.exit + end_block # label2: i32.load8_u $push18=, b+4($7) i32.store8 $discard=, a+4($7), $pop18 i32.load8_u $3=, b+2($7) @@ -252,12 +255,12 @@ main: # @main i32.store8 $discard=, a+1($7), $1 i32.store8 $discard=, a($7), $5 i64.const $2=, 33 - block .LBB3_4 + block i64.load32_u $push20=, a($7) i64.shl $push21=, $pop20, $2 i64.shr_s $push22=, $pop21, $2 i32.wrap/i64 $push23=, $pop22 - br_if $pop23, .LBB3_4 + br_if $pop23, 0 # 0: down to label3 # BB#3: # %if.end i32.const $10=, 16 i32.add $15=, $15, $10 @@ -265,6 +268,7 @@ main: # @main i32.store $15=, 0($10), $15 return $7 .LBB3_4: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr53084.c.s b/test/torture-s/pr53084.c.s index 167f5a434..796ddb511 100644 --- a/test/torture-s/pr53084.c.s +++ b/test/torture-s/pr53084.c.s @@ -9,20 +9,21 @@ bar: # @bar .local i32 # BB#0: # %entry i32.const $1=, 111 - block .LBB0_4 + block i32.load8_u $push0=, 0($0) i32.ne $push1=, $pop0, $1 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.load8_u $push2=, 1($0) i32.ne $push3=, $pop2, $1 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %lor.lhs.false6 i32.load8_u $push4=, 2($0) - br_if $pop4, .LBB0_4 + br_if $pop4, 0 # 0: down to label0 # BB#3: # %if.end return .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr53160.c.s b/test/torture-s/pr53160.c.s index 9e426e8d2..47e254545 100644 --- a/test/torture-s/pr53160.c.s +++ b/test/torture-s/pr53160.c.s @@ -22,28 +22,30 @@ main: # @main .local i32, i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, g($0) i32.const $push6=, 0 i32.eq $push7=, $pop0, $pop6 - br_if $pop7, .LBB1_2 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %if.then i32.load $discard=, b($0) .LBB1_2: # %if.end + end_block # label0: i32.store $discard=, e($0), $0 i32.load8_s $1=, f($0) i32.load $2=, c($0) - block .LBB1_4 + block i32.const $push2=, -1 i32.store $discard=, d($0), $pop2 i32.store16 $push1=, i($0), $1 i32.select $push3=, $2, $pop1, $0 i32.store $push4=, h($0), $pop3 i32.store $push5=, a($0), $pop4 - br_if $pop5, .LBB1_4 + br_if $pop5, 0 # 0: down to label1 # BB#3: # %if.end16 return $0 .LBB1_4: # %if.then15 + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr53465.c.s b/test/torture-s/pr53465.c.s index 0c9270bdc..87a8e61da 100644 --- a/test/torture-s/pr53465.c.s +++ b/test/torture-s/pr53465.c.s @@ -11,39 +11,42 @@ foo: # @foo i32.const $3=, 0 # implicit-def: %vreg19 copy_local $5=, $3 - block .LBB0_6 + block i32.le_s $push0=, $1, $3 - br_if $pop0, .LBB0_6 + br_if $pop0, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_6 + loop # label1: copy_local $2=, $4 i32.load $4=, 0($0) i32.const $push4=, 0 i32.eq $push5=, $4, $pop4 - br_if $pop5, .LBB0_6 + br_if $pop5, 1 # 1: down to label2 # BB#2: # %if.end # in Loop: Header=BB0_1 Depth=1 - block .LBB0_5 + block i32.const $push6=, 0 i32.eq $push7=, $5, $pop6 - br_if $pop7, .LBB0_5 + br_if $pop7, 0 # 0: down to label3 # BB#3: # %if.end # in Loop: Header=BB0_1 Depth=1 i32.gt_s $push1=, $4, $2 - br_if $pop1, .LBB0_5 + br_if $pop1, 0 # 0: down to label3 # BB#4: # %if.then3 call abort@FUNCTION unreachable .LBB0_5: # %for.cond # in Loop: Header=BB0_1 Depth=1 + end_block # label3: i32.const $push2=, 4 i32.add $0=, $0, $pop2 i32.const $5=, 1 i32.add $3=, $3, $5 i32.lt_s $push3=, $3, $1 - br_if $pop3, .LBB0_1 + br_if $pop3, 0 # 0: up to label1 .LBB0_6: # %for.end + end_loop # label2: + end_block # label0: return .Lfunc_end0: .size foo, .Lfunc_end0-foo diff --git a/test/torture-s/pr53688.c.s b/test/torture-s/pr53688.c.s index 69a4295a5..a6b1524a4 100644 --- a/test/torture-s/pr53688.c.s +++ b/test/torture-s/pr53688.c.s @@ -95,7 +95,7 @@ main: # @main i64.store16 $discard=, 0($pop25), $pop12 i32.const $1=, 0 i64.load8_u $6=, p+9($1) - block .LBB1_2 + block i32.add $push26=, $11, $4 i64.shl $push5=, $2, $3 i64.or $push7=, $pop5, $5 @@ -111,10 +111,11 @@ main: # @main i32.and $push32=, $pop30, $pop31 i32.const $push33=, 83 i32.ne $push34=, $pop32, $pop33 - br_if $pop34, .LBB1_2 + br_if $pop34, 0 # 0: down to label0 # BB#1: # %if.end return $1 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr54471.c.s b/test/torture-s/pr54471.c.s index 536cc6ff3..090b09c70 100644 --- a/test/torture-s/pr54471.c.s +++ b/test/torture-s/pr54471.c.s @@ -16,13 +16,13 @@ foo: # @foo i32.store $10=, 0($8), $10 i64.const $6=, 0 i64.const $5=, 1 - block .LBB0_4 + block i32.const $push7=, 0 i32.eq $push8=, $3, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label1: i32.const $10=, 0 i32.add $10=, $10, $10 call __multi3@FUNCTION, $10, $1, $2, $5, $6 @@ -42,14 +42,15 @@ foo: # @foo i64.load $1=, 16($10) i32.const $push2=, -1 i32.add $3=, $3, $pop2 - br_if $3, .LBB0_1 -.LBB0_2: # %for.end + br_if $3, 0 # 0: up to label1 +# BB#2: # %for.end + end_loop # label2: i64.const $2=, 14348907 i64.const $1=, 0 i64.xor $push3=, $5, $2 i64.or $push4=, $pop3, $6 i64.ne $push5=, $pop4, $1 - br_if $pop5, .LBB0_4 + br_if $pop5, 0 # 0: down to label0 # BB#3: # %if.end i64.store $discard=, 0($0), $2 i32.add $push6=, $0, $4 @@ -60,6 +61,7 @@ foo: # @foo i32.store $10=, 0($9), $10 return .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr54937.c.s b/test/torture-s/pr54937.c.s index 9ad342f70..9f749d5db 100644 --- a/test/torture-s/pr54937.c.s +++ b/test/torture-s/pr54937.c.s @@ -10,17 +10,17 @@ t: # @t .local i32, i32 # BB#0: # %entry i32.const $2=, 0 - block .LBB0_4 + block i32.const $push0=, 1 i32.lt_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 - block .LBB0_3 + loop # label1: + block i32.const $push8=, 0 i32.eq $push9=, $2, $pop8 - br_if $pop9, .LBB0_3 + br_if $pop9, 0 # 0: down to label3 # BB#2: # %if.then # in Loop: Header=BB0_1 Depth=1 i32.const $1=, 0 @@ -28,6 +28,7 @@ t: # @t call_indirect $pop2, $1 .LBB0_3: # %if.end # in Loop: Header=BB0_1 Depth=1 + end_block # label3: i32.const $push3=, a i32.add $push4=, $pop3, $2 i32.const $push5=, 0 @@ -36,8 +37,10 @@ t: # @t i32.add $2=, $2, $pop6 i32.const $push7=, -1 i32.add $0=, $0, $pop7 - br_if $0, .LBB0_1 + br_if $0, 0 # 0: up to label1 .LBB0_4: # %for.end + end_loop # label2: + end_block # label0: return $2 .Lfunc_end0: .size t, .Lfunc_end0-t diff --git a/test/torture-s/pr54985.c.s b/test/torture-s/pr54985.c.s index 2c98d803d..c86770d17 100644 --- a/test/torture-s/pr54985.c.s +++ b/test/torture-s/pr54985.c.s @@ -11,23 +11,23 @@ foo: # @foo # BB#0: # %entry i32.const $3=, 0 copy_local $2=, $3 - block .LBB0_4 + block i32.const $push1=, 0 i32.eq $push2=, $1, $pop1 - br_if $pop2, .LBB0_4 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %while.body.preheader i32.load $6=, 0($0) i32.const $4=, 4 i32.add $0=, $0, $4 .LBB0_2: # %while.cond # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 + loop # label1: i32.const $push0=, -1 i32.add $1=, $1, $pop0 copy_local $2=, $3 i32.const $push3=, 0 i32.eq $push4=, $1, $pop3 - br_if $pop4, .LBB0_4 + br_if $pop4, 1 # 1: down to label2 # BB#3: # %while.cond.while.body_crit_edge # in Loop: Header=BB0_2 Depth=1 i32.load $2=, 0($0) @@ -35,8 +35,10 @@ foo: # @foo i32.lt_s $5=, $2, $6 copy_local $6=, $2 i32.const $2=, 1 - br_if $5, .LBB0_2 + br_if $5, 0 # 0: up to label1 .LBB0_4: # %cleanup + end_loop # label2: + end_block # label0: return $2 .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -60,9 +62,9 @@ main: # @main i32.const $push1=, 2 i32.const $3=, 8 i32.add $3=, $4, $3 - block .LBB1_2 + block i32.call $push2=, foo@FUNCTION, $3, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label3 # BB#1: # %if.end i32.const $push3=, 0 i32.const $2=, 16 @@ -71,6 +73,7 @@ main: # @main i32.store $4=, 0($2), $4 return $pop3 .LBB1_2: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr55750.c.s b/test/torture-s/pr55750.c.s index 316261e3d..519765d79 100644 --- a/test/torture-s/pr55750.c.s +++ b/test/torture-s/pr55750.c.s @@ -33,21 +33,22 @@ main: # @main i32.const $push2=, 254 i32.store8 $discard=, arr+4($0), $pop2 call foo@FUNCTION, $0 - block .LBB1_3 + block i32.const $push3=, 1 call foo@FUNCTION, $pop3 i32.load8_u $push4=, arr($0) i32.const $push5=, 129 i32.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB1_3 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %entry i32.load8_u $push0=, arr+4($0) i32.const $push7=, 255 i32.and $push8=, $pop0, $pop7 - br_if $pop8, .LBB1_3 + br_if $pop8, 0 # 0: down to label0 # BB#2: # %if.end return $0 .LBB1_3: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr55875.c.s b/test/torture-s/pr55875.c.s index f1155b0e3..cf0dd6a7f 100644 --- a/test/torture-s/pr55875.c.s +++ b/test/torture-s/pr55875.c.s @@ -8,21 +8,23 @@ t: # @t .param i32 .result i32 # BB#0: # %entry - block .LBB0_4 + block i32.const $push3=, 0 i32.eq $push4=, $0, $pop3 - br_if $pop4, .LBB0_4 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_3 + block i32.const $push0=, 256 i32.ge_s $push1=, $0, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %if.end3 return $0 .LBB0_3: # %if.then2 + end_block # label1: call abort@FUNCTION unreachable .LBB0_4: # %if.then + end_block # label0: i32.const $push2=, 0 call exit@FUNCTION, $pop2 unreachable @@ -40,14 +42,15 @@ main: # @main i32.const $0=, 5 .LBB1_1: # %for.cond # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 + loop # label2: i32.const $push0=, 255 i32.and $push1=, $0, $pop0 i32.call $discard=, t@FUNCTION, $pop1 i32.const $push2=, 1 i32.add $0=, $0, $pop2 - br .LBB1_1 + br 0 # 0: up to label2 .LBB1_2: + end_loop # label3: .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/pr56799.c.s b/test/torture-s/pr56799.c.s index 7cde25998..9097c9843 100644 --- a/test/torture-s/pr56799.c.s +++ b/test/torture-s/pr56799.c.s @@ -24,23 +24,24 @@ main: # @main i32.store $0=, 0($pop4), $pop5 i32.const $5=, 8 i32.add $5=, $6, $5 - block .LBB0_4 + block i32.call $push6=, foo@FUNCTION, $5 i32.const $push7=, 2 i32.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label0 # BB#1: # %entry i32.const $1=, 0 i32.load $push0=, lo($1) - br_if $pop0, .LBB0_4 + br_if $pop0, 0 # 0: down to label0 # BB#2: # %entry i32.load $push1=, hi($1) i32.ne $push9=, $pop1, $0 - br_if $pop9, .LBB0_4 + br_if $pop9, 0 # 0: down to label0 # BB#3: # %if.then call exit@FUNCTION, $1 unreachable .LBB0_4: # %if.end + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -58,31 +59,34 @@ foo: # @foo i32.load $1=, 0($0) i32.const $2=, 65535 i32.const $3=, 0 - block .LBB1_2 + block i32.and $push0=, $1, $2 i32.const $push7=, 0 i32.eq $push8=, $pop0, $pop7 - br_if $pop8, .LBB1_2 + br_if $pop8, 0 # 0: down to label1 # BB#1: # %if.then i32.const $push1=, 0 i32.const $push2=, 1 i32.store $discard=, lo($pop1), $pop2 i32.load $3=, 4($0) .LBB1_2: # %if.end - block .LBB1_5 - block .LBB1_4 + end_block # label1: + block + block i32.le_u $push3=, $1, $2 - br_if $pop3, .LBB1_4 + br_if $pop3, 0 # 0: down to label3 # BB#3: # %if.then7 i32.const $push4=, 0 i32.const $push5=, 1 i32.store $discard=, hi($pop4), $pop5 i32.load $0=, 4($0) i32.add $3=, $0, $3 - br .LBB1_5 + br 1 # 1: down to label2 .LBB1_4: # %if.end.if.end10_crit_edge + end_block # label3: i32.load $0=, 4($0) .LBB1_5: # %if.end10 + end_block # label2: i32.add $push6=, $0, $3 return $pop6 .Lfunc_end1: diff --git a/test/torture-s/pr56837.c.s b/test/torture-s/pr56837.c.s index 705b9fdbf..c773b2c3e 100644 --- a/test/torture-s/pr56837.c.s +++ b/test/torture-s/pr56837.c.s @@ -11,7 +11,7 @@ foo: # @foo i32.const $1=, -8192 .LBB0_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 + loop # label0: i32.const $push0=, a i32.add $push1=, $pop0, $1 i32.const $push2=, 8192 @@ -19,8 +19,9 @@ foo: # @foo i64.store $discard=, 0($pop3), $0 i32.const $push4=, 8 i32.add $1=, $1, $pop4 - br_if $1, .LBB0_1 -.LBB0_2: # %for.end + br_if $1, 0 # 0: up to label0 +# BB#2: # %for.end + end_loop # label1: return .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -38,18 +39,18 @@ main: # @main i32.const $0=, a .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB1_5 - loop .LBB1_4 + block + loop # label3: i32.load $push1=, 0($0) i32.const $push4=, -1 i32.ne $push5=, $pop1, $pop4 - br_if $pop5, .LBB1_5 + br_if $pop5, 2 # 2: down to label2 # BB#2: # %for.body # in Loop: Header=BB1_1 Depth=1 i32.const $push2=, 4 i32.add $push3=, $0, $pop2 i32.load $push0=, 0($pop3) - br_if $pop0, .LBB1_5 + br_if $pop0, 2 # 2: down to label2 # BB#3: # %for.cond # in Loop: Header=BB1_1 Depth=1 i32.const $push6=, 1 @@ -58,11 +59,13 @@ main: # @main i32.add $0=, $0, $pop7 i32.const $push8=, 1023 i32.le_s $push9=, $1, $pop8 - br_if $pop9, .LBB1_1 -.LBB1_4: # %for.end + br_if $pop9, 0 # 0: up to label3 +# BB#4: # %for.end + end_loop # label4: i32.const $push10=, 0 return $pop10 .LBB1_5: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr56899.c.s b/test/torture-s/pr56899.c.s index 4fe1206dd..7c0810d24 100644 --- a/test/torture-s/pr56899.c.s +++ b/test/torture-s/pr56899.c.s @@ -7,15 +7,16 @@ f1: # @f1 .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, -214748365 i32.mul $push1=, $0, $pop0 i32.const $push2=, 2147483646 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -28,15 +29,16 @@ f1: # @f1 f2: # @f2 .param i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 214748365 i32.mul $push1=, $0, $pop0 i32.const $push2=, 2147483646 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label1 # BB#1: # %if.end return .LBB1_2: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: @@ -49,15 +51,16 @@ f2: # @f2 f3: # @f3 .param i32 # BB#0: # %entry - block .LBB2_2 + block i32.const $push0=, -214748365 i32.mul $push1=, $0, $pop0 i32.const $push2=, 2147483646 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB2_2 + br_if $pop3, 0 # 0: down to label2 # BB#1: # %if.end return .LBB2_2: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end2: @@ -70,15 +73,16 @@ f3: # @f3 f4: # @f4 .param i32 # BB#0: # %entry - block .LBB3_2 + block i32.const $push0=, 214748365 i32.mul $push1=, $0, $pop0 i32.const $push2=, 2147483646 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB3_2 + br_if $pop3, 0 # 0: down to label3 # BB#1: # %if.end return .LBB3_2: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr56962.c.s b/test/torture-s/pr56962.c.s index 3da187b37..d867a5336 100644 --- a/test/torture-s/pr56962.c.s +++ b/test/torture-s/pr56962.c.s @@ -7,13 +7,14 @@ bar: # @bar .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, v+232 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr56982.c.s b/test/torture-s/pr56982.c.s index b5e08433f..5bffdb744 100644 --- a/test/torture-s/pr56982.c.s +++ b/test/torture-s/pr56982.c.s @@ -21,26 +21,28 @@ f: # @f .result i32 .local i32 # BB#0: # %entry - block .LBB1_2 + block i32.load $push0=, 0($0) i32.const $push5=, 0 i32.eq $push6=, $pop0, $pop5 - br_if $pop6, .LBB1_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push1=, 1 return $pop1 .LBB1_2: # %if.end + end_block # label0: i32.const $1=, env #APP #NO_APP - block .LBB1_4 + block i32.call $push2=, _setjmp@FUNCTION, $1 - br_if $pop2, .LBB1_4 + br_if $pop2, 0 # 0: down to label1 # BB#3: # %if.end6 i32.const $push4=, 42 call longjmp@FUNCTION, $1, $pop4 unreachable .LBB1_4: # %if.then2 + end_block # label1: i32.const $push3=, 0 call exit@FUNCTION, $pop3 unreachable diff --git a/test/torture-s/pr57124.c.s b/test/torture-s/pr57124.c.s index 4196a93c4..e8d895fc8 100644 --- a/test/torture-s/pr57124.c.s +++ b/test/torture-s/pr57124.c.s @@ -8,15 +8,16 @@ foo: # @foo .param i32, i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.load16_u $push0=, 0($0) i32.const $push1=, 4095 i32.gt_u $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.then call abort@FUNCTION unreachable .LBB0_2: # %if.end + end_block # label0: i32.const $push3=, 0 call exit@FUNCTION, $pop3 unreachable diff --git a/test/torture-s/pr57131.c.s b/test/torture-s/pr57131.c.s index 06e3ba093..2e0382b53 100644 --- a/test/torture-s/pr57131.c.s +++ b/test/torture-s/pr57131.c.s @@ -29,7 +29,7 @@ main: # @main i64.load32_u $5=, 28($10) i32.load $0=, 24($10) i32.load $6=, 20($10) - block .LBB0_2 + block i64.load $push10=, 8($10) i64.shl $push5=, $4, $5 i64.mul $push6=, $pop5, $3 @@ -38,7 +38,7 @@ main: # @main i64.div_s $push9=, $pop6, $pop8 i64.add $push11=, $pop10, $pop9 i64.ne $push12=, $pop11, $2 - br_if $pop12, .LBB0_2 + br_if $pop12, 0 # 0: down to label0 # BB#1: # %if.end i32.const $9=, 48 i32.add $10=, $10, $9 @@ -46,6 +46,7 @@ main: # @main i32.store $10=, 0($9), $10 return $1 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr57281.c.s b/test/torture-s/pr57281.c.s index eb82cedd7..24249b7a5 100644 --- a/test/torture-s/pr57281.c.s +++ b/test/torture-s/pr57281.c.s @@ -29,17 +29,17 @@ main: # @main # BB#0: # %entry i32.const $3=, 0 i32.const $4=, -20 - block .LBB1_3 + block i32.load $push0=, b($3) i32.eq $push1=, $pop0, $4 - br_if $pop1, .LBB1_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %for.body.lr.ph i32.load $0=, a($3) i32.load $1=, e($3) i32.load $2=, g($3) .LBB1_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label1: i64.load $discard=, f($3) i32.store $5=, 0($1), $3 i32.load $6=, b($5) @@ -52,8 +52,10 @@ main: # @main i32.add $push6=, $pop4, $pop5 i32.store $push7=, b($5), $pop6 i32.ne $push8=, $pop7, $4 - br_if $pop8, .LBB1_2 + br_if $pop8, 0 # 0: up to label1 .LBB1_3: # %for.end + end_loop # label2: + end_block # label0: return $3 .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/pr57321.c.s b/test/torture-s/pr57321.c.s index 34f1ac232..c5d375db6 100644 --- a/test/torture-s/pr57321.c.s +++ b/test/torture-s/pr57321.c.s @@ -9,14 +9,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, a($0) - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then.i i32.load $push1=, b($0) i32.const $push2=, 1 i32.store $discard=, 0($pop1), $pop2 .LBB0_2: # %foo.exit + end_block # label0: return $0 .Lfunc_end0: .size main, .Lfunc_end0-main diff --git a/test/torture-s/pr57344-1.c.s b/test/torture-s/pr57344-1.c.s index 1aa5be848..90fba405a 100644 --- a/test/torture-s/pr57344-1.c.s +++ b/test/torture-s/pr57344-1.c.s @@ -7,15 +7,16 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, -3161 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end #APP #NO_APP return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -31,11 +32,11 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $2=, i($0) - block .LBB1_3 + block i64.const $push0=, 8583460864 i64.store $discard=, s+8($0), $pop0 i32.gt_s $push1=, $2, $0 - br_if $pop1, .LBB1_3 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %for.body.preheader i32.const $push2=, -3161 call foo@FUNCTION, $pop2 @@ -45,10 +46,10 @@ main: # @main i32.store $discard=, i($0), $pop3 i32.const $push4=, -1 i32.gt_s $push5=, $2, $pop4 - br_if $pop5, .LBB1_3 + br_if $pop5, 0 # 0: down to label1 .LBB1_2: # %for.body.for.body_crit_edge # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label2: i64.load32_u $push12=, s+8($0) i32.const $push7=, s+8 i32.const $push6=, 4 @@ -69,8 +70,10 @@ main: # @main i32.add $push21=, $2, $1 i32.store $discard=, i($0), $pop21 i32.lt_s $push22=, $2, $0 - br_if $pop22, .LBB1_2 + br_if $pop22, 0 # 0: up to label2 .LBB1_3: # %for.end + end_loop # label3: + end_block # label1: return $0 .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/pr57344-2.c.s b/test/torture-s/pr57344-2.c.s index 6387294fe..a446c3f67 100644 --- a/test/torture-s/pr57344-2.c.s +++ b/test/torture-s/pr57344-2.c.s @@ -7,15 +7,16 @@ foo: # @foo .param i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, -3161 i32.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end #APP #NO_APP return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -31,11 +32,11 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $2=, i($0) - block .LBB1_3 + block i64.const $push0=, 562525691183104 i64.store $discard=, s+8($0), $pop0 i32.gt_s $push1=, $2, $0 - br_if $pop1, .LBB1_3 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %for.body.preheader i32.const $push2=, -3161 call foo@FUNCTION, $pop2 @@ -45,10 +46,10 @@ main: # @main i32.store $discard=, i($0), $pop3 i32.const $push4=, -1 i32.gt_s $push5=, $2, $pop4 - br_if $pop5, .LBB1_3 + br_if $pop5, 0 # 0: down to label1 .LBB1_2: # %for.body.for.body_crit_edge # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label2: i32.const $2=, s+8 i64.load32_u $push17=, s+8($0) i32.const $push11=, 4 @@ -73,8 +74,10 @@ main: # @main i32.add $push24=, $2, $1 i32.store $discard=, i($0), $pop24 i32.lt_s $push25=, $2, $0 - br_if $pop25, .LBB1_2 + br_if $pop25, 0 # 0: up to label2 .LBB1_3: # %for.end + end_loop # label3: + end_block # label1: return $0 .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/pr57344-3.c.s b/test/torture-s/pr57344-3.c.s index 743232173..308331aab 100644 --- a/test/torture-s/pr57344-3.c.s +++ b/test/torture-s/pr57344-3.c.s @@ -7,15 +7,16 @@ foo: # @foo .param i64 # BB#0: # %entry - block .LBB0_2 + block i64.const $push0=, -3161 i64.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end #APP #NO_APP return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -34,10 +35,10 @@ main: # @main i32.const $push1=, 16 call memcpy@FUNCTION, $pop2, $pop0, $pop1 i32.const $0=, 0 - block .LBB1_3 + block i32.load $push3=, i($0) i32.gt_s $push4=, $pop3, $0 - br_if $pop4, .LBB1_3 + br_if $pop4, 0 # 0: down to label1 # BB#1: # %for.body.preheader i64.const $push5=, -3161 call foo@FUNCTION, $pop5 @@ -47,10 +48,10 @@ main: # @main i32.store $discard=, i($0), $pop6 i32.const $push7=, -1 i32.gt_s $push8=, $5, $pop7 - br_if $pop8, .LBB1_3 + br_if $pop8, 0 # 0: down to label1 .LBB1_2: # %for.body.for.body_crit_edge # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label2: i64.load $2=, s+16($0) i64.const $3=, 7 i64.const $4=, 56 @@ -72,8 +73,10 @@ main: # @main i32.add $push22=, $5, $1 i32.store $discard=, i($0), $pop22 i32.lt_s $push23=, $5, $0 - br_if $pop23, .LBB1_2 + br_if $pop23, 0 # 0: up to label2 .LBB1_3: # %for.end + end_loop # label3: + end_block # label1: return $0 .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/pr57344-4.c.s b/test/torture-s/pr57344-4.c.s index 907b106d2..9a02dc2f9 100644 --- a/test/torture-s/pr57344-4.c.s +++ b/test/torture-s/pr57344-4.c.s @@ -7,15 +7,16 @@ foo: # @foo .param i64 # BB#0: # %entry - block .LBB0_2 + block i64.const $push0=, -1220975898975746 i64.ne $push1=, $0, $pop0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end #APP #NO_APP return .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -34,10 +35,10 @@ main: # @main i32.const $push1=, 16 call memcpy@FUNCTION, $pop2, $pop0, $pop1 i32.const $0=, 0 - block .LBB1_3 + block i32.load $push3=, i($0) i32.gt_s $push4=, $pop3, $0 - br_if $pop4, .LBB1_3 + br_if $pop4, 0 # 0: down to label1 # BB#1: # %for.body.preheader i64.const $push5=, -1220975898975746 call foo@FUNCTION, $pop5 @@ -47,10 +48,10 @@ main: # @main i32.store $discard=, i($0), $pop6 i32.const $push7=, -1 i32.gt_s $push8=, $2, $pop7 - br_if $pop8, .LBB1_3 + br_if $pop8, 0 # 0: down to label1 .LBB1_2: # %for.body.for.body_crit_edge # =>This Inner Loop Header: Depth=1 - loop .LBB1_3 + loop # label2: i32.const $2=, s+24 i64.load32_u $push20=, s+24($0) i32.const $push14=, 4 @@ -80,8 +81,10 @@ main: # @main i32.add $push32=, $2, $1 i32.store $discard=, i($0), $pop32 i32.lt_s $push33=, $2, $0 - br_if $pop33, .LBB1_2 + br_if $pop33, 0 # 0: up to label2 .LBB1_3: # %for.end + end_loop # label3: + end_block # label1: return $0 .Lfunc_end1: .size main, .Lfunc_end1-main diff --git a/test/torture-s/pr57568.c.s b/test/torture-s/pr57568.c.s index ca41900cf..65c9ad61a 100644 --- a/test/torture-s/pr57568.c.s +++ b/test/torture-s/pr57568.c.s @@ -9,11 +9,11 @@ main: # @main .local i32, i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_3 + block i32.load $push0=, b($0) i32.const $push3=, 0 i32.eq $push4=, $pop0, $pop3 - br_if $pop4, .LBB0_3 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %land.lhs.true i32.load $1=, c($0) i32.load $2=, 0($1) @@ -22,11 +22,12 @@ main: # @main i32.store $discard=, 0($1), $pop2 i32.const $push5=, 0 i32.eq $push6=, $2, $pop5 - br_if $pop6, .LBB0_3 + br_if $pop6, 0 # 0: down to label0 # BB#2: # %if.then call abort@FUNCTION unreachable .LBB0_3: # %if.end + end_block # label0: return $0 .Lfunc_end0: .size main, .Lfunc_end0-main diff --git a/test/torture-s/pr57829.c.s b/test/torture-s/pr57829.c.s index d0f75b68e..86dd37627 100644 --- a/test/torture-s/pr57829.c.s +++ b/test/torture-s/pr57829.c.s @@ -67,28 +67,29 @@ main: # @main i32.const $0=, 1 i32.call $1=, f1@FUNCTION, $0 i32.const $2=, 2 - block .LBB3_5 + block i32.ne $push0=, $1, $2 - br_if $pop0, .LBB3_5 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i32.call $push1=, f2@FUNCTION, $0 i32.ne $push2=, $pop1, $2 - br_if $pop2, .LBB3_5 + br_if $pop2, 0 # 0: down to label0 # BB#2: # %lor.lhs.false3 i32.const $push3=, 63 i32.call $push4=, f3@FUNCTION, $pop3 i32.const $push5=, 6 i32.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB3_5 + br_if $pop6, 0 # 0: down to label0 # BB#3: # %lor.lhs.false6 i32.call $push7=, f3@FUNCTION, $0 i32.const $push8=, 4 i32.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB3_5 + br_if $pop9, 0 # 0: down to label0 # BB#4: # %if.end i32.const $push10=, 0 return $pop10 .LBB3_5: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr57860.c.s b/test/torture-s/pr57860.c.s index b2d6349aa..e14ad682b 100644 --- a/test/torture-s/pr57860.c.s +++ b/test/torture-s/pr57860.c.s @@ -16,17 +16,18 @@ foo: # @foo i64.extend_s/i32 $1=, $0 .LBB0_1: # %for.cond1thread-pre-split # =>This Inner Loop Header: Depth=1 - loop .LBB0_5 - block .LBB0_3 + loop # label0: + block i32.load $push0=, c($5) i32.const $push15=, 0 i32.eq $push16=, $pop0, $pop15 - br_if $pop16, .LBB0_3 + br_if $pop16, 0 # 0: down to label2 # BB#2: # %for.inc.preheader # in Loop: Header=BB0_1 Depth=1 i32.store $discard=, c($5), $5 .LBB0_3: # %for.end # in Loop: Header=BB0_1 Depth=1 + end_block # label2: i64.load32_s $push4=, 0($2) i64.load32_s $push1=, a($5) i64.const $push2=, 8589934591 @@ -41,14 +42,15 @@ foo: # @foo i32.shl $push9=, $0, $pop8 i32.add $push11=, $pop10, $pop9 i32.load $push12=, 0($pop11) - br_if $pop12, .LBB0_5 + br_if $pop12, 1 # 1: down to label1 # BB#4: # %for.inc6 # in Loop: Header=BB0_1 Depth=1 i32.const $push13=, 1 i32.add $push14=, $0, $pop13 i32.store $discard=, g($5), $pop14 - br .LBB0_1 + br 0 # 0: up to label0 .LBB0_5: # %if.then + end_loop # label1: return $5 .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -68,17 +70,18 @@ main: # @main i64.const $5=, 8589934591 .LBB1_1: # %for.cond1thread-pre-split.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_5 - block .LBB1_3 + loop # label3: + block i32.load $push0=, c($4) i32.const $push18=, 0 i32.eq $push19=, $pop0, $pop18 - br_if $pop19, .LBB1_3 + br_if $pop19, 0 # 0: down to label5 # BB#2: # %for.inc.preheader.i # in Loop: Header=BB1_1 Depth=1 i32.store $discard=, c($4), $4 .LBB1_3: # %for.end.i # in Loop: Header=BB1_1 Depth=1 + end_block # label5: i64.load32_s $push3=, 0($0) i64.load32_s $push1=, a($4) i64.xor $push2=, $pop1, $5 @@ -93,22 +96,24 @@ main: # @main i32.shl $push9=, $3, $pop8 i32.add $push11=, $pop10, $pop9 i32.load $push12=, 0($pop11) - br_if $pop12, .LBB1_5 + br_if $pop12, 1 # 1: down to label4 # BB#4: # %for.inc6.i # in Loop: Header=BB1_1 Depth=1 i32.const $push16=, 1 i32.add $push17=, $3, $pop16 i32.store $discard=, g($4), $pop17 - br .LBB1_1 + br 0 # 0: up to label3 .LBB1_5: # %foo.exit - block .LBB1_7 + end_loop # label4: + block i32.load $push13=, d($4) i32.const $push14=, 1 i32.ne $push15=, $pop13, $pop14 - br_if $pop15, .LBB1_7 + br_if $pop15, 0 # 0: down to label6 # BB#6: # %if.end return $4 .LBB1_7: # %if.then + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr57861.c.s b/test/torture-s/pr57861.c.s index 09f42f6e2..cb954f321 100644 --- a/test/torture-s/pr57861.c.s +++ b/test/torture-s/pr57861.c.s @@ -13,12 +13,12 @@ main: # @main i32.store $discard=, c($1), $1 i32.const $2=, 24 copy_local $4=, $0 - block .LBB0_2 + block i32.load $push3=, e($1) i32.shl $push1=, $0, $2 i32.shr_s $push2=, $pop1, $2 i32.ge_u $push4=, $pop3, $pop2 - br_if $pop4, .LBB0_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.then.i.1 i32.load $push5=, d($1) i32.ne $push6=, $pop5, $1 @@ -28,6 +28,7 @@ main: # @main i32.store16 $4=, a($1), $pop0 i32.store16 $discard=, f($1), $1 .LBB0_2: # %for.inc.i.1 + end_block # label0: i32.store $2=, j($1), $1 i32.load $3=, g($2) i32.const $push9=, 255 @@ -37,13 +38,14 @@ main: # @main i32.const $push12=, 2 i32.store $discard=, c($2), $pop12 i32.store $1=, 0($3), $2 - block .LBB0_4 + block i32.const $push13=, 65535 i32.and $push14=, $4, $pop13 - br_if $pop14, .LBB0_4 + br_if $pop14, 0 # 0: down to label1 # BB#3: # %if.end return $1 .LBB0_4: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr57875.c.s b/test/torture-s/pr57875.c.s index 17c70d693..73ac05361 100644 --- a/test/torture-s/pr57875.c.s +++ b/test/torture-s/pr57875.c.s @@ -10,48 +10,53 @@ main: # @main # BB#0: # %entry i32.const $3=, 0 i32.load $5=, i($3) - block .LBB0_9 + block i32.gt_s $push0=, $5, $3 - br_if $pop0, .LBB0_9 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %for.body.lr.ph i32.load $0=, d($3) i32.load $1=, c($3) .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB0_8 - block .LBB0_7 - br_if $0, .LBB0_7 + loop # label1: + block + br_if $0, 0 # 0: down to label3 # BB#3: # %if.then # in Loop: Header=BB0_2 Depth=1 - block .LBB0_6 - block .LBB0_5 + block + block i32.const $push14=, 0 i32.eq $push15=, $1, $pop14 - br_if $pop15, .LBB0_5 + br_if $pop15, 0 # 0: down to label5 # BB#4: # %if.then.if.end_crit_edge # in Loop: Header=BB0_2 Depth=1 i32.load $2=, f($3) - br .LBB0_6 + br 1 # 1: down to label4 .LBB0_5: # %if.then2 # in Loop: Header=BB0_2 Depth=1 + end_block # label5: i32.const $push1=, 2 i32.store $2=, f($3), $pop1 .LBB0_6: # %if.end # in Loop: Header=BB0_2 Depth=1 + end_block # label4: i32.load8_u $push2=, e($3) i32.and $push3=, $pop2, $2 i32.store8 $discard=, e($3), $pop3 .LBB0_7: # %for.inc # in Loop: Header=BB0_2 Depth=1 + end_block # label3: i32.const $push4=, 1 i32.add $2=, $5, $pop4 i32.lt_s $4=, $5, $3 copy_local $5=, $2 - br_if $4, .LBB0_2 -.LBB0_8: # %for.cond.for.end_crit_edge + br_if $4, 0 # 0: up to label1 +# BB#8: # %for.cond.for.end_crit_edge + end_loop # label2: i32.store $discard=, i($3), $2 .LBB0_9: # %for.end - block .LBB0_11 + end_block # label0: + block i32.const $push10=, a i32.load8_u $push5=, e($3) i32.const $push6=, 1 @@ -61,10 +66,11 @@ main: # @main i32.add $push11=, $pop10, $pop9 i32.load $push12=, 0($pop11) i32.store $push13=, b($3), $pop12 - br_if $pop13, .LBB0_11 + br_if $pop13, 0 # 0: down to label6 # BB#10: # %if.end10 return $3 .LBB0_11: # %if.then9 + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr57877.c.s b/test/torture-s/pr57877.c.s index 2ccf3df29..1840596f3 100644 --- a/test/torture-s/pr57877.c.s +++ b/test/torture-s/pr57877.c.s @@ -11,14 +11,15 @@ main: # @main i32.const $3=, 0 i32.load $7=, g($3) i32.const $4=, 1 - block .LBB0_5 - block .LBB0_2 + block + block i32.lt_s $push2=, $7, $4 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %entry.foo.exit_crit_edge i32.load $6=, e($3) - br .LBB0_5 + br 1 # 1: down to label0 .LBB0_2: # %for.body.lr.ph.i + end_block # label1: i64.load32_s $0=, f($3) i32.load $1=, c($3) i32.load $2=, a($3) @@ -26,7 +27,7 @@ main: # @main i32.add $7=, $7, $pop3 .LBB0_3: # %for.body.i # =>This Inner Loop Header: Depth=1 - loop .LBB0_4 + loop # label2: i32.load $push0=, 0($1) i32.store $5=, h($3), $pop0 i32.const $6=, 16 @@ -41,16 +42,19 @@ main: # @main i32.store $6=, e($3), $pop1 i32.add $7=, $7, $4 i32.lt_s $push10=, $7, $3 - br_if $pop10, .LBB0_3 -.LBB0_4: # %for.cond.for.end_crit_edge.i + br_if $pop10, 0 # 0: up to label2 +# BB#4: # %for.cond.for.end_crit_edge.i + end_loop # label3: i32.store16 $discard=, d($3), $5 .LBB0_5: # %foo.exit - block .LBB0_7 + end_block # label0: + block i32.ne $push11=, $6, $4 - br_if $pop11, .LBB0_7 + br_if $pop11, 0 # 0: down to label4 # BB#6: # %if.end return $3 .LBB0_7: # %if.then + end_block # label4: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr58209.c.s b/test/torture-s/pr58209.c.s index d86837c92..1299fc4d8 100644 --- a/test/torture-s/pr58209.c.s +++ b/test/torture-s/pr58209.c.s @@ -8,10 +8,10 @@ foo: # @foo .param i32 .result i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push6=, 0 i32.eq $push7=, $0, $pop6 - br_if $pop7, .LBB0_2 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push0=, -1 i32.add $push1=, $0, $pop0 @@ -20,6 +20,7 @@ foo: # @foo i32.add $push4=, $pop2, $pop3 return $pop4 .LBB0_2: # %return + end_block # label0: i32.const $push5=, buf return $pop5 .Lfunc_end0: @@ -35,10 +36,10 @@ bar: # @bar .local i32 # BB#0: # %entry i32.const $1=, buf - block .LBB1_2 + block i32.const $push4=, 0 i32.eq $push5=, $0, $pop4 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label1 # BB#1: # %if.end i32.const $push0=, -1 i32.add $push1=, $0, $pop0 @@ -46,6 +47,7 @@ bar: # @bar i32.const $push3=, 4 i32.add $1=, $pop2, $pop3 .LBB1_2: # %return + end_block # label1: return $1 .Lfunc_end1: .size bar, .Lfunc_end1-bar @@ -62,20 +64,20 @@ main: # @main i32.const $2=, buf-4 .LBB2_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB2_7 - loop .LBB2_6 + block + loop # label3: i32.call $0=, foo@FUNCTION, $3 i32.const $1=, 4 i32.add $2=, $2, $1 i32.ne $push1=, $2, $0 - br_if $pop1, .LBB2_7 + br_if $pop1, 2 # 2: down to label2 # BB#2: # %lor.lhs.false # in Loop: Header=BB2_1 Depth=1 i32.const $4=, buf - block .LBB2_4 + block i32.const $push9=, 0 i32.eq $push10=, $3, $pop9 - br_if $pop10, .LBB2_4 + br_if $pop10, 0 # 0: down to label5 # BB#3: # %if.end.i # in Loop: Header=BB2_1 Depth=1 i32.const $push2=, -1 @@ -84,19 +86,22 @@ main: # @main i32.add $4=, $pop4, $1 .LBB2_4: # %bar.exit # in Loop: Header=BB2_1 Depth=1 + end_block # label5: i32.ne $push5=, $4, $0 - br_if $pop5, .LBB2_7 + br_if $pop5, 2 # 2: down to label2 # BB#5: # %for.cond # in Loop: Header=BB2_1 Depth=1 i32.const $push0=, 1 i32.add $3=, $3, $pop0 i32.const $push6=, 26 i32.le_s $push7=, $3, $pop6 - br_if $pop7, .LBB2_1 -.LBB2_6: # %for.end + br_if $pop7, 0 # 0: up to label3 +# BB#6: # %for.end + end_loop # label4: i32.const $push8=, 0 return $pop8 .LBB2_7: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr58277-2.c.s b/test/torture-s/pr58277-2.c.s index 6ef1151c0..06e8be27f 100644 --- a/test/torture-s/pr58277-2.c.s +++ b/test/torture-s/pr58277-2.c.s @@ -10,21 +10,23 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.store8 $discard=, n($0), $0 - block .LBB0_3 - block .LBB0_2 + block + block i32.load $push0=, g($0) i32.const $push6=, 0 i32.eq $push7=, $pop0, $pop6 - br_if $pop7, .LBB0_2 + br_if $pop7, 0 # 0: down to label1 # BB#1: # %fn2.exit.thread.i i32.load $discard=, d($0) - br .LBB0_3 + br 1 # 1: down to label0 .LBB0_2: # %if.end.loopexit.i + end_block # label1: i32.load $push1=, h($0) i32.store $push2=, 0($pop1), $0 i32.const $push3=, 1 i32.store8 $discard=, n($pop2), $pop3 .LBB0_3: # %if.end + end_block # label0: i32.load $push4=, s($0) i32.store $discard=, 0($pop4), $0 i32.store8 $push5=, n($0), $0 diff --git a/test/torture-s/pr58364.c.s b/test/torture-s/pr58364.c.s index 021d17b97..4767e6e1f 100644 --- a/test/torture-s/pr58364.c.s +++ b/test/torture-s/pr58364.c.s @@ -28,12 +28,13 @@ main: # @main i32.load $1=, a($0) i32.load $2=, c($0) i32.store $discard=, b($0), $0 - block .LBB1_2 + block i32.le_s $push0=, $1, $2 - br_if $pop0, .LBB1_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr58365.c.s b/test/torture-s/pr58365.c.s index 1b1147e69..6ac1f52aa 100644 --- a/test/torture-s/pr58365.c.s +++ b/test/torture-s/pr58365.c.s @@ -28,12 +28,12 @@ main: # @main i32.const $6=, __stack_pointer i32.store $16=, 0($6), $16 i32.const $0=, 0 - block .LBB1_3 - block .LBB1_2 + block + block i32.load8_u $push0=, i($0) i32.const $push36=, 0 i32.eq $push37=, $pop0, $pop36 - br_if $pop37, .LBB1_2 + br_if $pop37, 0 # 0: down to label1 # BB#1: # %if.then.i i32.const $push2=, 16 i32.const $14=, 8 @@ -61,8 +61,9 @@ main: # @main i64.shl $push14=, $2, $1 i64.or $push15=, $pop14, $3 i64.store $discard=, 8($16), $pop15 - br .LBB1_3 + br 1 # 1: down to label0 .LBB1_2: # %if.end.i + end_block # label1: i32.const $push16=, 16 i32.const $8=, 8 i32.add $8=, $16, $8 @@ -76,6 +77,7 @@ main: # @main i64.store $push21=, 0($pop19), $pop20 i64.store $discard=, 8($16), $pop21 .LBB1_3: # %bar.exit + end_block # label0: i32.load $push22=, 8($16) i32.store $discard=, h($0), $pop22 i32.const $push23=, 16 @@ -103,10 +105,10 @@ main: # @main i32.load $push34=, 0($pop33) i32.store $discard=, h+4($0), $pop34 i32.load $4=, h+4($0) - block .LBB1_5 + block i32.const $push35=, 1 i32.store $discard=, f+4($0), $pop35 - br_if $4, .LBB1_5 + br_if $4, 0 # 0: down to label2 # BB#4: # %if.end i32.const $7=, 32 i32.add $16=, $16, $7 @@ -114,6 +116,7 @@ main: # @main i32.store $16=, 0($7), $16 return $0 .LBB1_5: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr58387.c.s b/test/torture-s/pr58387.c.s index d2fe9add7..5332c66c1 100644 --- a/test/torture-s/pr58387.c.s +++ b/test/torture-s/pr58387.c.s @@ -9,13 +9,14 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, a($0) i32.ge_s $push1=, $pop0, $0 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr58419.c.s b/test/torture-s/pr58419.c.s index 62213504d..7f57b42ff 100644 --- a/test/torture-s/pr58419.c.s +++ b/test/torture-s/pr58419.c.s @@ -51,7 +51,7 @@ main: # @main i32.const $6=, 1 i32.const $3=, 255 copy_local $4=, $6 - block .LBB2_2 + block i32.load $push1=, k($1) i32.ne $push4=, $pop1, $1 i32.and $push2=, $5, $2 @@ -61,16 +61,17 @@ main: # @main i32.lt_s $push7=, $pop6, $6 i32.sub $push8=, $pop5, $pop7 i32.and $push9=, $pop8, $3 - br_if $pop9, .LBB2_2 + br_if $pop9, 0 # 0: down to label0 # BB#1: # %lor.rhs i32.const $4=, 0 i32.const $push10=, 1 i32.store16 $5=, c($4), $pop10 i32.store $discard=, 0($0), $4 .LBB2_2: # %lor.end + end_block # label0: i32.store $discard=, g($1), $4 copy_local $4=, $6 - block .LBB2_4 + block i32.load $push11=, k($1) i32.ne $push14=, $pop11, $1 i32.and $push12=, $5, $2 @@ -80,16 +81,17 @@ main: # @main i32.lt_s $push17=, $pop16, $6 i32.sub $push18=, $pop15, $pop17 i32.and $push19=, $pop18, $3 - br_if $pop19, .LBB2_4 + br_if $pop19, 0 # 0: down to label1 # BB#3: # %lor.rhs.1 i32.const $4=, 0 i32.const $push20=, 1 i32.store16 $5=, c($4), $pop20 i32.store $discard=, 0($0), $4 .LBB2_4: # %lor.end.1 + end_block # label1: i32.store $discard=, g($1), $4 copy_local $4=, $6 - block .LBB2_6 + block i32.load $push21=, k($1) i32.ne $push24=, $pop21, $1 i32.and $push22=, $5, $2 @@ -99,16 +101,17 @@ main: # @main i32.lt_s $push27=, $pop26, $6 i32.sub $push28=, $pop25, $pop27 i32.and $push29=, $pop28, $3 - br_if $pop29, .LBB2_6 + br_if $pop29, 0 # 0: down to label2 # BB#5: # %lor.rhs.2 i32.const $4=, 0 i32.const $push30=, 1 i32.store16 $5=, c($4), $pop30 i32.store $discard=, 0($0), $4 .LBB2_6: # %lor.end.2 + end_block # label2: i32.store $discard=, g($1), $4 copy_local $4=, $6 - block .LBB2_8 + block i32.load $push31=, k($1) i32.ne $push34=, $pop31, $1 i32.and $push32=, $5, $2 @@ -118,16 +121,17 @@ main: # @main i32.lt_s $push37=, $pop36, $6 i32.sub $push38=, $pop35, $pop37 i32.and $push39=, $pop38, $3 - br_if $pop39, .LBB2_8 + br_if $pop39, 0 # 0: down to label3 # BB#7: # %lor.rhs.3 i32.const $4=, 0 i32.const $push40=, 1 i32.store16 $5=, c($4), $pop40 i32.store $discard=, 0($0), $4 .LBB2_8: # %lor.end.3 + end_block # label3: i32.store $discard=, g($1), $4 copy_local $4=, $6 - block .LBB2_10 + block i32.load $push41=, k($1) i32.ne $push44=, $pop41, $1 i32.and $push42=, $5, $2 @@ -137,16 +141,17 @@ main: # @main i32.lt_s $push47=, $pop46, $6 i32.sub $push48=, $pop45, $pop47 i32.and $push49=, $pop48, $3 - br_if $pop49, .LBB2_10 + br_if $pop49, 0 # 0: down to label4 # BB#9: # %lor.rhs.4 i32.const $4=, 0 i32.const $push50=, 1 i32.store16 $5=, c($4), $pop50 i32.store $discard=, 0($0), $4 .LBB2_10: # %lor.end.4 + end_block # label4: i32.store $discard=, g($1), $4 copy_local $4=, $6 - block .LBB2_12 + block i32.load $push51=, k($1) i32.ne $push54=, $pop51, $1 i32.and $push52=, $5, $2 @@ -156,16 +161,17 @@ main: # @main i32.lt_s $push57=, $pop56, $6 i32.sub $push58=, $pop55, $pop57 i32.and $push59=, $pop58, $3 - br_if $pop59, .LBB2_12 + br_if $pop59, 0 # 0: down to label5 # BB#11: # %lor.rhs.5 i32.const $4=, 0 i32.const $push60=, 1 i32.store16 $5=, c($4), $pop60 i32.store $discard=, 0($0), $4 .LBB2_12: # %lor.end.5 + end_block # label5: i32.store $discard=, g($1), $4 copy_local $4=, $6 - block .LBB2_14 + block i32.load $push61=, k($1) i32.ne $push64=, $pop61, $1 i32.and $push62=, $5, $2 @@ -175,13 +181,14 @@ main: # @main i32.lt_s $push67=, $pop66, $6 i32.sub $push68=, $pop65, $pop67 i32.and $push69=, $pop68, $3 - br_if $pop69, .LBB2_14 + br_if $pop69, 0 # 0: down to label6 # BB#13: # %lor.rhs.6 i32.const $4=, 0 i32.const $push70=, 1 i32.store16 $5=, c($4), $pop70 i32.store $discard=, 0($0), $4 .LBB2_14: # %lor.end.6 + end_block # label6: i32.store $discard=, g($1), $4 i32.load $push71=, k($1) i32.ne $push74=, $pop71, $1 @@ -189,17 +196,18 @@ main: # @main i32.ne $push73=, $pop72, $1 i32.and $5=, $pop74, $pop73 i32.load $2=, a($1) - block .LBB2_16 + block i32.load $push75=, i($1) i32.lt_s $push76=, $pop75, $6 i32.sub $push77=, $5, $pop76 i32.and $push78=, $pop77, $3 - br_if $pop78, .LBB2_16 + br_if $pop78, 0 # 0: down to label7 # BB#15: # %lor.rhs.7 i32.const $push79=, 1 i32.store16 $discard=, c($1), $pop79 i32.store $6=, 0($0), $1 .LBB2_16: # %lor.end.7 + end_block # label7: i32.store $discard=, g($1), $6 i32.store16 $discard=, h($1), $2 i32.store8 $discard=, e($1), $5 diff --git a/test/torture-s/pr58431.c.s b/test/torture-s/pr58431.c.s index 9553f5f21..a8d0f0fdf 100644 --- a/test/torture-s/pr58431.c.s +++ b/test/torture-s/pr58431.c.s @@ -17,53 +17,58 @@ main: # @main i32.load $0=, k($3) i32.load8_s $1=, a($3) i32.const $4=, 24 - block .LBB0_2 + block i32.shl $push2=, $2, $4 i32.shr_s $4=, $pop2, $4 i32.load $push3=, j($3) - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %lor.rhs i32.load $push4=, c($3) i32.ne $5=, $pop4, $3 .LBB0_2: # %lor.end - block .LBB0_10 - block .LBB0_8 - block .LBB0_6 + end_block # label0: + block + block + block i32.ne $push5=, $1, $4 - br_if $pop5, .LBB0_6 + br_if $pop5, 0 # 0: down to label3 # BB#3: # %if.else i32.load $4=, e($3) - block .LBB0_5 + block i32.const $push9=, 1 i32.store8 $2=, h($3), $pop9 i32.const $push11=, 0 i32.eq $push12=, $4, $pop11 - br_if $pop12, .LBB0_5 + br_if $pop12, 0 # 0: down to label4 # BB#4: # %for.inc17.preheader i32.store $discard=, e($3), $3 - br .LBB0_8 + br 2 # 2: down to label2 .LBB0_5: # %for.end22.thread + end_block # label4: i32.store $discard=, g($3), $0 i32.store $discard=, j($3), $5 i32.store $discard=, b($3), $2 - br .LBB0_10 + br 2 # 2: down to label1 .LBB0_6: # %for.cond10thread-pre-split + end_block # label3: i32.load $push6=, d($3) i32.gt_s $push7=, $pop6, $3 - br_if $pop7, .LBB0_8 + br_if $pop7, 0 # 0: down to label2 # BB#7: # %for.inc.preheader i32.const $push8=, 1 i32.store $discard=, d($3), $pop8 .LBB0_8: # %for.end22 + end_block # label2: i32.store $discard=, g($3), $0 i32.load8_u $4=, h($3) i32.store $discard=, j($3), $5 i32.const $push10=, 1 i32.store $discard=, b($3), $pop10 - br_if $4, .LBB0_10 + br_if $4, 0 # 0: down to label1 # BB#9: # %if.end27 return $3 .LBB0_10: # %if.then26 + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr58570.c.s b/test/torture-s/pr58570.c.s index 484552deb..569f95b5e 100644 --- a/test/torture-s/pr58570.c.s +++ b/test/torture-s/pr58570.c.s @@ -9,11 +9,11 @@ main: # @main .local i32, i32, i32, i64 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, e($0) i32.const $push29=, 0 i32.eq $push30=, $pop0, $pop29 - br_if $pop30, .LBB0_2 + br_if $pop30, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push4=, d i32.load $push1=, i($0) @@ -33,7 +33,8 @@ main: # @main i64.and $push11=, $3, $pop10 i64.store16 $discard=, 0($2), $pop11 .LBB0_2: # %if.end - block .LBB0_4 + end_block # label0: + block i64.load32_u $push18=, d($0) i32.const $push12=, d i32.const $push13=, 4 @@ -51,10 +52,11 @@ main: # @main i32.wrap/i64 $push26=, $pop25 i32.const $push27=, 1 i32.ne $push28=, $pop26, $pop27 - br_if $pop28, .LBB0_4 + br_if $pop28, 0 # 0: down to label1 # BB#3: # %if.end7 return $0 .LBB0_4: # %if.then6 + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr58574.c.s b/test/torture-s/pr58574.c.s index 4edc492b2..f5731d556 100644 --- a/test/torture-s/pr58574.c.s +++ b/test/torture-s/pr58574.c.s @@ -11,77 +11,142 @@ foo: # @foo # BB#0: # %entry i32.trunc_s/f64 $1=, $0 f64.const $2=, 0x1p0 - block .LBB0_66 + block i32.const $push0=, 93 i32.gt_u $push1=, $1, $pop0 - br_if $pop1, .LBB0_66 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry - block .LBB0_65 - block .LBB0_64 - block .LBB0_63 - block .LBB0_62 - block .LBB0_61 - block .LBB0_60 - block .LBB0_59 - block .LBB0_58 - block .LBB0_57 - block .LBB0_56 - block .LBB0_55 - block .LBB0_54 - block .LBB0_53 - block .LBB0_52 - block .LBB0_51 - block .LBB0_50 - block .LBB0_49 - block .LBB0_48 - block .LBB0_47 - block .LBB0_46 - block .LBB0_45 - block .LBB0_44 - block .LBB0_43 - block .LBB0_42 - block .LBB0_41 - block .LBB0_40 - block .LBB0_39 - block .LBB0_38 - block .LBB0_37 - block .LBB0_36 - block .LBB0_35 - block .LBB0_34 - block .LBB0_33 - block .LBB0_32 - block .LBB0_31 - block .LBB0_30 - block .LBB0_29 - block .LBB0_28 - block .LBB0_27 - block .LBB0_26 - block .LBB0_25 - block .LBB0_24 - block .LBB0_23 - block .LBB0_22 - block .LBB0_21 - block .LBB0_20 - block .LBB0_19 - block .LBB0_18 - block .LBB0_17 - block .LBB0_16 - block .LBB0_15 - block .LBB0_14 - block .LBB0_13 - block .LBB0_12 - block .LBB0_11 - block .LBB0_10 - block .LBB0_9 - block .LBB0_8 - block .LBB0_7 - block .LBB0_6 - block .LBB0_5 - block .LBB0_4 - block .LBB0_3 - block .LBB0_2 - tableswitch $1, .LBB0_2, .LBB0_2, .LBB0_3, .LBB0_4, .LBB0_5, .LBB0_6, .LBB0_7, .LBB0_8, .LBB0_9, .LBB0_10, .LBB0_11, .LBB0_12, .LBB0_13, .LBB0_14, .LBB0_15, .LBB0_16, .LBB0_17, .LBB0_18, .LBB0_19, .LBB0_20, .LBB0_21, .LBB0_22, .LBB0_23, .LBB0_24, .LBB0_25, .LBB0_26, .LBB0_27, .LBB0_28, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_29, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_30, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_31, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_66, .LBB0_32, .LBB0_33, .LBB0_34, .LBB0_35, .LBB0_36, .LBB0_37, .LBB0_38, .LBB0_39, .LBB0_40, .LBB0_41, .LBB0_42, .LBB0_43, .LBB0_44, .LBB0_45, .LBB0_46, .LBB0_47, .LBB0_48, .LBB0_49, .LBB0_50, .LBB0_51, .LBB0_52, .LBB0_53, .LBB0_54, .LBB0_55, .LBB0_56, .LBB0_57, .LBB0_58, .LBB0_59, .LBB0_60, .LBB0_61, .LBB0_62, .LBB0_63, .LBB0_64, .LBB0_65 + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + tableswitch $1, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 64, 64, 64, 27, 64, 64, 64, 64, 64, 64, 64, 64, 64, 28, 64, 64, 64, 64, 64, 64, 64, 64, 64, 29, 64, 64, 64, 64, 64, 64, 64, 64, 64, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63 # 0: down to label64 + # 1: down to label63 + # 2: down to label62 + # 3: down to label61 + # 4: down to label60 + # 5: down to label59 + # 6: down to label58 + # 7: down to label57 + # 8: down to label56 + # 9: down to label55 + # 10: down to label54 + # 11: down to label53 + # 12: down to label52 + # 13: down to label51 + # 14: down to label50 + # 15: down to label49 + # 16: down to label48 + # 17: down to label47 + # 18: down to label46 + # 19: down to label45 + # 20: down to label44 + # 21: down to label43 + # 22: down to label42 + # 23: down to label41 + # 24: down to label40 + # 25: down to label39 + # 26: down to label38 + # 64: down to label0 + # 27: down to label37 + # 28: down to label36 + # 29: down to label35 + # 30: down to label34 + # 31: down to label33 + # 32: down to label32 + # 33: down to label31 + # 34: down to label30 + # 35: down to label29 + # 36: down to label28 + # 37: down to label27 + # 38: down to label26 + # 39: down to label25 + # 40: down to label24 + # 41: down to label23 + # 42: down to label22 + # 43: down to label21 + # 44: down to label20 + # 45: down to label19 + # 46: down to label18 + # 47: down to label17 + # 48: down to label16 + # 49: down to label15 + # 50: down to label14 + # 51: down to label13 + # 52: down to label12 + # 53: down to label11 + # 54: down to label10 + # 55: down to label9 + # 56: down to label8 + # 57: down to label7 + # 58: down to label6 + # 59: down to label5 + # 60: down to label4 + # 61: down to label3 + # 62: down to label2 + # 63: down to label1 .LBB0_2: # %sw.bb + end_block # label64: f64.add $push1262=, $0, $0 f64.const $push1263=, -0x1p0 f64.add $0=, $pop1262, $pop1263 @@ -104,8 +169,9 @@ foo: # @foo f64.mul $push1280=, $0, $pop1279 f64.const $push1281=, 0x1.739ad75c47d48p-11 f64.add $2=, $pop1280, $pop1281 - br .LBB0_66 + br 63 # 63: down to label0 .LBB0_3: # %sw.bb12 + end_block # label63: f64.add $push1242=, $0, $0 f64.const $push1243=, -0x1.8p1 f64.add $0=, $pop1242, $pop1243 @@ -128,8 +194,9 @@ foo: # @foo f64.mul $push1260=, $0, $pop1259 f64.const $push1261=, 0x1.1987908299a2dp-9 f64.add $2=, $pop1260, $pop1261 - br .LBB0_66 + br 62 # 62: down to label0 .LBB0_4: # %sw.bb27 + end_block # label62: f64.add $push1222=, $0, $0 f64.const $push1223=, -0x1.4p2 f64.add $0=, $pop1222, $pop1223 @@ -152,8 +219,9 @@ foo: # @foo f64.mul $push1240=, $0, $pop1239 f64.const $push1241=, 0x1.da059a73b42ccp-9 f64.add $2=, $pop1240, $pop1241 - br .LBB0_66 + br 61 # 61: down to label0 .LBB0_5: # %sw.bb42 + end_block # label61: f64.add $push1202=, $0, $0 f64.const $push1203=, -0x1.cp2 f64.add $0=, $pop1202, $pop1203 @@ -176,8 +244,9 @@ foo: # @foo f64.mul $push1220=, $0, $pop1219 f64.const $push1221=, 0x1.4f3e2bb4b9b09p-8 f64.add $2=, $pop1220, $pop1221 - br .LBB0_66 + br 60 # 60: down to label0 .LBB0_6: # %sw.bb57 + end_block # label60: f64.add $push1182=, $0, $0 f64.const $push1183=, -0x1.2p3 f64.add $0=, $pop1182, $pop1183 @@ -200,8 +269,9 @@ foo: # @foo f64.mul $push1200=, $0, $pop1199 f64.const $push1201=, 0x1.b3885828b601bp-8 f64.add $2=, $pop1200, $pop1201 - br .LBB0_66 + br 59 # 59: down to label0 .LBB0_7: # %sw.bb72 + end_block # label59: f64.add $push1162=, $0, $0 f64.const $push1163=, -0x1.6p3 f64.add $0=, $pop1162, $pop1163 @@ -224,8 +294,9 @@ foo: # @foo f64.mul $push1180=, $0, $pop1179 f64.const $push1181=, 0x1.0cf75f478e341p-7 f64.add $2=, $pop1180, $pop1181 - br .LBB0_66 + br 58 # 58: down to label0 .LBB0_8: # %sw.bb87 + end_block # label58: f64.add $push1142=, $0, $0 f64.const $push1143=, -0x1.ap3 f64.add $0=, $pop1142, $pop1143 @@ -248,8 +319,9 @@ foo: # @foo f64.mul $push1160=, $0, $pop1159 f64.const $push1161=, 0x1.414112efc6ccep-7 f64.add $2=, $pop1160, $pop1161 - br .LBB0_66 + br 57 # 57: down to label0 .LBB0_9: # %sw.bb102 + end_block # label57: f64.add $push1122=, $0, $0 f64.const $push1123=, -0x1.ep3 f64.add $0=, $pop1122, $pop1123 @@ -272,8 +344,9 @@ foo: # @foo f64.mul $push1140=, $0, $pop1139 f64.const $push1141=, 0x1.76a2f48c2e771p-7 f64.add $2=, $pop1140, $pop1141 - br .LBB0_66 + br 56 # 56: down to label0 .LBB0_10: # %sw.bb117 + end_block # label56: f64.add $push1102=, $0, $0 f64.const $push1103=, -0x1.1p4 f64.add $0=, $pop1102, $pop1103 @@ -296,8 +369,9 @@ foo: # @foo f64.mul $push1120=, $0, $pop1119 f64.const $push1121=, 0x1.ad3a604e1e71p-7 f64.add $2=, $pop1120, $pop1121 - br .LBB0_66 + br 55 # 55: down to label0 .LBB0_11: # %sw.bb132 + end_block # label55: f64.add $push1082=, $0, $0 f64.const $push1083=, -0x1.3p4 f64.add $0=, $pop1082, $pop1083 @@ -320,8 +394,9 @@ foo: # @foo f64.mul $push1100=, $0, $pop1099 f64.const $push1101=, 0x1.e4f765fd8adacp-7 f64.add $2=, $pop1100, $pop1101 - br .LBB0_66 + br 54 # 54: down to label0 .LBB0_12: # %sw.bb147 + end_block # label54: f64.add $push1062=, $0, $0 f64.const $push1063=, -0x1.5p4 f64.add $0=, $pop1062, $pop1063 @@ -344,8 +419,9 @@ foo: # @foo f64.mul $push1080=, $0, $pop1079 f64.const $push1081=, 0x1.0efdc9c4da9p-6 f64.add $2=, $pop1080, $pop1081 - br .LBB0_66 + br 53 # 53: down to label0 .LBB0_13: # %sw.bb162 + end_block # label53: f64.add $push1042=, $0, $0 f64.const $push1043=, -0x1.7p4 f64.add $0=, $pop1042, $pop1043 @@ -368,8 +444,9 @@ foo: # @foo f64.mul $push1060=, $0, $pop1059 f64.const $push1061=, 0x1.2c1f42bb6673p-6 f64.add $2=, $pop1060, $pop1061 - br .LBB0_66 + br 52 # 52: down to label0 .LBB0_14: # %sw.bb177 + end_block # label52: f64.add $push1022=, $0, $0 f64.const $push1023=, -0x1.9p4 f64.add $0=, $pop1022, $pop1023 @@ -392,8 +469,9 @@ foo: # @foo f64.mul $push1040=, $0, $pop1039 f64.const $push1041=, 0x1.49e8815e39714p-6 f64.add $2=, $pop1040, $pop1041 - br .LBB0_66 + br 51 # 51: down to label0 .LBB0_15: # %sw.bb192 + end_block # label51: f64.add $push1002=, $0, $0 f64.const $push1003=, -0x1.bp4 f64.add $0=, $pop1002, $pop1003 @@ -416,8 +494,9 @@ foo: # @foo f64.mul $push1020=, $0, $pop1019 f64.const $push1021=, 0x1.6861e92923e5cp-6 f64.add $2=, $pop1020, $pop1021 - br .LBB0_66 + br 50 # 50: down to label0 .LBB0_16: # %sw.bb207 + end_block # label50: f64.add $push982=, $0, $0 f64.const $push983=, -0x1.dp4 f64.add $0=, $pop982, $pop983 @@ -440,8 +519,9 @@ foo: # @foo f64.mul $push1000=, $0, $pop999 f64.const $push1001=, 0x1.878b7a1c25d07p-6 f64.add $2=, $pop1000, $pop1001 - br .LBB0_66 + br 49 # 49: down to label0 .LBB0_17: # %sw.bb222 + end_block # label49: f64.add $push962=, $0, $0 f64.const $push963=, -0x1.fp4 f64.add $0=, $pop962, $pop963 @@ -464,8 +544,9 @@ foo: # @foo f64.mul $push980=, $0, $pop979 f64.const $push981=, 0x1.a771c970f7b9ep-6 f64.add $2=, $pop980, $pop981 - br .LBB0_66 + br 48 # 48: down to label0 .LBB0_18: # %sw.bb237 + end_block # label48: f64.add $push942=, $0, $0 f64.const $push943=, -0x1.08p5 f64.add $0=, $pop942, $pop943 @@ -488,8 +569,9 @@ foo: # @foo f64.mul $push960=, $0, $pop959 f64.const $push961=, 0x1.c814d72799a2p-6 f64.add $2=, $pop960, $pop961 - br .LBB0_66 + br 47 # 47: down to label0 .LBB0_19: # %sw.bb252 + end_block # label47: f64.add $push922=, $0, $0 f64.const $push923=, -0x1.18p5 f64.add $0=, $pop922, $pop923 @@ -512,8 +594,9 @@ foo: # @foo f64.mul $push940=, $0, $pop939 f64.const $push941=, 0x1.e9813879c4114p-6 f64.add $2=, $pop940, $pop941 - br .LBB0_66 + br 46 # 46: down to label0 .LBB0_20: # %sw.bb267 + end_block # label46: f64.add $push902=, $0, $0 f64.const $push903=, -0x1.28p5 f64.add $0=, $pop902, $pop903 @@ -536,8 +619,9 @@ foo: # @foo f64.mul $push920=, $0, $pop919 f64.const $push921=, 0x1.05db76b3bb83dp-5 f64.add $2=, $pop920, $pop921 - br .LBB0_66 + br 45 # 45: down to label0 .LBB0_21: # %sw.bb282 + end_block # label45: f64.add $push882=, $0, $0 f64.const $push883=, -0x1.38p5 f64.add $0=, $pop882, $pop883 @@ -560,8 +644,9 @@ foo: # @foo f64.mul $push900=, $0, $pop899 f64.const $push901=, 0x1.176145953586dp-5 f64.add $2=, $pop900, $pop901 - br .LBB0_66 + br 44 # 44: down to label0 .LBB0_22: # %sw.bb297 + end_block # label44: f64.add $push862=, $0, $0 f64.const $push863=, -0x1.48p5 f64.add $0=, $pop862, $pop863 @@ -584,8 +669,9 @@ foo: # @foo f64.mul $push880=, $0, $pop879 f64.const $push881=, 0x1.295421c044285p-5 f64.add $2=, $pop880, $pop881 - br .LBB0_66 + br 43 # 43: down to label0 .LBB0_23: # %sw.bb312 + end_block # label43: f64.add $push842=, $0, $0 f64.const $push843=, -0x1.58p5 f64.add $0=, $pop842, $pop843 @@ -608,8 +694,9 @@ foo: # @foo f64.mul $push860=, $0, $pop859 f64.const $push861=, 0x1.3bb83cf2cf95dp-5 f64.add $2=, $pop860, $pop861 - br .LBB0_66 + br 42 # 42: down to label0 .LBB0_24: # %sw.bb327 + end_block # label42: f64.add $push822=, $0, $0 f64.const $push823=, -0x1.68p5 f64.add $0=, $pop822, $pop823 @@ -632,8 +719,9 @@ foo: # @foo f64.mul $push840=, $0, $pop839 f64.const $push841=, 0x1.4e93e1c9b413ap-5 f64.add $2=, $pop840, $pop841 - br .LBB0_66 + br 41 # 41: down to label0 .LBB0_25: # %sw.bb342 + end_block # label41: f64.add $push802=, $0, $0 f64.const $push803=, -0x1.78p5 f64.add $0=, $pop802, $pop803 @@ -656,8 +744,9 @@ foo: # @foo f64.mul $push820=, $0, $pop819 f64.const $push821=, 0x1.61e71044f1a1ap-5 f64.add $2=, $pop820, $pop821 - br .LBB0_66 + br 40 # 40: down to label0 .LBB0_26: # %sw.bb357 + end_block # label40: f64.add $push782=, $0, $0 f64.const $push783=, -0x1.88p5 f64.add $0=, $pop782, $pop783 @@ -680,8 +769,9 @@ foo: # @foo f64.mul $push800=, $0, $pop799 f64.const $push801=, 0x1.75ba2be0589adp-5 f64.add $2=, $pop800, $pop801 - br .LBB0_66 + br 39 # 39: down to label0 .LBB0_27: # %sw.bb372 + end_block # label39: f64.add $push762=, $0, $0 f64.const $push763=, -0x1.98p5 f64.add $0=, $pop762, $pop763 @@ -704,8 +794,9 @@ foo: # @foo f64.mul $push780=, $0, $pop779 f64.const $push781=, 0x1.8a0f4d7add15fp-5 f64.add $2=, $pop780, $pop781 - br .LBB0_66 + br 38 # 38: down to label0 .LBB0_28: # %sw.bb387 + end_block # label38: f64.add $push742=, $0, $0 f64.const $push743=, -0x1.d8p5 f64.add $0=, $pop742, $pop743 @@ -728,8 +819,9 @@ foo: # @foo f64.mul $push760=, $0, $pop759 f64.const $push761=, 0x1.e0e30446b69dbp-5 f64.add $2=, $pop760, $pop761 - br .LBB0_66 + br 37 # 37: down to label0 .LBB0_29: # %sw.bb402 + end_block # label37: f64.add $push722=, $0, $0 f64.const $push723=, -0x1.3cp6 f64.add $0=, $pop722, $pop723 @@ -752,8 +844,9 @@ foo: # @foo f64.mul $push740=, $0, $pop739 f64.const $push741=, 0x1.745bf26f1dc51p-4 f64.add $2=, $pop740, $pop741 - br .LBB0_66 + br 36 # 36: down to label0 .LBB0_30: # %sw.bb417 + end_block # label36: f64.add $push702=, $0, $0 f64.const $push703=, -0x1.8cp6 f64.add $0=, $pop702, $pop703 @@ -776,8 +869,9 @@ foo: # @foo f64.mul $push720=, $0, $pop719 f64.const $push721=, 0x1.1350092ccf6bep-3 f64.add $2=, $pop720, $pop721 - br .LBB0_66 + br 35 # 35: down to label0 .LBB0_31: # %sw.bb432 + end_block # label35: f64.add $push682=, $0, $0 f64.const $push683=, -0x1.dcp6 f64.add $0=, $pop682, $pop683 @@ -800,8 +894,9 @@ foo: # @foo f64.mul $push700=, $0, $pop699 f64.const $push701=, 0x1.902de00d1b717p-3 f64.add $2=, $pop700, $pop701 - br .LBB0_66 + br 34 # 34: down to label0 .LBB0_32: # %sw.bb447 + end_block # label34: f64.add $push662=, $0, $0 f64.const $push663=, -0x1.e4p6 f64.add $0=, $pop662, $pop663 @@ -824,8 +919,9 @@ foo: # @foo f64.mul $push680=, $0, $pop679 f64.const $push681=, 0x1.9f5ad96a6a012p-3 f64.add $2=, $pop680, $pop681 - br .LBB0_66 + br 33 # 33: down to label0 .LBB0_33: # %sw.bb462 + end_block # label33: f64.add $push642=, $0, $0 f64.const $push643=, -0x1.ecp6 f64.add $0=, $pop642, $pop643 @@ -848,8 +944,9 @@ foo: # @foo f64.mul $push660=, $0, $pop659 f64.const $push661=, 0x1.af1a9fbe76c8bp-3 f64.add $2=, $pop660, $pop661 - br .LBB0_66 + br 32 # 32: down to label0 .LBB0_34: # %sw.bb477 + end_block # label32: f64.add $push622=, $0, $0 f64.const $push623=, -0x1.f4p6 f64.add $0=, $pop622, $pop623 @@ -872,8 +969,9 @@ foo: # @foo f64.mul $push640=, $0, $pop639 f64.const $push641=, 0x1.bf77af640639dp-3 f64.add $2=, $pop640, $pop641 - br .LBB0_66 + br 31 # 31: down to label0 .LBB0_35: # %sw.bb492 + end_block # label31: f64.add $push602=, $0, $0 f64.const $push603=, -0x1.fcp6 f64.add $0=, $pop602, $pop603 @@ -896,8 +994,9 @@ foo: # @foo f64.mul $push620=, $0, $pop619 f64.const $push621=, 0x1.d07c84b5dcc64p-3 f64.add $2=, $pop620, $pop621 - br .LBB0_66 + br 30 # 30: down to label0 .LBB0_36: # %sw.bb507 + end_block # label30: f64.add $push582=, $0, $0 f64.const $push583=, -0x1.02p7 f64.add $0=, $pop582, $pop583 @@ -920,8 +1019,9 @@ foo: # @foo f64.mul $push600=, $0, $pop599 f64.const $push601=, 0x1.e2339c0ebedfap-3 f64.add $2=, $pop600, $pop601 - br .LBB0_66 + br 29 # 29: down to label0 .LBB0_37: # %sw.bb522 + end_block # label29: f64.add $push562=, $0, $0 f64.const $push563=, -0x1.06p7 f64.add $0=, $pop562, $pop563 @@ -944,8 +1044,9 @@ foo: # @foo f64.mul $push580=, $0, $pop579 f64.const $push581=, 0x1.f49cf56eac86p-3 f64.add $2=, $pop580, $pop581 - br .LBB0_66 + br 28 # 28: down to label0 .LBB0_38: # %sw.bb537 + end_block # label28: f64.add $push542=, $0, $0 f64.const $push543=, -0x1.0ap7 f64.add $0=, $pop542, $pop543 @@ -968,8 +1069,9 @@ foo: # @foo f64.mul $push560=, $0, $pop559 f64.const $push561=, 0x1.03e1869835159p-2 f64.add $2=, $pop560, $pop561 - br .LBB0_66 + br 27 # 27: down to label0 .LBB0_39: # %sw.bb552 + end_block # label27: f64.add $push522=, $0, $0 f64.const $push523=, -0x1.0ep7 f64.add $0=, $pop522, $pop523 @@ -992,8 +1094,9 @@ foo: # @foo f64.mul $push540=, $0, $pop539 f64.const $push541=, 0x1.0ddd6e04c0592p-2 f64.add $2=, $pop540, $pop541 - br .LBB0_66 + br 26 # 26: down to label0 .LBB0_40: # %sw.bb567 + end_block # label26: f64.add $push502=, $0, $0 f64.const $push503=, -0x1.12p7 f64.add $0=, $pop502, $pop503 @@ -1016,8 +1119,9 @@ foo: # @foo f64.mul $push520=, $0, $pop519 f64.const $push521=, 0x1.184230fcf80dcp-2 f64.add $2=, $pop520, $pop521 - br .LBB0_66 + br 25 # 25: down to label0 .LBB0_41: # %sw.bb582 + end_block # label25: f64.add $push482=, $0, $0 f64.const $push483=, -0x1.16p7 f64.add $0=, $pop482, $pop483 @@ -1040,8 +1144,9 @@ foo: # @foo f64.mul $push500=, $0, $pop499 f64.const $push501=, 0x1.23150dae3e6c5p-2 f64.add $2=, $pop500, $pop501 - br .LBB0_66 + br 24 # 24: down to label0 .LBB0_42: # %sw.bb597 + end_block # label24: f64.add $push462=, $0, $0 f64.const $push463=, -0x1.1ap7 f64.add $0=, $pop462, $pop463 @@ -1064,8 +1169,9 @@ foo: # @foo f64.mul $push480=, $0, $pop479 f64.const $push481=, 0x1.2e60807357e67p-2 f64.add $2=, $pop480, $pop481 - br .LBB0_66 + br 23 # 23: down to label0 .LBB0_43: # %sw.bb612 + end_block # label23: f64.add $push442=, $0, $0 f64.const $push443=, -0x1.1ep7 f64.add $0=, $pop442, $pop443 @@ -1088,8 +1194,9 @@ foo: # @foo f64.mul $push460=, $0, $pop459 f64.const $push461=, 0x1.3a272862f598ap-2 f64.add $2=, $pop460, $pop461 - br .LBB0_66 + br 22 # 22: down to label0 .LBB0_44: # %sw.bb627 + end_block # label22: f64.add $push422=, $0, $0 f64.const $push423=, -0x1.22p7 f64.add $0=, $pop422, $pop423 @@ -1112,8 +1219,9 @@ foo: # @foo f64.mul $push440=, $0, $pop439 f64.const $push441=, 0x1.466e43aa79bbbp-2 f64.add $2=, $pop440, $pop441 - br .LBB0_66 + br 21 # 21: down to label0 .LBB0_45: # %sw.bb642 + end_block # label21: f64.add $push402=, $0, $0 f64.const $push403=, -0x1.26p7 f64.add $0=, $pop402, $pop403 @@ -1136,8 +1244,9 @@ foo: # @foo f64.mul $push420=, $0, $pop419 f64.const $push421=, 0x1.53404ea4a8c15p-2 f64.add $2=, $pop420, $pop421 - br .LBB0_66 + br 20 # 20: down to label0 .LBB0_46: # %sw.bb657 + end_block # label20: f64.add $push382=, $0, $0 f64.const $push383=, -0x1.2ap7 f64.add $0=, $pop382, $pop383 @@ -1160,8 +1269,9 @@ foo: # @foo f64.mul $push400=, $0, $pop399 f64.const $push401=, 0x1.60a5269595feep-2 f64.add $2=, $pop400, $pop401 - br .LBB0_66 + br 19 # 19: down to label0 .LBB0_47: # %sw.bb672 + end_block # label19: f64.add $push362=, $0, $0 f64.const $push363=, -0x1.2ep7 f64.add $0=, $pop362, $pop363 @@ -1184,8 +1294,9 @@ foo: # @foo f64.mul $push380=, $0, $pop379 f64.const $push381=, 0x1.6e9f6a93f290bp-2 f64.add $2=, $pop380, $pop381 - br .LBB0_66 + br 18 # 18: down to label0 .LBB0_48: # %sw.bb687 + end_block # label18: f64.add $push342=, $0, $0 f64.const $push343=, -0x1.32p7 f64.add $0=, $pop342, $pop343 @@ -1208,8 +1319,9 @@ foo: # @foo f64.mul $push360=, $0, $pop359 f64.const $push361=, 0x1.7d3c36113404fp-2 f64.add $2=, $pop360, $pop361 - br .LBB0_66 + br 17 # 17: down to label0 .LBB0_49: # %sw.bb702 + end_block # label17: f64.add $push322=, $0, $0 f64.const $push323=, -0x1.36p7 f64.add $0=, $pop322, $pop323 @@ -1232,8 +1344,9 @@ foo: # @foo f64.mul $push340=, $0, $pop339 f64.const $push341=, 0x1.8c8366516db0ep-2 f64.add $2=, $pop340, $pop341 - br .LBB0_66 + br 16 # 16: down to label0 .LBB0_50: # %sw.bb717 + end_block # label16: f64.add $push302=, $0, $0 f64.const $push303=, -0x1.3ap7 f64.add $0=, $pop302, $pop303 @@ -1256,8 +1369,9 @@ foo: # @foo f64.mul $push320=, $0, $pop319 f64.const $push321=, 0x1.9c7cd898b2e9dp-2 f64.add $2=, $pop320, $pop321 - br .LBB0_66 + br 15 # 15: down to label0 .LBB0_51: # %sw.bb732 + end_block # label15: f64.add $push282=, $0, $0 f64.const $push283=, -0x1.3ep7 f64.add $0=, $pop282, $pop283 @@ -1280,8 +1394,9 @@ foo: # @foo f64.mul $push300=, $0, $pop299 f64.const $push301=, 0x1.ad330941c8217p-2 f64.add $2=, $pop300, $pop301 - br .LBB0_66 + br 14 # 14: down to label0 .LBB0_52: # %sw.bb747 + end_block # label14: f64.add $push262=, $0, $0 f64.const $push263=, -0x1.42p7 f64.add $0=, $pop262, $pop263 @@ -1304,8 +1419,9 @@ foo: # @foo f64.mul $push280=, $0, $pop279 f64.const $push281=, 0x1.beadd590c0adp-2 f64.add $2=, $pop280, $pop281 - br .LBB0_66 + br 13 # 13: down to label0 .LBB0_53: # %sw.bb762 + end_block # label13: f64.add $push242=, $0, $0 f64.const $push243=, -0x1.46p7 f64.add $0=, $pop242, $pop243 @@ -1328,8 +1444,9 @@ foo: # @foo f64.mul $push260=, $0, $pop259 f64.const $push261=, 0x1.d0fcf80dc3372p-2 f64.add $2=, $pop260, $pop261 - br .LBB0_66 + br 12 # 12: down to label0 .LBB0_54: # %sw.bb777 + end_block # label12: f64.add $push222=, $0, $0 f64.const $push223=, -0x1.4ap7 f64.add $0=, $pop222, $pop223 @@ -1352,8 +1469,9 @@ foo: # @foo f64.mul $push240=, $0, $pop239 f64.const $push241=, 0x1.e42aed1394318p-2 f64.add $2=, $pop240, $pop241 - br .LBB0_66 + br 11 # 11: down to label0 .LBB0_55: # %sw.bb792 + end_block # label11: f64.add $push202=, $0, $0 f64.const $push203=, -0x1.4ep7 f64.add $0=, $pop202, $pop203 @@ -1376,8 +1494,9 @@ foo: # @foo f64.mul $push220=, $0, $pop219 f64.const $push221=, 0x1.f83f91e646f15p-2 f64.add $2=, $pop220, $pop221 - br .LBB0_66 + br 10 # 10: down to label0 .LBB0_56: # %sw.bb807 + end_block # label10: f64.add $push182=, $0, $0 f64.const $push183=, -0x1.52p7 f64.add $0=, $pop182, $pop183 @@ -1400,8 +1519,9 @@ foo: # @foo f64.mul $push200=, $0, $pop199 f64.const $push201=, 0x1.06a550870110ap-1 f64.add $2=, $pop200, $pop201 - br .LBB0_66 + br 9 # 9: down to label0 .LBB0_57: # %sw.bb822 + end_block # label9: f64.add $push162=, $0, $0 f64.const $push163=, -0x1.56p7 f64.add $0=, $pop162, $pop163 @@ -1424,8 +1544,9 @@ foo: # @foo f64.mul $push180=, $0, $pop179 f64.const $push181=, 0x1.11adea897635ep-1 f64.add $2=, $pop180, $pop181 - br .LBB0_66 + br 8 # 8: down to label0 .LBB0_58: # %sw.bb837 + end_block # label8: f64.add $push142=, $0, $0 f64.const $push143=, -0x1.5ap7 f64.add $0=, $pop142, $pop143 @@ -1448,8 +1569,9 @@ foo: # @foo f64.mul $push160=, $0, $pop159 f64.const $push161=, 0x1.1d3ed527e5215p-1 f64.add $2=, $pop160, $pop161 - br .LBB0_66 + br 7 # 7: down to label0 .LBB0_59: # %sw.bb852 + end_block # label7: f64.add $push122=, $0, $0 f64.const $push123=, -0x1.5ep7 f64.add $0=, $pop122, $pop123 @@ -1472,8 +1594,9 @@ foo: # @foo f64.mul $push140=, $0, $pop139 f64.const $push141=, 0x1.29613d31b9b67p-1 f64.add $2=, $pop140, $pop141 - br .LBB0_66 + br 6 # 6: down to label0 .LBB0_60: # %sw.bb867 + end_block # label6: f64.add $push102=, $0, $0 f64.const $push103=, -0x1.62p7 f64.add $0=, $pop102, $pop103 @@ -1496,8 +1619,9 @@ foo: # @foo f64.mul $push120=, $0, $pop119 f64.const $push121=, 0x1.361cffeb074a7p-1 f64.add $2=, $pop120, $pop121 - br .LBB0_66 + br 5 # 5: down to label0 .LBB0_61: # %sw.bb882 + end_block # label5: f64.add $push82=, $0, $0 f64.const $push83=, -0x1.66p7 f64.add $0=, $pop82, $pop83 @@ -1520,8 +1644,9 @@ foo: # @foo f64.mul $push100=, $0, $pop99 f64.const $push101=, 0x1.4378ab0c88a48p-1 f64.add $2=, $pop100, $pop101 - br .LBB0_66 + br 4 # 4: down to label0 .LBB0_62: # %sw.bb897 + end_block # label4: f64.add $push62=, $0, $0 f64.const $push63=, -0x1.6ap7 f64.add $0=, $pop62, $pop63 @@ -1544,8 +1669,9 @@ foo: # @foo f64.mul $push80=, $0, $pop79 f64.const $push81=, 0x1.51800a7c5ac47p-1 f64.add $2=, $pop80, $pop81 - br .LBB0_66 + br 3 # 3: down to label0 .LBB0_63: # %sw.bb912 + end_block # label3: f64.add $push42=, $0, $0 f64.const $push43=, -0x1.6ep7 f64.add $0=, $pop42, $pop43 @@ -1568,8 +1694,9 @@ foo: # @foo f64.mul $push60=, $0, $pop59 f64.const $push61=, 0x1.603afb7e90ff9p-1 f64.add $2=, $pop60, $pop61 - br .LBB0_66 + br 2 # 2: down to label0 .LBB0_64: # %sw.bb927 + end_block # label2: f64.add $push22=, $0, $0 f64.const $push23=, -0x1.72p7 f64.add $0=, $pop22, $pop23 @@ -1592,8 +1719,9 @@ foo: # @foo f64.mul $push40=, $0, $pop39 f64.const $push41=, 0x1.6fb549f94855ep-1 f64.add $2=, $pop40, $pop41 - br .LBB0_66 + br 1 # 1: down to label0 .LBB0_65: # %sw.bb942 + end_block # label1: f64.add $push2=, $0, $0 f64.const $push3=, -0x1.76p7 f64.add $0=, $pop2, $pop3 @@ -1617,6 +1745,7 @@ foo: # @foo f64.const $push21=, 0x1.7ff6d330941c8p-1 f64.add $2=, $pop20, $pop21 .LBB0_66: # %cleanup + end_block # label0: return $2 .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -1629,12 +1758,12 @@ main: # @main .result i32 .local f64 # BB#0: # %entry - block .LBB1_3 + block f64.const $push0=, 0x1.399999999999ap6 f64.call $0=, foo@FUNCTION, $pop0 f64.const $push1=, 0x1.851eb851eb852p-2 f64.lt $push2=, $0, $pop1 - br_if $pop2, .LBB1_3 + br_if $pop2, 0 # 0: down to label65 # BB#1: # %entry f64.const $push3=, 0x1.ae147ae147ae1p-2 f64.le $push4=, $0, $pop3 @@ -1642,11 +1771,12 @@ main: # @main i32.or $push6=, $pop4, $pop5 i32.const $push8=, 0 i32.eq $push9=, $pop6, $pop8 - br_if $pop9, .LBB1_3 + br_if $pop9, 0 # 0: down to label65 # BB#2: # %if.end i32.const $push7=, 0 return $pop7 .LBB1_3: # %if.then + end_block # label65: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr58640-2.c.s b/test/torture-s/pr58640-2.c.s index 4444631af..0c0abd9b1 100644 --- a/test/torture-s/pr58640-2.c.s +++ b/test/torture-s/pr58640-2.c.s @@ -36,16 +36,17 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, a+60($0) - block .LBB1_2 + block i32.const $push0=, 1 i32.store $push1=, a+48($0), $pop0 i32.store $discard=, c($0), $pop1 i32.store $push2=, a($0), $1 i32.store $push3=, a+4($0), $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr58640.c.s b/test/torture-s/pr58640.c.s index 456f6fc44..46da40e56 100644 --- a/test/torture-s/pr58640.c.s +++ b/test/torture-s/pr58640.c.s @@ -9,24 +9,26 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_4 + block i32.load $push0=, b($0) i32.gt_s $push1=, $pop0, $0 - br_if $pop1, .LBB0_4 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %for.body3.lr.ph.i - block .LBB0_3 + block i32.load $push2=, d($0) - br_if $pop2, .LBB0_3 + br_if $pop2, 0 # 0: down to label1 # BB#2: # %for.inc25.i.preheader i32.const $push5=, 1 i32.store $discard=, b($0), $pop5 - br .LBB0_4 + br 1 # 1: down to label0 .LBB0_3: # %for.cond4.preheader.split.i + end_block # label1: i32.const $push3=, 1 i32.store $discard=, e($0), $pop3 i32.const $push4=, 4 i32.store $discard=, c($0), $pop4 .LBB0_4: # %foo.exit + end_block # label0: call exit@FUNCTION, $0 unreachable .Lfunc_end0: diff --git a/test/torture-s/pr58662.c.s b/test/torture-s/pr58662.c.s index e50429d19..c326d0895 100644 --- a/test/torture-s/pr58662.c.s +++ b/test/torture-s/pr58662.c.s @@ -9,7 +9,7 @@ main: # @main .local i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, a($0) i32.eq $push1=, $pop0, $0 i32.const $push2=, -30000 @@ -23,10 +23,11 @@ main: # @main i32.and $push9=, $pop8, $pop6 i32.store $discard=, b($0), $pop9 i32.load $push10=, b($0) - br_if $pop10, .LBB0_2 + br_if $pop10, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr58831.c.s b/test/torture-s/pr58831.c.s index 9473ff8fd..b610e7431 100644 --- a/test/torture-s/pr58831.c.s +++ b/test/torture-s/pr58831.c.s @@ -38,21 +38,23 @@ fn1: # @fn1 .local i32, i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB2_2 + block i32.load $push0=, p($1) i32.const $push7=, 0 i32.eq $push8=, $pop0, $pop7 - br_if $pop8, .LBB2_2 + br_if $pop8, 0 # 0: down to label0 .LBB2_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label1: i32.const $push1=, 1 i32.store $2=, 0($0), $pop1 i32.load $push2=, p($1) i32.add $push3=, $pop2, $2 i32.store $push4=, p($1), $pop3 - br_if $pop4, .LBB2_1 + br_if $pop4, 0 # 0: up to label1 .LBB2_2: # %for.end + end_loop # label2: + end_block # label0: i32.const $push5=, d i32.store $push6=, r($1), $pop5 i32.store $discard=, b($1), $pop6 diff --git a/test/torture-s/pr58943.c.s b/test/torture-s/pr58943.c.s index e24143df1..0ac654953 100644 --- a/test/torture-s/pr58943.c.s +++ b/test/torture-s/pr58943.c.s @@ -27,17 +27,18 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, x($0) i32.const $push1=, 129 i32.or $push2=, $pop0, $pop1 i32.store $push3=, x($0), $pop2 i32.const $push4=, 131 i32.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr58984.c.s b/test/torture-s/pr58984.c.s index b2e7f9efa..1a7b10d38 100644 --- a/test/torture-s/pr58984.c.s +++ b/test/torture-s/pr58984.c.s @@ -10,21 +10,22 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.const $1=, 1 - block .LBB0_2 + block i32.load $push0=, e($0) i32.gt_s $push1=, $pop0, $1 - br_if $pop1, .LBB0_2 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %for.body.i i32.load $2=, c($0) i32.load $push2=, 0($2) i32.xor $push3=, $pop2, $1 i32.store $discard=, 0($2), $pop3 .LBB0_2: # %foo.exit + end_block # label0: i32.load $2=, a($0) i32.store $discard=, m($0), $1 - block .LBB0_6 + block i32.ne $push4=, $2, $1 - br_if $pop4, .LBB0_6 + br_if $pop4, 0 # 0: down to label1 # BB#3: # %bar.exit i32.store $discard=, e($0), $0 i32.load $2=, c($0) @@ -32,17 +33,19 @@ main: # @main i32.xor $push6=, $pop5, $1 i32.store $discard=, 0($2), $pop6 i32.load $2=, a($0) - block .LBB0_5 + block i32.load $push7=, m($0) i32.or $push8=, $pop7, $1 i32.store $discard=, m($0), $pop8 - br_if $2, .LBB0_5 + br_if $2, 0 # 0: down to label2 # BB#4: # %if.end11 return $0 .LBB0_5: # %if.then10 + end_block # label2: call abort@FUNCTION unreachable .LBB0_6: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr59014-2.c.s b/test/torture-s/pr59014-2.c.s index 7fe8030e8..fba09cb83 100644 --- a/test/torture-s/pr59014-2.c.s +++ b/test/torture-s/pr59014-2.c.s @@ -24,17 +24,18 @@ foo: # @foo main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i64.const $push1=, 12884901888 i64.const $push0=, 21474836480 i64.call $push2=, foo@FUNCTION, $pop1, $pop0 i64.const $push3=, 34359738368 i64.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push5=, 0 return $pop5 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr59014.c.s b/test/torture-s/pr59014.c.s index 0fe55d9ce..436a15304 100644 --- a/test/torture-s/pr59014.c.s +++ b/test/torture-s/pr59014.c.s @@ -10,7 +10,7 @@ foo: # @foo # BB#0: # %entry i32.const $1=, 0 i32.load $0=, a($1) - block .LBB0_2 + block i32.load $push0=, b($1) i32.gt_s $push1=, $pop0, $1 i32.const $push2=, 1 @@ -18,12 +18,14 @@ foo: # @foo i32.or $push4=, $pop1, $pop3 i32.const $push5=, 0 i32.eq $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_2 + br_if $pop6, 0 # 0: down to label0 .LBB0_1: # %for.inc # =>This Inner Loop Header: Depth=1 - loop .LBB0_2 - br .LBB0_1 + loop # label1: + br 0 # 0: up to label1 .LBB0_2: # %if.else + end_loop # label2: + end_block # label0: i32.store $discard=, d($1), $0 return $1 .Lfunc_end0: @@ -39,7 +41,7 @@ main: # @main # BB#0: # %entry i32.const $1=, 0 i32.load $0=, a($1) - block .LBB1_2 + block i32.load $push0=, b($1) i32.gt_s $push1=, $pop0, $1 i32.const $push2=, 1 @@ -47,20 +49,23 @@ main: # @main i32.or $push4=, $pop1, $pop3 i32.const $push8=, 0 i32.eq $push9=, $pop4, $pop8 - br_if $pop9, .LBB1_2 + br_if $pop9, 0 # 0: down to label3 .LBB1_1: # %for.inc.i # =>This Inner Loop Header: Depth=1 - loop .LBB1_2 - br .LBB1_1 + loop # label4: + br 0 # 0: up to label4 .LBB1_2: # %foo.exit - block .LBB1_4 + end_loop # label5: + end_block # label3: + block i32.store $push5=, d($1), $0 i32.const $push6=, 2 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB1_4 + br_if $pop7, 0 # 0: down to label6 # BB#3: # %if.end return $1 .LBB1_4: # %if.then + end_block # label6: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr59101.c.s b/test/torture-s/pr59101.c.s index f56a59021..7fdc0c280 100644 --- a/test/torture-s/pr59101.c.s +++ b/test/torture-s/pr59101.c.s @@ -27,14 +27,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.call $push0=, foo@FUNCTION, $0 i32.const $push1=, 7 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr59221.c.s b/test/torture-s/pr59221.c.s index aa271726d..3771d5530 100644 --- a/test/torture-s/pr59221.c.s +++ b/test/torture-s/pr59221.c.s @@ -9,18 +9,19 @@ main: # @main .local i32, i32, i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, b($0) i32.const $push9=, 0 i32.eq $push10=, $pop0, $pop9 - br_if $pop10, .LBB0_2 + br_if $pop10, 0 # 0: down to label0 # BB#1: # %for.inc.preheader i32.store $discard=, b($0), $0 .LBB0_2: # %for.end + end_block # label0: i32.load $1=, a($0) i32.const $2=, 16 i32.const $3=, 65535 - block .LBB0_4 + block i32.and $push3=, $1, $3 i32.shl $push1=, $1, $2 i32.shr_s $push2=, $pop1, $2 @@ -31,10 +32,11 @@ main: # @main i32.and $push5=, $1, $3 i32.const $push7=, 1 i32.ne $push8=, $pop5, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label1 # BB#3: # %if.end return $0 .LBB0_4: # %if.then + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr59229.c.s b/test/torture-s/pr59229.c.s index 93796def2..cef48a0fd 100644 --- a/test/torture-s/pr59229.c.s +++ b/test/torture-s/pr59229.c.s @@ -11,18 +11,18 @@ bar: # @bar i32.const $push0=, 0 i32.load $1=, i($pop0) i32.const $2=, 6 - block .LBB0_4 + block i32.const $push1=, -1 i32.add $push2=, $1, $pop1 i32.ge_u $push3=, $pop2, $2 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $3=, 1 - block .LBB0_3 + block i32.const $push5=, .L.str i32.add $push4=, $1, $3 i32.call $push6=, memcmp@FUNCTION, $0, $pop5, $pop4 - br_if $pop6, .LBB0_3 + br_if $pop6, 0 # 0: down to label1 # BB#2: # %if.end4 i32.const $push7=, 32 i32.store8 $1=, 0($0), $pop7 @@ -44,9 +44,11 @@ bar: # @bar i32.store8 $discard=, 0($pop17), $1 return .LBB0_3: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -66,12 +68,12 @@ foo: # @foo i32.sub $5=, $2, $3 i32.const $3=, __stack_pointer i32.store $5=, 0($3), $5 - block .LBB1_2 + block i32.const $push0=, -1 i32.add $push1=, $1, $pop0 i32.const $push2=, 5 i32.gt_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label2 # BB#1: # %if.end i32.const $push4=, 1 i32.add $push5=, $1, $pop4 @@ -82,6 +84,7 @@ foo: # @foo i32.add $6=, $5, $6 call bar@FUNCTION, $6 .LBB1_2: # %return + end_block # label2: i32.const $4=, 16 i32.add $5=, $5, $4 i32.const $4=, __stack_pointer @@ -103,7 +106,7 @@ main: # @main copy_local $1=, $0 .LBB2_1: # %for.body # =>This Inner Loop Header: Depth=1 - loop .LBB2_2 + loop # label3: i32.const $push1=, .L.str.1 call foo@FUNCTION, $pop1, $1 i32.load $push2=, i($0) @@ -112,8 +115,9 @@ main: # @main i32.store $1=, i($0), $pop0 i32.const $push4=, 16 i32.lt_s $push5=, $1, $pop4 - br_if $pop5, .LBB2_1 -.LBB2_2: # %for.end + br_if $pop5, 0 # 0: up to label3 +# BB#2: # %for.end + end_loop # label4: i32.const $push6=, 0 return $pop6 .Lfunc_end2: diff --git a/test/torture-s/pr59358.c.s b/test/torture-s/pr59358.c.s index d755660fb..55840d3cb 100644 --- a/test/torture-s/pr59358.c.s +++ b/test/torture-s/pr59358.c.s @@ -11,23 +11,25 @@ foo: # @foo # BB#0: # %entry i32.load $2=, 0($0) copy_local $0=, $2 - block .LBB0_3 + block i32.const $push0=, 16 i32.gt_s $push1=, $1, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry copy_local $0=, $2 i32.ge_s $push2=, $2, $1 - br_if $pop2, .LBB0_3 + br_if $pop2, 0 # 0: down to label0 .LBB0_2: # %while.cond # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label1: copy_local $0=, $2 i32.const $push4=, 1 i32.shl $2=, $0, $pop4 i32.lt_s $push3=, $0, $1 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: up to label1 .LBB0_3: # %if.end + end_loop # label2: + end_block # label0: return $0 .Lfunc_end0: .size foo, .Lfunc_end0-foo @@ -52,9 +54,9 @@ main: # @main copy_local $1=, $0 .LBB1_1: # %for.body # =>This Inner Loop Header: Depth=1 - block .LBB1_13 - block .LBB1_12 - loop .LBB1_11 + block + block + loop # label5: i32.const $5=, 16 i32.const $push1=, -1 i32.add $3=, $1, $pop1 @@ -63,33 +65,35 @@ main: # @main i32.call $4=, foo@FUNCTION, $11, $5 i32.const $6=, 8 copy_local $7=, $0 - block .LBB1_5 + block i32.const $push2=, -8 i32.and $push3=, $3, $pop2 i32.eq $push4=, $pop3, $6 - br_if $pop4, .LBB1_5 + br_if $pop4, 0 # 0: down to label7 # BB#2: # %if.else # in Loop: Header=BB1_1 Depth=1 i32.const $7=, 4 - block .LBB1_4 + block i32.const $push5=, -4 i32.and $push6=, $3, $pop5 i32.ne $push7=, $pop6, $7 - br_if $pop7, .LBB1_4 + br_if $pop7, 0 # 0: down to label8 # BB#3: # %if.then6 # in Loop: Header=BB1_1 Depth=1 i32.const $push10=, 2 i32.shl $7=, $2, $pop10 - br .LBB1_5 + br 1 # 1: down to label7 .LBB1_4: # %if.else10 # in Loop: Header=BB1_1 Depth=1 + end_block # label8: i32.eq $push8=, $1, $7 i32.const $push9=, 24 i32.select $7=, $pop8, $pop9, $5 .LBB1_5: # %if.end15 # in Loop: Header=BB1_1 Depth=1 + end_block # label7: i32.ne $push11=, $4, $7 - br_if $pop11, .LBB1_13 + br_if $pop11, 3 # 3: down to label3 # BB#6: # %if.end18 # in Loop: Header=BB1_1 Depth=1 i32.const $push12=, 7 @@ -97,16 +101,16 @@ main: # @main i32.add $12=, $13, $12 i32.call $5=, foo@FUNCTION, $12, $pop12 copy_local $7=, $2 - block .LBB1_9 + block i32.const $push13=, 6 i32.gt_s $push14=, $3, $pop13 - br_if $pop14, .LBB1_9 + br_if $pop14, 0 # 0: down to label9 # BB#7: # %if.else22 # in Loop: Header=BB1_1 Depth=1 copy_local $7=, $0 i32.const $push15=, 3 i32.gt_s $push16=, $3, $pop15 - br_if $pop16, .LBB1_9 + br_if $pop16, 0 # 0: down to label9 # BB#8: # %if.else28 # in Loop: Header=BB1_1 Depth=1 i32.const $push17=, 4 @@ -115,8 +119,9 @@ main: # @main i32.select $7=, $pop18, $pop19, $6 .LBB1_9: # %if.end34 # in Loop: Header=BB1_1 Depth=1 + end_block # label9: i32.ne $push20=, $5, $7 - br_if $pop20, .LBB1_12 + br_if $pop20, 2 # 2: down to label4 # BB#10: # %if.end37 # in Loop: Header=BB1_1 Depth=1 i32.const $push21=, 2 @@ -127,8 +132,9 @@ main: # @main i32.add $1=, $7, $3 i32.const $push22=, 17 i32.lt_s $push23=, $7, $pop22 - br_if $pop23, .LBB1_1 -.LBB1_11: # %for.end + br_if $pop23, 0 # 0: up to label5 +# BB#11: # %for.end + end_loop # label6: i32.const $push24=, 0 i32.const $10=, 16 i32.add $13=, $13, $10 @@ -136,9 +142,11 @@ main: # @main i32.store $13=, 0($10), $13 return $pop24 .LBB1_12: # %if.then36 + end_block # label4: call abort@FUNCTION unreachable .LBB1_13: # %if.then17 + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr59387.c.s b/test/torture-s/pr59387.c.s index ebda19d8c..904f77022 100644 --- a/test/torture-s/pr59387.c.s +++ b/test/torture-s/pr59387.c.s @@ -14,7 +14,7 @@ main: # @main i32.store $1=, a($0), $pop1 .LBB0_1: # %for.body2 # =>This Inner Loop Header: Depth=1 - loop .LBB0_3 + loop # label0: i32.load $push3=, e($0) i32.const $push4=, f i32.store $discard=, 0($pop3), $pop4 @@ -23,14 +23,15 @@ main: # @main i32.load $push5=, d($0) i32.const $push8=, 0 i32.eq $push9=, $pop5, $pop8 - br_if $pop9, .LBB0_3 + br_if $pop9, 1 # 1: down to label1 # BB#2: # %for.inc4 # in Loop: Header=BB0_1 Depth=1 i32.const $push6=, 1 i32.add $push0=, $1, $pop6 i32.store $1=, a($0), $pop0 - br_if $1, .LBB0_1 + br_if $1, 0 # 0: up to label0 .LBB0_3: # %return + end_loop # label1: i32.store8 $discard=, c($0), $2 i32.const $push7=, 24 i32.store $discard=, b($0), $pop7 diff --git a/test/torture-s/pr59747.c.s b/test/torture-s/pr59747.c.s index 5da33ec40..13f0f6841 100644 --- a/test/torture-s/pr59747.c.s +++ b/test/torture-s/pr59747.c.s @@ -28,19 +28,20 @@ main: # @main i32.const $0=, 0 i32.load $1=, c($0) i32.load16_u $2=, e($0) - block .LBB1_2 + block i32.const $push1=, 1 i32.store $discard=, a($0), $pop1 i32.const $push12=, 0 i32.eq $push13=, $1, $pop12 - br_if $pop13, .LBB1_2 + br_if $pop13, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push2=, -1 i32.add $push0=, $2, $pop2 i32.store16 $2=, e($0), $pop0 .LBB1_2: # %if.end + end_block # label0: i32.const $1=, 16 - block .LBB1_4 + block i32.shl $push3=, $2, $1 i32.shr_s $push4=, $pop3, $1 i32.store $discard=, d($0), $pop4 @@ -51,11 +52,12 @@ main: # @main i64.shr_u $push9=, $pop7, $pop8 i32.wrap/i64 $push10=, $pop9 i32.call $push11=, fn1@FUNCTION, $pop10 - br_if $pop11, .LBB1_4 + br_if $pop11, 0 # 0: down to label1 # BB#3: # %if.end5 call exit@FUNCTION, $0 unreachable .LBB1_4: # %if.then4 + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr60017.c.s b/test/torture-s/pr60017.c.s index f72874e0b..be5e29770 100644 --- a/test/torture-s/pr60017.c.s +++ b/test/torture-s/pr60017.c.s @@ -36,14 +36,15 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load16_u $push0=, x+12($0) i32.const $push1=, 9 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr60454.c.s b/test/torture-s/pr60454.c.s index a748d9367..a36cbfb24 100644 --- a/test/torture-s/pr60454.c.s +++ b/test/torture-s/pr60454.c.s @@ -33,16 +33,17 @@ fake_swap32: # @fake_swap32 main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, 305419896 i32.call $push1=, fake_swap32@FUNCTION, $pop0 i32.const $push2=, 2018934290 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr60960.c.s b/test/torture-s/pr60960.c.s index 854141569..c35324373 100644 --- a/test/torture-s/pr60960.c.s +++ b/test/torture-s/pr60960.c.s @@ -138,7 +138,7 @@ main: # @main i32.load8_u $push4=, 0($pop3) i32.const $14=, 12 i32.add $14=, $23, $14 - block .LBB3_6 + block i32.or $push0=, $14, $1 i32.load8_u $push1=, 0($pop0) i32.shl $push2=, $pop1, $2 @@ -146,7 +146,7 @@ main: # @main i32.shl $push6=, $pop5, $4 i32.or $push13=, $pop12, $pop6 i32.ne $push14=, $pop13, $7 - br_if $pop14, .LBB3_6 + br_if $pop14, 0 # 0: down to label0 # BB#1: # %if.end i32.const $15=, 8 i32.add $15=, $23, $15 @@ -165,7 +165,7 @@ main: # @main i32.load8_u $push19=, 0($pop18) i32.const $18=, 8 i32.add $18=, $23, $18 - block .LBB3_5 + block i32.or $push15=, $18, $1 i32.load8_u $push16=, 0($pop15) i32.shl $push17=, $pop16, $2 @@ -173,7 +173,7 @@ main: # @main i32.shl $push21=, $pop20, $4 i32.or $push28=, $pop27, $pop21 i32.ne $push29=, $pop28, $7 - br_if $pop29, .LBB3_5 + br_if $pop29, 0 # 0: down to label1 # BB#2: # %if.end6 i32.const $19=, 4 i32.add $19=, $23, $19 @@ -192,7 +192,7 @@ main: # @main i32.load8_u $push34=, 0($pop33) i32.const $22=, 4 i32.add $22=, $23, $22 - block .LBB3_4 + block i32.or $push30=, $22, $1 i32.load8_u $push31=, 0($pop30) i32.shl $push32=, $pop31, $2 @@ -200,7 +200,7 @@ main: # @main i32.shl $push36=, $pop35, $4 i32.or $push43=, $pop42, $pop36 i32.ne $push44=, $pop43, $7 - br_if $pop44, .LBB3_4 + br_if $pop44, 0 # 0: down to label2 # BB#3: # %if.end11 i32.const $push45=, 0 i32.const $10=, 16 @@ -209,12 +209,15 @@ main: # @main i32.store $23=, 0($10), $23 return $pop45 .LBB3_4: # %if.then10 + end_block # label2: call abort@FUNCTION unreachable .LBB3_5: # %if.then5 + end_block # label1: call abort@FUNCTION unreachable .LBB3_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr61306-1.c.s b/test/torture-s/pr61306-1.c.s index 95600f791..deed57275 100644 --- a/test/torture-s/pr61306-1.c.s +++ b/test/torture-s/pr61306-1.c.s @@ -33,16 +33,17 @@ fake_bswap32: # @fake_bswap32 main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, -2023406815 i32.call $push1=, fake_bswap32@FUNCTION, $pop0 i32.const $push2=, -121 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr61306-2.c.s b/test/torture-s/pr61306-2.c.s index a517e9d10..199bd6197 100644 --- a/test/torture-s/pr61306-2.c.s +++ b/test/torture-s/pr61306-2.c.s @@ -35,16 +35,17 @@ fake_bswap32: # @fake_bswap32 main: # @main .result i32 # BB#0: # %entry - block .LBB1_2 + block i32.const $push0=, -2122153084 i32.call $push1=, fake_bswap32@FUNCTION, $pop0 i32.const $push2=, -8158591 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr61306-3.c.s b/test/torture-s/pr61306-3.c.s index cf8743e49..1667b2c76 100644 --- a/test/torture-s/pr61306-3.c.s +++ b/test/torture-s/pr61306-3.c.s @@ -12,17 +12,18 @@ main: # @main i32.load16_s $push0=, a($0) i32.store8 $1=, c($0), $pop0 i32.const $2=, 24 - block .LBB0_2 + block i32.shl $push1=, $1, $2 i32.shr_s $push2=, $pop1, $2 i32.or $push3=, $pop2, $1 i32.store $push4=, b($0), $pop3 i32.const $push5=, -1 i32.ne $push6=, $pop4, $pop5 - br_if $pop6, .LBB0_2 + br_if $pop6, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr61375.c.s b/test/torture-s/pr61375.c.s index 7eb0f8b89..473215295 100644 --- a/test/torture-s/pr61375.c.s +++ b/test/torture-s/pr61375.c.s @@ -28,18 +28,19 @@ main: # @main .param i32 .result i32 # BB#0: # %entry - block .LBB1_2 + block i64.const $push2=, 0 i64.const $push1=, 1 i64.const $push0=, 2 i64.call $push3=, uint128_central_bitsi_ior@FUNCTION, $pop2, $pop1, $pop0 i64.const $push4=, 258 i64.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push6=, 0 return $pop6 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/pr61673.c.s b/test/torture-s/pr61673.c.s index f33251547..f75ccd476 100644 --- a/test/torture-s/pr61673.c.s +++ b/test/torture-s/pr61673.c.s @@ -7,18 +7,19 @@ bar: # @bar .param i32 # BB#0: # %entry - block .LBB0_3 + block i32.const $push0=, -121 i32.eq $push1=, $0, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.const $push2=, 84 i32.eq $push3=, $0, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %if.then call abort@FUNCTION unreachable .LBB0_3: # %if.end + end_block # label0: return .Lfunc_end0: .size bar, .Lfunc_end0-bar @@ -31,14 +32,15 @@ foo: # @foo .param i32 # BB#0: # %entry i32.load8_s $0=, 0($0) - block .LBB1_2 + block i32.const $push0=, -1 i32.gt_s $push1=, $0, $pop0 - br_if $pop1, .LBB1_2 + br_if $pop1, 0 # 0: down to label1 # BB#1: # %if.then i32.const $push2=, 0 i32.store8 $discard=, e($pop2), $0 .LBB1_2: # %if.end + end_block # label1: call bar@FUNCTION, $0 return .Lfunc_end1: @@ -52,14 +54,15 @@ baz: # @baz .param i32 # BB#0: # %entry i32.load8_s $0=, 0($0) - block .LBB2_2 + block i32.const $push0=, -1 i32.gt_s $push1=, $0, $pop0 - br_if $pop1, .LBB2_2 + br_if $pop1, 0 # 0: down to label2 # BB#1: # %if.then i32.const $push2=, 0 i32.store8 $discard=, e($pop2), $0 .LBB2_2: # %if.end + end_block # label2: return .Lfunc_end2: .size baz, .Lfunc_end2-baz @@ -77,43 +80,47 @@ main: # @main i32.const $push0=, 33 i32.store8 $1=, e($0), $pop0 call foo@FUNCTION, $2 - block .LBB3_8 + block i32.load8_u $push1=, e($0) i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB3_8 + br_if $pop2, 0 # 0: down to label3 # BB#1: # %if.end i32.const $3=, main.c+1 call foo@FUNCTION, $3 i32.const $4=, 135 - block .LBB3_7 + block i32.load8_u $push3=, e($0) i32.ne $push4=, $pop3, $4 - br_if $pop4, .LBB3_7 + br_if $pop4, 0 # 0: down to label4 # BB#2: # %if.end6 i32.store8 $discard=, e($0), $1 call baz@FUNCTION, $2 - block .LBB3_6 + block i32.load8_u $push5=, e($0) i32.ne $push6=, $pop5, $1 - br_if $pop6, .LBB3_6 + br_if $pop6, 0 # 0: down to label5 # BB#3: # %if.end11 call baz@FUNCTION, $3 - block .LBB3_5 + block i32.load8_u $push7=, e($0) i32.ne $push8=, $pop7, $4 - br_if $pop8, .LBB3_5 + br_if $pop8, 0 # 0: down to label6 # BB#4: # %if.end16 return $0 .LBB3_5: # %if.then15 + end_block # label6: call abort@FUNCTION unreachable .LBB3_6: # %if.then10 + end_block # label5: call abort@FUNCTION unreachable .LBB3_7: # %if.then5 + end_block # label4: call abort@FUNCTION unreachable .LBB3_8: # %if.then + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/pr63302.c.s b/test/torture-s/pr63302.c.s index f3390ff08..904a09e4e 100644 --- a/test/torture-s/pr63302.c.s +++ b/test/torture-s/pr63302.c.s @@ -55,88 +55,90 @@ main: # @main i64.const $0=, 0 i32.call $1=, foo@FUNCTION, $0, $0 i32.const $2=, 1 - block .LBB2_20 + block i32.ne $push0=, $1, $2 - br_if $pop0, .LBB2_20 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i64.const $3=, 1 i32.call $push1=, foo@FUNCTION, $3, $0 - br_if $pop1, .LBB2_20 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %lor.lhs.false3 i64.const $4=, 2048 i32.call $push2=, foo@FUNCTION, $4, $0 i32.ne $push3=, $pop2, $2 - br_if $pop3, .LBB2_20 + br_if $pop3, 0 # 0: down to label0 # BB#3: # %lor.lhs.false6 i64.const $5=, 2049 i32.call $push4=, foo@FUNCTION, $5, $0 - br_if $pop4, .LBB2_20 + br_if $pop4, 0 # 0: down to label0 # BB#4: # %lor.lhs.false9 i64.const $6=, -9223372036854775808 i32.call $push5=, foo@FUNCTION, $6, $0 - br_if $pop5, .LBB2_20 + br_if $pop5, 0 # 0: down to label0 # BB#5: # %lor.lhs.false12 i64.const $7=, -1 i32.call $push6=, foo@FUNCTION, $6, $7 i32.ne $push7=, $pop6, $2 - br_if $pop7, .LBB2_20 + br_if $pop7, 0 # 0: down to label0 # BB#6: # %lor.lhs.false15 i64.const $push8=, -9223372036854775807 i32.call $push9=, foo@FUNCTION, $pop8, $7 - br_if $pop9, .LBB2_20 + br_if $pop9, 0 # 0: down to label0 # BB#7: # %lor.lhs.false18 i64.const $push10=, -9223372036854773760 i32.call $push11=, foo@FUNCTION, $pop10, $7 i32.ne $push12=, $pop11, $2 - br_if $pop12, .LBB2_20 + br_if $pop12, 0 # 0: down to label0 # BB#8: # %lor.lhs.false21 i64.const $push13=, -9223372036854773759 i32.call $push14=, foo@FUNCTION, $pop13, $7 - br_if $pop14, .LBB2_20 + br_if $pop14, 0 # 0: down to label0 # BB#9: # %if.end - block .LBB2_19 + block i32.call $push15=, bar@FUNCTION, $0 i32.ne $push16=, $pop15, $2 - br_if $pop16, .LBB2_19 + br_if $pop16, 0 # 0: down to label1 # BB#10: # %lor.lhs.false26 i32.call $push17=, bar@FUNCTION, $3 - br_if $pop17, .LBB2_19 + br_if $pop17, 0 # 0: down to label1 # BB#11: # %lor.lhs.false29 i32.call $push18=, bar@FUNCTION, $4 i32.ne $push19=, $pop18, $2 - br_if $pop19, .LBB2_19 + br_if $pop19, 0 # 0: down to label1 # BB#12: # %lor.lhs.false32 i32.call $push20=, bar@FUNCTION, $5 - br_if $pop20, .LBB2_19 + br_if $pop20, 0 # 0: down to label1 # BB#13: # %lor.lhs.false35 i64.const $push21=, 2147483648 i32.call $push22=, bar@FUNCTION, $pop21 - br_if $pop22, .LBB2_19 + br_if $pop22, 0 # 0: down to label1 # BB#14: # %lor.lhs.false38 i64.const $push23=, -2147483648 i32.call $push24=, bar@FUNCTION, $pop23 i32.ne $push25=, $pop24, $2 - br_if $pop25, .LBB2_19 + br_if $pop25, 0 # 0: down to label1 # BB#15: # %lor.lhs.false41 i64.const $push26=, -2147483647 i32.call $push27=, bar@FUNCTION, $pop26 - br_if $pop27, .LBB2_19 + br_if $pop27, 0 # 0: down to label1 # BB#16: # %lor.lhs.false44 i64.const $push28=, -2147481600 i32.call $push29=, bar@FUNCTION, $pop28 i32.ne $push30=, $pop29, $2 - br_if $pop30, .LBB2_19 + br_if $pop30, 0 # 0: down to label1 # BB#17: # %lor.lhs.false47 i64.const $push31=, -2147481599 i32.call $push32=, bar@FUNCTION, $pop31 - br_if $pop32, .LBB2_19 + br_if $pop32, 0 # 0: down to label1 # BB#18: # %if.end51 i32.const $push33=, 0 return $pop33 .LBB2_19: # %if.then50 + end_block # label1: call abort@FUNCTION unreachable .LBB2_20: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/pr63659.c.s b/test/torture-s/pr63659.c.s index f5406ac59..1818ae620 100644 --- a/test/torture-s/pr63659.c.s +++ b/test/torture-s/pr63659.c.s @@ -9,40 +9,43 @@ main: # @main .local i32, i32, i32, i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push1=, a($0) i32.const $push10=, 0 i32.eq $push11=, $pop1, $pop10 - br_if $pop11, .LBB0_2 + br_if $pop11, 0 # 0: down to label0 # BB#1: # %for.cond.preheader i32.store $discard=, a($0), $0 .LBB0_2: # %while.end + end_block # label0: i32.const $1=, 255 i32.load8_s $push2=, c($0) i32.load $push3=, h($0) i32.shr_s $push0=, $pop2, $pop3 i32.store $2=, g($0), $pop0 copy_local $3=, $1 - block .LBB0_4 + block i32.const $push12=, 0 i32.eq $push13=, $2, $pop12 - br_if $pop13, .LBB0_4 + br_if $pop13, 0 # 0: down to label1 # BB#3: # %cond.false i32.const $push4=, -1 i32.rem_s $3=, $pop4, $2 .LBB0_4: # %cond.end + end_block # label1: i32.load $2=, d($0) - block .LBB0_6 + block i32.store8 $push5=, f($0), $3 i32.store8 $push6=, e($0), $pop5 i32.and $push7=, $pop6, $1 i32.store $discard=, 0($2), $pop7 i32.load $push8=, b($0) i32.ne $push9=, $pop8, $1 - br_if $pop9, .LBB0_6 + br_if $pop9, 0 # 0: down to label2 # BB#5: # %if.end23 return $0 .LBB0_6: # %if.then22 + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/pr7284-1.c.s b/test/torture-s/pr7284-1.c.s index a2b64b36a..ddf036d5d 100644 --- a/test/torture-s/pr7284-1.c.s +++ b/test/torture-s/pr7284-1.c.s @@ -25,17 +25,18 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, x($0) i32.const $push1=, 255 i32.and $push2=, $pop0, $pop1 i32.const $push3=, 128 i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB1_2 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/printf-1.c.s b/test/torture-s/printf-1.c.s index e03f855d1..de2b5e021 100644 --- a/test/torture-s/printf-1.c.s +++ b/test/torture-s/printf-1.c.s @@ -18,26 +18,26 @@ main: # @main i32.call $discard=, iprintf@FUNCTION, $0 i32.call $6=, iprintf@FUNCTION, $0 i32.const $1=, 5 - block .LBB0_20 + block i32.ne $push0=, $6, $1 - br_if $pop0, .LBB0_20 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end i32.call $discard=, puts@FUNCTION, $0 i32.const $2=, .L.str.1 i32.call $6=, iprintf@FUNCTION, $2 i32.const $3=, 6 - block .LBB0_19 + block i32.ne $push1=, $6, $3 - br_if $pop1, .LBB0_19 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %if.end6 i32.const $push2=, 97 i32.call $discard=, putchar@FUNCTION, $pop2 i32.const $4=, .L.str.2 i32.call $6=, iprintf@FUNCTION, $4 i32.const $5=, 1 - block .LBB0_18 + block i32.ne $push3=, $6, $5 - br_if $pop3, .LBB0_18 + br_if $pop3, 0 # 0: down to label2 # BB#3: # %if.end16 i32.const $7=, __stack_pointer i32.load $7=, 0($7) @@ -68,9 +68,9 @@ main: # @main i32.add $58=, $13, $14 i32.const $14=, __stack_pointer i32.store $58=, 0($14), $58 - block .LBB0_17 + block i32.ne $push4=, $0, $1 - br_if $pop4, .LBB0_17 + br_if $pop4, 0 # 0: down to label3 # BB#4: # %if.end21 i32.const $15=, __stack_pointer i32.load $15=, 0($15) @@ -100,9 +100,9 @@ main: # @main i32.add $58=, $21, $22 i32.const $22=, __stack_pointer i32.store $58=, 0($22), $58 - block .LBB0_16 + block i32.ne $push5=, $1, $3 - br_if $pop5, .LBB0_16 + br_if $pop5, 0 # 0: down to label4 # BB#5: # %if.end26 i32.const $23=, __stack_pointer i32.load $23=, 0($23) @@ -132,9 +132,9 @@ main: # @main i32.add $58=, $29, $30 i32.const $30=, __stack_pointer i32.store $58=, 0($30), $58 - block .LBB0_15 + block i32.ne $push6=, $1, $5 - br_if $pop6, .LBB0_15 + br_if $pop6, 0 # 0: down to label5 # BB#6: # %if.end31 i32.const $31=, __stack_pointer i32.load $31=, 0($31) @@ -165,8 +165,8 @@ main: # @main i32.add $58=, $37, $38 i32.const $38=, __stack_pointer i32.store $58=, 0($38), $58 - block .LBB0_14 - br_if $6, .LBB0_14 + block + br_if $6, 0 # 0: down to label6 # BB#7: # %if.end36 i32.const $6=, 120 i32.call $discard=, putchar@FUNCTION, $6 @@ -185,9 +185,9 @@ main: # @main i32.add $58=, $41, $42 i32.const $42=, __stack_pointer i32.store $58=, 0($42), $58 - block .LBB0_13 + block i32.ne $push9=, $6, $5 - br_if $pop9, .LBB0_13 + br_if $pop9, 0 # 0: down to label7 # BB#8: # %if.end41 i32.call $discard=, puts@FUNCTION, $0 i32.const $43=, __stack_pointer @@ -205,10 +205,10 @@ main: # @main i32.add $58=, $45, $46 i32.const $46=, __stack_pointer i32.store $58=, 0($46), $58 - block .LBB0_12 + block i32.const $push11=, 7 i32.ne $push12=, $6, $pop11 - br_if $pop12, .LBB0_12 + br_if $pop12, 0 # 0: down to label8 # BB#9: # %if.end46 i32.const $47=, __stack_pointer i32.load $47=, 0($47) @@ -240,10 +240,10 @@ main: # @main i32.add $58=, $53, $54 i32.const $54=, __stack_pointer i32.store $58=, 0($54), $58 - block .LBB0_11 + block i32.const $push14=, 2 i32.ne $push15=, $6, $pop14 - br_if $pop15, .LBB0_11 + br_if $pop15, 0 # 0: down to label9 # BB#10: # %if.end51 i32.const $57=, 16 i32.add $58=, $58, $57 @@ -251,33 +251,43 @@ main: # @main i32.store $58=, 0($57), $58 return $0 .LBB0_11: # %if.then50 + end_block # label9: call abort@FUNCTION unreachable .LBB0_12: # %if.then45 + end_block # label8: call abort@FUNCTION unreachable .LBB0_13: # %if.then40 + end_block # label7: call abort@FUNCTION unreachable .LBB0_14: # %if.then35 + end_block # label6: call abort@FUNCTION unreachable .LBB0_15: # %if.then30 + end_block # label5: call abort@FUNCTION unreachable .LBB0_16: # %if.then25 + end_block # label4: call abort@FUNCTION unreachable .LBB0_17: # %if.then20 + end_block # label3: call abort@FUNCTION unreachable .LBB0_18: # %if.then10 + end_block # label2: call abort@FUNCTION unreachable .LBB0_19: # %if.then5 + end_block # label1: call abort@FUNCTION unreachable .LBB0_20: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/regstack-1.c.s b/test/torture-s/regstack-1.c.s index 70f958acf..d1155dd7f 100644 --- a/test/torture-s/regstack-1.c.s +++ b/test/torture-s/regstack-1.c.s @@ -200,42 +200,43 @@ main: # @main i64.load $push3=, 0($pop33) i64.store $14=, Y1+8($0), $pop3 i64.store $discard=, Y1($0), $2 - block .LBB0_9 + block i64.const $push34=, 4612354521497075712 i32.call $push35=, __netf2@FUNCTION, $7, $6, $1, $pop34 - br_if $pop35, .LBB0_9 + br_if $pop35, 0 # 0: down to label0 # BB#1: # %entry i64.const $push36=, 4613097791357452288 i32.call $push37=, __netf2@FUNCTION, $16, $17, $1, $pop36 - br_if $pop37, .LBB0_9 + br_if $pop37, 0 # 0: down to label0 # BB#2: # %entry i64.const $push38=, 4613150567915585536 i32.call $push39=, __netf2@FUNCTION, $5, $4, $1, $pop38 - br_if $pop39, .LBB0_9 + br_if $pop39, 0 # 0: down to label0 # BB#3: # %entry i64.const $push40=, 4613517804799262720 i32.call $push41=, __netf2@FUNCTION, $13, $12, $1, $pop40 - br_if $pop41, .LBB0_9 + br_if $pop41, 0 # 0: down to label0 # BB#4: # %entry i64.const $push42=, 4613503511148101632 i32.call $push43=, __netf2@FUNCTION, $2, $14, $1, $pop42 - br_if $pop43, .LBB0_9 + br_if $pop43, 0 # 0: down to label0 # BB#5: # %entry i64.const $push44=, 4613110985496985600 i32.call $push45=, __netf2@FUNCTION, $11, $10, $1, $pop44 - br_if $pop45, .LBB0_9 + br_if $pop45, 0 # 0: down to label0 # BB#6: # %entry i64.const $push46=, 4612961451915608064 i32.call $push47=, __netf2@FUNCTION, $9, $8, $1, $pop46 - br_if $pop47, .LBB0_9 + br_if $pop47, 0 # 0: down to label0 # BB#7: # %entry i64.const $push48=, 4613040616752807936 i32.call $push49=, __eqtf2@FUNCTION, $19, $18, $1, $pop48 - br_if $pop49, .LBB0_9 + br_if $pop49, 0 # 0: down to label0 # BB#8: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_9: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/restrict-1.c.s b/test/torture-s/restrict-1.c.s index 10d41d15f..8e05188bb 100644 --- a/test/torture-s/restrict-1.c.s +++ b/test/torture-s/restrict-1.c.s @@ -25,7 +25,7 @@ bar: # @bar .param i32 .local i32 # BB#0: # %entry - block .LBB1_2 + block i32.load $push0=, 0($0) i32.const $push1=, 1 i32.shl $1=, $pop0, $pop1 @@ -37,10 +37,11 @@ bar: # @bar i64.store32 $discard=, 0($0), $pop2 i32.const $push6=, 2 i32.ne $push7=, $1, $pop6 - br_if $pop7, .LBB1_2 + br_if $pop7, 0 # 0: down to label0 # BB#1: # %if.end return .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/scope-1.c.s b/test/torture-s/scope-1.c.s index 7e4a7709c..95be6f112 100644 --- a/test/torture-s/scope-1.c.s +++ b/test/torture-s/scope-1.c.s @@ -8,15 +8,16 @@ f: # @f .result i32 .local i32 # BB#0: # %entry - block .LBB0_2 + block i32.const $push0=, 0 i32.load $push1=, v($pop0) i32.const $push2=, 3 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -31,15 +32,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, v($0) i32.const $push1=, 3 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %f.exit call exit@FUNCTION, $0 unreachable .LBB1_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/simd-1.c.s b/test/torture-s/simd-1.c.s index 35e87d878..90fb163f2 100644 --- a/test/torture-s/simd-1.c.s +++ b/test/torture-s/simd-1.c.s @@ -7,21 +7,22 @@ verify: # @verify .param i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_5 + block i32.ne $push0=, $0, $4 - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %entry i32.ne $push1=, $1, $5 - br_if $pop1, .LBB0_5 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %entry i32.ne $push2=, $2, $6 - br_if $pop2, .LBB0_5 + br_if $pop2, 0 # 0: down to label0 # BB#3: # %entry i32.ne $push3=, $3, $7 - br_if $pop3, .LBB0_5 + br_if $pop3, 0 # 0: down to label0 # BB#4: # %if.end return .LBB0_5: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -47,7 +48,7 @@ main: # @main i32.load $5=, j+4($8) i32.load $4=, j($8) i32.store $10=, res+12($8), $9 - block .LBB1_40 + block i32.add $push1=, $6, $2 i32.store $push4=, k+8($8), $pop1 i32.store $11=, res+8($8), $pop4 @@ -59,21 +60,21 @@ main: # @main i32.store $push7=, res($8), $pop6 i32.const $push8=, 160 i32.ne $push9=, $pop7, $pop8 - br_if $pop9, .LBB1_40 + br_if $pop9, 0 # 0: down to label1 # BB#1: # %entry i32.const $push10=, 113 i32.ne $push11=, $9, $pop10 - br_if $pop11, .LBB1_40 + br_if $pop11, 0 # 0: down to label1 # BB#2: # %entry i32.const $push12=, 170 i32.ne $push13=, $11, $pop12 - br_if $pop13, .LBB1_40 + br_if $pop13, 0 # 0: down to label1 # BB#3: # %entry i32.const $push14=, 230 i32.ne $push15=, $10, $pop14 - br_if $pop15, .LBB1_40 + br_if $pop15, 0 # 0: down to label1 # BB#4: # %verify.exit - block .LBB1_39 + block i32.mul $push19=, $4, $0 i32.store $push20=, k($8), $pop19 i32.store $9=, res($8), $pop20 @@ -88,21 +89,21 @@ main: # @main i32.store $12=, res+12($8), $pop23 i32.const $push24=, 1500 i32.ne $push25=, $9, $pop24 - br_if $pop25, .LBB1_39 + br_if $pop25, 0 # 0: down to label2 # BB#5: # %verify.exit i32.const $push26=, 1300 i32.ne $push27=, $11, $pop26 - br_if $pop27, .LBB1_39 + br_if $pop27, 0 # 0: down to label2 # BB#6: # %verify.exit i32.const $push28=, 3000 i32.ne $push29=, $10, $pop28 - br_if $pop29, .LBB1_39 + br_if $pop29, 0 # 0: down to label2 # BB#7: # %verify.exit i32.const $push30=, 6000 i32.ne $push31=, $12, $pop30 - br_if $pop31, .LBB1_39 + br_if $pop31, 0 # 0: down to label2 # BB#8: # %verify.exit9 - block .LBB1_38 + block i32.div_s $push32=, $1, $5 i32.store $push37=, k+4($8), $pop32 i32.store $11=, res+4($8), $pop37 @@ -117,20 +118,20 @@ main: # @main i32.store $push40=, res($8), $pop36 i32.const $push41=, 15 i32.ne $push42=, $pop40, $pop41 - br_if $pop42, .LBB1_38 + br_if $pop42, 0 # 0: down to label3 # BB#9: # %verify.exit9 i32.const $9=, 7 i32.ne $push43=, $11, $9 - br_if $pop43, .LBB1_38 + br_if $pop43, 0 # 0: down to label3 # BB#10: # %verify.exit9 i32.ne $push44=, $10, $9 - br_if $pop44, .LBB1_38 + br_if $pop44, 0 # 0: down to label3 # BB#11: # %verify.exit9 i32.const $push45=, 6 i32.ne $push46=, $12, $pop45 - br_if $pop46, .LBB1_38 + br_if $pop46, 0 # 0: down to label3 # BB#12: # %verify.exit18 - block .LBB1_37 + block i32.and $push50=, $4, $0 i32.store $push51=, k($8), $pop50 i32.store $9=, res($8), $pop51 @@ -145,21 +146,21 @@ main: # @main i32.store $12=, res+12($8), $pop54 i32.const $push55=, 2 i32.ne $push56=, $9, $pop55 - br_if $pop56, .LBB1_37 + br_if $pop56, 0 # 0: down to label4 # BB#13: # %verify.exit18 i32.const $push57=, 4 i32.ne $push58=, $11, $pop57 - br_if $pop58, .LBB1_37 + br_if $pop58, 0 # 0: down to label4 # BB#14: # %verify.exit18 i32.const $push59=, 20 i32.ne $push60=, $10, $pop59 - br_if $pop60, .LBB1_37 + br_if $pop60, 0 # 0: down to label4 # BB#15: # %verify.exit18 i32.const $push61=, 8 i32.ne $push62=, $12, $pop61 - br_if $pop62, .LBB1_37 + br_if $pop62, 0 # 0: down to label4 # BB#16: # %verify.exit27 - block .LBB1_36 + block i32.or $push66=, $4, $0 i32.store $push67=, k($8), $pop66 i32.store $9=, res($8), $pop67 @@ -174,21 +175,21 @@ main: # @main i32.store $12=, res+12($8), $pop70 i32.const $push71=, 158 i32.ne $push72=, $9, $pop71 - br_if $pop72, .LBB1_36 + br_if $pop72, 0 # 0: down to label5 # BB#17: # %verify.exit27 i32.const $push73=, 109 i32.ne $push74=, $11, $pop73 - br_if $pop74, .LBB1_36 + br_if $pop74, 0 # 0: down to label5 # BB#18: # %verify.exit27 i32.const $9=, 150 i32.ne $push75=, $10, $9 - br_if $pop75, .LBB1_36 + br_if $pop75, 0 # 0: down to label5 # BB#19: # %verify.exit27 i32.const $push76=, 222 i32.ne $push77=, $12, $pop76 - br_if $pop77, .LBB1_36 + br_if $pop77, 0 # 0: down to label5 # BB#20: # %verify.exit36 - block .LBB1_35 + block i32.xor $push81=, $0, $4 i32.store $push82=, k($8), $pop81 i32.store $4=, res($8), $pop82 @@ -203,19 +204,19 @@ main: # @main i32.store $7=, res+12($8), $pop85 i32.const $push86=, 156 i32.ne $push87=, $4, $pop86 - br_if $pop87, .LBB1_35 + br_if $pop87, 0 # 0: down to label6 # BB#21: # %verify.exit36 i32.const $push88=, 105 i32.ne $push89=, $5, $pop88 - br_if $pop89, .LBB1_35 + br_if $pop89, 0 # 0: down to label6 # BB#22: # %verify.exit36 i32.const $push90=, 130 i32.ne $push91=, $6, $pop90 - br_if $pop91, .LBB1_35 + br_if $pop91, 0 # 0: down to label6 # BB#23: # %verify.exit36 i32.const $push92=, 214 i32.ne $push93=, $7, $pop92 - br_if $pop93, .LBB1_35 + br_if $pop93, 0 # 0: down to label6 # BB#24: # %verify.exit45 i32.sub $push97=, $8, $0 i32.store $push98=, k($8), $pop97 @@ -230,23 +231,23 @@ main: # @main i32.store $push101=, k+12($8), $pop96 i32.store $11=, res+12($8), $pop101 i32.const $7=, -150 - block .LBB1_34 + block i32.ne $push102=, $6, $7 - br_if $pop102, .LBB1_34 + br_if $pop102, 0 # 0: down to label7 # BB#25: # %verify.exit45 i32.const $push103=, -100 i32.ne $push104=, $5, $pop103 - br_if $pop104, .LBB1_34 + br_if $pop104, 0 # 0: down to label7 # BB#26: # %verify.exit45 i32.ne $push105=, $4, $7 - br_if $pop105, .LBB1_34 + br_if $pop105, 0 # 0: down to label7 # BB#27: # %verify.exit45 i32.const $push106=, -200 i32.ne $push107=, $11, $pop106 - br_if $pop107, .LBB1_34 + br_if $pop107, 0 # 0: down to label7 # BB#28: # %verify.exit54 i32.const $7=, -1 - block .LBB1_33 + block i32.xor $push111=, $0, $7 i32.store $push112=, k($8), $pop111 i32.store $discard=, res($8), $pop112 @@ -260,44 +261,52 @@ main: # @main i32.store $push115=, k+12($8), $pop110 i32.store $3=, res+12($8), $pop115 i32.ne $push116=, $0, $9 - br_if $pop116, .LBB1_33 + br_if $pop116, 0 # 0: down to label8 # BB#29: # %verify.exit54 i32.const $push117=, -101 i32.ne $push118=, $1, $pop117 - br_if $pop118, .LBB1_33 + br_if $pop118, 0 # 0: down to label8 # BB#30: # %verify.exit54 i32.const $push119=, -151 i32.ne $push120=, $2, $pop119 - br_if $pop120, .LBB1_33 + br_if $pop120, 0 # 0: down to label8 # BB#31: # %verify.exit54 i32.const $push121=, -201 i32.ne $push122=, $3, $pop121 - br_if $pop122, .LBB1_33 + br_if $pop122, 0 # 0: down to label8 # BB#32: # %verify.exit63 call exit@FUNCTION, $8 unreachable .LBB1_33: # %if.then.i62 + end_block # label8: call abort@FUNCTION unreachable .LBB1_34: # %if.then.i53 + end_block # label7: call abort@FUNCTION unreachable .LBB1_35: # %if.then.i44 + end_block # label6: call abort@FUNCTION unreachable .LBB1_36: # %if.then.i35 + end_block # label5: call abort@FUNCTION unreachable .LBB1_37: # %if.then.i26 + end_block # label4: call abort@FUNCTION unreachable .LBB1_38: # %if.then.i17 + end_block # label3: call abort@FUNCTION unreachable .LBB1_39: # %if.then.i8 + end_block # label2: call abort@FUNCTION unreachable .LBB1_40: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/simd-2.c.s b/test/torture-s/simd-2.c.s index a6e80403b..8275814b4 100644 --- a/test/torture-s/simd-2.c.s +++ b/test/torture-s/simd-2.c.s @@ -7,21 +7,22 @@ verify: # @verify .param i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - block .LBB0_5 + block i32.ne $push0=, $0, $4 - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %entry i32.ne $push1=, $1, $5 - br_if $pop1, .LBB0_5 + br_if $pop1, 0 # 0: down to label0 # BB#2: # %entry i32.ne $push2=, $2, $6 - br_if $pop2, .LBB0_5 + br_if $pop2, 0 # 0: down to label0 # BB#3: # %entry i32.ne $push3=, $3, $7 - br_if $pop3, .LBB0_5 + br_if $pop3, 0 # 0: down to label0 # BB#4: # %if.end return .LBB0_5: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -77,28 +78,28 @@ main: # @main i32.store16 $push12=, k($16), $pop3 i32.store16 $23=, res($16), $pop12 i32.const $20=, 65535 - block .LBB1_40 + block i32.and $push13=, $23, $20 i32.const $push14=, 160 i32.ne $push15=, $pop13, $pop14 - br_if $pop15, .LBB1_40 + br_if $pop15, 0 # 0: down to label1 # BB#1: # %entry i32.and $push16=, $19, $20 i32.const $push17=, 113 i32.ne $push18=, $pop16, $pop17 - br_if $pop18, .LBB1_40 + br_if $pop18, 0 # 0: down to label1 # BB#2: # %entry i32.and $push19=, $18, $20 i32.const $push20=, 170 i32.ne $push21=, $pop19, $pop20 - br_if $pop21, .LBB1_40 + br_if $pop21, 0 # 0: down to label1 # BB#3: # %entry i32.and $push22=, $17, $20 i32.const $push23=, 230 i32.ne $push24=, $pop22, $pop23 - br_if $pop24, .LBB1_40 + br_if $pop24, 0 # 0: down to label1 # BB#4: # %verify.exit - block .LBB1_39 + block i32.mul $push32=, $8, $0 i32.store16 $push33=, k($16), $pop32 i32.store16 $23=, res($16), $pop33 @@ -126,25 +127,25 @@ main: # @main i32.and $push41=, $23, $20 i32.const $push42=, 1500 i32.ne $push43=, $pop41, $pop42 - br_if $pop43, .LBB1_39 + br_if $pop43, 0 # 0: down to label2 # BB#5: # %verify.exit i32.and $push44=, $19, $20 i32.const $push45=, 1300 i32.ne $push46=, $pop44, $pop45 - br_if $pop46, .LBB1_39 + br_if $pop46, 0 # 0: down to label2 # BB#6: # %verify.exit i32.and $push47=, $18, $20 i32.const $push48=, 3000 i32.ne $push49=, $pop47, $pop48 - br_if $pop49, .LBB1_39 + br_if $pop49, 0 # 0: down to label2 # BB#7: # %verify.exit i32.and $push50=, $17, $20 i32.const $push51=, 6000 i32.ne $push52=, $pop50, $pop51 - br_if $pop52, .LBB1_39 + br_if $pop52, 0 # 0: down to label2 # BB#8: # %verify.exit40 i32.const $23=, 16 - block .LBB1_38 + block i32.shl $push56=, $7, $23 i32.shr_s $push57=, $pop56, $23 i32.shl $push54=, $15, $23 @@ -204,23 +205,23 @@ main: # @main i32.and $push96=, $pop95, $20 i32.const $push97=, 15 i32.ne $push98=, $pop96, $pop97 - br_if $pop98, .LBB1_38 + br_if $pop98, 0 # 0: down to label3 # BB#9: # %verify.exit40 i32.const $23=, 7 i32.and $push99=, $25, $20 i32.ne $push100=, $pop99, $23 - br_if $pop100, .LBB1_38 + br_if $pop100, 0 # 0: down to label3 # BB#10: # %verify.exit40 i32.and $push101=, $21, $20 i32.ne $push102=, $pop101, $23 - br_if $pop102, .LBB1_38 + br_if $pop102, 0 # 0: down to label3 # BB#11: # %verify.exit40 i32.and $push103=, $22, $20 i32.const $push104=, 6 i32.ne $push105=, $pop103, $pop104 - br_if $pop105, .LBB1_38 + br_if $pop105, 0 # 0: down to label3 # BB#12: # %verify.exit49 - block .LBB1_37 + block i32.and $push113=, $8, $0 i32.store16 $push114=, k($16), $pop113 i32.store16 $23=, res($16), $pop114 @@ -248,24 +249,24 @@ main: # @main i32.and $push122=, $23, $20 i32.const $push123=, 2 i32.ne $push124=, $pop122, $pop123 - br_if $pop124, .LBB1_37 + br_if $pop124, 0 # 0: down to label4 # BB#13: # %verify.exit49 i32.and $push125=, $19, $20 i32.const $push126=, 4 i32.ne $push127=, $pop125, $pop126 - br_if $pop127, .LBB1_37 + br_if $pop127, 0 # 0: down to label4 # BB#14: # %verify.exit49 i32.and $push128=, $18, $20 i32.const $push129=, 20 i32.ne $push130=, $pop128, $pop129 - br_if $pop130, .LBB1_37 + br_if $pop130, 0 # 0: down to label4 # BB#15: # %verify.exit49 i32.and $push131=, $17, $20 i32.const $push132=, 8 i32.ne $push133=, $pop131, $pop132 - br_if $pop133, .LBB1_37 + br_if $pop133, 0 # 0: down to label4 # BB#16: # %verify.exit58 - block .LBB1_36 + block i32.or $push141=, $8, $0 i32.store16 $push142=, k($16), $pop141 i32.store16 $23=, res($16), $pop142 @@ -293,24 +294,24 @@ main: # @main i32.and $push150=, $23, $20 i32.const $push151=, 158 i32.ne $push152=, $pop150, $pop151 - br_if $pop152, .LBB1_36 + br_if $pop152, 0 # 0: down to label5 # BB#17: # %verify.exit58 i32.and $push153=, $19, $20 i32.const $push154=, 109 i32.ne $push155=, $pop153, $pop154 - br_if $pop155, .LBB1_36 + br_if $pop155, 0 # 0: down to label5 # BB#18: # %verify.exit58 i32.and $push156=, $18, $20 i32.const $push157=, 150 i32.ne $push158=, $pop156, $pop157 - br_if $pop158, .LBB1_36 + br_if $pop158, 0 # 0: down to label5 # BB#19: # %verify.exit58 i32.and $push159=, $17, $20 i32.const $push160=, 222 i32.ne $push161=, $pop159, $pop160 - br_if $pop161, .LBB1_36 + br_if $pop161, 0 # 0: down to label5 # BB#20: # %verify.exit67 - block .LBB1_35 + block i32.xor $push169=, $0, $8 i32.store16 $push170=, k($16), $pop169 i32.store16 $23=, res($16), $pop170 @@ -338,22 +339,22 @@ main: # @main i32.and $push178=, $23, $20 i32.const $push179=, 156 i32.ne $push180=, $pop178, $pop179 - br_if $pop180, .LBB1_35 + br_if $pop180, 0 # 0: down to label6 # BB#21: # %verify.exit67 i32.and $push181=, $9, $20 i32.const $push182=, 105 i32.ne $push183=, $pop181, $pop182 - br_if $pop183, .LBB1_35 + br_if $pop183, 0 # 0: down to label6 # BB#22: # %verify.exit67 i32.and $push184=, $10, $20 i32.const $push185=, 130 i32.ne $push186=, $pop184, $pop185 - br_if $pop186, .LBB1_35 + br_if $pop186, 0 # 0: down to label6 # BB#23: # %verify.exit67 i32.and $push187=, $11, $20 i32.const $push188=, 214 i32.ne $push189=, $pop187, $pop188 - br_if $pop189, .LBB1_35 + br_if $pop189, 0 # 0: down to label6 # BB#24: # %verify.exit76 i32.sub $push197=, $16, $0 i32.store16 $push198=, k($16), $pop197 @@ -380,24 +381,24 @@ main: # @main i32.store16 $push205=, k+14($16), $pop193 i32.store16 $discard=, res+14($16), $pop205 i32.const $23=, 65386 - block .LBB1_34 + block i32.and $push206=, $15, $20 i32.ne $push207=, $pop206, $23 - br_if $pop207, .LBB1_34 + br_if $pop207, 0 # 0: down to label7 # BB#25: # %verify.exit76 i32.and $push208=, $14, $20 i32.const $push209=, 65436 i32.ne $push210=, $pop208, $pop209 - br_if $pop210, .LBB1_34 + br_if $pop210, 0 # 0: down to label7 # BB#26: # %verify.exit76 i32.and $push211=, $13, $20 i32.ne $push212=, $pop211, $23 - br_if $pop212, .LBB1_34 + br_if $pop212, 0 # 0: down to label7 # BB#27: # %verify.exit76 i32.and $push213=, $12, $20 i32.const $push214=, 65336 i32.ne $push215=, $pop213, $pop214 - br_if $pop215, .LBB1_34 + br_if $pop215, 0 # 0: down to label7 # BB#28: # %verify.exit85 i32.const $23=, -1 i32.xor $push223=, $0, $23 @@ -425,49 +426,57 @@ main: # @main i32.store16 $push231=, k+14($16), $pop219 i32.store16 $discard=, res+14($16), $pop231 i32.const $23=, 65385 - block .LBB1_33 + block i32.and $push232=, $0, $20 i32.ne $push233=, $pop232, $23 - br_if $pop233, .LBB1_33 + br_if $pop233, 0 # 0: down to label8 # BB#29: # %verify.exit85 i32.and $push234=, $1, $20 i32.const $push235=, 65435 i32.ne $push236=, $pop234, $pop235 - br_if $pop236, .LBB1_33 + br_if $pop236, 0 # 0: down to label8 # BB#30: # %verify.exit85 i32.and $push237=, $2, $20 i32.ne $push238=, $pop237, $23 - br_if $pop238, .LBB1_33 + br_if $pop238, 0 # 0: down to label8 # BB#31: # %verify.exit85 i32.and $push239=, $3, $20 i32.const $push240=, 65335 i32.ne $push241=, $pop239, $pop240 - br_if $pop241, .LBB1_33 + br_if $pop241, 0 # 0: down to label8 # BB#32: # %verify.exit94 call exit@FUNCTION, $16 unreachable .LBB1_33: # %if.then.i93 + end_block # label8: call abort@FUNCTION unreachable .LBB1_34: # %if.then.i84 + end_block # label7: call abort@FUNCTION unreachable .LBB1_35: # %if.then.i75 + end_block # label6: call abort@FUNCTION unreachable .LBB1_36: # %if.then.i66 + end_block # label5: call abort@FUNCTION unreachable .LBB1_37: # %if.then.i57 + end_block # label4: call abort@FUNCTION unreachable .LBB1_38: # %if.then.i48 + end_block # label3: call abort@FUNCTION unreachable .LBB1_39: # %if.then.i39 + end_block # label2: call abort@FUNCTION unreachable .LBB1_40: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/simd-5.c.s b/test/torture-s/simd-5.c.s index 1dfc43c62..20f79b1bc 100644 --- a/test/torture-s/simd-5.c.s +++ b/test/torture-s/simd-5.c.s @@ -129,41 +129,45 @@ main: # @main # BB#0: # %entry call func2@FUNCTION i32.const $0=, 0 - block .LBB3_8 + block i64.load $push0=, w1($0) i64.load $push1=, w3($0) i64.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB3_8 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB3_7 + block i64.load $push3=, w2($0) i64.load $push4=, w4($0) i64.ne $push5=, $pop3, $pop4 - br_if $pop5, .LBB3_7 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %if.end4 - block .LBB3_6 + block i64.load $push6=, z1($0) i64.load $push7=, z3($0) i64.ne $push8=, $pop6, $pop7 - br_if $pop8, .LBB3_6 + br_if $pop8, 0 # 0: down to label2 # BB#3: # %if.end8 - block .LBB3_5 + block i64.load $push9=, z2($0) i64.load $push10=, z4($0) i64.ne $push11=, $pop9, $pop10 - br_if $pop11, .LBB3_5 + br_if $pop11, 0 # 0: down to label3 # BB#4: # %if.end12 return $0 .LBB3_5: # %if.then11 + end_block # label3: call abort@FUNCTION unreachable .LBB3_6: # %if.then7 + end_block # label2: call abort@FUNCTION unreachable .LBB3_7: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB3_8: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/strcmp-1.c.s b/test/torture-s/strcmp-1.c.s index a8c5881f9..a1790885e 100644 --- a/test/torture-s/strcmp-1.c.s +++ b/test/torture-s/strcmp-1.c.s @@ -8,40 +8,43 @@ test: # @test .param i32, i32, i32 # BB#0: # %entry i32.call $1=, strcmp@FUNCTION, $0, $1 - block .LBB0_3 + block i32.const $push0=, -1 i32.gt_s $push1=, $2, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.const $push2=, 0 i32.lt_s $push3=, $1, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %if.then call abort@FUNCTION unreachable .LBB0_3: # %if.else - block .LBB0_6 - br_if $2, .LBB0_6 + end_block # label0: + block + br_if $2, 0 # 0: down to label1 # BB#4: # %if.else i32.const $push8=, 0 i32.eq $push9=, $1, $pop8 - br_if $pop9, .LBB0_6 + br_if $pop9, 0 # 0: down to label1 # BB#5: # %if.then5 call abort@FUNCTION unreachable .LBB0_6: # %if.else6 - block .LBB0_9 + end_block # label1: + block i32.const $push4=, 1 i32.lt_s $push5=, $2, $pop4 - br_if $pop5, .LBB0_9 + br_if $pop5, 0 # 0: down to label2 # BB#7: # %if.else6 i32.const $push6=, 0 i32.gt_s $push7=, $1, $pop6 - br_if $pop7, .LBB0_9 + br_if $pop7, 0 # 0: down to label2 # BB#8: # %if.then10 call abort@FUNCTION unreachable .LBB0_9: # %if.end12 + end_block # label2: return .Lfunc_end0: .size test, .Lfunc_end0-test @@ -65,16 +68,16 @@ main: # @main # Child Loop BB1_6 Depth 4 # Child Loop BB1_9 Depth 4 # Child Loop BB1_11 Depth 4 - block .LBB1_34 - block .LBB1_33 - block .LBB1_32 - block .LBB1_31 - block .LBB1_30 - block .LBB1_29 - block .LBB1_28 - block .LBB1_27 - block .LBB1_26 - loop .LBB1_25 + block + block + block + block + block + block + block + block + block + loop # label12: i32.const $3=, u2 copy_local $2=, $8 .LBB1_2: # %for.cond4.preheader @@ -85,7 +88,7 @@ main: # @main # Child Loop BB1_6 Depth 4 # Child Loop BB1_9 Depth 4 # Child Loop BB1_11 Depth 4 - loop .LBB1_24 + loop # label14: copy_local $4=, $8 .LBB1_3: # %for.cond7.preheader # Parent Loop BB1_1 Depth=1 @@ -95,19 +98,19 @@ main: # @main # Child Loop BB1_6 Depth 4 # Child Loop BB1_9 Depth 4 # Child Loop BB1_11 Depth 4 - loop .LBB1_23 + loop # label16: i32.const $5=, u1 copy_local $15=, $8 - block .LBB1_5 + block i32.const $push66=, 0 i32.eq $push67=, $0, $pop66 - br_if $pop67, .LBB1_5 + br_if $pop67, 0 # 0: down to label18 .LBB1_4: # %for.body9 # Parent Loop BB1_1 Depth=1 # Parent Loop BB1_2 Depth=2 # Parent Loop BB1_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB1_5 + loop # label19: i32.const $push0=, u1 i32.add $push1=, $pop0, $15 i32.store8 $discard=, 0($pop1), $8 @@ -115,33 +118,37 @@ main: # @main i32.add $15=, $15, $pop2 copy_local $5=, $1 i32.ne $push3=, $0, $15 - br_if $pop3, .LBB1_4 + br_if $pop3, 0 # 0: up to label19 .LBB1_5: # %for.cond10.preheader # in Loop: Header=BB1_3 Depth=3 + end_loop # label20: + end_block # label18: i32.const $15=, 0 copy_local $6=, $5 - block .LBB1_8 + block i32.const $push68=, 0 i32.eq $push69=, $4, $pop68 - br_if $pop69, .LBB1_8 + br_if $pop69, 0 # 0: down to label21 .LBB1_6: # %for.body12 # Parent Loop BB1_1 Depth=1 # Parent Loop BB1_2 Depth=2 # Parent Loop BB1_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB1_7 + loop # label22: i32.add $push4=, $5, $15 i32.const $push5=, 97 i32.store8 $discard=, 0($pop4), $pop5 i32.const $push6=, 1 i32.add $15=, $15, $pop6 i32.ne $push7=, $4, $15 - br_if $pop7, .LBB1_6 -.LBB1_7: # %for.cond17.preheader.loopexit + br_if $pop7, 0 # 0: up to label22 +# BB#7: # %for.cond17.preheader.loopexit # in Loop: Header=BB1_3 Depth=3 + end_loop # label23: i32.add $6=, $5, $4 .LBB1_8: # %for.cond17.preheader # in Loop: Header=BB1_3 Depth=3 + end_block # label21: i32.const $push8=, 120 i32.store8 $push9=, 0($6), $pop8 i32.store8 $push10=, 1($6), $pop9 @@ -156,16 +163,16 @@ main: # @main i32.const $9=, 0 i32.const $7=, u2 copy_local $15=, $9 - block .LBB1_10 + block i32.const $push70=, 0 i32.eq $push71=, $2, $pop70 - br_if $pop71, .LBB1_10 + br_if $pop71, 0 # 0: down to label24 .LBB1_9: # %for.body26 # Parent Loop BB1_1 Depth=1 # Parent Loop BB1_2 Depth=2 # Parent Loop BB1_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB1_10 + loop # label25: i32.const $push18=, u2 i32.add $push19=, $pop18, $15 i32.store8 $discard=, 0($pop19), $9 @@ -173,33 +180,37 @@ main: # @main i32.add $15=, $15, $pop20 copy_local $7=, $3 i32.ne $push21=, $2, $15 - br_if $pop21, .LBB1_9 + br_if $pop21, 0 # 0: up to label25 .LBB1_10: # %for.cond31.preheader # in Loop: Header=BB1_3 Depth=3 + end_loop # label26: + end_block # label24: i32.const $15=, 0 copy_local $9=, $7 - block .LBB1_13 + block i32.const $push72=, 0 i32.eq $push73=, $4, $pop72 - br_if $pop73, .LBB1_13 + br_if $pop73, 0 # 0: down to label27 .LBB1_11: # %for.body33 # Parent Loop BB1_1 Depth=1 # Parent Loop BB1_2 Depth=2 # Parent Loop BB1_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB1_12 + loop # label28: i32.add $push22=, $7, $15 i32.const $push23=, 97 i32.store8 $discard=, 0($pop22), $pop23 i32.const $push24=, 1 i32.add $15=, $15, $pop24 i32.ne $push25=, $4, $15 - br_if $pop25, .LBB1_11 -.LBB1_12: # %for.cond38.preheader.loopexit + br_if $pop25, 0 # 0: up to label28 +# BB#12: # %for.cond38.preheader.loopexit # in Loop: Header=BB1_3 Depth=3 + end_loop # label29: i32.add $9=, $7, $4 .LBB1_13: # %for.cond38.preheader # in Loop: Header=BB1_3 Depth=3 + end_block # label27: i32.store8 $push26=, 1($9), $11 i32.store8 $push27=, 2($9), $pop26 i32.store8 $push28=, 3($9), $pop27 @@ -213,7 +224,7 @@ main: # @main i32.store8 $push35=, 0($6), $pop34 i32.store8 $11=, 0($9), $pop35 i32.call $push36=, strcmp@FUNCTION, $5, $7 - br_if $pop36, .LBB1_34 + br_if $pop36, 14 # 14: down to label3 # BB#14: # %test.exit # in Loop: Header=BB1_3 Depth=3 i32.const $push37=, 97 @@ -224,7 +235,7 @@ main: # @main i32.store8 $11=, 0($9), $pop38 i32.call $push39=, strcmp@FUNCTION, $5, $7 i32.le_s $push40=, $pop39, $11 - br_if $pop40, .LBB1_33 + br_if $pop40, 13 # 13: down to label4 # BB#15: # %test.exit157 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($9), $12 @@ -233,7 +244,7 @@ main: # @main i32.store8 $discard=, 0($11), $12 i32.call $push41=, strcmp@FUNCTION, $5, $7 i32.ge_s $push42=, $pop41, $12 - br_if $pop42, .LBB1_32 + br_if $pop42, 12 # 12: down to label5 # BB#16: # %test.exit162 # in Loop: Header=BB1_3 Depth=3 i32.const $push43=, 98 @@ -244,7 +255,7 @@ main: # @main i32.store8 $discard=, 0($11), $12 i32.call $push45=, strcmp@FUNCTION, $5, $7 i32.ge_s $push46=, $pop45, $12 - br_if $pop46, .LBB1_31 + br_if $pop46, 11 # 11: down to label6 # BB#17: # %test.exit168 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($6), $14 @@ -253,7 +264,7 @@ main: # @main i32.store8 $12=, 0($11), $pop47 i32.call $push48=, strcmp@FUNCTION, $5, $7 i32.le_s $push49=, $pop48, $12 - br_if $pop49, .LBB1_30 + br_if $pop49, 10 # 10: down to label7 # BB#18: # %test.exit174 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($6), $13 @@ -263,7 +274,7 @@ main: # @main i32.store8 $discard=, 0($11), $12 i32.call $push51=, strcmp@FUNCTION, $5, $7 i32.ge_s $push52=, $pop51, $12 - br_if $pop52, .LBB1_29 + br_if $pop52, 9 # 9: down to label8 # BB#19: # %test.exit180 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($9), $13 @@ -272,7 +283,7 @@ main: # @main i32.store8 $12=, 0($11), $pop53 i32.call $push54=, strcmp@FUNCTION, $5, $7 i32.le_s $push55=, $pop54, $12 - br_if $pop55, .LBB1_28 + br_if $pop55, 8 # 8: down to label9 # BB#20: # %test.exit186 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($6), $13 @@ -282,7 +293,7 @@ main: # @main i32.store8 $discard=, 0($11), $12 i32.call $push57=, strcmp@FUNCTION, $5, $7 i32.ge_s $push58=, $pop57, $12 - br_if $pop58, .LBB1_27 + br_if $pop58, 7 # 7: down to label10 # BB#21: # %test.exit192 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($6), $14 @@ -291,54 +302,66 @@ main: # @main i32.store8 $15=, 0($11), $pop59 i32.call $push60=, strcmp@FUNCTION, $5, $7 i32.le_s $push61=, $pop60, $15 - br_if $pop61, .LBB1_26 + br_if $pop61, 6 # 6: down to label11 # BB#22: # %for.cond4 # in Loop: Header=BB1_3 Depth=3 i32.add $4=, $4, $10 i32.const $push62=, 63 i32.le_u $push63=, $4, $pop62 - br_if $pop63, .LBB1_3 -.LBB1_23: # %for.inc79 + br_if $pop63, 0 # 0: up to label16 +# BB#23: # %for.inc79 # in Loop: Header=BB1_2 Depth=2 + end_loop # label17: i32.add $2=, $2, $10 i32.add $3=, $3, $10 i32.const $5=, 8 i32.lt_u $push64=, $2, $5 - br_if $pop64, .LBB1_2 -.LBB1_24: # %for.inc82 + br_if $pop64, 0 # 0: up to label14 +# BB#24: # %for.inc82 # in Loop: Header=BB1_1 Depth=1 + end_loop # label15: i32.add $0=, $0, $10 i32.add $1=, $1, $10 i32.lt_u $push65=, $0, $5 - br_if $pop65, .LBB1_1 -.LBB1_25: # %for.end84 + br_if $pop65, 0 # 0: up to label12 +# BB#25: # %for.end84 + end_loop # label13: call exit@FUNCTION, $15 unreachable .LBB1_26: # %if.then10.i197 + end_block # label11: call abort@FUNCTION unreachable .LBB1_27: # %if.then.i189 + end_block # label10: call abort@FUNCTION unreachable .LBB1_28: # %if.then10.i185 + end_block # label9: call abort@FUNCTION unreachable .LBB1_29: # %if.then.i177 + end_block # label8: call abort@FUNCTION unreachable .LBB1_30: # %if.then10.i173 + end_block # label7: call abort@FUNCTION unreachable .LBB1_31: # %if.then.i165 + end_block # label6: call abort@FUNCTION unreachable .LBB1_32: # %if.then.i + end_block # label5: call abort@FUNCTION unreachable .LBB1_33: # %if.then10.i + end_block # label4: call abort@FUNCTION unreachable .LBB1_34: # %if.then5.i + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/strcpy-1.c.s b/test/torture-s/strcpy-1.c.s index 9ad088522..e8da8fc08 100644 --- a/test/torture-s/strcpy-1.c.s +++ b/test/torture-s/strcpy-1.c.s @@ -17,11 +17,11 @@ main: # @main # Child Loop BB0_4 Depth 4 # Child Loop BB0_7 Depth 4 # Child Loop BB0_11 Depth 4 - block .LBB0_29 - block .LBB0_28 - block .LBB0_27 - block .LBB0_26 - loop .LBB0_25 + block + block + block + block + loop # label4: i32.const $7=, u1 i32.add $1=, $7, $0 copy_local $2=, $6 @@ -32,7 +32,7 @@ main: # @main # Child Loop BB0_4 Depth 4 # Child Loop BB0_7 Depth 4 # Child Loop BB0_11 Depth 4 - loop .LBB0_24 + loop # label6: i32.const $8=, u2 i32.add $3=, $8, $2 i32.const $9=, 65 @@ -45,7 +45,7 @@ main: # @main # Child Loop BB0_4 Depth 4 # Child Loop BB0_7 Depth 4 # Child Loop BB0_11 Depth 4 - loop .LBB0_23 + loop # label8: i32.const $14=, -97 copy_local $15=, $9 .LBB0_4: # %for.body9 @@ -53,7 +53,7 @@ main: # @main # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB0_5 + loop # label10: i32.const $13=, 97 i32.add $push0=, $7, $14 i32.add $push1=, $pop0, $13 @@ -70,45 +70,48 @@ main: # @main i32.const $13=, 1 i32.add $15=, $15, $13 i32.add $14=, $14, $13 - br_if $14, .LBB0_4 -.LBB0_5: # %for.end + br_if $14, 0 # 0: up to label10 +# BB#5: # %for.end # in Loop: Header=BB0_3 Depth=3 + end_loop # label11: i32.add $push8=, $5, $2 i32.add $push9=, $8, $pop8 i32.const $push10=, 0 i32.store8 $14=, 0($pop9), $pop10 i32.call $push11=, strcpy@FUNCTION, $1, $3 i32.ne $push12=, $pop11, $1 - br_if $pop12, .LBB0_29 + br_if $pop12, 9 # 9: down to label0 # BB#6: # %for.cond21.preheader # in Loop: Header=BB0_3 Depth=3 copy_local $16=, $7 - block .LBB0_10 + block i32.le_s $push13=, $0, $14 - br_if $pop13, .LBB0_10 + br_if $pop13, 0 # 0: down to label12 .LBB0_7: # %for.body24 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB0_9 + loop # label13: i32.const $15=, u1 i32.add $push14=, $15, $14 i32.load8_u $push15=, 0($pop14) i32.ne $push16=, $pop15, $10 - br_if $pop16, .LBB0_9 + br_if $pop16, 1 # 1: down to label14 # BB#8: # %for.inc30 # in Loop: Header=BB0_7 Depth=4 i32.add $14=, $14, $13 i32.add $16=, $15, $14 i32.lt_s $push17=, $14, $0 - br_if $pop17, .LBB0_7 - br .LBB0_10 + br_if $pop17, 0 # 0: up to label13 + br 2 # 2: down to label12 .LBB0_9: # %if.then28 + end_loop # label14: call abort@FUNCTION unreachable .LBB0_10: # %for.body38.preheader # in Loop: Header=BB0_3 Depth=3 + end_block # label12: i32.const $14=, 0 copy_local $15=, $4 .LBB0_11: # %for.body38 @@ -116,7 +119,7 @@ main: # @main # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB0_13 + loop # label15: i32.shl $push18=, $15, $11 i32.shr_s $push19=, $pop18, $11 i32.gt_s $push20=, $pop19, $12 @@ -127,103 +130,111 @@ main: # @main i32.const $push22=, 255 i32.and $push23=, $15, $pop22 i32.ne $push26=, $pop25, $pop23 - br_if $pop26, .LBB0_28 + br_if $pop26, 10 # 10: down to label1 # BB#12: # %for.inc50 # in Loop: Header=BB0_11 Depth=4 i32.add $14=, $14, $13 i32.add $15=, $15, $13 i32.lt_s $push27=, $14, $5 - br_if $pop27, .LBB0_11 -.LBB0_13: # %for.end54 + br_if $pop27, 0 # 0: up to label15 +# BB#13: # %for.end54 # in Loop: Header=BB0_3 Depth=3 + end_loop # label16: i32.add $14=, $16, $14 i32.load8_u $push28=, 0($14) - br_if $pop28, .LBB0_27 + br_if $pop28, 7 # 7: down to label2 # BB#14: # %for.cond61.preheader # in Loop: Header=BB0_3 Depth=3 i32.add $push29=, $14, $13 i32.load8_u $push30=, 0($pop29) i32.ne $push31=, $pop30, $10 - br_if $pop31, .LBB0_26 + br_if $pop31, 6 # 6: down to label3 # BB#15: # %for.cond61 # in Loop: Header=BB0_3 Depth=3 i32.const $push32=, 2 i32.add $push33=, $14, $pop32 i32.load8_u $push34=, 0($pop33) i32.ne $push35=, $pop34, $10 - br_if $pop35, .LBB0_26 + br_if $pop35, 6 # 6: down to label3 # BB#16: # %for.cond61.1 # in Loop: Header=BB0_3 Depth=3 i32.const $push36=, 3 i32.add $push37=, $14, $pop36 i32.load8_u $push38=, 0($pop37) i32.ne $push39=, $pop38, $10 - br_if $pop39, .LBB0_26 + br_if $pop39, 6 # 6: down to label3 # BB#17: # %for.cond61.2 # in Loop: Header=BB0_3 Depth=3 i32.const $push40=, 4 i32.add $push41=, $14, $pop40 i32.load8_u $push42=, 0($pop41) i32.ne $push43=, $pop42, $10 - br_if $pop43, .LBB0_26 + br_if $pop43, 6 # 6: down to label3 # BB#18: # %for.cond61.3 # in Loop: Header=BB0_3 Depth=3 i32.const $push44=, 5 i32.add $push45=, $14, $pop44 i32.load8_u $push46=, 0($pop45) i32.ne $push47=, $pop46, $10 - br_if $pop47, .LBB0_26 + br_if $pop47, 6 # 6: down to label3 # BB#19: # %for.cond61.4 # in Loop: Header=BB0_3 Depth=3 i32.const $push48=, 6 i32.add $push49=, $14, $pop48 i32.load8_u $push50=, 0($pop49) i32.ne $push51=, $pop50, $10 - br_if $pop51, .LBB0_26 + br_if $pop51, 6 # 6: down to label3 # BB#20: # %for.cond61.5 # in Loop: Header=BB0_3 Depth=3 i32.const $push52=, 7 i32.add $push53=, $14, $pop52 i32.load8_u $push54=, 0($pop53) i32.ne $push55=, $pop54, $10 - br_if $pop55, .LBB0_26 + br_if $pop55, 6 # 6: down to label3 # BB#21: # %for.cond61.6 # in Loop: Header=BB0_3 Depth=3 i32.const $11=, 8 i32.add $push56=, $14, $11 i32.load8_u $push57=, 0($pop56) i32.ne $push58=, $pop57, $10 - br_if $pop58, .LBB0_26 + br_if $pop58, 6 # 6: down to label3 # BB#22: # %for.cond61.7 # in Loop: Header=BB0_3 Depth=3 i32.add $5=, $5, $13 i32.const $push59=, 80 i32.lt_u $push60=, $5, $pop59 - br_if $pop60, .LBB0_3 -.LBB0_23: # %for.inc77 + br_if $pop60, 0 # 0: up to label8 +# BB#23: # %for.inc77 # in Loop: Header=BB0_2 Depth=2 + end_loop # label9: i32.add $2=, $2, $13 i32.lt_u $push61=, $2, $11 - br_if $pop61, .LBB0_2 -.LBB0_24: # %for.inc80 + br_if $pop61, 0 # 0: up to label6 +# BB#24: # %for.inc80 # in Loop: Header=BB0_1 Depth=1 + end_loop # label7: i32.add $0=, $0, $13 i32.lt_u $push62=, $0, $11 - br_if $pop62, .LBB0_1 -.LBB0_25: # %for.end82 + br_if $pop62, 0 # 0: up to label4 +# BB#25: # %for.end82 + end_loop # label5: i32.const $push63=, 0 call exit@FUNCTION, $pop63 unreachable .LBB0_26: # %if.then68 + end_block # label3: call abort@FUNCTION unreachable .LBB0_27: # %if.then59 + end_block # label2: call abort@FUNCTION unreachable .LBB0_28: # %if.then48 + end_block # label1: call abort@FUNCTION unreachable .LBB0_29: # %if.then19 + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/strct-pack-1.c.s b/test/torture-s/strct-pack-1.c.s index 0ab9fafea..dd23f076f 100644 --- a/test/torture-s/strct-pack-1.c.s +++ b/test/torture-s/strct-pack-1.c.s @@ -10,10 +10,10 @@ check: # @check .local i64, i32 # BB#0: # %entry i32.const $2=, 1 - block .LBB0_3 + block i32.load16_u $push0=, 0($0) i32.ne $push1=, $pop0, $2 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %lor.lhs.false i64.const $1=, 16 i32.const $push2=, 8 @@ -36,10 +36,11 @@ check: # @check f64.reinterpret/i64 $push19=, $pop18 f64.const $push20=, 0x1p4 f64.ne $push21=, $pop19, $pop20 - br_if $pop21, .LBB0_3 + br_if $pop21, 0 # 0: down to label0 # BB#2: # %if.end i32.const $2=, 0 .LBB0_3: # %return + end_block # label0: return $2 .Lfunc_end0: .size check, .Lfunc_end0-check diff --git a/test/torture-s/string-opt-17.c.s b/test/torture-s/string-opt-17.c.s index 713f1e4e1..f0a0334d9 100644 --- a/test/torture-s/string-opt-17.c.s +++ b/test/torture-s/string-opt-17.c.s @@ -26,16 +26,17 @@ check2: # @check2 .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB1_2 + block i32.load $push0=, check2.r($0) i32.const $push1=, 5 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push3=, 6 i32.store $push4=, check2.r($0), $pop3 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: @@ -50,11 +51,11 @@ test2: # @test2 .local i32 # BB#0: # %entry i32.const $1=, 0 - block .LBB2_2 + block i32.load $push0=, check2.r($1) i32.const $push1=, 5 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB2_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %check2.exit i32.const $push3=, 6 i32.store $discard=, check2.r($1), $pop3 @@ -73,6 +74,7 @@ test2: # @test2 i32.store8 $discard=, 0($0), $pop12 return .LBB2_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end2: @@ -112,34 +114,37 @@ main: # @main i32.const $push11=, 3 i32.const $5=, 4 i32.add $5=, $6, $5 - block .LBB3_6 + block i32.call $push12=, memcmp@FUNCTION, $5, $pop10, $pop11 - br_if $pop12, .LBB3_6 + br_if $pop12, 0 # 0: down to label2 # BB#1: # %if.end - block .LBB3_5 + block i32.load $push13=, check2.r($0) i32.const $push14=, 5 i32.ne $push15=, $pop13, $pop14 - br_if $pop15, .LBB3_5 + br_if $pop15, 0 # 0: down to label3 # BB#2: # %test2.exit - block .LBB3_4 + block i32.const $push16=, 6 i32.store $discard=, check2.r($0), $pop16 i32.const $push17=, 8020322 i32.store $discard=, 4($6), $pop17 i32.const $push18=, 0 i32.eq $push19=, $1, $pop18 - br_if $pop19, .LBB3_4 + br_if $pop19, 0 # 0: down to label4 # BB#3: # %if.end8 call exit@FUNCTION, $0 unreachable .LBB3_4: # %if.then7 + end_block # label4: call abort@FUNCTION unreachable .LBB3_5: # %if.then.i.i + end_block # label3: call abort@FUNCTION unreachable .LBB3_6: # %if.then + end_block # label2: call abort@FUNCTION unreachable .Lfunc_end3: diff --git a/test/torture-s/string-opt-18.c.s b/test/torture-s/string-opt-18.c.s index bf4f12483..99469f52a 100644 --- a/test/torture-s/string-opt-18.c.s +++ b/test/torture-s/string-opt-18.c.s @@ -20,14 +20,15 @@ test2: # @test2 .local i32 # BB#0: # %entry i32.const $1=, 8 - block .LBB1_2 + block i32.call $push0=, mempcpy@FUNCTION, $0, $0, $1 i32.add $push1=, $0, $1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB1_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end return .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: @@ -110,10 +111,10 @@ main: # @main i32.call $push0=, mempcpy@FUNCTION, $4, $5, $0 i32.const $6=, 6 i32.add $6=, $7, $6 - block .LBB7_2 + block i32.add $push1=, $6, $0 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB7_2 + br_if $pop2, 0 # 0: down to label1 # BB#1: # %test2.exit i32.const $push3=, 0 i32.const $3=, 16 @@ -122,6 +123,7 @@ main: # @main i32.store $7=, 0($3), $7 return $pop3 .LBB7_2: # %if.then.i + end_block # label1: call abort@FUNCTION unreachable .Lfunc_end7: diff --git a/test/torture-s/string-opt-5.c.s b/test/torture-s/string-opt-5.c.s index e8dd4c028..875a0874b 100644 --- a/test/torture-s/string-opt-5.c.s +++ b/test/torture-s/string-opt-5.c.s @@ -18,9 +18,9 @@ main: # @main i32.load $0=, bar($16) i32.call $8=, strlen@FUNCTION, $0 i32.const $3=, 8 - block .LBB0_48 + block i32.ne $push5=, $8, $3 - br_if $pop5, .LBB0_48 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end i32.load $1=, x($16) i32.const $4=, 1 @@ -31,14 +31,14 @@ main: # @main i32.add $push7=, $0, $pop6 i32.call $9=, strlen@FUNCTION, $pop7 i32.const $6=, 6 - block .LBB0_47 + block i32.ne $push8=, $9, $6 - br_if $pop8, .LBB0_47 + br_if $pop8, 0 # 0: down to label1 # BB#2: # %if.end4 i32.const $7=, 7 - block .LBB0_46 + block i32.ne $push9=, $8, $7 - br_if $pop9, .LBB0_46 + br_if $pop9, 0 # 0: down to label2 # BB#3: # %if.end16 i32.const $8=, 3 i32.add $push10=, $1, $8 @@ -48,25 +48,25 @@ main: # @main i32.add $push12=, $9, $pop11 i32.call $13=, strlen@FUNCTION, $pop12 i32.const $10=, 10 - block .LBB0_45 + block i32.ne $push13=, $13, $10 - br_if $pop13, .LBB0_45 + br_if $pop13, 0 # 0: down to label3 # BB#4: # %if.end26 - block .LBB0_44 + block i32.const $push14=, -3 i32.add $push1=, $1, $pop14 i32.store $13=, x($16), $pop1 i32.add $push15=, $9, $13 i32.const $push16=, .L.str.2 i32.call $push17=, strcmp@FUNCTION, $pop15, $pop16 - br_if $pop17, .LBB0_44 + br_if $pop17, 0 # 0: down to label4 # BB#5: # %if.end33 - block .LBB0_43 + block i32.call $push18=, strcmp@FUNCTION, $9, $0 i32.ge_s $push19=, $pop18, $16 - br_if $pop19, .LBB0_43 + br_if $pop19, 0 # 0: down to label5 # BB#6: # %if.end37 - block .LBB0_42 + block i32.const $push20=, -2 i32.add $push2=, $1, $pop20 i32.store $2=, x($16), $pop2 @@ -74,11 +74,11 @@ main: # @main i32.add $push22=, $0, $pop21 i32.call $push23=, strcmp@FUNCTION, $9, $pop22 i32.ge_s $push24=, $pop23, $16 - br_if $pop24, .LBB0_42 + br_if $pop24, 0 # 0: down to label6 # BB#7: # %if.end47 i32.const $11=, -1 i32.const $12=, 108 - block .LBB0_41 + block i32.add $push3=, $1, $11 i32.store $19=, x($16), $pop3 i32.and $push25=, $2, $7 @@ -86,49 +86,49 @@ main: # @main i32.call $push27=, strchr@FUNCTION, $pop26, $12 i32.const $push28=, .L.str.1+9 i32.ne $push29=, $pop27, $pop28 - br_if $pop29, .LBB0_41 + br_if $pop29, 0 # 0: down to label7 # BB#8: # %if.end58 i32.const $13=, 111 i32.call $2=, strchr@FUNCTION, $0, $13 i32.const $14=, 4 - block .LBB0_40 + block i32.add $push30=, $0, $14 i32.ne $push31=, $2, $pop30 - br_if $pop31, .LBB0_40 + br_if $pop31, 0 # 0: down to label8 # BB#9: # %if.end63 - block .LBB0_39 + block i32.call $push32=, strlen@FUNCTION, $0 i32.ne $push33=, $pop32, $3 - br_if $pop33, .LBB0_39 + br_if $pop33, 0 # 0: down to label9 # BB#10: # %if.end68 - block .LBB0_38 + block i32.const $push34=, 120 i32.call $push35=, strrchr@FUNCTION, $0, $pop34 - br_if $pop35, .LBB0_38 + br_if $pop35, 0 # 0: down to label10 # BB#11: # %if.end72 - block .LBB0_37 + block i32.call $push36=, strrchr@FUNCTION, $0, $13 i32.ne $push37=, $pop36, $2 - br_if $pop37, .LBB0_37 + br_if $pop37, 0 # 0: down to label11 # BB#12: # %if.end77 i32.load $push40=, y($16) i32.add $push4=, $pop40, $11 i32.store $0=, y($16), $pop4 i32.store $discard=, x($16), $1 - block .LBB0_36 + block i32.and $push38=, $19, $4 i32.add $push39=, $9, $pop38 i32.const $push42=, .L.str.3 i32.and $push41=, $0, $4 i32.add $push43=, $pop42, $pop41 i32.call $push44=, strcmp@FUNCTION, $pop39, $pop43 - br_if $pop44, .LBB0_36 + br_if $pop44, 0 # 0: down to label12 # BB#13: # %if.end86 - block .LBB0_35 - br_if $0, .LBB0_35 + block + br_if $0, 0 # 0: down to label13 # BB#14: # %if.end86 i32.ne $push45=, $1, $6 - br_if $pop45, .LBB0_35 + br_if $pop45, 0 # 0: down to label13 # BB#15: # %if.end90 i32.const $24=, 0 i32.add $24=, $39, $24 @@ -155,10 +155,10 @@ main: # @main i32.const $push47=, 32 i32.store8 $15=, 0($pop46), $pop47 i32.store $17=, x($16), $6 - block .LBB0_34 + block i32.const $push53=, .L.str.4 i32.call $push54=, strcmp@FUNCTION, $0, $pop53 - br_if $pop54, .LBB0_34 + br_if $pop54, 0 # 0: down to label14 # BB#16: # %if.end108 i32.const $push57=, 56 i32.const $28=, 0 @@ -197,26 +197,26 @@ main: # @main i64.store $18=, 0($39), $pop63 i32.store $6=, x($16), $7 i32.store $7=, y($16), $5 - block .LBB0_33 + block i32.const $push64=, .L.str.5+1 i32.call $push65=, strncpy@FUNCTION, $0, $pop64, $10 i32.ne $push66=, $pop65, $0 - br_if $pop66, .LBB0_33 + br_if $pop66, 0 # 0: down to label15 # BB#17: # %if.end108 i32.load $push55=, x($16) i32.ne $push67=, $pop55, $6 - br_if $pop67, .LBB0_33 + br_if $pop67, 0 # 0: down to label15 # BB#18: # %if.end108 i32.load $push56=, y($16) i32.ne $push68=, $pop56, $7 - br_if $pop68, .LBB0_33 + br_if $pop68, 0 # 0: down to label15 # BB#19: # %lor.lhs.false125 i32.const $push69=, .L.str.6 i32.const $push70=, 12 i32.const $35=, 0 i32.add $35=, $39, $35 i32.call $push71=, memcmp@FUNCTION, $35, $pop69, $pop70 - br_if $pop71, .LBB0_33 + br_if $pop71, 0 # 0: down to label15 # BB#20: # %if.end130 i64.store $push72=, 0($9), $18 i64.store $push73=, 0($13), $pop72 @@ -232,19 +232,19 @@ main: # @main i32.call $push80=, strncpy@FUNCTION, $36, $pop79, $3 i32.const $37=, 0 i32.add $37=, $39, $37 - block .LBB0_32 + block i32.ne $push81=, $pop80, $37 - br_if $pop81, .LBB0_32 + br_if $pop81, 0 # 0: down to label16 # BB#21: # %lor.lhs.false136 i32.const $push82=, .L.str.8 i32.const $push83=, 9 i32.const $38=, 0 i32.add $38=, $39, $38 i32.call $push84=, memcmp@FUNCTION, $38, $pop82, $pop83 - br_if $pop84, .LBB0_32 + br_if $pop84, 0 # 0: down to label16 # BB#22: # %if.end141 i32.const $9=, buf - block .LBB0_31 + block i32.const $push85=, 64 call memset@FUNCTION, $9, $15, $pop85 i32.load $push87=, y($16) @@ -255,11 +255,11 @@ main: # @main i32.const $push89=, 33 call memset@FUNCTION, $9, $pop89, $0 i32.ne $push90=, $0, $8 - br_if $pop90, .LBB0_31 + br_if $pop90, 0 # 0: down to label17 # BB#23: # %lor.lhs.false148 i32.const $push91=, .L.str.9 i32.call $push92=, memcmp@FUNCTION, $9, $pop91, $8 - br_if $pop92, .LBB0_31 + br_if $pop92, 0 # 0: down to label17 # BB#24: # %lor.lhs.false158 i64.const $push94=, 45 i64.store8 $18=, buf+3($16), $pop94 @@ -278,12 +278,12 @@ main: # @main i32.add $push100=, $0, $7 i64.store8 $discard=, 0($pop100), $18 i32.const $3=, 11 - block .LBB0_30 + block i32.add $push101=, $0, $1 i64.store8 $discard=, 0($pop101), $18 i32.const $push102=, .L.str.10 i32.call $push103=, memcmp@FUNCTION, $9, $pop102, $3 - br_if $pop103, .LBB0_30 + br_if $pop103, 0 # 0: down to label18 # BB#25: # %lor.lhs.false171 i32.store $discard=, y($16), $4 i32.store $9=, x($16), $3 @@ -295,11 +295,11 @@ main: # @main i32.add $push106=, $0, $1 i32.store8 $discard=, 0($pop106), $16 i32.store8 $discard=, buf+11($16), $16 - block .LBB0_29 + block i32.const $push108=, buf+8 i32.const $push107=, .L.str.11 i32.call $push109=, memcmp@FUNCTION, $pop108, $pop107, $6 - br_if $pop109, .LBB0_29 + br_if $pop109, 0 # 0: down to label19 # BB#26: # %lor.lhs.false180 i32.const $push110=, 15 i32.store $discard=, x($16), $pop110 @@ -309,11 +309,11 @@ main: # @main i32.store8 $discard=, buf+17($16), $16 i32.store8 $discard=, buf+16($16), $16 i32.store8 $discard=, buf+15($16), $16 - block .LBB0_28 + block i32.const $push112=, buf+10 i32.const $push111=, .L.str.12 i32.call $push113=, memcmp@FUNCTION, $pop112, $pop111, $9 - br_if $pop113, .LBB0_28 + br_if $pop113, 0 # 0: down to label20 # BB#27: # %if.end184 i32.const $23=, 64 i32.add $39=, $39, $23 @@ -321,66 +321,87 @@ main: # @main i32.store $39=, 0($23), $39 return $16 .LBB0_28: # %if.then183 + end_block # label20: call abort@FUNCTION unreachable .LBB0_29: # %if.then174 + end_block # label19: call abort@FUNCTION unreachable .LBB0_30: # %if.then161 + end_block # label18: call abort@FUNCTION unreachable .LBB0_31: # %if.then151 + end_block # label17: call abort@FUNCTION unreachable .LBB0_32: # %if.then140 + end_block # label16: call abort@FUNCTION unreachable .LBB0_33: # %if.then129 + end_block # label15: call abort@FUNCTION unreachable .LBB0_34: # %if.then107 + end_block # label14: call abort@FUNCTION unreachable .LBB0_35: # %if.then89 + end_block # label13: call abort@FUNCTION unreachable .LBB0_36: # %if.then85 + end_block # label12: call abort@FUNCTION unreachable .LBB0_37: # %if.then76 + end_block # label11: call abort@FUNCTION unreachable .LBB0_38: # %if.then71 + end_block # label10: call abort@FUNCTION unreachable .LBB0_39: # %if.then67 + end_block # label9: call abort@FUNCTION unreachable .LBB0_40: # %if.then62 + end_block # label8: call abort@FUNCTION unreachable .LBB0_41: # %if.then54 + end_block # label7: call abort@FUNCTION unreachable .LBB0_42: # %if.then43 + end_block # label6: call abort@FUNCTION unreachable .LBB0_43: # %if.then36 + end_block # label5: call abort@FUNCTION unreachable .LBB0_44: # %if.then29 + end_block # label4: call abort@FUNCTION unreachable .LBB0_45: # %if.then22 + end_block # label3: call abort@FUNCTION unreachable .LBB0_46: # %if.then6 + end_block # label2: call abort@FUNCTION unreachable .LBB0_47: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB0_48: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/strlen-1.c.s b/test/torture-s/strlen-1.c.s index 8d46b82b7..69643c310 100644 --- a/test/torture-s/strlen-1.c.s +++ b/test/torture-s/strlen-1.c.s @@ -17,8 +17,8 @@ main: # @main # Child Loop BB0_2 Depth 2 # Child Loop BB0_3 Depth 3 # Child Loop BB0_6 Depth 3 - block .LBB0_12 - loop .LBB0_11 + block + loop # label1: i32.add $0=, $2, $4 i32.const $7=, 1 copy_local $6=, $1 @@ -27,18 +27,18 @@ main: # @main # => This Loop Header: Depth=2 # Child Loop BB0_3 Depth 3 # Child Loop BB0_6 Depth 3 - loop .LBB0_10 + loop # label3: i32.const $8=, u copy_local $9=, $1 - block .LBB0_4 + block i32.const $push22=, 0 i32.eq $push23=, $4, $pop22 - br_if $pop23, .LBB0_4 + br_if $pop23, 0 # 0: down to label5 .LBB0_3: # %for.body6 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_4 + loop # label6: i32.const $push0=, u i32.add $push1=, $pop0, $9 i32.store8 $discard=, 0($pop1), $1 @@ -46,15 +46,17 @@ main: # @main i32.add $9=, $9, $pop2 copy_local $8=, $5 i32.ne $push3=, $4, $9 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: up to label6 .LBB0_4: # %for.cond7.preheader # in Loop: Header=BB0_2 Depth=2 + end_loop # label7: + end_block # label5: i32.const $3=, 1 i32.add $10=, $8, $3 - block .LBB0_8 + block i32.const $push24=, 0 i32.eq $push25=, $6, $pop24 - br_if $pop25, .LBB0_8 + br_if $pop25, 0 # 0: down to label8 # BB#5: # %for.body9.preheader # in Loop: Header=BB0_2 Depth=2 i32.add $10=, $8, $7 @@ -63,18 +65,20 @@ main: # @main # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 - loop .LBB0_7 + loop # label9: i32.add $push4=, $8, $9 i32.const $push5=, 97 i32.store8 $discard=, 0($pop4), $pop5 i32.add $9=, $9, $3 i32.ne $push6=, $6, $9 - br_if $pop6, .LBB0_6 -.LBB0_7: # %for.end13.loopexit + br_if $pop6, 0 # 0: up to label9 +# BB#7: # %for.end13.loopexit # in Loop: Header=BB0_2 Depth=2 + end_loop # label10: i32.add $8=, $8, $6 .LBB0_8: # %for.end13 # in Loop: Header=BB0_2 Depth=2 + end_block # label8: i32.const $push7=, 0 i32.store8 $9=, 0($8), $pop7 i32.const $push8=, 98 @@ -88,25 +92,28 @@ main: # @main i32.store8 $discard=, 7($10), $pop15 i32.call $push16=, strlen@FUNCTION, $0 i32.ne $push17=, $6, $pop16 - br_if $pop17, .LBB0_12 + br_if $pop17, 4 # 4: down to label0 # BB#9: # %for.cond1 # in Loop: Header=BB0_2 Depth=2 i32.add $6=, $6, $3 i32.add $7=, $7, $3 i32.const $push18=, 63 i32.le_u $push19=, $6, $pop18 - br_if $pop19, .LBB0_2 -.LBB0_10: # %for.inc26 + br_if $pop19, 0 # 0: up to label3 +# BB#10: # %for.inc26 # in Loop: Header=BB0_1 Depth=1 + end_loop # label4: i32.add $4=, $4, $3 i32.add $5=, $5, $3 i32.const $push20=, 8 i32.lt_u $push21=, $4, $pop20 - br_if $pop21, .LBB0_1 -.LBB0_11: # %for.end28 + br_if $pop21, 0 # 0: up to label1 +# BB#11: # %for.end28 + end_loop # label2: call exit@FUNCTION, $9 unreachable .LBB0_12: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/strncmp-1.c.s b/test/torture-s/strncmp-1.c.s index 9d573f7cf..c98a1c4b4 100644 --- a/test/torture-s/strncmp-1.c.s +++ b/test/torture-s/strncmp-1.c.s @@ -8,40 +8,43 @@ test: # @test .param i32, i32, i32, i32 # BB#0: # %entry i32.call $2=, strncmp@FUNCTION, $0, $1, $2 - block .LBB0_3 + block i32.const $push0=, -1 i32.gt_s $push1=, $3, $pop0 - br_if $pop1, .LBB0_3 + br_if $pop1, 0 # 0: down to label0 # BB#1: # %entry i32.const $push2=, 0 i32.lt_s $push3=, $2, $pop2 - br_if $pop3, .LBB0_3 + br_if $pop3, 0 # 0: down to label0 # BB#2: # %if.then call abort@FUNCTION unreachable .LBB0_3: # %if.else - block .LBB0_6 - br_if $3, .LBB0_6 + end_block # label0: + block + br_if $3, 0 # 0: down to label1 # BB#4: # %if.else i32.const $push8=, 0 i32.eq $push9=, $2, $pop8 - br_if $pop9, .LBB0_6 + br_if $pop9, 0 # 0: down to label1 # BB#5: # %if.then5 call abort@FUNCTION unreachable .LBB0_6: # %if.else6 - block .LBB0_9 + end_block # label1: + block i32.const $push4=, 1 i32.lt_s $push5=, $3, $pop4 - br_if $pop5, .LBB0_9 + br_if $pop5, 0 # 0: down to label2 # BB#7: # %if.else6 i32.const $push6=, 0 i32.gt_s $push7=, $2, $pop6 - br_if $pop7, .LBB0_9 + br_if $pop7, 0 # 0: down to label2 # BB#8: # %if.then10 call abort@FUNCTION unreachable .LBB0_9: # %if.end12 + end_block # label2: return .Lfunc_end0: .size test, .Lfunc_end0-test @@ -65,25 +68,25 @@ main: # @main # Child Loop BB1_6 Depth 4 # Child Loop BB1_9 Depth 4 # Child Loop BB1_11 Depth 4 - block .LBB1_52 - block .LBB1_51 - block .LBB1_50 - block .LBB1_49 - block .LBB1_48 - block .LBB1_47 - block .LBB1_46 - block .LBB1_45 - block .LBB1_44 - block .LBB1_43 - block .LBB1_42 - block .LBB1_41 - block .LBB1_40 - block .LBB1_39 - block .LBB1_38 - block .LBB1_37 - block .LBB1_36 - block .LBB1_35 - loop .LBB1_34 + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + block + loop # label21: i32.const $3=, u2 copy_local $2=, $8 .LBB1_2: # %for.cond4.preheader @@ -94,7 +97,7 @@ main: # @main # Child Loop BB1_6 Depth 4 # Child Loop BB1_9 Depth 4 # Child Loop BB1_11 Depth 4 - loop .LBB1_33 + loop # label23: copy_local $4=, $8 .LBB1_3: # %for.cond7.preheader # Parent Loop BB1_1 Depth=1 @@ -104,19 +107,19 @@ main: # @main # Child Loop BB1_6 Depth 4 # Child Loop BB1_9 Depth 4 # Child Loop BB1_11 Depth 4 - loop .LBB1_32 + loop # label25: i32.const $5=, u1 copy_local $16=, $8 - block .LBB1_5 + block i32.const $push70=, 0 i32.eq $push71=, $0, $pop70 - br_if $pop71, .LBB1_5 + br_if $pop71, 0 # 0: down to label27 .LBB1_4: # %for.body9 # Parent Loop BB1_1 Depth=1 # Parent Loop BB1_2 Depth=2 # Parent Loop BB1_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB1_5 + loop # label28: i32.const $push0=, u1 i32.add $push1=, $pop0, $16 i32.store8 $discard=, 0($pop1), $8 @@ -124,33 +127,37 @@ main: # @main i32.add $16=, $16, $pop2 copy_local $5=, $1 i32.ne $push3=, $0, $16 - br_if $pop3, .LBB1_4 + br_if $pop3, 0 # 0: up to label28 .LBB1_5: # %for.cond10.preheader # in Loop: Header=BB1_3 Depth=3 + end_loop # label29: + end_block # label27: i32.const $16=, 0 copy_local $6=, $5 - block .LBB1_8 + block i32.const $push72=, 0 i32.eq $push73=, $4, $pop72 - br_if $pop73, .LBB1_8 + br_if $pop73, 0 # 0: down to label30 .LBB1_6: # %for.body12 # Parent Loop BB1_1 Depth=1 # Parent Loop BB1_2 Depth=2 # Parent Loop BB1_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB1_7 + loop # label31: i32.add $push4=, $5, $16 i32.const $push5=, 97 i32.store8 $discard=, 0($pop4), $pop5 i32.const $push6=, 1 i32.add $16=, $16, $pop6 i32.ne $push7=, $4, $16 - br_if $pop7, .LBB1_6 -.LBB1_7: # %for.cond17.preheader.loopexit + br_if $pop7, 0 # 0: up to label31 +# BB#7: # %for.cond17.preheader.loopexit # in Loop: Header=BB1_3 Depth=3 + end_loop # label32: i32.add $6=, $5, $4 .LBB1_8: # %for.cond17.preheader # in Loop: Header=BB1_3 Depth=3 + end_block # label30: i32.const $push8=, 120 i32.store8 $push9=, 0($6), $pop8 i32.store8 $push10=, 1($6), $pop9 @@ -163,16 +170,16 @@ main: # @main i32.const $9=, 0 i32.const $7=, u2 copy_local $16=, $9 - block .LBB1_10 + block i32.const $push74=, 0 i32.eq $push75=, $2, $pop74 - br_if $pop75, .LBB1_10 + br_if $pop75, 0 # 0: down to label33 .LBB1_9: # %for.body26 # Parent Loop BB1_1 Depth=1 # Parent Loop BB1_2 Depth=2 # Parent Loop BB1_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB1_10 + loop # label34: i32.const $push16=, u2 i32.add $push17=, $pop16, $16 i32.store8 $discard=, 0($pop17), $9 @@ -180,33 +187,37 @@ main: # @main i32.add $16=, $16, $pop18 copy_local $7=, $3 i32.ne $push19=, $2, $16 - br_if $pop19, .LBB1_9 + br_if $pop19, 0 # 0: up to label34 .LBB1_10: # %for.cond31.preheader # in Loop: Header=BB1_3 Depth=3 + end_loop # label35: + end_block # label33: i32.const $16=, 0 copy_local $9=, $7 - block .LBB1_13 + block i32.const $push76=, 0 i32.eq $push77=, $4, $pop76 - br_if $pop77, .LBB1_13 + br_if $pop77, 0 # 0: down to label36 .LBB1_11: # %for.body33 # Parent Loop BB1_1 Depth=1 # Parent Loop BB1_2 Depth=2 # Parent Loop BB1_3 Depth=3 # => This Inner Loop Header: Depth=4 - loop .LBB1_12 + loop # label37: i32.add $push20=, $7, $16 i32.const $push21=, 97 i32.store8 $discard=, 0($pop20), $pop21 i32.const $push22=, 1 i32.add $16=, $16, $pop22 i32.ne $push23=, $4, $16 - br_if $pop23, .LBB1_11 -.LBB1_12: # %for.cond38.preheader.loopexit + br_if $pop23, 0 # 0: up to label37 +# BB#12: # %for.cond38.preheader.loopexit # in Loop: Header=BB1_3 Depth=3 + end_loop # label38: i32.add $9=, $7, $4 .LBB1_13: # %for.cond38.preheader # in Loop: Header=BB1_3 Depth=3 + end_block # label36: i32.store8 $push24=, 1($9), $11 i32.store8 $push25=, 2($9), $pop24 i32.store8 $push26=, 3($9), $pop25 @@ -219,11 +230,11 @@ main: # @main i32.const $16=, 80 i32.store8 $12=, 0($9), $11 i32.call $push31=, strncmp@FUNCTION, $5, $7, $16 - br_if $pop31, .LBB1_52 + br_if $pop31, 23 # 23: down to label3 # BB#14: # %test.exit # in Loop: Header=BB1_3 Depth=3 i32.call $push32=, strncmp@FUNCTION, $5, $7, $4 - br_if $pop32, .LBB1_51 + br_if $pop32, 22 # 22: down to label4 # BB#15: # %test.exit185 # in Loop: Header=BB1_3 Depth=3 i32.const $push33=, 97 @@ -234,11 +245,11 @@ main: # @main i32.store8 $12=, 0($9), $pop34 i32.call $push35=, strncmp@FUNCTION, $5, $7, $16 i32.le_s $push36=, $pop35, $12 - br_if $pop36, .LBB1_50 + br_if $pop36, 21 # 21: down to label5 # BB#16: # %test.exit190 # in Loop: Header=BB1_3 Depth=3 i32.call $push37=, strncmp@FUNCTION, $5, $7, $4 - br_if $pop37, .LBB1_49 + br_if $pop37, 20 # 20: down to label6 # BB#17: # %test.exit196 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($9), $13 @@ -247,11 +258,11 @@ main: # @main i32.store8 $discard=, 0($12), $13 i32.call $push38=, strncmp@FUNCTION, $5, $7, $16 i32.ge_s $push39=, $pop38, $13 - br_if $pop39, .LBB1_48 + br_if $pop39, 19 # 19: down to label7 # BB#18: # %test.exit201 # in Loop: Header=BB1_3 Depth=3 i32.call $push40=, strncmp@FUNCTION, $5, $7, $4 - br_if $pop40, .LBB1_47 + br_if $pop40, 18 # 18: down to label8 # BB#19: # %test.exit207 # in Loop: Header=BB1_3 Depth=3 i32.const $push41=, 98 @@ -262,11 +273,11 @@ main: # @main i32.store8 $discard=, 0($12), $13 i32.call $push43=, strncmp@FUNCTION, $5, $7, $16 i32.ge_s $push44=, $pop43, $13 - br_if $pop44, .LBB1_46 + br_if $pop44, 17 # 17: down to label9 # BB#20: # %test.exit213 # in Loop: Header=BB1_3 Depth=3 i32.call $push45=, strncmp@FUNCTION, $5, $7, $4 - br_if $pop45, .LBB1_45 + br_if $pop45, 16 # 16: down to label10 # BB#21: # %test.exit219 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($6), $15 @@ -275,11 +286,11 @@ main: # @main i32.store8 $13=, 0($12), $pop46 i32.call $push47=, strncmp@FUNCTION, $5, $7, $16 i32.le_s $push48=, $pop47, $13 - br_if $pop48, .LBB1_44 + br_if $pop48, 15 # 15: down to label11 # BB#22: # %test.exit225 # in Loop: Header=BB1_3 Depth=3 i32.call $push49=, strncmp@FUNCTION, $5, $7, $4 - br_if $pop49, .LBB1_43 + br_if $pop49, 14 # 14: down to label12 # BB#23: # %test.exit231 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($6), $14 @@ -289,11 +300,11 @@ main: # @main i32.store8 $discard=, 0($12), $13 i32.call $push51=, strncmp@FUNCTION, $5, $7, $16 i32.ge_s $push52=, $pop51, $13 - br_if $pop52, .LBB1_42 + br_if $pop52, 13 # 13: down to label13 # BB#24: # %test.exit237 # in Loop: Header=BB1_3 Depth=3 i32.call $push53=, strncmp@FUNCTION, $5, $7, $4 - br_if $pop53, .LBB1_41 + br_if $pop53, 12 # 12: down to label14 # BB#25: # %test.exit243 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($9), $14 @@ -302,11 +313,11 @@ main: # @main i32.store8 $13=, 0($12), $pop54 i32.call $push55=, strncmp@FUNCTION, $5, $7, $16 i32.le_s $push56=, $pop55, $13 - br_if $pop56, .LBB1_40 + br_if $pop56, 11 # 11: down to label15 # BB#26: # %test.exit249 # in Loop: Header=BB1_3 Depth=3 i32.call $push57=, strncmp@FUNCTION, $5, $7, $4 - br_if $pop57, .LBB1_39 + br_if $pop57, 10 # 10: down to label16 # BB#27: # %test.exit255 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($6), $14 @@ -316,11 +327,11 @@ main: # @main i32.store8 $discard=, 0($12), $13 i32.call $push59=, strncmp@FUNCTION, $5, $7, $16 i32.ge_s $push60=, $pop59, $13 - br_if $pop60, .LBB1_38 + br_if $pop60, 9 # 9: down to label17 # BB#28: # %test.exit261 # in Loop: Header=BB1_3 Depth=3 i32.call $push61=, strncmp@FUNCTION, $5, $7, $4 - br_if $pop61, .LBB1_37 + br_if $pop61, 8 # 8: down to label18 # BB#29: # %test.exit267 # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($6), $15 @@ -329,85 +340,106 @@ main: # @main i32.store8 $9=, 0($12), $pop62 i32.call $push63=, strncmp@FUNCTION, $5, $7, $16 i32.le_s $push64=, $pop63, $9 - br_if $pop64, .LBB1_36 + br_if $pop64, 7 # 7: down to label19 # BB#30: # %test.exit273 # in Loop: Header=BB1_3 Depth=3 i32.call $push65=, strncmp@FUNCTION, $5, $7, $4 - br_if $pop65, .LBB1_35 + br_if $pop65, 6 # 6: down to label20 # BB#31: # %for.cond4 # in Loop: Header=BB1_3 Depth=3 i32.add $4=, $4, $10 i32.const $push66=, 63 i32.le_u $push67=, $4, $pop66 - br_if $pop67, .LBB1_3 -.LBB1_32: # %for.inc79 + br_if $pop67, 0 # 0: up to label25 +# BB#32: # %for.inc79 # in Loop: Header=BB1_2 Depth=2 + end_loop # label26: i32.add $2=, $2, $10 i32.add $3=, $3, $10 i32.const $16=, 8 i32.lt_u $push68=, $2, $16 - br_if $pop68, .LBB1_2 -.LBB1_33: # %for.inc82 + br_if $pop68, 0 # 0: up to label23 +# BB#33: # %for.inc82 # in Loop: Header=BB1_1 Depth=1 + end_loop # label24: i32.add $0=, $0, $10 i32.add $1=, $1, $10 i32.lt_u $push69=, $0, $16 - br_if $pop69, .LBB1_1 -.LBB1_34: # %for.end84 + br_if $pop69, 0 # 0: up to label21 +# BB#34: # %for.end84 + end_loop # label22: call exit@FUNCTION, $9 unreachable .LBB1_35: # %if.then5.i277 + end_block # label20: call abort@FUNCTION unreachable .LBB1_36: # %if.then10.i272 + end_block # label19: call abort@FUNCTION unreachable .LBB1_37: # %if.then5.i265 + end_block # label18: call abort@FUNCTION unreachable .LBB1_38: # %if.then.i258 + end_block # label17: call abort@FUNCTION unreachable .LBB1_39: # %if.then5.i253 + end_block # label16: call abort@FUNCTION unreachable .LBB1_40: # %if.then10.i248 + end_block # label15: call abort@FUNCTION unreachable .LBB1_41: # %if.then5.i241 + end_block # label14: call abort@FUNCTION unreachable .LBB1_42: # %if.then.i234 + end_block # label13: call abort@FUNCTION unreachable .LBB1_43: # %if.then5.i229 + end_block # label12: call abort@FUNCTION unreachable .LBB1_44: # %if.then10.i224 + end_block # label11: call abort@FUNCTION unreachable .LBB1_45: # %if.then5.i217 + end_block # label10: call abort@FUNCTION unreachable .LBB1_46: # %if.then.i210 + end_block # label9: call abort@FUNCTION unreachable .LBB1_47: # %if.then5.i205 + end_block # label8: call abort@FUNCTION unreachable .LBB1_48: # %if.then.i + end_block # label7: call abort@FUNCTION unreachable .LBB1_49: # %if.then5.i194 + end_block # label6: call abort@FUNCTION unreachable .LBB1_50: # %if.then10.i + end_block # label5: call abort@FUNCTION unreachable .LBB1_51: # %if.then5.i183 + end_block # label4: call abort@FUNCTION unreachable .LBB1_52: # %if.then5.i + end_block # label3: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/struct-aliasing-1.c.s b/test/torture-s/struct-aliasing-1.c.s index 9509c14f0..76e29d7e1 100644 --- a/test/torture-s/struct-aliasing-1.c.s +++ b/test/torture-s/struct-aliasing-1.c.s @@ -36,12 +36,12 @@ main: # @main i32.add $3=, $5, $3 i32.const $4=, 12 i32.add $4=, $5, $4 - block .LBB1_2 + block i32.call $push2=, foo@FUNCTION, $3, $4 i32.const $push0=, 1 i32.store $push1=, 12($5), $pop0 i32.ne $push3=, $pop2, $pop1 - br_if $pop3, .LBB1_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end i32.const $push4=, 0 i32.const $2=, 16 @@ -50,6 +50,7 @@ main: # @main i32.store $5=, 0($2), $5 return $pop4 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/struct-ini-1.c.s b/test/torture-s/struct-ini-1.c.s index df4c8ac97..8c8c0369b 100644 --- a/test/torture-s/struct-ini-1.c.s +++ b/test/torture-s/struct-ini-1.c.s @@ -9,25 +9,26 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_4 + block i32.load8_u $push2=, object($0) i32.const $push3=, 88 i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB0_4 + br_if $pop4, 0 # 0: down to label0 # BB#1: # %entry i32.load $push0=, object+4($0) i32.const $push5=, 8 i32.ne $push6=, $pop0, $pop5 - br_if $pop6, .LBB0_4 + br_if $pop6, 0 # 0: down to label0 # BB#2: # %entry i32.load $push1=, object+8($0) i32.const $push7=, 9 i32.ne $push8=, $pop1, $pop7 - br_if $pop8, .LBB0_4 + br_if $pop8, 0 # 0: down to label0 # BB#3: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/struct-ini-2.c.s b/test/torture-s/struct-ini-2.c.s index 4d74cfe39..82c3c81db 100644 --- a/test/torture-s/struct-ini-2.c.s +++ b/test/torture-s/struct-ini-2.c.s @@ -10,36 +10,39 @@ main: # @main # BB#0: # %entry i32.const $1=, 0 i32.load16_u $0=, x($1) - block .LBB0_6 + block i32.const $push0=, 15 i32.and $push1=, $0, $pop0 i32.const $push2=, 2 i32.ne $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_6 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_5 + block i32.const $push4=, 3840 i32.and $push5=, $0, $pop4 i32.const $push6=, 768 i32.ne $push7=, $pop5, $pop6 - br_if $pop7, .LBB0_5 + br_if $pop7, 0 # 0: down to label1 # BB#2: # %if.end7 - block .LBB0_4 + block i32.const $push8=, 61440 i32.and $push9=, $0, $pop8 i32.const $push10=, 16384 i32.ne $push11=, $pop9, $pop10 - br_if $pop11, .LBB0_4 + br_if $pop11, 0 # 0: down to label2 # BB#3: # %if.end13 call exit@FUNCTION, $1 unreachable .LBB0_4: # %if.then12 + end_block # label2: call abort@FUNCTION unreachable .LBB0_5: # %if.then6 + end_block # label1: call abort@FUNCTION unreachable .LBB0_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/struct-ini-4.c.s b/test/torture-s/struct-ini-4.c.s index 64d18f05b..36c804e9e 100644 --- a/test/torture-s/struct-ini-4.c.s +++ b/test/torture-s/struct-ini-4.c.s @@ -9,15 +9,16 @@ main: # @main .local i32 # BB#0: # %entry i32.const $0=, 0 - block .LBB0_2 + block i32.load $push0=, s+12($0) i32.const $push1=, 1 i32.ne $push2=, $pop0, $pop1 - br_if $pop2, .LBB0_2 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %if.end call exit@FUNCTION, $0 unreachable .LBB0_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: 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: diff --git a/test/torture-s/usmul.c.s b/test/torture-s/usmul.c.s index 65b93c943..e1f2a6064 100644 --- a/test/torture-s/usmul.c.s +++ b/test/torture-s/usmul.c.s @@ -38,77 +38,85 @@ main: # @main i32.const $1=, -2 i32.call $2=, foo@FUNCTION, $1, $0 i32.const $3=, -131070 - block .LBB2_16 + block i32.ne $push0=, $2, $3 - br_if $pop0, .LBB2_16 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end i32.const $2=, 2 i32.call $4=, foo@FUNCTION, $2, $0 i32.const $5=, 131070 - block .LBB2_15 + block i32.ne $push1=, $4, $5 - br_if $pop1, .LBB2_15 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %if.end4 i32.const $4=, 32768 i32.const $6=, -32768 i32.call $7=, foo@FUNCTION, $6, $4 i32.const $8=, -1073741824 - block .LBB2_14 + block i32.ne $push2=, $7, $8 - br_if $pop2, .LBB2_14 + br_if $pop2, 0 # 0: down to label2 # BB#3: # %if.end8 i32.const $7=, 32767 i32.call $9=, foo@FUNCTION, $7, $4 i32.const $10=, 1073709056 - block .LBB2_13 + block i32.ne $push3=, $9, $10 - br_if $pop3, .LBB2_13 + br_if $pop3, 0 # 0: down to label3 # BB#4: # %if.end12 - block .LBB2_12 + block i32.call $push4=, bar@FUNCTION, $0, $1 i32.ne $push5=, $pop4, $3 - br_if $pop5, .LBB2_12 + br_if $pop5, 0 # 0: down to label4 # BB#5: # %if.end16 - block .LBB2_11 + block i32.call $push6=, bar@FUNCTION, $0, $2 i32.ne $push7=, $pop6, $5 - br_if $pop7, .LBB2_11 + br_if $pop7, 0 # 0: down to label5 # BB#6: # %if.end20 - block .LBB2_10 + block i32.call $push8=, bar@FUNCTION, $4, $6 i32.ne $push9=, $pop8, $8 - br_if $pop9, .LBB2_10 + br_if $pop9, 0 # 0: down to label6 # BB#7: # %if.end24 - block .LBB2_9 + block i32.call $push10=, bar@FUNCTION, $4, $7 i32.ne $push11=, $pop10, $10 - br_if $pop11, .LBB2_9 + br_if $pop11, 0 # 0: down to label7 # BB#8: # %if.end28 i32.const $push12=, 0 call exit@FUNCTION, $pop12 unreachable .LBB2_9: # %if.then27 + end_block # label7: call abort@FUNCTION unreachable .LBB2_10: # %if.then23 + end_block # label6: call abort@FUNCTION unreachable .LBB2_11: # %if.then19 + end_block # label5: call abort@FUNCTION unreachable .LBB2_12: # %if.then15 + end_block # label4: call abort@FUNCTION unreachable .LBB2_13: # %if.then11 + end_block # label3: call abort@FUNCTION unreachable .LBB2_14: # %if.then7 + end_block # label2: call abort@FUNCTION unreachable .LBB2_15: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB2_16: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end2: diff --git a/test/torture-s/vrp-2.c.s b/test/torture-s/vrp-2.c.s index 57c457c63..ad181de25 100644 --- a/test/torture-s/vrp-2.c.s +++ b/test/torture-s/vrp-2.c.s @@ -11,9 +11,9 @@ f: # @f # BB#0: # %entry i32.const $1=, 2 i32.const $2=, 1 - block .LBB0_2 + block i32.eq $push0=, $0, $1 - br_if $pop0, .LBB0_2 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.then i32.const $push1=, 31 i32.shr_s $2=, $0, $pop1 @@ -21,6 +21,7 @@ f: # @f i32.xor $push3=, $pop2, $2 i32.ne $2=, $pop3, $1 .LBB0_2: # %return + end_block # label0: return $2 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/vrp-3.c.s b/test/torture-s/vrp-3.c.s index 35fc6b73d..e81dbd196 100644 --- a/test/torture-s/vrp-3.c.s +++ b/test/torture-s/vrp-3.c.s @@ -10,12 +10,12 @@ f: # @f .local i32 # BB#0: # %entry i32.const $1=, 1 - block .LBB0_2 + block i32.const $push0=, 14 i32.add $push1=, $0, $pop0 i32.const $push2=, 25 i32.gt_u $push3=, $pop1, $pop2 - br_if $pop3, .LBB0_2 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.then2 i32.const $push4=, 31 i32.shr_s $1=, $0, $pop4 @@ -24,6 +24,7 @@ f: # @f i32.const $push7=, 2 i32.ne $1=, $pop6, $pop7 .LBB0_2: # %return + end_block # label0: return $1 .Lfunc_end0: .size f, .Lfunc_end0-f diff --git a/test/torture-s/vrp-4.c.s b/test/torture-s/vrp-4.c.s index 8beec6a94..f14c3f3cb 100644 --- a/test/torture-s/vrp-4.c.s +++ b/test/torture-s/vrp-4.c.s @@ -9,27 +9,30 @@ test: # @test .local i32 # BB#0: # %entry i32.const $2=, 1 - block .LBB0_6 + block i32.eq $push0=, $0, $2 - br_if $pop0, .LBB0_6 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_5 + block i32.eq $push1=, $1, $2 - br_if $pop1, .LBB0_5 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %if.end3 - block .LBB0_4 + block i32.div_s $push2=, $0, $1 i32.ne $push3=, $pop2, $2 - br_if $pop3, .LBB0_4 + br_if $pop3, 0 # 0: down to label2 # BB#3: # %if.end6 return .LBB0_4: # %if.then5 + end_block # label2: call abort@FUNCTION unreachable .LBB0_5: # %if.then2 + end_block # label1: call abort@FUNCTION unreachable .LBB0_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/vrp-5.c.s b/test/torture-s/vrp-5.c.s index 4241cd943..93d5b9c72 100644 --- a/test/torture-s/vrp-5.c.s +++ b/test/torture-s/vrp-5.c.s @@ -9,28 +9,31 @@ test: # @test .local i32 # BB#0: # %entry i32.const $2=, 4 - block .LBB0_6 + block i32.le_u $push0=, $0, $2 - br_if $pop0, .LBB0_6 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_5 + block i32.le_u $push1=, $1, $2 - br_if $pop1, .LBB0_5 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %if.end3 - block .LBB0_4 + block i32.const $push2=, 0 i32.sub $push3=, $pop2, $1 i32.ne $push4=, $0, $pop3 - br_if $pop4, .LBB0_4 + br_if $pop4, 0 # 0: down to label2 # BB#3: # %if.end6 return .LBB0_4: # %if.then5 + end_block # label2: call abort@FUNCTION unreachable .LBB0_5: # %if.then2 + end_block # label1: call abort@FUNCTION unreachable .LBB0_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/vrp-6.c.s b/test/torture-s/vrp-6.c.s index 08b2413b3..a7ba3b5cd 100644 --- a/test/torture-s/vrp-6.c.s +++ b/test/torture-s/vrp-6.c.s @@ -9,28 +9,31 @@ test01: # @test01 .local i32 # BB#0: # %entry i32.const $2=, 4 - block .LBB0_6 + block i32.le_u $push0=, $0, $2 - br_if $pop0, .LBB0_6 + br_if $pop0, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB0_5 + block i32.le_u $push1=, $1, $2 - br_if $pop1, .LBB0_5 + br_if $pop1, 0 # 0: down to label1 # BB#2: # %if.end3 - block .LBB0_4 + block i32.sub $push2=, $0, $1 i32.const $push3=, 5 i32.ne $push4=, $pop2, $pop3 - br_if $pop4, .LBB0_4 + br_if $pop4, 0 # 0: down to label2 # BB#3: # %if.end6 return .LBB0_4: # %if.then5 + end_block # label2: call abort@FUNCTION unreachable .LBB0_5: # %if.then2 + end_block # label1: call abort@FUNCTION unreachable .LBB0_6: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: @@ -43,23 +46,24 @@ test01: # @test01 test02: # @test02 .param i32, i32 # BB#0: # %entry - block .LBB1_4 + block i32.const $push1=, 12 i32.lt_u $push2=, $0, $pop1 - br_if $pop2, .LBB1_4 + br_if $pop2, 0 # 0: down to label3 # BB#1: # %entry i32.const $push3=, 16 i32.lt_u $push4=, $1, $pop3 - br_if $pop4, .LBB1_4 + br_if $pop4, 0 # 0: down to label3 # BB#2: # %entry i32.sub $push0=, $0, $1 i32.const $push5=, -17 i32.gt_u $push6=, $pop0, $pop5 - br_if $pop6, .LBB1_4 + br_if $pop6, 0 # 0: down to label3 # BB#3: # %if.then4 call abort@FUNCTION unreachable .LBB1_4: # %if.end6 + end_block # label3: return .Lfunc_end1: .size test02, .Lfunc_end1-test02 diff --git a/test/torture-s/vrp-7.c.s b/test/torture-s/vrp-7.c.s index 535e5fc26..c76f9be2d 100644 --- a/test/torture-s/vrp-7.c.s +++ b/test/torture-s/vrp-7.c.s @@ -33,16 +33,17 @@ main: # @main i32.const $push0=, 16 call foo@FUNCTION, $pop0 i32.const $0=, 0 - block .LBB1_2 + block i32.load8_u $push1=, t($0) i32.const $push2=, 1 i32.and $push3=, $pop1, $pop2 i32.const $push4=, 0 i32.eq $push5=, $pop3, $pop4 - br_if $pop5, .LBB1_2 + br_if $pop5, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/wchar_t-1.c.s b/test/torture-s/wchar_t-1.c.s index 9602df016..f7505a5c0 100644 --- a/test/torture-s/wchar_t-1.c.s +++ b/test/torture-s/wchar_t-1.c.s @@ -10,25 +10,27 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.const $1=, 196 - block .LBB0_5 + block i32.load $push1=, x($0) i32.ne $push2=, $pop1, $1 - br_if $pop2, .LBB0_5 + br_if $pop2, 0 # 0: down to label0 # BB#1: # %entry i32.load $push0=, x+4($0) - br_if $pop0, .LBB0_5 + br_if $pop0, 0 # 0: down to label0 # BB#2: # %if.end - block .LBB0_4 + block i32.load $push3=, y($0) i32.ne $push4=, $pop3, $1 - br_if $pop4, .LBB0_4 + br_if $pop4, 0 # 0: down to label1 # BB#3: # %if.end4 call exit@FUNCTION, $0 unreachable .LBB0_4: # %if.then3 + end_block # label1: call abort@FUNCTION unreachable .LBB0_5: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end0: diff --git a/test/torture-s/zero-struct-1.c.s b/test/torture-s/zero-struct-1.c.s index 619823c52..75b4e8476 100644 --- a/test/torture-s/zero-struct-1.c.s +++ b/test/torture-s/zero-struct-1.c.s @@ -31,25 +31,27 @@ main: # @main i32.load $1=, f($0) i32.load $2=, ff($0) i32.const $3=, 2 - block .LBB1_4 + block i32.add $push1=, $1, $3 i32.store $discard=, f($0), $pop1 i32.add $push0=, $2, $3 i32.store $3=, ff($0), $pop0 i32.const $push2=, y i32.ne $push3=, $1, $pop2 - br_if $pop3, .LBB1_4 + br_if $pop3, 0 # 0: down to label0 # BB#1: # %if.end - block .LBB1_3 + block i32.const $push4=, y+2 i32.ne $push5=, $3, $pop4 - br_if $pop5, .LBB1_3 + br_if $pop5, 0 # 0: down to label1 # BB#2: # %if.end3 return $0 .LBB1_3: # %if.then2 + end_block # label1: call abort@FUNCTION unreachable .LBB1_4: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: diff --git a/test/torture-s/zero-struct-2.c.s b/test/torture-s/zero-struct-2.c.s index e941324d7..c17dab927 100644 --- a/test/torture-s/zero-struct-2.c.s +++ b/test/torture-s/zero-struct-2.c.s @@ -26,14 +26,15 @@ main: # @main # BB#0: # %entry i32.const $0=, 0 i32.load $1=, ii($0) - block .LBB1_2 + block i32.const $push0=, 1 i32.add $push1=, $1, $pop0 i32.store $discard=, ii($0), $pop1 - br_if $1, .LBB1_2 + br_if $1, 0 # 0: down to label0 # BB#1: # %if.end return $0 .LBB1_2: # %if.then + end_block # label0: call abort@FUNCTION unreachable .Lfunc_end1: |