diff options
Diffstat (limited to 'test/torture-s/strcmp-1.c.s')
-rw-r--r-- | test/torture-s/strcmp-1.c.s | 125 |
1 files changed, 40 insertions, 85 deletions
diff --git a/test/torture-s/strcmp-1.c.s b/test/torture-s/strcmp-1.c.s index 60be8e373..ec47457e4 100644 --- a/test/torture-s/strcmp-1.c.s +++ b/test/torture-s/strcmp-1.c.s @@ -10,43 +10,33 @@ test: # @test i32.call $1=, strcmp@FUNCTION, $0, $1 block block - block - block i32.const $push0=, -1 i32.gt_s $push1=, $2, $pop0 - br_if 0, $pop1 # 0: down to label3 + br_if 0, $pop1 # 0: down to label1 # BB#1: # %entry i32.const $push2=, 0 i32.ge_s $push3=, $1, $pop2 - br_if 1, $pop3 # 1: down to label2 + br_if 1, $pop3 # 1: down to label0 .LBB0_2: # %if.else - end_block # label3: + end_block # label1: block - br_if 0, $2 # 0: down to label4 + br_if 0, $2 # 0: down to label2 # BB#3: # %if.else - br_if 2, $1 # 2: down to label1 + br_if 1, $1 # 1: down to label0 .LBB0_4: # %if.else6 - end_block # label4: + end_block # label2: block i32.const $push4=, 1 i32.lt_s $push5=, $2, $pop4 - br_if 0, $pop5 # 0: down to label5 + br_if 0, $pop5 # 0: down to label3 # BB#5: # %if.else6 i32.const $push6=, 0 i32.le_s $push7=, $1, $pop6 - br_if 3, $pop7 # 3: down to label0 + br_if 1, $pop7 # 1: down to label0 .LBB0_6: # %if.end12 - end_block # label5: + end_block # label3: return -.LBB0_7: # %if.then - end_block # label2: - call abort@FUNCTION - unreachable -.LBB0_8: # %if.then5 - end_block # label1: - call abort@FUNCTION - unreachable -.LBB0_9: # %if.then10 +.LBB0_7: # %if.then10 end_block # label0: call abort@FUNCTION unreachable @@ -70,32 +60,25 @@ main: # @main # Child Loop BB1_3 Depth 3 block block - block - block - block - block - block - block - block - loop # label15: + loop # label6: i32.const $2=, 0 i32.const $3=, u2 .LBB1_2: # %for.cond4.preheader # Parent Loop BB1_1 Depth=1 # => This Loop Header: Depth=2 # Child Loop BB1_3 Depth 3 - loop # label17: + loop # label8: i32.const $4=, 0 .LBB1_3: # %for.cond7.preheader # Parent Loop BB1_1 Depth=1 # Parent Loop BB1_2 Depth=2 # => This Inner Loop Header: Depth=3 - loop # label19: + loop # label10: i32.const $5=, u1 block i32.const $push50=, 0 i32.eq $push51=, $0, $pop50 - br_if 0, $pop51 # 0: down to label21 + br_if 0, $pop51 # 0: down to label12 # BB#4: # %for.body9.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push29=, u1 @@ -104,12 +87,12 @@ main: # @main copy_local $5=, $1 .LBB1_5: # %for.cond10.preheader # in Loop: Header=BB1_3 Depth=3 - end_block # label21: + end_block # label12: copy_local $6=, $5 block i32.const $push52=, 0 i32.eq $push53=, $4, $pop52 - br_if 0, $pop53 # 0: down to label22 + br_if 0, $pop53 # 0: down to label13 # BB#6: # %for.body12.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push30=, 97 @@ -117,7 +100,7 @@ main: # @main i32.add $6=, $pop0, $4 .LBB1_7: # %for.cond17.preheader # in Loop: Header=BB1_3 Depth=3 - end_block # label22: + end_block # label13: i64.const $push33=, 8680820740569200760 i64.store $9=, 0($6):p2align=0, $pop33 i32.const $push32=, 8 @@ -128,7 +111,7 @@ main: # @main block i32.const $push54=, 0 i32.eq $push55=, $2, $pop54 - br_if 0, $pop55 # 0: down to label23 + br_if 0, $pop55 # 0: down to label14 # BB#8: # %for.body26.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push35=, u2 @@ -137,12 +120,12 @@ main: # @main copy_local $7=, $3 .LBB1_9: # %for.cond31.preheader # in Loop: Header=BB1_3 Depth=3 - end_block # label23: + end_block # label14: copy_local $8=, $7 block i32.const $push56=, 0 i32.eq $push57=, $4, $pop56 - br_if 0, $pop57 # 0: down to label24 + br_if 0, $pop57 # 0: down to label15 # BB#10: # %for.body33.preheader # in Loop: Header=BB1_3 Depth=3 i32.const $push36=, 97 @@ -150,7 +133,7 @@ main: # @main i32.add $8=, $pop2, $4 .LBB1_11: # %for.cond38.preheader # in Loop: Header=BB1_3 Depth=3 - end_block # label24: + end_block # label15: i64.store $discard=, 0($8):p2align=0, $9 i32.const $push38=, 8 i32.add $push3=, $8, $pop38 @@ -159,7 +142,7 @@ main: # @main i32.store8 $push4=, 0($6), $pop37 i32.store8 $11=, 0($8), $pop4 i32.call $push5=, strcmp@FUNCTION, $5, $7 - br_if 6, $pop5 # 6: down to label14 + br_if 6, $pop5 # 6: down to label5 # BB#12: # %test.exit # in Loop: Header=BB1_3 Depth=3 i32.store8 $discard=, 0($8), $11 @@ -167,14 +150,14 @@ main: # @main i32.store16 $10=, 0($6):p2align=0, $pop39 i32.call $push6=, strcmp@FUNCTION, $5, $7 i32.le_s $push7=, $pop6, $11 - br_if 7, $pop7 # 7: down to label13 + br_if 6, $pop7 # 6: down to label5 # BB#13: # %test.exit157 # in Loop: Header=BB1_3 Depth=3 i32.store16 $discard=, 0($8):p2align=0, $10 i32.store8 $discard=, 0($6), $11 i32.call $push8=, strcmp@FUNCTION, $5, $7 i32.ge_s $push9=, $pop8, $11 - br_if 8, $pop9 # 8: down to label12 + br_if 6, $pop9 # 6: down to label5 # BB#14: # %test.exit162 # in Loop: Header=BB1_3 Depth=3 i32.const $push41=, 98 @@ -183,14 +166,14 @@ main: # @main i32.store16 $12=, 0($8):p2align=0, $pop40 i32.call $push10=, strcmp@FUNCTION, $5, $7 i32.ge_s $push11=, $pop10, $11 - br_if 9, $pop11 # 9: down to label11 + br_if 6, $pop11 # 6: down to label5 # BB#15: # %test.exit168 # in Loop: Header=BB1_3 Depth=3 i32.store16 $discard=, 0($6):p2align=0, $12 i32.store16 $discard=, 0($8):p2align=0, $10 i32.call $push12=, strcmp@FUNCTION, $5, $7 i32.le_s $push13=, $pop12, $11 - br_if 10, $pop13 # 10: down to label10 + br_if 6, $pop13 # 6: down to label5 # BB#16: # %test.exit174 # in Loop: Header=BB1_3 Depth=3 i32.store16 $discard=, 0($6):p2align=0, $10 @@ -198,14 +181,14 @@ main: # @main i32.store16 $12=, 0($8):p2align=0, $pop42 i32.call $push14=, strcmp@FUNCTION, $5, $7 i32.ge_s $push15=, $pop14, $11 - br_if 11, $pop15 # 11: down to label9 + br_if 6, $pop15 # 6: down to label5 # BB#17: # %test.exit180 # in Loop: Header=BB1_3 Depth=3 i32.store16 $discard=, 0($8):p2align=0, $10 i32.store16 $10=, 0($6):p2align=0, $12 i32.call $push16=, strcmp@FUNCTION, $5, $7 i32.le_s $push17=, $pop16, $11 - br_if 12, $pop17 # 12: down to label8 + br_if 6, $pop17 # 6: down to label5 # BB#18: # %test.exit186 # in Loop: Header=BB1_3 Depth=3 i32.store16 $discard=, 0($6):p2align=0, $10 @@ -213,80 +196,52 @@ main: # @main i32.store16 $12=, 0($8):p2align=0, $pop43 i32.call $push18=, strcmp@FUNCTION, $5, $7 i32.ge_s $push19=, $pop18, $11 - br_if 13, $pop19 # 13: down to label7 + br_if 6, $pop19 # 6: down to label5 # BB#19: # %test.exit192 # in Loop: Header=BB1_3 Depth=3 i32.store16 $discard=, 0($6):p2align=0, $12 i32.store16 $discard=, 0($8):p2align=0, $10 i32.call $push20=, strcmp@FUNCTION, $5, $7 i32.le_s $push21=, $pop20, $11 - br_if 14, $pop21 # 14: down to label6 + br_if 7, $pop21 # 7: down to label4 # BB#20: # %for.cond4 # in Loop: Header=BB1_3 Depth=3 i32.const $push27=, 1 i32.add $4=, $4, $pop27 i32.const $push26=, 63 i32.le_u $push22=, $4, $pop26 - br_if 0, $pop22 # 0: up to label19 + br_if 0, $pop22 # 0: up to label10 # BB#21: # %for.inc79 # in Loop: Header=BB1_2 Depth=2 - end_loop # label20: + end_loop # label11: i32.const $push46=, 1 i32.add $2=, $2, $pop46 i32.const $push45=, 1 i32.add $3=, $3, $pop45 i32.const $push44=, 8 i32.lt_u $push23=, $2, $pop44 - br_if 0, $pop23 # 0: up to label17 + br_if 0, $pop23 # 0: up to label8 # BB#22: # %for.inc82 # in Loop: Header=BB1_1 Depth=1 - end_loop # label18: + end_loop # label9: i32.const $push49=, 1 i32.add $0=, $0, $pop49 i32.const $push48=, 1 i32.add $1=, $1, $pop48 i32.const $push47=, 8 i32.lt_u $push24=, $0, $pop47 - br_if 0, $pop24 # 0: up to label15 + br_if 0, $pop24 # 0: up to label6 # BB#23: # %for.end84 - end_loop # label16: + end_loop # label7: i32.const $push25=, 0 call exit@FUNCTION, $pop25 unreachable -.LBB1_24: # %if.then5.i - end_block # label14: - call abort@FUNCTION - unreachable -.LBB1_25: # %if.then10.i - end_block # label13: - call abort@FUNCTION - unreachable -.LBB1_26: # %if.then.i - end_block # label12: - call abort@FUNCTION - unreachable -.LBB1_27: # %if.then.i165 - end_block # label11: - call abort@FUNCTION - unreachable -.LBB1_28: # %if.then10.i173 - end_block # label10: - call abort@FUNCTION - unreachable -.LBB1_29: # %if.then.i177 - end_block # label9: - call abort@FUNCTION - unreachable -.LBB1_30: # %if.then10.i185 - end_block # label8: - call abort@FUNCTION - unreachable -.LBB1_31: # %if.then.i189 - end_block # label7: +.LBB1_24: # %if.then.i189 + end_block # label5: call abort@FUNCTION unreachable -.LBB1_32: # %if.then10.i197 - end_block # label6: +.LBB1_25: # %if.then10.i197 + end_block # label4: call abort@FUNCTION unreachable .endfunc |