summaryrefslogtreecommitdiff
path: root/test/torture-s/builtin-prefetch-6.c.s
blob: d720984369b431dc409d5bea61df74e8ba6ec1f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
	.text
	.file	"/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-6.c"
	.section	.text.init_addrs,"ax",@progbits
	.hidden	init_addrs
	.globl	init_addrs
	.type	init_addrs,@function
init_addrs:                             # @init_addrs
# BB#0:                                 # %entry
	i32.const	$push0=, 0
	i32.const	$push6=, 1024
	i32.store	$discard=, bad_addr+40($pop0):p2align=3, $pop6
	i32.const	$push55=, 0
	i32.const	$push7=, 2048
	i32.store	$discard=, bad_addr+44($pop55), $pop7
	i32.const	$push54=, 0
	i32.const	$push8=, 4096
	i32.store	$discard=, bad_addr+48($pop54):p2align=4, $pop8
	i32.const	$push53=, 0
	i32.const	$push9=, 8192
	i32.store	$discard=, bad_addr+52($pop53), $pop9
	i32.const	$push52=, 0
	i32.const	$push10=, 16384
	i32.store	$discard=, bad_addr+56($pop52):p2align=3, $pop10
	i32.const	$push51=, 0
	i32.const	$push11=, 32768
	i32.store	$discard=, bad_addr+60($pop51), $pop11
	i32.const	$push50=, 0
	i32.const	$push12=, 65536
	i32.store	$discard=, bad_addr+64($pop50):p2align=4, $pop12
	i32.const	$push49=, 0
	i32.const	$push13=, 131072
	i32.store	$discard=, bad_addr+68($pop49), $pop13
	i32.const	$push48=, 0
	i32.const	$push14=, 262144
	i32.store	$discard=, bad_addr+72($pop48):p2align=3, $pop14
	i32.const	$push47=, 0
	i32.const	$push15=, 524288
	i32.store	$discard=, bad_addr+76($pop47), $pop15
	i32.const	$push46=, 0
	i32.const	$push16=, 1048576
	i32.store	$discard=, bad_addr+80($pop46):p2align=4, $pop16
	i32.const	$push45=, 0
	i32.const	$push17=, 2097152
	i32.store	$discard=, bad_addr+84($pop45), $pop17
	i32.const	$push44=, 0
	i32.const	$push18=, 4194304
	i32.store	$discard=, bad_addr+88($pop44):p2align=3, $pop18
	i32.const	$push43=, 0
	i32.const	$push19=, 8388608
	i32.store	$discard=, bad_addr+92($pop43), $pop19
	i32.const	$push42=, 0
	i32.const	$push20=, 16777216
	i32.store	$discard=, bad_addr+96($pop42):p2align=4, $pop20
	i32.const	$push41=, 0
	i32.const	$push21=, 33554432
	i32.store	$discard=, bad_addr+100($pop41), $pop21
	i32.const	$push40=, 0
	i32.const	$push22=, 67108864
	i32.store	$discard=, bad_addr+104($pop40):p2align=3, $pop22
	i32.const	$push39=, 0
	i32.const	$push23=, 134217728
	i32.store	$discard=, bad_addr+108($pop39), $pop23
	i32.const	$push38=, 0
	i32.const	$push24=, 268435456
	i32.store	$discard=, bad_addr+112($pop38):p2align=4, $pop24
	i32.const	$push37=, 0
	i32.const	$push25=, 536870912
	i32.store	$discard=, bad_addr+116($pop37), $pop25
	i32.const	$push36=, 0
	i32.const	$push26=, 1073741824
	i32.store	$discard=, bad_addr+120($pop36):p2align=3, $pop26
	i32.const	$push35=, 0
	i32.const	$push27=, -2147483648
	i32.store	$discard=, bad_addr+124($pop35), $pop27
	i32.const	$push34=, 0
	i32.const	$push28=, 33
	i32.store	$discard=, arr_used($pop34), $pop28
	i32.const	$push33=, 0
	i64.const	$push1=, 8589934593
	i64.store	$discard=, bad_addr($pop33):p2align=4, $pop1
	i32.const	$push32=, 0
	i64.const	$push2=, 34359738372
	i64.store	$discard=, bad_addr+8($pop32), $pop2
	i32.const	$push31=, 0
	i64.const	$push3=, 137438953488
	i64.store	$discard=, bad_addr+16($pop31):p2align=4, $pop3
	i32.const	$push30=, 0
	i64.const	$push4=, 549755813952
	i64.store	$discard=, bad_addr+24($pop30), $pop4
	i32.const	$push29=, 0
	i64.const	$push5=, 2199023255808
	i64.store	$discard=, bad_addr+32($pop29):p2align=4, $pop5
	return
	.endfunc
.Lfunc_end0:
	.size	init_addrs, .Lfunc_end0-init_addrs

	.section	.text.prefetch_for_read,"ax",@progbits
	.hidden	prefetch_for_read
	.globl	prefetch_for_read
	.type	prefetch_for_read,@function
prefetch_for_read:                      # @prefetch_for_read
	.local  	i32
# BB#0:                                 # %entry
	i32.const	$0=, -260
.LBB1_1:                                # %for.body
                                        # =>This Inner Loop Header: Depth=1
	loop                            # label0:
	i32.const	$push0=, 4
	i32.add 	$0=, $0, $pop0
	br_if   	0, $0           # 0: up to label0
# BB#2:                                 # %for.end
	end_loop                        # label1:
	return
	.endfunc
.Lfunc_end1:
	.size	prefetch_for_read, .Lfunc_end1-prefetch_for_read

	.section	.text.prefetch_for_write,"ax",@progbits
	.hidden	prefetch_for_write
	.globl	prefetch_for_write
	.type	prefetch_for_write,@function
prefetch_for_write:                     # @prefetch_for_write
	.local  	i32
# BB#0:                                 # %entry
	i32.const	$0=, -260
.LBB2_1:                                # %for.body
                                        # =>This Inner Loop Header: Depth=1
	loop                            # label2:
	i32.const	$push0=, 4
	i32.add 	$0=, $0, $pop0
	br_if   	0, $0           # 0: up to label2
# BB#2:                                 # %for.end
	end_loop                        # label3:
	return
	.endfunc
.Lfunc_end2:
	.size	prefetch_for_write, .Lfunc_end2-prefetch_for_write

	.section	.text.main,"ax",@progbits
	.hidden	main
	.globl	main
	.type	main,@function
main:                                   # @main
	.result 	i32
# BB#0:                                 # %entry
	call    	init_addrs@FUNCTION
	call    	prefetch_for_read@FUNCTION
	call    	prefetch_for_write@FUNCTION
	i32.const	$push0=, 0
	call    	exit@FUNCTION, $pop0
	unreachable
	.endfunc
.Lfunc_end3:
	.size	main, .Lfunc_end3-main

	.hidden	bad_addr                # @bad_addr
	.type	bad_addr,@object
	.section	.bss.bad_addr,"aw",@nobits
	.globl	bad_addr
	.p2align	4
bad_addr:
	.skip	260
	.size	bad_addr, 260

	.hidden	arr_used                # @arr_used
	.type	arr_used,@object
	.section	.bss.arr_used,"aw",@nobits
	.globl	arr_used
	.p2align	2
arr_used:
	.int32	0                       # 0x0
	.size	arr_used, 4


	.ident	"clang version 3.9.0 "