summaryrefslogtreecommitdiff
path: root/test/torture-s/memcpy-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/memcpy-1.c.s')
-rw-r--r--test/torture-s/memcpy-1.c.s83
1 files changed, 49 insertions, 34 deletions
diff --git a/test/torture-s/memcpy-1.c.s b/test/torture-s/memcpy-1.c.s
index 653f26345..867562df3 100644
--- a/test/torture-s/memcpy-1.c.s
+++ b/test/torture-s/memcpy-1.c.s
@@ -10,6 +10,7 @@ copy: # @copy
# BB#0: # %entry
call memcpy@FUNCTION, $0, $1, $2
return $0
+ .endfunc
.Lfunc_end0:
.size copy, .Lfunc_end0-copy
@@ -31,7 +32,7 @@ main: # @main
copy_local $2=, $4
.LBB1_1: # %for.body
# =>This Inner Loop Header: Depth=1
- loop .LBB1_2
+ loop # label0:
i32.const $10=, 131072
i32.add $10=, $28, $10
i32.add $push0=, $10, $2
@@ -44,8 +45,9 @@ main: # @main
i32.add $2=, $2, $7
i32.const $0=, 131072
i32.ne $push2=, $2, $0
- br_if $pop2, .LBB1_1
-.LBB1_2: # %for.end
+ br_if $pop2, 0 # 0: up to label0
+# BB#2: # %for.end
+ end_loop # label1:
i32.const $1=, 1024
i32.const $12=, 0
i32.add $12=, $28, $12
@@ -55,8 +57,8 @@ main: # @main
i32.const $4=, 0
.LBB1_3: # %for.body6
# =>This Inner Loop Header: Depth=1
- block .LBB1_26
- loop .LBB1_5
+ block
+ loop # label3:
i32.const $2=, 255
i32.const $14=, 0
i32.add $14=, $28, $14
@@ -64,23 +66,24 @@ main: # @main
i32.load8_u $push4=, 0($pop3)
i32.and $push5=, $4, $2
i32.ne $push6=, $pop4, $pop5
- br_if $pop6, .LBB1_26
+ br_if $pop6, 2 # 2: down to label2
# BB#4: # %for.cond3
# in Loop: Header=BB1_3 Depth=1
i32.add $4=, $4, $7
i32.const $3=, 1023
i32.le_u $push7=, $4, $3
- br_if $pop7, .LBB1_3
-.LBB1_5: # %for.end15
+ br_if $pop7, 0 # 0: up to label3
+# BB#5: # %for.end15
+ end_loop # label4:
i32.const $15=, 0
i32.add $15=, $28, $15
call memset@FUNCTION, $15, $7, $1
.LBB1_6: # %for.cond17
# =>This Inner Loop Header: Depth=1
- block .LBB1_9
- loop .LBB1_8
+ block
+ loop # label6:
i32.gt_u $push8=, $7, $3
- br_if $pop8, .LBB1_9
+ br_if $pop8, 2 # 2: down to label5
# BB#7: # %for.cond17.for.body20_crit_edge
# in Loop: Header=BB1_6 Depth=1
i32.const $16=, 0
@@ -90,11 +93,13 @@ main: # @main
i32.add $7=, $7, $4
i32.load8_u $push28=, 0($5)
i32.eq $push29=, $pop28, $4
- br_if $pop29, .LBB1_6
-.LBB1_8: # %if.then25
+ br_if $pop29, 0 # 0: up to label6
+# BB#8: # %if.then25
+ end_loop # label7:
call abort@FUNCTION
unreachable
.LBB1_9: # %for.end29
+ end_block # label5:
i32.const $17=, 0
i32.add $17=, $28, $17
i32.const $18=, 131072
@@ -103,33 +108,34 @@ main: # @main
i32.const $5=, 0
.LBB1_10: # %for.body35
# =>This Inner Loop Header: Depth=1
- block .LBB1_25
- loop .LBB1_12
+ block
+ loop # label9:
i32.const $19=, 0
i32.add $19=, $28, $19
i32.add $push9=, $19, $5
i32.load8_u $push10=, 0($pop9)
i32.and $push11=, $5, $2
i32.ne $push12=, $pop10, $pop11
- br_if $pop12, .LBB1_25
+ br_if $pop12, 2 # 2: down to label8
# BB#11: # %for.cond32
# in Loop: Header=BB1_10 Depth=1
i32.const $7=, 1
i32.add $5=, $5, $7
i32.const $4=, 131071
i32.le_u $push13=, $5, $4
- br_if $pop13, .LBB1_10
-.LBB1_12: # %for.end46
+ br_if $pop13, 0 # 0: up to label9
+# BB#12: # %for.end46
+ end_loop # label10:
i32.const $6=, 0
i32.const $20=, 0
i32.add $20=, $28, $20
call memset@FUNCTION, $20, $6, $0
.LBB1_13: # %for.cond48
# =>This Inner Loop Header: Depth=1
- block .LBB1_16
- loop .LBB1_15
+ block
+ loop # label12:
i32.gt_u $push14=, $7, $4
- br_if $pop14, .LBB1_16
+ br_if $pop14, 2 # 2: down to label11
# BB#14: # %for.cond48.for.body51_crit_edge
# in Loop: Header=BB1_13 Depth=1
i32.const $21=, 0
@@ -140,11 +146,13 @@ main: # @main
i32.load8_u $push26=, 0($5)
i32.const $push30=, 0
i32.eq $push31=, $pop26, $pop30
- br_if $pop31, .LBB1_13
-.LBB1_15: # %if.then56
+ br_if $pop31, 0 # 0: up to label12
+# BB#15: # %if.then56
+ end_loop # label13:
call abort@FUNCTION
unreachable
.LBB1_16: # %for.end60
+ end_block # label11:
i32.const $22=, 0
i32.add $22=, $28, $22
i32.const $23=, 131072
@@ -152,22 +160,23 @@ main: # @main
call memcpy@FUNCTION, $22, $23, $1
.LBB1_17: # %for.body66
# =>This Inner Loop Header: Depth=1
- block .LBB1_24
- loop .LBB1_19
+ block
+ loop # label15:
i32.const $24=, 0
i32.add $24=, $28, $24
i32.add $push15=, $24, $6
i32.load8_u $push16=, 0($pop15)
i32.and $push17=, $6, $2
i32.ne $push18=, $pop16, $pop17
- br_if $pop18, .LBB1_24
+ br_if $pop18, 2 # 2: down to label14
# BB#18: # %for.cond63
# in Loop: Header=BB1_17 Depth=1
i32.const $5=, 1
i32.add $6=, $6, $5
i32.le_u $push19=, $6, $3
- br_if $pop19, .LBB1_17
-.LBB1_19: # %for.end77
+ br_if $pop19, 0 # 0: up to label15
+# BB#19: # %for.end77
+ end_loop # label16:
i32.const $25=, 0
i32.add $25=, $28, $25
i32.const $26=, 131072
@@ -176,39 +185,45 @@ main: # @main
i32.const $7=, 0
.LBB1_20: # %for.body85
# =>This Inner Loop Header: Depth=1
- block .LBB1_23
- loop .LBB1_22
+ block
+ loop # label18:
i32.const $27=, 0
i32.add $27=, $28, $27
i32.add $push20=, $27, $7
i32.load8_u $push21=, 0($pop20)
i32.and $push22=, $7, $2
i32.ne $push23=, $pop21, $pop22
- br_if $pop23, .LBB1_23
+ br_if $pop23, 2 # 2: down to label17
# BB#21: # %for.cond82
# in Loop: Header=BB1_20 Depth=1
i32.add $7=, $7, $5
i32.le_u $push24=, $7, $4
- br_if $pop24, .LBB1_20
-.LBB1_22: # %for.end96
+ br_if $pop24, 0 # 0: up to label18
+# BB#22: # %for.end96
+ end_loop # label19:
i32.const $push25=, 0
call exit@FUNCTION, $pop25
unreachable
.LBB1_23: # %if.then92
+ end_block # label17:
call abort@FUNCTION
unreachable
.LBB1_24: # %if.then73
+ end_block # label14:
call abort@FUNCTION
unreachable
.LBB1_25: # %if.then42
+ end_block # label8:
call abort@FUNCTION
unreachable
.LBB1_26: # %if.then
+ end_block # label2:
call abort@FUNCTION
unreachable
+ .endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
- .ident "clang version 3.8.0 "
+ .ident "clang version 3.9.0 "
.section ".note.GNU-stack","",@progbits