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.s439
1 files changed, 182 insertions, 257 deletions
diff --git a/test/torture-s/strncmp-1.c.s b/test/torture-s/strncmp-1.c.s
index 354bb99df..9f0620944 100644
--- a/test/torture-s/strncmp-1.c.s
+++ b/test/torture-s/strncmp-1.c.s
@@ -56,19 +56,14 @@ test: # @test
.type main,@function
main: # @main
.result i32
- .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32
+ .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32
# BB#0: # %entry
- i32.const $8=, 0
+ i32.const $0=, 0
i32.const $1=, u1
- copy_local $0=, $8
.LBB1_1: # %for.cond1.preheader
# =>This Loop Header: Depth=1
# Child Loop BB1_2 Depth 2
# Child Loop BB1_3 Depth 3
- # Child Loop BB1_4 Depth 4
- # Child Loop BB1_6 Depth 4
- # Child Loop BB1_9 Depth 4
- # Child Loop BB1_11 Depth 4
block
block
block
@@ -88,358 +83,288 @@ main: # @main
block
block
loop # label21:
+ i32.const $2=, 0
i32.const $3=, u2
- copy_local $2=, $8
.LBB1_2: # %for.cond4.preheader
# Parent Loop BB1_1 Depth=1
# => This Loop Header: Depth=2
# Child Loop BB1_3 Depth 3
- # Child Loop BB1_4 Depth 4
- # Child Loop BB1_6 Depth 4
- # Child Loop BB1_9 Depth 4
- # Child Loop BB1_11 Depth 4
loop # label23:
- copy_local $4=, $8
+ i32.const $4=, 0
.LBB1_3: # %for.cond7.preheader
# Parent Loop BB1_1 Depth=1
# Parent Loop BB1_2 Depth=2
- # => This Loop Header: Depth=3
- # Child Loop BB1_4 Depth 4
- # Child Loop BB1_6 Depth 4
- # Child Loop BB1_9 Depth 4
- # Child Loop BB1_11 Depth 4
+ # => This Inner Loop Header: Depth=3
loop # label25:
i32.const $5=, u1
- copy_local $16=, $8
block
- i32.const $push70=, 0
- i32.eq $push71=, $0, $pop70
- 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 # label28:
- i32.const $push0=, u1
- i32.add $push1=, $pop0, $16
- i32.store8 $discard=, 0($pop1), $8
- i32.const $push2=, 1
- i32.add $16=, $16, $pop2
+ i32.const $push63=, 0
+ i32.eq $push64=, $0, $pop63
+ br_if $pop64, 0 # 0: down to label27
+# BB#4: # %for.body9.preheader
+ # in Loop: Header=BB1_3 Depth=3
+ i32.const $push36=, u1
+ i32.const $push35=, 0
+ i32.call $discard=, memset@FUNCTION, $pop36, $pop35, $0
copy_local $5=, $1
- i32.ne $push3=, $0, $16
- 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
- i32.const $push72=, 0
- i32.eq $push73=, $4, $pop72
- 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 # 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, 0 # 0: up to label31
-# BB#7: # %for.cond17.preheader.loopexit
+ i32.const $push65=, 0
+ i32.eq $push66=, $4, $pop65
+ br_if $pop66, 0 # 0: down to label28
+# BB#6: # %for.body12.preheader
# in Loop: Header=BB1_3 Depth=3
- end_loop # label32:
- i32.add $6=, $5, $4
-.LBB1_8: # %for.cond17.preheader
+ i32.const $push37=, 97
+ i32.call $push0=, memset@FUNCTION, $5, $pop37, $4
+ i32.add $6=, $pop0, $4
+.LBB1_7: # %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
- i32.store8 $push11=, 2($6), $pop10
- i32.store8 $push12=, 3($6), $pop11
- i32.store8 $push13=, 4($6), $pop12
- i32.store8 $push14=, 5($6), $pop13
- i32.store8 $push15=, 6($6), $pop14
- i32.store8 $11=, 7($6), $pop15
- i32.const $9=, 0
+ end_block # label28:
+ i64.const $push38=, 8680820740569200760
+ i64.store $9=, 0($6):p2align=0, $pop38
i32.const $7=, u2
- copy_local $16=, $9
block
- i32.const $push74=, 0
- i32.eq $push75=, $2, $pop74
- 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 # label34:
- i32.const $push16=, u2
- i32.add $push17=, $pop16, $16
- i32.store8 $discard=, 0($pop17), $9
- i32.const $push18=, 1
- i32.add $16=, $16, $pop18
+ i32.const $push67=, 0
+ i32.eq $push68=, $2, $pop67
+ br_if $pop68, 0 # 0: down to label29
+# BB#8: # %for.body26.preheader
+ # in Loop: Header=BB1_3 Depth=3
+ i32.const $push40=, u2
+ i32.const $push39=, 0
+ i32.call $discard=, memset@FUNCTION, $pop40, $pop39, $2
copy_local $7=, $3
- i32.ne $push19=, $2, $16
- br_if $pop19, 0 # 0: up to label34
-.LBB1_10: # %for.cond31.preheader
+.LBB1_9: # %for.cond31.preheader
# in Loop: Header=BB1_3 Depth=3
- end_loop # label35:
- end_block # label33:
- i32.const $16=, 0
- copy_local $9=, $7
+ end_block # label29:
+ copy_local $8=, $7
block
- i32.const $push76=, 0
- i32.eq $push77=, $4, $pop76
- 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 # 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, 0 # 0: up to label37
-# BB#12: # %for.cond38.preheader.loopexit
+ i32.const $push69=, 0
+ i32.eq $push70=, $4, $pop69
+ br_if $pop70, 0 # 0: down to label30
+# BB#10: # %for.body33.preheader
# in Loop: Header=BB1_3 Depth=3
- end_loop # label38:
- i32.add $9=, $7, $4
-.LBB1_13: # %for.cond38.preheader
+ i32.const $push41=, 97
+ i32.call $push1=, memset@FUNCTION, $7, $pop41, $4
+ i32.add $8=, $pop1, $4
+.LBB1_11: # %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
- i32.store8 $push27=, 4($9), $pop26
- i32.store8 $push28=, 5($9), $pop27
- i32.store8 $push29=, 6($9), $pop28
- i32.store8 $discard=, 7($9), $pop29
- i32.const $push30=, 0
- i32.store8 $11=, 0($6), $pop30
- i32.const $16=, 80
- i32.store8 $12=, 0($9), $11
- i32.call $push31=, strncmp@FUNCTION, $5, $7, $16
- br_if $pop31, 23 # 23: down to label3
-# BB#14: # %test.exit
+ end_block # label30:
+ i64.store $discard=, 0($8):p2align=0, $9
+ i32.const $push43=, 0
+ i32.store8 $push2=, 0($6), $pop43
+ i32.store8 $11=, 0($8), $pop2
+ i32.const $push42=, 80
+ i32.call $push3=, strncmp@FUNCTION, $5, $7, $pop42
+ br_if $pop3, 23 # 23: down to label3
+# BB#12: # %test.exit
# in Loop: Header=BB1_3 Depth=3
- i32.call $push32=, strncmp@FUNCTION, $5, $7, $4
- br_if $pop32, 22 # 22: down to label4
-# BB#15: # %test.exit185
+ i32.call $push4=, strncmp@FUNCTION, $5, $7, $4
+ br_if $pop4, 22 # 22: down to label4
+# BB#13: # %test.exit185
# in Loop: Header=BB1_3 Depth=3
- i32.const $push33=, 97
- i32.store8 $13=, 0($6), $pop33
- i32.const $10=, 1
- i32.add $11=, $6, $10
- i32.store8 $push34=, 0($11), $12
- i32.store8 $12=, 0($9), $pop34
- i32.call $push35=, strncmp@FUNCTION, $5, $7, $16
- i32.le_s $push36=, $pop35, $12
- br_if $pop36, 21 # 21: down to label5
-# BB#16: # %test.exit190
+ i32.store8 $discard=, 0($8), $11
+ i32.const $push45=, 97
+ i32.store16 $10=, 0($6):p2align=0, $pop45
+ i32.const $push44=, 80
+ i32.call $push5=, strncmp@FUNCTION, $5, $7, $pop44
+ i32.le_s $push6=, $pop5, $11
+ br_if $pop6, 21 # 21: down to label5
+# BB#14: # %test.exit190
# in Loop: Header=BB1_3 Depth=3
- i32.call $push37=, strncmp@FUNCTION, $5, $7, $4
- br_if $pop37, 20 # 20: down to label6
-# BB#17: # %test.exit196
+ i32.call $push7=, strncmp@FUNCTION, $5, $7, $4
+ br_if $pop7, 20 # 20: down to label6
+# BB#15: # %test.exit196
# in Loop: Header=BB1_3 Depth=3
- i32.store8 $discard=, 0($9), $13
- i32.store8 $13=, 0($6), $12
- i32.add $12=, $9, $10
- i32.store8 $discard=, 0($12), $13
- i32.call $push38=, strncmp@FUNCTION, $5, $7, $16
- i32.ge_s $push39=, $pop38, $13
- br_if $pop39, 19 # 19: down to label7
-# BB#18: # %test.exit201
+ i32.store16 $discard=, 0($8):p2align=0, $10
+ i32.store8 $discard=, 0($6), $11
+ i32.const $push46=, 80
+ i32.call $push8=, strncmp@FUNCTION, $5, $7, $pop46
+ i32.ge_s $push9=, $pop8, $11
+ br_if $pop9, 19 # 19: down to label7
+# BB#16: # %test.exit201
# in Loop: Header=BB1_3 Depth=3
- i32.call $push40=, strncmp@FUNCTION, $5, $7, $4
- br_if $pop40, 18 # 18: down to label8
-# BB#19: # %test.exit207
+ i32.call $push10=, strncmp@FUNCTION, $5, $7, $4
+ br_if $pop10, 18 # 18: down to label8
+# BB#17: # %test.exit207
# in Loop: Header=BB1_3 Depth=3
- i32.const $push41=, 98
- i32.store8 $14=, 0($6), $pop41
- i32.store8 $discard=, 0($11), $13
- i32.const $push42=, 99
- i32.store8 $15=, 0($9), $pop42
- i32.store8 $discard=, 0($12), $13
- i32.call $push43=, strncmp@FUNCTION, $5, $7, $16
- i32.ge_s $push44=, $pop43, $13
- br_if $pop44, 17 # 17: down to label9
-# BB#20: # %test.exit213
+ i32.const $push49=, 98
+ i32.store16 $10=, 0($6):p2align=0, $pop49
+ i32.const $push48=, 99
+ i32.store16 $12=, 0($8):p2align=0, $pop48
+ i32.const $push47=, 80
+ i32.call $push11=, strncmp@FUNCTION, $5, $7, $pop47
+ i32.ge_s $push12=, $pop11, $11
+ br_if $pop12, 17 # 17: down to label9
+# BB#18: # %test.exit213
# in Loop: Header=BB1_3 Depth=3
- i32.call $push45=, strncmp@FUNCTION, $5, $7, $4
- br_if $pop45, 16 # 16: down to label10
-# BB#21: # %test.exit219
+ i32.call $push13=, strncmp@FUNCTION, $5, $7, $4
+ br_if $pop13, 16 # 16: down to label10
+# BB#19: # %test.exit219
# in Loop: Header=BB1_3 Depth=3
- i32.store8 $discard=, 0($6), $15
- i32.store8 $discard=, 0($9), $14
- i32.store8 $push46=, 0($11), $13
- i32.store8 $13=, 0($12), $pop46
- i32.call $push47=, strncmp@FUNCTION, $5, $7, $16
- i32.le_s $push48=, $pop47, $13
- br_if $pop48, 15 # 15: down to label11
-# BB#22: # %test.exit225
+ i32.store16 $discard=, 0($6):p2align=0, $12
+ i32.store16 $discard=, 0($8):p2align=0, $10
+ i32.const $push50=, 80
+ i32.call $push14=, strncmp@FUNCTION, $5, $7, $pop50
+ i32.le_s $push15=, $pop14, $11
+ br_if $pop15, 15 # 15: down to label11
+# BB#20: # %test.exit225
# in Loop: Header=BB1_3 Depth=3
- i32.call $push49=, strncmp@FUNCTION, $5, $7, $4
- br_if $pop49, 14 # 14: down to label12
-# BB#23: # %test.exit231
+ i32.call $push16=, strncmp@FUNCTION, $5, $7, $4
+ br_if $pop16, 14 # 14: down to label12
+# BB#21: # %test.exit231
# in Loop: Header=BB1_3 Depth=3
- i32.store8 $discard=, 0($6), $14
- i32.store8 $discard=, 0($11), $13
- i32.const $push50=, 169
- i32.store8 $15=, 0($9), $pop50
- i32.store8 $discard=, 0($12), $13
- i32.call $push51=, strncmp@FUNCTION, $5, $7, $16
- i32.ge_s $push52=, $pop51, $13
- br_if $pop52, 13 # 13: down to label13
-# BB#24: # %test.exit237
+ i32.store16 $discard=, 0($6):p2align=0, $10
+ i32.const $push52=, 169
+ i32.store16 $12=, 0($8):p2align=0, $pop52
+ i32.const $push51=, 80
+ i32.call $push17=, strncmp@FUNCTION, $5, $7, $pop51
+ i32.ge_s $push18=, $pop17, $11
+ br_if $pop18, 13 # 13: down to label13
+# BB#22: # %test.exit237
# in Loop: Header=BB1_3 Depth=3
- i32.call $push53=, strncmp@FUNCTION, $5, $7, $4
- br_if $pop53, 12 # 12: down to label14
-# BB#25: # %test.exit243
+ i32.call $push19=, strncmp@FUNCTION, $5, $7, $4
+ br_if $pop19, 12 # 12: down to label14
+# BB#23: # %test.exit243
# in Loop: Header=BB1_3 Depth=3
- i32.store8 $discard=, 0($9), $14
- i32.store8 $14=, 0($6), $15
- i32.store8 $push54=, 0($11), $13
- i32.store8 $13=, 0($12), $pop54
- i32.call $push55=, strncmp@FUNCTION, $5, $7, $16
- i32.le_s $push56=, $pop55, $13
- br_if $pop56, 11 # 11: down to label15
-# BB#26: # %test.exit249
+ i32.store16 $discard=, 0($8):p2align=0, $10
+ i32.store16 $10=, 0($6):p2align=0, $12
+ i32.const $push53=, 80
+ i32.call $push20=, strncmp@FUNCTION, $5, $7, $pop53
+ i32.le_s $push21=, $pop20, $11
+ br_if $pop21, 11 # 11: down to label15
+# BB#24: # %test.exit249
# in Loop: Header=BB1_3 Depth=3
- i32.call $push57=, strncmp@FUNCTION, $5, $7, $4
- br_if $pop57, 10 # 10: down to label16
-# BB#27: # %test.exit255
+ i32.call $push22=, strncmp@FUNCTION, $5, $7, $4
+ br_if $pop22, 10 # 10: down to label16
+# BB#25: # %test.exit255
# in Loop: Header=BB1_3 Depth=3
- i32.store8 $discard=, 0($6), $14
- i32.store8 $discard=, 0($11), $13
- i32.const $push58=, 170
- i32.store8 $15=, 0($9), $pop58
- i32.store8 $discard=, 0($12), $13
- i32.call $push59=, strncmp@FUNCTION, $5, $7, $16
- i32.ge_s $push60=, $pop59, $13
- br_if $pop60, 9 # 9: down to label17
-# BB#28: # %test.exit261
+ i32.store16 $discard=, 0($6):p2align=0, $10
+ i32.const $push55=, 170
+ i32.store16 $12=, 0($8):p2align=0, $pop55
+ i32.const $push54=, 80
+ i32.call $push23=, strncmp@FUNCTION, $5, $7, $pop54
+ i32.ge_s $push24=, $pop23, $11
+ br_if $pop24, 9 # 9: down to label17
+# BB#26: # %test.exit261
# in Loop: Header=BB1_3 Depth=3
- i32.call $push61=, strncmp@FUNCTION, $5, $7, $4
- br_if $pop61, 8 # 8: down to label18
-# BB#29: # %test.exit267
+ i32.call $push25=, strncmp@FUNCTION, $5, $7, $4
+ br_if $pop25, 8 # 8: down to label18
+# BB#27: # %test.exit267
# in Loop: Header=BB1_3 Depth=3
- i32.store8 $discard=, 0($6), $15
- i32.store8 $discard=, 0($9), $14
- i32.store8 $push62=, 0($11), $13
- i32.store8 $9=, 0($12), $pop62
- i32.call $push63=, strncmp@FUNCTION, $5, $7, $16
- i32.le_s $push64=, $pop63, $9
- br_if $pop64, 7 # 7: down to label19
-# BB#30: # %test.exit273
+ i32.store16 $discard=, 0($6):p2align=0, $12
+ i32.store16 $discard=, 0($8):p2align=0, $10
+ i32.const $push56=, 80
+ i32.call $push26=, strncmp@FUNCTION, $5, $7, $pop56
+ i32.le_s $push27=, $pop26, $11
+ br_if $pop27, 7 # 7: down to label19
+# BB#28: # %test.exit273
# in Loop: Header=BB1_3 Depth=3
- i32.call $push65=, strncmp@FUNCTION, $5, $7, $4
- br_if $pop65, 6 # 6: down to label20
-# BB#31: # %for.cond4
+ i32.call $push28=, strncmp@FUNCTION, $5, $7, $4
+ br_if $pop28, 6 # 6: down to label20
+# BB#29: # %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, 0 # 0: up to label25
-# BB#32: # %for.inc79
+ i32.const $push34=, 1
+ i32.add $4=, $4, $pop34
+ i32.const $push33=, 63
+ i32.le_u $push29=, $4, $pop33
+ br_if $pop29, 0 # 0: up to label25
+# BB#30: # %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, 0 # 0: up to label23
-# BB#33: # %for.inc82
+ i32.const $push59=, 1
+ i32.add $2=, $2, $pop59
+ i32.const $push58=, 1
+ i32.add $3=, $3, $pop58
+ i32.const $push57=, 8
+ i32.lt_u $push30=, $2, $pop57
+ br_if $pop30, 0 # 0: up to label23
+# BB#31: # %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, 0 # 0: up to label21
-# BB#34: # %for.end84
+ i32.const $push62=, 1
+ i32.add $0=, $0, $pop62
+ i32.const $push61=, 1
+ i32.add $1=, $1, $pop61
+ i32.const $push60=, 8
+ i32.lt_u $push31=, $0, $pop60
+ br_if $pop31, 0 # 0: up to label21
+# BB#32: # %for.end84
end_loop # label22:
- call exit@FUNCTION, $9
+ i32.const $push32=, 0
+ call exit@FUNCTION, $pop32
unreachable
-.LBB1_35: # %if.then5.i277
+.LBB1_33: # %if.then5.i277
end_block # label20:
call abort@FUNCTION
unreachable
-.LBB1_36: # %if.then10.i272
+.LBB1_34: # %if.then10.i272
end_block # label19:
call abort@FUNCTION
unreachable
-.LBB1_37: # %if.then5.i265
+.LBB1_35: # %if.then5.i265
end_block # label18:
call abort@FUNCTION
unreachable
-.LBB1_38: # %if.then.i258
+.LBB1_36: # %if.then.i258
end_block # label17:
call abort@FUNCTION
unreachable
-.LBB1_39: # %if.then5.i253
+.LBB1_37: # %if.then5.i253
end_block # label16:
call abort@FUNCTION
unreachable
-.LBB1_40: # %if.then10.i248
+.LBB1_38: # %if.then10.i248
end_block # label15:
call abort@FUNCTION
unreachable
-.LBB1_41: # %if.then5.i241
+.LBB1_39: # %if.then5.i241
end_block # label14:
call abort@FUNCTION
unreachable
-.LBB1_42: # %if.then.i234
+.LBB1_40: # %if.then.i234
end_block # label13:
call abort@FUNCTION
unreachable
-.LBB1_43: # %if.then5.i229
+.LBB1_41: # %if.then5.i229
end_block # label12:
call abort@FUNCTION
unreachable
-.LBB1_44: # %if.then10.i224
+.LBB1_42: # %if.then10.i224
end_block # label11:
call abort@FUNCTION
unreachable
-.LBB1_45: # %if.then5.i217
+.LBB1_43: # %if.then5.i217
end_block # label10:
call abort@FUNCTION
unreachable
-.LBB1_46: # %if.then.i210
+.LBB1_44: # %if.then.i210
end_block # label9:
call abort@FUNCTION
unreachable
-.LBB1_47: # %if.then5.i205
+.LBB1_45: # %if.then5.i205
end_block # label8:
call abort@FUNCTION
unreachable
-.LBB1_48: # %if.then.i
+.LBB1_46: # %if.then.i
end_block # label7:
call abort@FUNCTION
unreachable
-.LBB1_49: # %if.then5.i194
+.LBB1_47: # %if.then5.i194
end_block # label6:
call abort@FUNCTION
unreachable
-.LBB1_50: # %if.then10.i
+.LBB1_48: # %if.then10.i
end_block # label5:
call abort@FUNCTION
unreachable
-.LBB1_51: # %if.then5.i183
+.LBB1_49: # %if.then5.i183
end_block # label4:
call abort@FUNCTION
unreachable
-.LBB1_52: # %if.then5.i
+.LBB1_50: # %if.then5.i
end_block # label3:
call abort@FUNCTION
unreachable