diff options
Diffstat (limited to 'test/torture-s/strcmp-1.c.s')
-rw-r--r-- | test/torture-s/strcmp-1.c.s | 131 |
1 files changed, 77 insertions, 54 deletions
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: |