summaryrefslogtreecommitdiff
path: root/test/torture-s/strcpy-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/strcpy-1.c.s')
-rw-r--r--test/torture-s/strcpy-1.c.s205
1 files changed, 103 insertions, 102 deletions
diff --git a/test/torture-s/strcpy-1.c.s b/test/torture-s/strcpy-1.c.s
index db80b7d90..2692fd1d9 100644
--- a/test/torture-s/strcpy-1.c.s
+++ b/test/torture-s/strcpy-1.c.s
@@ -6,9 +6,9 @@
.type main,@function
main: # @main
.result i32
- .local i32, i32, i32, i32, i32, i32, i32, i32, i32
+ .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32
# BB#0: # %entry
- i32.const $0=, 0
+ i32.const $1=, 0
.LBB0_1: # %for.cond1.preheader
# =>This Loop Header: Depth=1
# Child Loop BB0_2 Depth 2
@@ -20,8 +20,8 @@ main: # @main
block
loop # label2:
i32.const $push49=, u1
- i32.add $1=, $0, $pop49
- i32.const $2=, 0
+ i32.add $2=, $1, $pop49
+ i32.const $3=, 0
.LBB0_2: # %for.cond4.preheader
# Parent Loop BB0_1 Depth=1
# => This Loop Header: Depth=2
@@ -31,10 +31,10 @@ main: # @main
# Child Loop BB0_12 Depth 4
loop # label4:
i32.const $push51=, 65
- i32.add $4=, $2, $pop51
+ i32.add $5=, $3, $pop51
i32.const $push50=, u2
- i32.add $3=, $2, $pop50
- i32.const $5=, 1
+ i32.add $4=, $3, $pop50
+ i32.const $6=, 1
.LBB0_3: # %for.cond7.preheader
# Parent Loop BB0_1 Depth=1
# Parent Loop BB0_2 Depth=2
@@ -46,9 +46,9 @@ main: # @main
i32.const $push54=, u1
i32.const $push53=, 97
i32.const $push52=, 97
- i32.call $drop=, memset@FUNCTION, $pop54, $pop53, $pop52
- i32.const $8=, 65
- i32.const $6=, -97
+ i32.call $0=, memset@FUNCTION, $pop54, $pop53, $pop52
+ i32.const $9=, 65
+ i32.const $7=, -97
.LBB0_4: # %for.body9
# Parent Loop BB0_1 Depth=1
# Parent Loop BB0_2 Depth=2
@@ -57,192 +57,190 @@ main: # @main
loop # label8:
i32.const $push62=, 65
i32.const $push61=, 24
- i32.shl $push1=, $8, $pop61
+ i32.shl $push1=, $9, $pop61
i32.const $push60=, 24
i32.shr_s $push2=, $pop1, $pop60
i32.const $push59=, 95
i32.gt_s $push3=, $pop2, $pop59
- i32.select $push4=, $pop62, $8, $pop3
- i32.store8 $push0=, u2+97($6), $pop4
+ i32.select $push4=, $pop62, $9, $pop3
+ i32.store8 $push0=, u2+97($7), $pop4
i32.const $push58=, 1
- i32.add $8=, $pop0, $pop58
+ i32.add $9=, $pop0, $pop58
i32.const $push57=, 1
- i32.add $push56=, $6, $pop57
- tee_local $push55=, $6=, $pop56
+ i32.add $push56=, $7, $pop57
+ tee_local $push55=, $7=, $pop56
br_if 0, $pop55 # 0: up to label8
# BB#5: # %for.end
# in Loop: Header=BB0_3 Depth=3
end_loop # label9:
- i32.add $push5=, $5, $2
+ i32.add $push5=, $6, $3
i32.const $push63=, 0
i32.store8 $drop=, u2($pop5), $pop63
- i32.call $push6=, strcpy@FUNCTION, $1, $3
- i32.ne $push7=, $pop6, $1
+ i32.call $push6=, strcpy@FUNCTION, $2, $4
+ i32.ne $push7=, $pop6, $2
br_if 6, $pop7 # 6: down to label1
# BB#6: # %for.cond21.preheader
# in Loop: Header=BB0_3 Depth=3
- i32.const $7=, u1
+ i32.const $8=, u1
block
i32.const $push64=, 1
- i32.lt_s $push8=, $0, $pop64
+ i32.lt_s $push8=, $1, $pop64
br_if 0, $pop8 # 0: down to label10
# BB#7: # %for.body24.preheader
# in Loop: Header=BB0_3 Depth=3
- i32.const $8=, 0
+ i32.const $9=, 0
.LBB0_8: # %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 # label11:
- copy_local $push67=, $8
- tee_local $push66=, $6=, $pop67
- i32.load8_u $push9=, u1($pop66)
+ i32.load8_u $push9=, u1($9)
i32.const $push65=, 97
i32.ne $push10=, $pop9, $pop65
br_if 9, $pop10 # 9: down to label1
# BB#9: # %for.inc30
# in Loop: Header=BB0_8 Depth=4
- i32.const $push70=, 1
- i32.add $push69=, $6, $pop70
- tee_local $push68=, $8=, $pop69
- i32.lt_s $push11=, $pop68, $0
+ i32.const $push68=, 1
+ i32.add $push67=, $9, $pop68
+ tee_local $push66=, $9=, $pop67
+ i32.lt_s $push11=, $pop66, $1
br_if 0, $pop11 # 0: up to label11
-# BB#10: # in Loop: Header=BB0_3 Depth=3
+# BB#10: # %for.body38.preheader.loopexit
+ # in Loop: Header=BB0_3 Depth=3
end_loop # label12:
- i32.const $push71=, u1+1
- i32.add $7=, $6, $pop71
+ i32.add $8=, $9, $0
.LBB0_11: # %for.body38.preheader
# in Loop: Header=BB0_3 Depth=3
end_block # label10:
- i32.const $8=, 0
- copy_local $6=, $4
+ i32.const $9=, 0
+ copy_local $7=, $5
.LBB0_12: # %for.body38
# 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 # label13:
- i32.add $push16=, $7, $8
+ i32.add $push16=, $8, $9
i32.load8_u $push17=, 0($pop16)
- i32.const $push78=, 65
- i32.const $push77=, 24
- i32.shl $push12=, $6, $pop77
- i32.const $push76=, 24
- i32.shr_s $push13=, $pop12, $pop76
- i32.const $push75=, 95
- i32.gt_s $push14=, $pop13, $pop75
- i32.select $push74=, $pop78, $6, $pop14
- tee_local $push73=, $6=, $pop74
- i32.const $push72=, 255
- i32.and $push15=, $pop73, $pop72
+ i32.const $push75=, 65
+ i32.const $push74=, 24
+ i32.shl $push12=, $7, $pop74
+ i32.const $push73=, 24
+ i32.shr_s $push13=, $pop12, $pop73
+ i32.const $push72=, 95
+ i32.gt_s $push14=, $pop13, $pop72
+ i32.select $push71=, $pop75, $7, $pop14
+ tee_local $push70=, $7=, $pop71
+ i32.const $push69=, 255
+ i32.and $push15=, $pop70, $pop69
i32.ne $push18=, $pop17, $pop15
br_if 8, $pop18 # 8: down to label1
# BB#13: # %for.inc50
# in Loop: Header=BB0_12 Depth=4
- i32.const $push82=, 1
- i32.add $6=, $6, $pop82
- i32.const $push81=, 1
- i32.add $push80=, $8, $pop81
- tee_local $push79=, $8=, $pop80
- i32.lt_s $push19=, $pop79, $5
+ i32.const $push79=, 1
+ i32.add $7=, $7, $pop79
+ i32.const $push78=, 1
+ i32.add $push77=, $9, $pop78
+ tee_local $push76=, $9=, $pop77
+ i32.lt_s $push19=, $pop76, $6
br_if 0, $pop19 # 0: up to label13
# BB#14: # %for.end54
# in Loop: Header=BB0_3 Depth=3
end_loop # label14:
- i32.add $push84=, $7, $8
- tee_local $push83=, $8=, $pop84
- i32.load8_u $push20=, 0($pop83)
+ i32.add $push81=, $8, $9
+ tee_local $push80=, $9=, $pop81
+ i32.load8_u $push20=, 0($pop80)
br_if 6, $pop20 # 6: down to label1
# BB#15: # %for.cond61.preheader
# in Loop: Header=BB0_3 Depth=3
- i32.const $push86=, 1
- i32.add $push21=, $8, $pop86
+ i32.const $push83=, 1
+ i32.add $push21=, $9, $pop83
i32.load8_u $push22=, 0($pop21)
- i32.const $push85=, 97
- i32.ne $push23=, $pop22, $pop85
+ i32.const $push82=, 97
+ i32.ne $push23=, $pop22, $pop82
br_if 7, $pop23 # 7: down to label0
# BB#16: # %for.cond61
# in Loop: Header=BB0_3 Depth=3
- i32.const $push88=, 2
- i32.add $push24=, $8, $pop88
+ i32.const $push85=, 2
+ i32.add $push24=, $9, $pop85
i32.load8_u $push25=, 0($pop24)
- i32.const $push87=, 97
- i32.ne $push26=, $pop25, $pop87
+ i32.const $push84=, 97
+ i32.ne $push26=, $pop25, $pop84
br_if 7, $pop26 # 7: down to label0
# BB#17: # %for.cond61.1
# in Loop: Header=BB0_3 Depth=3
- i32.const $push90=, 3
- i32.add $push27=, $8, $pop90
+ i32.const $push87=, 3
+ i32.add $push27=, $9, $pop87
i32.load8_u $push28=, 0($pop27)
- i32.const $push89=, 97
- i32.ne $push29=, $pop28, $pop89
+ i32.const $push86=, 97
+ i32.ne $push29=, $pop28, $pop86
br_if 7, $pop29 # 7: down to label0
# BB#18: # %for.cond61.2
# in Loop: Header=BB0_3 Depth=3
- i32.const $push92=, 4
- i32.add $push30=, $8, $pop92
+ i32.const $push89=, 4
+ i32.add $push30=, $9, $pop89
i32.load8_u $push31=, 0($pop30)
- i32.const $push91=, 97
- i32.ne $push32=, $pop31, $pop91
+ i32.const $push88=, 97
+ i32.ne $push32=, $pop31, $pop88
br_if 7, $pop32 # 7: down to label0
# BB#19: # %for.cond61.3
# in Loop: Header=BB0_3 Depth=3
- i32.const $push94=, 5
- i32.add $push33=, $8, $pop94
+ i32.const $push91=, 5
+ i32.add $push33=, $9, $pop91
i32.load8_u $push34=, 0($pop33)
- i32.const $push93=, 97
- i32.ne $push35=, $pop34, $pop93
+ i32.const $push90=, 97
+ i32.ne $push35=, $pop34, $pop90
br_if 7, $pop35 # 7: down to label0
# BB#20: # %for.cond61.4
# in Loop: Header=BB0_3 Depth=3
- i32.const $push96=, 6
- i32.add $push36=, $8, $pop96
+ i32.const $push93=, 6
+ i32.add $push36=, $9, $pop93
i32.load8_u $push37=, 0($pop36)
- i32.const $push95=, 97
- i32.ne $push38=, $pop37, $pop95
+ i32.const $push92=, 97
+ i32.ne $push38=, $pop37, $pop92
br_if 7, $pop38 # 7: down to label0
# BB#21: # %for.cond61.5
# in Loop: Header=BB0_3 Depth=3
- i32.const $push98=, 7
- i32.add $push39=, $8, $pop98
+ i32.const $push95=, 7
+ i32.add $push39=, $9, $pop95
i32.load8_u $push40=, 0($pop39)
- i32.const $push97=, 97
- i32.ne $push41=, $pop40, $pop97
+ i32.const $push94=, 97
+ i32.ne $push41=, $pop40, $pop94
br_if 7, $pop41 # 7: down to label0
# BB#22: # %for.cond61.6
# in Loop: Header=BB0_3 Depth=3
- i32.const $push100=, 8
- i32.add $push42=, $8, $pop100
+ i32.const $push97=, 8
+ i32.add $push42=, $9, $pop97
i32.load8_u $push43=, 0($pop42)
- i32.const $push99=, 97
- i32.ne $push44=, $pop43, $pop99
+ i32.const $push96=, 97
+ i32.ne $push44=, $pop43, $pop96
br_if 7, $pop44 # 7: down to label0
# BB#23: # %for.cond61.7
# in Loop: Header=BB0_3 Depth=3
- i32.const $push104=, 1
- i32.add $push103=, $5, $pop104
- tee_local $push102=, $5=, $pop103
- i32.const $push101=, 80
- i32.lt_u $push45=, $pop102, $pop101
+ i32.const $push101=, 1
+ i32.add $push100=, $6, $pop101
+ tee_local $push99=, $6=, $pop100
+ i32.const $push98=, 80
+ i32.lt_u $push45=, $pop99, $pop98
br_if 0, $pop45 # 0: up to label6
# BB#24: # %for.inc77
# in Loop: Header=BB0_2 Depth=2
end_loop # label7:
- i32.const $push108=, 1
- i32.add $push107=, $2, $pop108
- tee_local $push106=, $2=, $pop107
- i32.const $push105=, 8
- i32.lt_u $push46=, $pop106, $pop105
+ i32.const $push105=, 1
+ i32.add $push104=, $3, $pop105
+ tee_local $push103=, $3=, $pop104
+ i32.const $push102=, 8
+ i32.lt_u $push46=, $pop103, $pop102
br_if 0, $pop46 # 0: up to label4
# BB#25: # %for.inc80
# in Loop: Header=BB0_1 Depth=1
end_loop # label5:
- i32.const $push112=, 1
- i32.add $push111=, $0, $pop112
- tee_local $push110=, $0=, $pop111
- i32.const $push109=, 8
- i32.lt_u $push47=, $pop110, $pop109
+ i32.const $push109=, 1
+ i32.add $push108=, $1, $pop109
+ tee_local $push107=, $1=, $pop108
+ i32.const $push106=, 8
+ i32.lt_u $push47=, $pop107, $pop106
br_if 0, $pop47 # 0: up to label2
# BB#26: # %for.end82
end_loop # label3:
@@ -267,3 +265,6 @@ main: # @main
.lcomm u2,112,4
.ident "clang version 3.9.0 "
+ .functype strcpy, i32, i32, i32
+ .functype abort, void
+ .functype exit, void, i32