summaryrefslogtreecommitdiff
path: root/test/torture-s/builtin-prefetch-4.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/builtin-prefetch-4.c.s')
-rw-r--r--test/torture-s/builtin-prefetch-4.c.s87
1 files changed, 62 insertions, 25 deletions
diff --git a/test/torture-s/builtin-prefetch-4.c.s b/test/torture-s/builtin-prefetch-4.c.s
index f7c39c34e..cff3abfbd 100644
--- a/test/torture-s/builtin-prefetch-4.c.s
+++ b/test/torture-s/builtin-prefetch-4.c.s
@@ -10,6 +10,7 @@ assign_arg_ptr: # @assign_arg_ptr
# BB#0: # %entry
i32.const $push0=, 1
return $pop0
+ .endfunc
.Lfunc_end0:
.size assign_arg_ptr, .Lfunc_end0-assign_arg_ptr
@@ -25,6 +26,7 @@ assign_glob_ptr: # @assign_glob_ptr
i32.load $0=, ptr($pop0)
i32.eq $push1=, $0, $0
return $pop1
+ .endfunc
.Lfunc_end1:
.size assign_glob_ptr, .Lfunc_end1-assign_glob_ptr
@@ -38,6 +40,7 @@ assign_arg_idx: # @assign_arg_idx
# BB#0: # %entry
i32.const $push0=, 1
return $pop0
+ .endfunc
.Lfunc_end2:
.size assign_arg_idx, .Lfunc_end2-assign_arg_idx
@@ -53,6 +56,7 @@ assign_glob_idx: # @assign_glob_idx
i32.load $0=, arrindex($pop0)
i32.eq $push1=, $0, $0
return $pop1
+ .endfunc
.Lfunc_end3:
.size assign_glob_idx, .Lfunc_end3-assign_glob_idx
@@ -66,6 +70,7 @@ preinc_arg_ptr: # @preinc_arg_ptr
# BB#0: # %entry
i32.const $push0=, 1
return $pop0
+ .endfunc
.Lfunc_end4:
.size preinc_arg_ptr, .Lfunc_end4-preinc_arg_ptr
@@ -84,6 +89,7 @@ preinc_glob_ptr: # @preinc_glob_ptr
i32.store $discard=, ptr($0), $pop2
i32.const $push3=, 1
return $pop3
+ .endfunc
.Lfunc_end5:
.size preinc_glob_ptr, .Lfunc_end5-preinc_glob_ptr
@@ -97,6 +103,7 @@ postinc_arg_ptr: # @postinc_arg_ptr
# BB#0: # %entry
i32.const $push0=, 1
return $pop0
+ .endfunc
.Lfunc_end6:
.size postinc_arg_ptr, .Lfunc_end6-postinc_arg_ptr
@@ -115,6 +122,7 @@ postinc_glob_ptr: # @postinc_glob_ptr
i32.store $discard=, ptr($0), $pop2
i32.const $push3=, 1
return $pop3
+ .endfunc
.Lfunc_end7:
.size postinc_glob_ptr, .Lfunc_end7-postinc_glob_ptr
@@ -128,6 +136,7 @@ predec_arg_ptr: # @predec_arg_ptr
# BB#0: # %entry
i32.const $push0=, 1
return $pop0
+ .endfunc
.Lfunc_end8:
.size predec_arg_ptr, .Lfunc_end8-predec_arg_ptr
@@ -146,6 +155,7 @@ predec_glob_ptr: # @predec_glob_ptr
i32.store $discard=, ptr($0), $pop2
i32.const $push3=, 1
return $pop3
+ .endfunc
.Lfunc_end9:
.size predec_glob_ptr, .Lfunc_end9-predec_glob_ptr
@@ -159,6 +169,7 @@ postdec_arg_ptr: # @postdec_arg_ptr
# BB#0: # %entry
i32.const $push0=, 1
return $pop0
+ .endfunc
.Lfunc_end10:
.size postdec_arg_ptr, .Lfunc_end10-postdec_arg_ptr
@@ -177,6 +188,7 @@ postdec_glob_ptr: # @postdec_glob_ptr
i32.store $discard=, ptr($0), $pop2
i32.const $push3=, 1
return $pop3
+ .endfunc
.Lfunc_end11:
.size postdec_glob_ptr, .Lfunc_end11-postdec_glob_ptr
@@ -190,6 +202,7 @@ preinc_arg_idx: # @preinc_arg_idx
# BB#0: # %entry
i32.const $push0=, 1
return $pop0
+ .endfunc
.Lfunc_end12:
.size preinc_arg_idx, .Lfunc_end12-preinc_arg_idx
@@ -209,6 +222,7 @@ preinc_glob_idx: # @preinc_glob_idx
i32.load $push3=, arrindex($0)
i32.eq $push4=, $pop3, $1
return $pop4
+ .endfunc
.Lfunc_end13:
.size preinc_glob_idx, .Lfunc_end13-preinc_glob_idx
@@ -222,6 +236,7 @@ postinc_arg_idx: # @postinc_arg_idx
# BB#0: # %entry
i32.const $push0=, 1
return $pop0
+ .endfunc
.Lfunc_end14:
.size postinc_arg_idx, .Lfunc_end14-postinc_arg_idx
@@ -241,6 +256,7 @@ postinc_glob_idx: # @postinc_glob_idx
i32.load $push3=, arrindex($0)
i32.eq $push4=, $pop3, $1
return $pop4
+ .endfunc
.Lfunc_end15:
.size postinc_glob_idx, .Lfunc_end15-postinc_glob_idx
@@ -254,6 +270,7 @@ predec_arg_idx: # @predec_arg_idx
# BB#0: # %entry
i32.const $push0=, 1
return $pop0
+ .endfunc
.Lfunc_end16:
.size predec_arg_idx, .Lfunc_end16-predec_arg_idx
@@ -273,6 +290,7 @@ predec_glob_idx: # @predec_glob_idx
i32.load $push3=, arrindex($0)
i32.eq $push4=, $pop3, $1
return $pop4
+ .endfunc
.Lfunc_end17:
.size predec_glob_idx, .Lfunc_end17-predec_glob_idx
@@ -286,6 +304,7 @@ postdec_arg_idx: # @postdec_arg_idx
# BB#0: # %entry
i32.const $push0=, 1
return $pop0
+ .endfunc
.Lfunc_end18:
.size postdec_arg_idx, .Lfunc_end18-postdec_arg_idx
@@ -305,6 +324,7 @@ postdec_glob_idx: # @postdec_glob_idx
i32.load $push3=, arrindex($0)
i32.eq $push4=, $pop3, $1
return $pop4
+ .endfunc
.Lfunc_end19:
.size postdec_glob_idx, .Lfunc_end19-postdec_glob_idx
@@ -325,6 +345,7 @@ getptr: # @getptr
i32.const $push3=, 4
i32.add $push4=, $0, $pop3
return $pop4
+ .endfunc
.Lfunc_end20:
.size getptr, .Lfunc_end20-getptr
@@ -344,6 +365,7 @@ funccall_arg_ptr: # @funccall_arg_ptr
i32.store $push2=, getptrcnt($1), $pop1
i32.eq $push3=, $pop2, $2
return $pop3
+ .endfunc
.Lfunc_end21:
.size funccall_arg_ptr, .Lfunc_end21-funccall_arg_ptr
@@ -363,6 +385,7 @@ getint: # @getint
i32.store $discard=, getintcnt($1), $pop1
i32.add $push2=, $0, $2
return $pop2
+ .endfunc
.Lfunc_end22:
.size getint, .Lfunc_end22-getint
@@ -382,6 +405,7 @@ funccall_arg_idx: # @funccall_arg_idx
i32.store $push2=, getintcnt($2), $pop1
i32.eq $push3=, $pop2, $3
return $pop3
+ .endfunc
.Lfunc_end23:
.size funccall_arg_idx, .Lfunc_end23-funccall_arg_idx
@@ -395,135 +419,148 @@ main: # @main
# BB#0: # %entry
i32.const $1=, 0
i32.load $0=, ptr($1)
- block .LBB24_24
+ block
i32.ne $push4=, $0, $0
- br_if $pop4, .LBB24_24
+ br_if $pop4, 0 # 0: down to label0
# BB#1: # %if.end4
i32.load $0=, arrindex($1)
- block .LBB24_23
+ block
i32.ne $push5=, $0, $0
- br_if $pop5, .LBB24_23
+ br_if $pop5, 0 # 0: down to label1
# BB#2: # %if.end12
i32.const $2=, 4
i32.load $push6=, ptr($1)
i32.add $push0=, $pop6, $2
i32.store $discard=, ptr($1), $pop0
i32.const $0=, 1
- block .LBB24_22
+ block
i32.const $push34=, 0
i32.eq $push35=, $0, $pop34
- br_if $pop35, .LBB24_22
+ br_if $pop35, 0 # 0: down to label2
# BB#3: # %if.end20
- block .LBB24_21
+ block
i32.load $push1=, ptr($1)
i32.add $push7=, $pop1, $2
i32.store $discard=, ptr($1), $pop7
i32.const $push36=, 0
i32.eq $push37=, $0, $pop36
- br_if $pop37, .LBB24_21
+ br_if $pop37, 0 # 0: down to label3
# BB#4: # %if.end28
i32.const $2=, -4
- block .LBB24_20
+ block
i32.load $push8=, ptr($1)
i32.add $push2=, $pop8, $2
i32.store $discard=, ptr($1), $pop2
i32.const $push38=, 0
i32.eq $push39=, $0, $pop38
- br_if $pop39, .LBB24_20
+ br_if $pop39, 0 # 0: down to label4
# BB#5: # %if.end36
- block .LBB24_19
+ block
i32.load $push3=, ptr($1)
i32.add $push9=, $pop3, $2
i32.store $discard=, ptr($1), $pop9
i32.const $push40=, 0
i32.eq $push41=, $0, $pop40
- br_if $pop41, .LBB24_19
+ br_if $pop41, 0 # 0: down to label5
# BB#6: # %if.end44
- block .LBB24_18
+ block
i32.load $push10=, arrindex($1)
i32.add $push11=, $pop10, $0
i32.store $2=, arrindex($1), $pop11
i32.load $push12=, arrindex($1)
i32.ne $push13=, $pop12, $2
- br_if $pop13, .LBB24_18
+ br_if $pop13, 0 # 0: down to label6
# BB#7: # %if.end52
- block .LBB24_17
+ block
i32.load $push14=, arrindex($1)
i32.add $push15=, $pop14, $0
i32.store $2=, arrindex($1), $pop15
i32.load $push16=, arrindex($1)
i32.ne $push17=, $pop16, $2
- br_if $pop17, .LBB24_17
+ br_if $pop17, 0 # 0: down to label7
# BB#8: # %if.end64
i32.const $2=, -1
- block .LBB24_16
+ block
i32.load $push18=, arrindex($1)
i32.add $push19=, $pop18, $2
i32.store $3=, arrindex($1), $pop19
i32.load $push20=, arrindex($1)
i32.ne $push21=, $pop20, $3
- br_if $pop21, .LBB24_16
+ br_if $pop21, 0 # 0: down to label8
# BB#9: # %if.end72
- block .LBB24_15
+ block
i32.load $push22=, arrindex($1)
i32.add $push23=, $pop22, $2
i32.store $2=, arrindex($1), $pop23
i32.load $push24=, arrindex($1)
i32.ne $push25=, $pop24, $2
- br_if $pop25, .LBB24_15
+ br_if $pop25, 0 # 0: down to label9
# BB#10: # %if.end76
- block .LBB24_14
+ block
i32.load $push26=, getptrcnt($1)
i32.add $push27=, $pop26, $0
i32.store $push28=, getptrcnt($1), $pop27
i32.ne $push29=, $pop28, $0
- br_if $pop29, .LBB24_14
+ br_if $pop29, 0 # 0: down to label10
# BB#11: # %if.end80
- block .LBB24_13
+ block
i32.load $push30=, getintcnt($1)
i32.add $push31=, $pop30, $0
i32.store $push32=, getintcnt($1), $pop31
i32.ne $push33=, $pop32, $0
- br_if $pop33, .LBB24_13
+ br_if $pop33, 0 # 0: down to label11
# BB#12: # %if.end84
call exit@FUNCTION, $1
unreachable
.LBB24_13: # %if.then83
+ end_block # label11:
call abort@FUNCTION
unreachable
.LBB24_14: # %if.then79
+ end_block # label10:
call abort@FUNCTION
unreachable
.LBB24_15: # %if.then75
+ end_block # label9:
call abort@FUNCTION
unreachable
.LBB24_16: # %if.then67
+ end_block # label8:
call abort@FUNCTION
unreachable
.LBB24_17: # %if.then59
+ end_block # label7:
call abort@FUNCTION
unreachable
.LBB24_18: # %if.then51
+ end_block # label6:
call abort@FUNCTION
unreachable
.LBB24_19: # %if.then43
+ end_block # label5:
call abort@FUNCTION
unreachable
.LBB24_20: # %if.then35
+ end_block # label4:
call abort@FUNCTION
unreachable
.LBB24_21: # %if.then27
+ end_block # label3:
call abort@FUNCTION
unreachable
.LBB24_22: # %if.then19
+ end_block # label2:
call abort@FUNCTION
unreachable
.LBB24_23: # %if.then11
+ end_block # label1:
call abort@FUNCTION
unreachable
.LBB24_24: # %if.then3
+ end_block # label0:
call abort@FUNCTION
unreachable
+ .endfunc
.Lfunc_end24:
.size main, .Lfunc_end24-main
@@ -573,5 +610,5 @@ getintcnt:
.size getintcnt, 4
- .ident "clang version 3.8.0 "
+ .ident "clang version 3.9.0 "
.section ".note.GNU-stack","",@progbits