summaryrefslogtreecommitdiff
path: root/test/torture-s/strncmp-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/strncmp-1.c.s')
-rw-r--r--test/torture-s/strncmp-1.c.s176
1 files changed, 104 insertions, 72 deletions
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: