1 ; RUN: llc -march=nvptx < %s > %t
2 ; RUN: llc -march=nvptx64 < %s > %t
4 @i1_s = external global i1 ; <ptr> [#uses=1]
5 @i2_s = external global i2 ; <ptr> [#uses=1]
6 @i3_s = external global i3 ; <ptr> [#uses=1]
7 @i4_s = external global i4 ; <ptr> [#uses=1]
8 @i5_s = external global i5 ; <ptr> [#uses=1]
9 @i6_s = external global i6 ; <ptr> [#uses=1]
10 @i7_s = external global i7 ; <ptr> [#uses=1]
11 @i8_s = external global i8 ; <ptr> [#uses=1]
12 @i9_s = external global i9 ; <ptr> [#uses=1]
13 @i10_s = external global i10 ; <ptr> [#uses=1]
14 @i11_s = external global i11 ; <ptr> [#uses=1]
15 @i12_s = external global i12 ; <ptr> [#uses=1]
16 @i13_s = external global i13 ; <ptr> [#uses=1]
17 @i14_s = external global i14 ; <ptr> [#uses=1]
18 @i15_s = external global i15 ; <ptr> [#uses=1]
19 @i16_s = external global i16 ; <ptr> [#uses=1]
20 @i17_s = external global i17 ; <ptr> [#uses=1]
21 @i18_s = external global i18 ; <ptr> [#uses=1]
22 @i19_s = external global i19 ; <ptr> [#uses=1]
23 @i20_s = external global i20 ; <ptr> [#uses=1]
24 @i21_s = external global i21 ; <ptr> [#uses=1]
25 @i22_s = external global i22 ; <ptr> [#uses=1]
26 @i23_s = external global i23 ; <ptr> [#uses=1]
27 @i24_s = external global i24 ; <ptr> [#uses=1]
28 @i25_s = external global i25 ; <ptr> [#uses=1]
29 @i26_s = external global i26 ; <ptr> [#uses=1]
30 @i27_s = external global i27 ; <ptr> [#uses=1]
31 @i28_s = external global i28 ; <ptr> [#uses=1]
32 @i29_s = external global i29 ; <ptr> [#uses=1]
33 @i30_s = external global i30 ; <ptr> [#uses=1]
34 @i31_s = external global i31 ; <ptr> [#uses=1]
35 @i32_s = external global i32 ; <ptr> [#uses=1]
36 @i33_s = external global i33 ; <ptr> [#uses=1]
37 @i34_s = external global i34 ; <ptr> [#uses=1]
38 @i35_s = external global i35 ; <ptr> [#uses=1]
39 @i36_s = external global i36 ; <ptr> [#uses=1]
40 @i37_s = external global i37 ; <ptr> [#uses=1]
41 @i38_s = external global i38 ; <ptr> [#uses=1]
42 @i39_s = external global i39 ; <ptr> [#uses=1]
43 @i40_s = external global i40 ; <ptr> [#uses=1]
44 @i41_s = external global i41 ; <ptr> [#uses=1]
45 @i42_s = external global i42 ; <ptr> [#uses=1]
46 @i43_s = external global i43 ; <ptr> [#uses=1]
47 @i44_s = external global i44 ; <ptr> [#uses=1]
48 @i45_s = external global i45 ; <ptr> [#uses=1]
49 @i46_s = external global i46 ; <ptr> [#uses=1]
50 @i47_s = external global i47 ; <ptr> [#uses=1]
51 @i48_s = external global i48 ; <ptr> [#uses=1]
52 @i49_s = external global i49 ; <ptr> [#uses=1]
53 @i50_s = external global i50 ; <ptr> [#uses=1]
54 @i51_s = external global i51 ; <ptr> [#uses=1]
55 @i52_s = external global i52 ; <ptr> [#uses=1]
56 @i53_s = external global i53 ; <ptr> [#uses=1]
57 @i54_s = external global i54 ; <ptr> [#uses=1]
58 @i55_s = external global i55 ; <ptr> [#uses=1]
59 @i56_s = external global i56 ; <ptr> [#uses=1]
60 @i57_s = external global i57 ; <ptr> [#uses=1]
61 @i58_s = external global i58 ; <ptr> [#uses=1]
62 @i59_s = external global i59 ; <ptr> [#uses=1]
63 @i60_s = external global i60 ; <ptr> [#uses=1]
64 @i61_s = external global i61 ; <ptr> [#uses=1]
65 @i62_s = external global i62 ; <ptr> [#uses=1]
66 @i63_s = external global i63 ; <ptr> [#uses=1]
67 @i64_s = external global i64 ; <ptr> [#uses=1]
69 define void @i1_ls(i1 zeroext %x) nounwind {
70 store i1 %x, ptr @i1_s
74 define void @i2_ls(i2 zeroext %x) nounwind {
75 store i2 %x, ptr @i2_s
79 define void @i3_ls(i3 zeroext %x) nounwind {
80 store i3 %x, ptr @i3_s
84 define void @i4_ls(i4 zeroext %x) nounwind {
85 store i4 %x, ptr @i4_s
89 define void @i5_ls(i5 zeroext %x) nounwind {
90 store i5 %x, ptr @i5_s
94 define void @i6_ls(i6 zeroext %x) nounwind {
95 store i6 %x, ptr @i6_s
99 define void @i7_ls(i7 zeroext %x) nounwind {
100 store i7 %x, ptr @i7_s
104 define void @i8_ls(i8 zeroext %x) nounwind {
105 store i8 %x, ptr @i8_s
109 define void @i9_ls(i9 zeroext %x) nounwind {
110 store i9 %x, ptr @i9_s
114 define void @i10_ls(i10 zeroext %x) nounwind {
115 store i10 %x, ptr @i10_s
119 define void @i11_ls(i11 zeroext %x) nounwind {
120 store i11 %x, ptr @i11_s
124 define void @i12_ls(i12 zeroext %x) nounwind {
125 store i12 %x, ptr @i12_s
129 define void @i13_ls(i13 zeroext %x) nounwind {
130 store i13 %x, ptr @i13_s
134 define void @i14_ls(i14 zeroext %x) nounwind {
135 store i14 %x, ptr @i14_s
139 define void @i15_ls(i15 zeroext %x) nounwind {
140 store i15 %x, ptr @i15_s
144 define void @i16_ls(i16 zeroext %x) nounwind {
145 store i16 %x, ptr @i16_s
149 define void @i17_ls(i17 zeroext %x) nounwind {
150 store i17 %x, ptr @i17_s
154 define void @i18_ls(i18 zeroext %x) nounwind {
155 store i18 %x, ptr @i18_s
159 define void @i19_ls(i19 zeroext %x) nounwind {
160 store i19 %x, ptr @i19_s
164 define void @i20_ls(i20 zeroext %x) nounwind {
165 store i20 %x, ptr @i20_s
169 define void @i21_ls(i21 zeroext %x) nounwind {
170 store i21 %x, ptr @i21_s
174 define void @i22_ls(i22 zeroext %x) nounwind {
175 store i22 %x, ptr @i22_s
179 define void @i23_ls(i23 zeroext %x) nounwind {
180 store i23 %x, ptr @i23_s
184 define void @i24_ls(i24 zeroext %x) nounwind {
185 store i24 %x, ptr @i24_s
189 define void @i25_ls(i25 zeroext %x) nounwind {
190 store i25 %x, ptr @i25_s
194 define void @i26_ls(i26 zeroext %x) nounwind {
195 store i26 %x, ptr @i26_s
199 define void @i27_ls(i27 zeroext %x) nounwind {
200 store i27 %x, ptr @i27_s
204 define void @i28_ls(i28 zeroext %x) nounwind {
205 store i28 %x, ptr @i28_s
209 define void @i29_ls(i29 zeroext %x) nounwind {
210 store i29 %x, ptr @i29_s
214 define void @i30_ls(i30 zeroext %x) nounwind {
215 store i30 %x, ptr @i30_s
219 define void @i31_ls(i31 zeroext %x) nounwind {
220 store i31 %x, ptr @i31_s
224 define void @i32_ls(i32 zeroext %x) nounwind {
225 store i32 %x, ptr @i32_s
229 define void @i33_ls(i33 zeroext %x) nounwind {
230 store i33 %x, ptr @i33_s
234 define void @i34_ls(i34 zeroext %x) nounwind {
235 store i34 %x, ptr @i34_s
239 define void @i35_ls(i35 zeroext %x) nounwind {
240 store i35 %x, ptr @i35_s
244 define void @i36_ls(i36 zeroext %x) nounwind {
245 store i36 %x, ptr @i36_s
249 define void @i37_ls(i37 zeroext %x) nounwind {
250 store i37 %x, ptr @i37_s
254 define void @i38_ls(i38 zeroext %x) nounwind {
255 store i38 %x, ptr @i38_s
259 define void @i39_ls(i39 zeroext %x) nounwind {
260 store i39 %x, ptr @i39_s
264 define void @i40_ls(i40 zeroext %x) nounwind {
265 store i40 %x, ptr @i40_s
269 define void @i41_ls(i41 zeroext %x) nounwind {
270 store i41 %x, ptr @i41_s
274 define void @i42_ls(i42 zeroext %x) nounwind {
275 store i42 %x, ptr @i42_s
279 define void @i43_ls(i43 zeroext %x) nounwind {
280 store i43 %x, ptr @i43_s
284 define void @i44_ls(i44 zeroext %x) nounwind {
285 store i44 %x, ptr @i44_s
289 define void @i45_ls(i45 zeroext %x) nounwind {
290 store i45 %x, ptr @i45_s
294 define void @i46_ls(i46 zeroext %x) nounwind {
295 store i46 %x, ptr @i46_s
299 define void @i47_ls(i47 zeroext %x) nounwind {
300 store i47 %x, ptr @i47_s
304 define void @i48_ls(i48 zeroext %x) nounwind {
305 store i48 %x, ptr @i48_s
309 define void @i49_ls(i49 zeroext %x) nounwind {
310 store i49 %x, ptr @i49_s
314 define void @i50_ls(i50 zeroext %x) nounwind {
315 store i50 %x, ptr @i50_s
319 define void @i51_ls(i51 zeroext %x) nounwind {
320 store i51 %x, ptr @i51_s
324 define void @i52_ls(i52 zeroext %x) nounwind {
325 store i52 %x, ptr @i52_s
329 define void @i53_ls(i53 zeroext %x) nounwind {
330 store i53 %x, ptr @i53_s
334 define void @i54_ls(i54 zeroext %x) nounwind {
335 store i54 %x, ptr @i54_s
339 define void @i55_ls(i55 zeroext %x) nounwind {
340 store i55 %x, ptr @i55_s
344 define void @i56_ls(i56 zeroext %x) nounwind {
345 store i56 %x, ptr @i56_s
349 define void @i57_ls(i57 zeroext %x) nounwind {
350 store i57 %x, ptr @i57_s
354 define void @i58_ls(i58 zeroext %x) nounwind {
355 store i58 %x, ptr @i58_s
359 define void @i59_ls(i59 zeroext %x) nounwind {
360 store i59 %x, ptr @i59_s
364 define void @i60_ls(i60 zeroext %x) nounwind {
365 store i60 %x, ptr @i60_s
369 define void @i61_ls(i61 zeroext %x) nounwind {
370 store i61 %x, ptr @i61_s
374 define void @i62_ls(i62 zeroext %x) nounwind {
375 store i62 %x, ptr @i62_s
379 define void @i63_ls(i63 zeroext %x) nounwind {
380 store i63 %x, ptr @i63_s
384 define void @i64_ls(i64 zeroext %x) nounwind {
385 store i64 %x, ptr @i64_s