Revert "Change memcpy/memset/memmove to have dest and source alignments."
[oota-llvm.git] / test / CodeGen / AMDGPU / vgpr-spill-emergency-stack-slot.ll
1 ; RUN: llc -march=amdgcn -mcpu=tahiti -mattr=+vgpr-spilling < %s | FileCheck %s
2 ; RUN: llc -march=amdgcn -mcpu=fiji -mattr=+vgpr-spilling < %s | FileCheck %s
3
4 ; FIXME: Enable -verify-instructions
5
6 ; This ends up using all 255 registers and requires register
7 ; scavenging which will fail to find an unsued register.
8
9 ; Check the ScratchSize to avoid regressions from spilling
10 ; intermediate register class copies.
11
12 ; FIXME: The same register is initialized to 0 for every spill.
13
14 ; CHECK-LABEL: {{^}}main:
15 ; CHECK: NumVgprs: 256
16 ; CHECK: ScratchSize: 1024
17
18 define void @main([9 x <16 x i8>] addrspace(2)* byval %arg, [17 x <16 x i8>] addrspace(2)* byval %arg1, [17 x <4 x i32>] addrspace(2)* byval %arg2, [34 x <8 x i32>] addrspace(2)* byval %arg3, [16 x <16 x i8>] addrspace(2)* byval %arg4, i32 inreg %arg5, i32 inreg %arg6, i32 %arg7, i32 %arg8, i32 %arg9, i32 %arg10) #0 {
19 bb:
20   %tmp = getelementptr [17 x <16 x i8>], [17 x <16 x i8>] addrspace(2)* %arg1, i64 0, i64 0
21   %tmp11 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp, align 16, !tbaa !0
22   %tmp12 = call float @llvm.SI.load.const(<16 x i8> %tmp11, i32 0)
23   %tmp13 = call float @llvm.SI.load.const(<16 x i8> %tmp11, i32 16)
24   %tmp14 = call float @llvm.SI.load.const(<16 x i8> %tmp11, i32 32)
25   %tmp15 = getelementptr [16 x <16 x i8>], [16 x <16 x i8>] addrspace(2)* %arg4, i64 0, i64 0
26   %tmp16 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp15, align 16, !tbaa !0
27   %tmp17 = add i32 %arg5, %arg7
28   %tmp18 = call <4 x float> @llvm.SI.vs.load.input(<16 x i8> %tmp16, i32 0, i32 %tmp17)
29   %tmp19 = extractelement <4 x float> %tmp18, i32 0
30   %tmp20 = extractelement <4 x float> %tmp18, i32 1
31   %tmp21 = extractelement <4 x float> %tmp18, i32 2
32   %tmp22 = extractelement <4 x float> %tmp18, i32 3
33   %tmp23 = bitcast float %tmp14 to i32
34   br label %bb24
35
36 bb24:                                             ; preds = %bb157, %bb
37   %tmp25 = phi float [ 0.000000e+00, %bb ], [ %tmp350, %bb157 ]
38   %tmp26 = phi float [ 0.000000e+00, %bb ], [ %tmp349, %bb157 ]
39   %tmp27 = phi float [ 0.000000e+00, %bb ], [ %tmp348, %bb157 ]
40   %tmp28 = phi float [ 0.000000e+00, %bb ], [ %tmp351, %bb157 ]
41   %tmp29 = phi float [ 0.000000e+00, %bb ], [ %tmp347, %bb157 ]
42   %tmp30 = phi float [ 0.000000e+00, %bb ], [ %tmp346, %bb157 ]
43   %tmp31 = phi float [ 0.000000e+00, %bb ], [ %tmp345, %bb157 ]
44   %tmp32 = phi float [ 0.000000e+00, %bb ], [ %tmp352, %bb157 ]
45   %tmp33 = phi float [ 0.000000e+00, %bb ], [ %tmp344, %bb157 ]
46   %tmp34 = phi float [ 0.000000e+00, %bb ], [ %tmp343, %bb157 ]
47   %tmp35 = phi float [ 0.000000e+00, %bb ], [ %tmp342, %bb157 ]
48   %tmp36 = phi float [ 0.000000e+00, %bb ], [ %tmp353, %bb157 ]
49   %tmp37 = phi float [ 0.000000e+00, %bb ], [ %tmp341, %bb157 ]
50   %tmp38 = phi float [ 0.000000e+00, %bb ], [ %tmp340, %bb157 ]
51   %tmp39 = phi float [ 0.000000e+00, %bb ], [ %tmp339, %bb157 ]
52   %tmp40 = phi float [ 0.000000e+00, %bb ], [ %tmp354, %bb157 ]
53   %tmp41 = phi float [ 0.000000e+00, %bb ], [ %tmp338, %bb157 ]
54   %tmp42 = phi float [ 0.000000e+00, %bb ], [ %tmp337, %bb157 ]
55   %tmp43 = phi float [ 0.000000e+00, %bb ], [ %tmp336, %bb157 ]
56   %tmp44 = phi float [ 0.000000e+00, %bb ], [ %tmp355, %bb157 ]
57   %tmp45 = phi float [ 0.000000e+00, %bb ], [ %tmp335, %bb157 ]
58   %tmp46 = phi float [ 0.000000e+00, %bb ], [ %tmp334, %bb157 ]
59   %tmp47 = phi float [ 0.000000e+00, %bb ], [ %tmp333, %bb157 ]
60   %tmp48 = phi float [ 0.000000e+00, %bb ], [ %tmp356, %bb157 ]
61   %tmp49 = phi float [ 0.000000e+00, %bb ], [ %tmp332, %bb157 ]
62   %tmp50 = phi float [ 0.000000e+00, %bb ], [ %tmp331, %bb157 ]
63   %tmp51 = phi float [ 0.000000e+00, %bb ], [ %tmp330, %bb157 ]
64   %tmp52 = phi float [ 0.000000e+00, %bb ], [ %tmp357, %bb157 ]
65   %tmp53 = phi float [ 0.000000e+00, %bb ], [ %tmp329, %bb157 ]
66   %tmp54 = phi float [ 0.000000e+00, %bb ], [ %tmp328, %bb157 ]
67   %tmp55 = phi float [ 0.000000e+00, %bb ], [ %tmp327, %bb157 ]
68   %tmp56 = phi float [ 0.000000e+00, %bb ], [ %tmp358, %bb157 ]
69   %tmp57 = phi float [ 0.000000e+00, %bb ], [ %tmp326, %bb157 ]
70   %tmp58 = phi float [ 0.000000e+00, %bb ], [ %tmp325, %bb157 ]
71   %tmp59 = phi float [ 0.000000e+00, %bb ], [ %tmp324, %bb157 ]
72   %tmp60 = phi float [ 0.000000e+00, %bb ], [ %tmp359, %bb157 ]
73   %tmp61 = phi float [ 0.000000e+00, %bb ], [ %tmp323, %bb157 ]
74   %tmp62 = phi float [ 0.000000e+00, %bb ], [ %tmp322, %bb157 ]
75   %tmp63 = phi float [ 0.000000e+00, %bb ], [ %tmp321, %bb157 ]
76   %tmp64 = phi float [ 0.000000e+00, %bb ], [ %tmp360, %bb157 ]
77   %tmp65 = phi float [ 0.000000e+00, %bb ], [ %tmp320, %bb157 ]
78   %tmp66 = phi float [ 0.000000e+00, %bb ], [ %tmp319, %bb157 ]
79   %tmp67 = phi float [ 0.000000e+00, %bb ], [ %tmp318, %bb157 ]
80   %tmp68 = phi float [ 0.000000e+00, %bb ], [ %tmp361, %bb157 ]
81   %tmp69 = phi float [ 0.000000e+00, %bb ], [ %tmp317, %bb157 ]
82   %tmp70 = phi float [ 0.000000e+00, %bb ], [ %tmp316, %bb157 ]
83   %tmp71 = phi float [ 0.000000e+00, %bb ], [ %tmp315, %bb157 ]
84   %tmp72 = phi float [ 0.000000e+00, %bb ], [ %tmp362, %bb157 ]
85   %tmp73 = phi float [ 0.000000e+00, %bb ], [ %tmp314, %bb157 ]
86   %tmp74 = phi float [ 0.000000e+00, %bb ], [ %tmp313, %bb157 ]
87   %tmp75 = phi float [ 0.000000e+00, %bb ], [ %tmp312, %bb157 ]
88   %tmp76 = phi float [ 0.000000e+00, %bb ], [ %tmp363, %bb157 ]
89   %tmp77 = phi float [ 0.000000e+00, %bb ], [ %tmp311, %bb157 ]
90   %tmp78 = phi float [ 0.000000e+00, %bb ], [ %tmp310, %bb157 ]
91   %tmp79 = phi float [ 0.000000e+00, %bb ], [ %tmp309, %bb157 ]
92   %tmp80 = phi float [ 0.000000e+00, %bb ], [ %tmp364, %bb157 ]
93   %tmp81 = phi float [ 0.000000e+00, %bb ], [ %tmp308, %bb157 ]
94   %tmp82 = phi float [ 0.000000e+00, %bb ], [ %tmp307, %bb157 ]
95   %tmp83 = phi float [ 0.000000e+00, %bb ], [ %tmp306, %bb157 ]
96   %tmp84 = phi float [ 0.000000e+00, %bb ], [ %tmp365, %bb157 ]
97   %tmp85 = phi float [ 0.000000e+00, %bb ], [ %tmp305, %bb157 ]
98   %tmp86 = phi float [ 0.000000e+00, %bb ], [ %tmp304, %bb157 ]
99   %tmp87 = phi float [ 0.000000e+00, %bb ], [ %tmp303, %bb157 ]
100   %tmp88 = phi float [ 0.000000e+00, %bb ], [ %tmp366, %bb157 ]
101   %tmp89 = phi float [ 0.000000e+00, %bb ], [ %tmp302, %bb157 ]
102   %tmp90 = phi float [ 0.000000e+00, %bb ], [ %tmp301, %bb157 ]
103   %tmp91 = phi float [ 0.000000e+00, %bb ], [ %tmp300, %bb157 ]
104   %tmp92 = phi float [ 0.000000e+00, %bb ], [ %tmp367, %bb157 ]
105   %tmp93 = phi float [ 0.000000e+00, %bb ], [ %tmp299, %bb157 ]
106   %tmp94 = phi float [ 0.000000e+00, %bb ], [ %tmp298, %bb157 ]
107   %tmp95 = phi float [ 0.000000e+00, %bb ], [ %tmp297, %bb157 ]
108   %tmp96 = phi float [ 0.000000e+00, %bb ], [ %tmp368, %bb157 ]
109   %tmp97 = phi float [ 0.000000e+00, %bb ], [ %tmp296, %bb157 ]
110   %tmp98 = phi float [ 0.000000e+00, %bb ], [ %tmp295, %bb157 ]
111   %tmp99 = phi float [ 0.000000e+00, %bb ], [ %tmp294, %bb157 ]
112   %tmp100 = phi float [ 0.000000e+00, %bb ], [ %tmp369, %bb157 ]
113   %tmp101 = phi float [ 0.000000e+00, %bb ], [ %tmp293, %bb157 ]
114   %tmp102 = phi float [ 0.000000e+00, %bb ], [ %tmp292, %bb157 ]
115   %tmp103 = phi float [ 0.000000e+00, %bb ], [ %tmp291, %bb157 ]
116   %tmp104 = phi float [ 0.000000e+00, %bb ], [ %tmp370, %bb157 ]
117   %tmp105 = phi float [ 0.000000e+00, %bb ], [ %tmp371, %bb157 ]
118   %tmp106 = phi float [ 0.000000e+00, %bb ], [ %tmp372, %bb157 ]
119   %tmp107 = phi float [ 0.000000e+00, %bb ], [ %tmp421, %bb157 ]
120   %tmp108 = phi float [ 0.000000e+00, %bb ], [ %tmp373, %bb157 ]
121   %tmp109 = phi float [ 0.000000e+00, %bb ], [ %tmp374, %bb157 ]
122   %tmp110 = phi float [ 0.000000e+00, %bb ], [ %tmp375, %bb157 ]
123   %tmp111 = phi float [ 0.000000e+00, %bb ], [ %tmp376, %bb157 ]
124   %tmp112 = phi float [ 0.000000e+00, %bb ], [ %tmp377, %bb157 ]
125   %tmp113 = phi float [ 0.000000e+00, %bb ], [ %tmp378, %bb157 ]
126   %tmp114 = phi float [ 0.000000e+00, %bb ], [ %tmp379, %bb157 ]
127   %tmp115 = phi float [ 0.000000e+00, %bb ], [ %tmp380, %bb157 ]
128   %tmp116 = phi float [ 0.000000e+00, %bb ], [ %tmp381, %bb157 ]
129   %tmp117 = phi float [ 0.000000e+00, %bb ], [ %tmp382, %bb157 ]
130   %tmp118 = phi float [ 0.000000e+00, %bb ], [ %tmp383, %bb157 ]
131   %tmp119 = phi float [ 0.000000e+00, %bb ], [ %tmp384, %bb157 ]
132   %tmp120 = phi float [ 0.000000e+00, %bb ], [ %tmp385, %bb157 ]
133   %tmp121 = phi float [ 0.000000e+00, %bb ], [ %tmp386, %bb157 ]
134   %tmp122 = phi float [ 0.000000e+00, %bb ], [ %tmp387, %bb157 ]
135   %tmp123 = phi float [ 0.000000e+00, %bb ], [ %tmp388, %bb157 ]
136   %tmp124 = phi float [ 0.000000e+00, %bb ], [ %tmp389, %bb157 ]
137   %tmp125 = phi float [ 0.000000e+00, %bb ], [ %tmp390, %bb157 ]
138   %tmp126 = phi float [ 0.000000e+00, %bb ], [ %tmp391, %bb157 ]
139   %tmp127 = phi float [ 0.000000e+00, %bb ], [ %tmp392, %bb157 ]
140   %tmp128 = phi float [ 0.000000e+00, %bb ], [ %tmp393, %bb157 ]
141   %tmp129 = phi float [ 0.000000e+00, %bb ], [ %tmp394, %bb157 ]
142   %tmp130 = phi float [ 0.000000e+00, %bb ], [ %tmp395, %bb157 ]
143   %tmp131 = phi float [ 0.000000e+00, %bb ], [ %tmp396, %bb157 ]
144   %tmp132 = phi float [ 0.000000e+00, %bb ], [ %tmp397, %bb157 ]
145   %tmp133 = phi float [ 0.000000e+00, %bb ], [ %tmp398, %bb157 ]
146   %tmp134 = phi float [ 0.000000e+00, %bb ], [ %tmp399, %bb157 ]
147   %tmp135 = phi float [ 0.000000e+00, %bb ], [ %tmp400, %bb157 ]
148   %tmp136 = phi float [ 0.000000e+00, %bb ], [ %tmp401, %bb157 ]
149   %tmp137 = phi float [ 0.000000e+00, %bb ], [ %tmp402, %bb157 ]
150   %tmp138 = phi float [ 0.000000e+00, %bb ], [ %tmp403, %bb157 ]
151   %tmp139 = phi float [ 0.000000e+00, %bb ], [ %tmp404, %bb157 ]
152   %tmp140 = phi float [ 0.000000e+00, %bb ], [ %tmp405, %bb157 ]
153   %tmp141 = phi float [ 0.000000e+00, %bb ], [ %tmp406, %bb157 ]
154   %tmp142 = phi float [ 0.000000e+00, %bb ], [ %tmp407, %bb157 ]
155   %tmp143 = phi float [ 0.000000e+00, %bb ], [ %tmp408, %bb157 ]
156   %tmp144 = phi float [ 0.000000e+00, %bb ], [ %tmp409, %bb157 ]
157   %tmp145 = phi float [ 0.000000e+00, %bb ], [ %tmp410, %bb157 ]
158   %tmp146 = phi float [ 0.000000e+00, %bb ], [ %tmp411, %bb157 ]
159   %tmp147 = phi float [ 0.000000e+00, %bb ], [ %tmp412, %bb157 ]
160   %tmp148 = phi float [ 0.000000e+00, %bb ], [ %tmp413, %bb157 ]
161   %tmp149 = phi float [ 0.000000e+00, %bb ], [ %tmp414, %bb157 ]
162   %tmp150 = phi float [ 0.000000e+00, %bb ], [ %tmp415, %bb157 ]
163   %tmp151 = phi float [ 0.000000e+00, %bb ], [ %tmp416, %bb157 ]
164   %tmp152 = phi float [ 0.000000e+00, %bb ], [ %tmp417, %bb157 ]
165   %tmp153 = phi float [ 0.000000e+00, %bb ], [ %tmp418, %bb157 ]
166   %tmp154 = bitcast float %tmp107 to i32
167   %tmp155 = icmp sgt i32 %tmp154, 125
168   br i1 %tmp155, label %bb156, label %bb157
169
170 bb156:                                            ; preds = %bb24
171   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 32, i32 0, float %tmp12, float %tmp103, float %tmp102, float %tmp101)
172   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 33, i32 0, float %tmp99, float %tmp98, float %tmp97, float %tmp95)
173   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 34, i32 0, float %tmp94, float %tmp93, float %tmp91, float %tmp90)
174   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 35, i32 0, float %tmp89, float %tmp87, float %tmp86, float %tmp85)
175   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 36, i32 0, float %tmp83, float %tmp82, float %tmp81, float %tmp79)
176   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 37, i32 0, float %tmp78, float %tmp77, float %tmp75, float %tmp74)
177   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 38, i32 0, float %tmp73, float %tmp71, float %tmp70, float %tmp69)
178   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 39, i32 0, float %tmp67, float %tmp66, float %tmp65, float %tmp63)
179   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 40, i32 0, float %tmp62, float %tmp61, float %tmp59, float %tmp58)
180   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 41, i32 0, float %tmp57, float %tmp55, float %tmp54, float %tmp53)
181   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 42, i32 0, float %tmp51, float %tmp50, float %tmp49, float %tmp47)
182   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 43, i32 0, float %tmp46, float %tmp45, float %tmp43, float %tmp42)
183   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 44, i32 0, float %tmp41, float %tmp39, float %tmp38, float %tmp37)
184   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 45, i32 0, float %tmp35, float %tmp34, float %tmp33, float %tmp31)
185   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 46, i32 0, float %tmp30, float %tmp29, float %tmp27, float %tmp26)
186   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 47, i32 0, float %tmp25, float %tmp28, float %tmp32, float %tmp36)
187   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 48, i32 0, float %tmp40, float %tmp44, float %tmp48, float %tmp52)
188   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 49, i32 0, float %tmp56, float %tmp60, float %tmp64, float %tmp68)
189   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 50, i32 0, float %tmp72, float %tmp76, float %tmp80, float %tmp84)
190   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 51, i32 0, float %tmp88, float %tmp92, float %tmp96, float %tmp100)
191   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 52, i32 0, float %tmp104, float %tmp105, float %tmp106, float %tmp108)
192   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 53, i32 0, float %tmp109, float %tmp110, float %tmp111, float %tmp112)
193   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 54, i32 0, float %tmp113, float %tmp114, float %tmp115, float %tmp116)
194   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 55, i32 0, float %tmp117, float %tmp118, float %tmp119, float %tmp120)
195   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 56, i32 0, float %tmp121, float %tmp122, float %tmp123, float %tmp124)
196   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 57, i32 0, float %tmp125, float %tmp126, float %tmp127, float %tmp128)
197   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 58, i32 0, float %tmp129, float %tmp130, float %tmp131, float %tmp132)
198   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 59, i32 0, float %tmp133, float %tmp134, float %tmp135, float %tmp136)
199   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 60, i32 0, float %tmp137, float %tmp138, float %tmp139, float %tmp140)
200   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 61, i32 0, float %tmp141, float %tmp142, float %tmp143, float %tmp144)
201   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 62, i32 0, float %tmp145, float %tmp146, float %tmp147, float %tmp148)
202   call void @llvm.SI.export(i32 15, i32 0, i32 0, i32 63, i32 0, float %tmp149, float %tmp150, float %tmp151, float %tmp13)
203   call void @llvm.SI.export(i32 15, i32 0, i32 1, i32 12, i32 0, float %tmp19, float %tmp20, float %tmp21, float %tmp22)
204   ret void
205
206 bb157:                                            ; preds = %bb24
207   %tmp158 = bitcast float %tmp107 to i32
208   %tmp159 = bitcast float %tmp107 to i32
209   %tmp160 = add i32 %tmp23, %tmp159
210   %tmp161 = bitcast i32 %tmp160 to float
211   %tmp162 = insertelement <128 x float> undef, float %tmp103, i32 0
212   %tmp163 = insertelement <128 x float> %tmp162, float %tmp102, i32 1
213   %tmp164 = insertelement <128 x float> %tmp163, float %tmp101, i32 2
214   %tmp165 = insertelement <128 x float> %tmp164, float %tmp99, i32 3
215   %tmp166 = insertelement <128 x float> %tmp165, float %tmp98, i32 4
216   %tmp167 = insertelement <128 x float> %tmp166, float %tmp97, i32 5
217   %tmp168 = insertelement <128 x float> %tmp167, float %tmp95, i32 6
218   %tmp169 = insertelement <128 x float> %tmp168, float %tmp94, i32 7
219   %tmp170 = insertelement <128 x float> %tmp169, float %tmp93, i32 8
220   %tmp171 = insertelement <128 x float> %tmp170, float %tmp91, i32 9
221   %tmp172 = insertelement <128 x float> %tmp171, float %tmp90, i32 10
222   %tmp173 = insertelement <128 x float> %tmp172, float %tmp89, i32 11
223   %tmp174 = insertelement <128 x float> %tmp173, float %tmp87, i32 12
224   %tmp175 = insertelement <128 x float> %tmp174, float %tmp86, i32 13
225   %tmp176 = insertelement <128 x float> %tmp175, float %tmp85, i32 14
226   %tmp177 = insertelement <128 x float> %tmp176, float %tmp83, i32 15
227   %tmp178 = insertelement <128 x float> %tmp177, float %tmp82, i32 16
228   %tmp179 = insertelement <128 x float> %tmp178, float %tmp81, i32 17
229   %tmp180 = insertelement <128 x float> %tmp179, float %tmp79, i32 18
230   %tmp181 = insertelement <128 x float> %tmp180, float %tmp78, i32 19
231   %tmp182 = insertelement <128 x float> %tmp181, float %tmp77, i32 20
232   %tmp183 = insertelement <128 x float> %tmp182, float %tmp75, i32 21
233   %tmp184 = insertelement <128 x float> %tmp183, float %tmp74, i32 22
234   %tmp185 = insertelement <128 x float> %tmp184, float %tmp73, i32 23
235   %tmp186 = insertelement <128 x float> %tmp185, float %tmp71, i32 24
236   %tmp187 = insertelement <128 x float> %tmp186, float %tmp70, i32 25
237   %tmp188 = insertelement <128 x float> %tmp187, float %tmp69, i32 26
238   %tmp189 = insertelement <128 x float> %tmp188, float %tmp67, i32 27
239   %tmp190 = insertelement <128 x float> %tmp189, float %tmp66, i32 28
240   %tmp191 = insertelement <128 x float> %tmp190, float %tmp65, i32 29
241   %tmp192 = insertelement <128 x float> %tmp191, float %tmp63, i32 30
242   %tmp193 = insertelement <128 x float> %tmp192, float %tmp62, i32 31
243   %tmp194 = insertelement <128 x float> %tmp193, float %tmp61, i32 32
244   %tmp195 = insertelement <128 x float> %tmp194, float %tmp59, i32 33
245   %tmp196 = insertelement <128 x float> %tmp195, float %tmp58, i32 34
246   %tmp197 = insertelement <128 x float> %tmp196, float %tmp57, i32 35
247   %tmp198 = insertelement <128 x float> %tmp197, float %tmp55, i32 36
248   %tmp199 = insertelement <128 x float> %tmp198, float %tmp54, i32 37
249   %tmp200 = insertelement <128 x float> %tmp199, float %tmp53, i32 38
250   %tmp201 = insertelement <128 x float> %tmp200, float %tmp51, i32 39
251   %tmp202 = insertelement <128 x float> %tmp201, float %tmp50, i32 40
252   %tmp203 = insertelement <128 x float> %tmp202, float %tmp49, i32 41
253   %tmp204 = insertelement <128 x float> %tmp203, float %tmp47, i32 42
254   %tmp205 = insertelement <128 x float> %tmp204, float %tmp46, i32 43
255   %tmp206 = insertelement <128 x float> %tmp205, float %tmp45, i32 44
256   %tmp207 = insertelement <128 x float> %tmp206, float %tmp43, i32 45
257   %tmp208 = insertelement <128 x float> %tmp207, float %tmp42, i32 46
258   %tmp209 = insertelement <128 x float> %tmp208, float %tmp41, i32 47
259   %tmp210 = insertelement <128 x float> %tmp209, float %tmp39, i32 48
260   %tmp211 = insertelement <128 x float> %tmp210, float %tmp38, i32 49
261   %tmp212 = insertelement <128 x float> %tmp211, float %tmp37, i32 50
262   %tmp213 = insertelement <128 x float> %tmp212, float %tmp35, i32 51
263   %tmp214 = insertelement <128 x float> %tmp213, float %tmp34, i32 52
264   %tmp215 = insertelement <128 x float> %tmp214, float %tmp33, i32 53
265   %tmp216 = insertelement <128 x float> %tmp215, float %tmp31, i32 54
266   %tmp217 = insertelement <128 x float> %tmp216, float %tmp30, i32 55
267   %tmp218 = insertelement <128 x float> %tmp217, float %tmp29, i32 56
268   %tmp219 = insertelement <128 x float> %tmp218, float %tmp27, i32 57
269   %tmp220 = insertelement <128 x float> %tmp219, float %tmp26, i32 58
270   %tmp221 = insertelement <128 x float> %tmp220, float %tmp25, i32 59
271   %tmp222 = insertelement <128 x float> %tmp221, float %tmp28, i32 60
272   %tmp223 = insertelement <128 x float> %tmp222, float %tmp32, i32 61
273   %tmp224 = insertelement <128 x float> %tmp223, float %tmp36, i32 62
274   %tmp225 = insertelement <128 x float> %tmp224, float %tmp40, i32 63
275   %tmp226 = insertelement <128 x float> %tmp225, float %tmp44, i32 64
276   %tmp227 = insertelement <128 x float> %tmp226, float %tmp48, i32 65
277   %tmp228 = insertelement <128 x float> %tmp227, float %tmp52, i32 66
278   %tmp229 = insertelement <128 x float> %tmp228, float %tmp56, i32 67
279   %tmp230 = insertelement <128 x float> %tmp229, float %tmp60, i32 68
280   %tmp231 = insertelement <128 x float> %tmp230, float %tmp64, i32 69
281   %tmp232 = insertelement <128 x float> %tmp231, float %tmp68, i32 70
282   %tmp233 = insertelement <128 x float> %tmp232, float %tmp72, i32 71
283   %tmp234 = insertelement <128 x float> %tmp233, float %tmp76, i32 72
284   %tmp235 = insertelement <128 x float> %tmp234, float %tmp80, i32 73
285   %tmp236 = insertelement <128 x float> %tmp235, float %tmp84, i32 74
286   %tmp237 = insertelement <128 x float> %tmp236, float %tmp88, i32 75
287   %tmp238 = insertelement <128 x float> %tmp237, float %tmp92, i32 76
288   %tmp239 = insertelement <128 x float> %tmp238, float %tmp96, i32 77
289   %tmp240 = insertelement <128 x float> %tmp239, float %tmp100, i32 78
290   %tmp241 = insertelement <128 x float> %tmp240, float %tmp104, i32 79
291   %tmp242 = insertelement <128 x float> %tmp241, float %tmp105, i32 80
292   %tmp243 = insertelement <128 x float> %tmp242, float %tmp106, i32 81
293   %tmp244 = insertelement <128 x float> %tmp243, float %tmp108, i32 82
294   %tmp245 = insertelement <128 x float> %tmp244, float %tmp109, i32 83
295   %tmp246 = insertelement <128 x float> %tmp245, float %tmp110, i32 84
296   %tmp247 = insertelement <128 x float> %tmp246, float %tmp111, i32 85
297   %tmp248 = insertelement <128 x float> %tmp247, float %tmp112, i32 86
298   %tmp249 = insertelement <128 x float> %tmp248, float %tmp113, i32 87
299   %tmp250 = insertelement <128 x float> %tmp249, float %tmp114, i32 88
300   %tmp251 = insertelement <128 x float> %tmp250, float %tmp115, i32 89
301   %tmp252 = insertelement <128 x float> %tmp251, float %tmp116, i32 90
302   %tmp253 = insertelement <128 x float> %tmp252, float %tmp117, i32 91
303   %tmp254 = insertelement <128 x float> %tmp253, float %tmp118, i32 92
304   %tmp255 = insertelement <128 x float> %tmp254, float %tmp119, i32 93
305   %tmp256 = insertelement <128 x float> %tmp255, float %tmp120, i32 94
306   %tmp257 = insertelement <128 x float> %tmp256, float %tmp121, i32 95
307   %tmp258 = insertelement <128 x float> %tmp257, float %tmp122, i32 96
308   %tmp259 = insertelement <128 x float> %tmp258, float %tmp123, i32 97
309   %tmp260 = insertelement <128 x float> %tmp259, float %tmp124, i32 98
310   %tmp261 = insertelement <128 x float> %tmp260, float %tmp125, i32 99
311   %tmp262 = insertelement <128 x float> %tmp261, float %tmp126, i32 100
312   %tmp263 = insertelement <128 x float> %tmp262, float %tmp127, i32 101
313   %tmp264 = insertelement <128 x float> %tmp263, float %tmp128, i32 102
314   %tmp265 = insertelement <128 x float> %tmp264, float %tmp129, i32 103
315   %tmp266 = insertelement <128 x float> %tmp265, float %tmp130, i32 104
316   %tmp267 = insertelement <128 x float> %tmp266, float %tmp131, i32 105
317   %tmp268 = insertelement <128 x float> %tmp267, float %tmp132, i32 106
318   %tmp269 = insertelement <128 x float> %tmp268, float %tmp133, i32 107
319   %tmp270 = insertelement <128 x float> %tmp269, float %tmp134, i32 108
320   %tmp271 = insertelement <128 x float> %tmp270, float %tmp135, i32 109
321   %tmp272 = insertelement <128 x float> %tmp271, float %tmp136, i32 110
322   %tmp273 = insertelement <128 x float> %tmp272, float %tmp137, i32 111
323   %tmp274 = insertelement <128 x float> %tmp273, float %tmp138, i32 112
324   %tmp275 = insertelement <128 x float> %tmp274, float %tmp139, i32 113
325   %tmp276 = insertelement <128 x float> %tmp275, float %tmp140, i32 114
326   %tmp277 = insertelement <128 x float> %tmp276, float %tmp141, i32 115
327   %tmp278 = insertelement <128 x float> %tmp277, float %tmp142, i32 116
328   %tmp279 = insertelement <128 x float> %tmp278, float %tmp143, i32 117
329   %tmp280 = insertelement <128 x float> %tmp279, float %tmp144, i32 118
330   %tmp281 = insertelement <128 x float> %tmp280, float %tmp145, i32 119
331   %tmp282 = insertelement <128 x float> %tmp281, float %tmp146, i32 120
332   %tmp283 = insertelement <128 x float> %tmp282, float %tmp147, i32 121
333   %tmp284 = insertelement <128 x float> %tmp283, float %tmp148, i32 122
334   %tmp285 = insertelement <128 x float> %tmp284, float %tmp149, i32 123
335   %tmp286 = insertelement <128 x float> %tmp285, float %tmp150, i32 124
336   %tmp287 = insertelement <128 x float> %tmp286, float %tmp151, i32 125
337   %tmp288 = insertelement <128 x float> %tmp287, float %tmp152, i32 126
338   %tmp289 = insertelement <128 x float> %tmp288, float %tmp153, i32 127
339   %tmp290 = insertelement <128 x float> %tmp289, float %tmp161, i32 %tmp158
340   %tmp291 = extractelement <128 x float> %tmp290, i32 0
341   %tmp292 = extractelement <128 x float> %tmp290, i32 1
342   %tmp293 = extractelement <128 x float> %tmp290, i32 2
343   %tmp294 = extractelement <128 x float> %tmp290, i32 3
344   %tmp295 = extractelement <128 x float> %tmp290, i32 4
345   %tmp296 = extractelement <128 x float> %tmp290, i32 5
346   %tmp297 = extractelement <128 x float> %tmp290, i32 6
347   %tmp298 = extractelement <128 x float> %tmp290, i32 7
348   %tmp299 = extractelement <128 x float> %tmp290, i32 8
349   %tmp300 = extractelement <128 x float> %tmp290, i32 9
350   %tmp301 = extractelement <128 x float> %tmp290, i32 10
351   %tmp302 = extractelement <128 x float> %tmp290, i32 11
352   %tmp303 = extractelement <128 x float> %tmp290, i32 12
353   %tmp304 = extractelement <128 x float> %tmp290, i32 13
354   %tmp305 = extractelement <128 x float> %tmp290, i32 14
355   %tmp306 = extractelement <128 x float> %tmp290, i32 15
356   %tmp307 = extractelement <128 x float> %tmp290, i32 16
357   %tmp308 = extractelement <128 x float> %tmp290, i32 17
358   %tmp309 = extractelement <128 x float> %tmp290, i32 18
359   %tmp310 = extractelement <128 x float> %tmp290, i32 19
360   %tmp311 = extractelement <128 x float> %tmp290, i32 20
361   %tmp312 = extractelement <128 x float> %tmp290, i32 21
362   %tmp313 = extractelement <128 x float> %tmp290, i32 22
363   %tmp314 = extractelement <128 x float> %tmp290, i32 23
364   %tmp315 = extractelement <128 x float> %tmp290, i32 24
365   %tmp316 = extractelement <128 x float> %tmp290, i32 25
366   %tmp317 = extractelement <128 x float> %tmp290, i32 26
367   %tmp318 = extractelement <128 x float> %tmp290, i32 27
368   %tmp319 = extractelement <128 x float> %tmp290, i32 28
369   %tmp320 = extractelement <128 x float> %tmp290, i32 29
370   %tmp321 = extractelement <128 x float> %tmp290, i32 30
371   %tmp322 = extractelement <128 x float> %tmp290, i32 31
372   %tmp323 = extractelement <128 x float> %tmp290, i32 32
373   %tmp324 = extractelement <128 x float> %tmp290, i32 33
374   %tmp325 = extractelement <128 x float> %tmp290, i32 34
375   %tmp326 = extractelement <128 x float> %tmp290, i32 35
376   %tmp327 = extractelement <128 x float> %tmp290, i32 36
377   %tmp328 = extractelement <128 x float> %tmp290, i32 37
378   %tmp329 = extractelement <128 x float> %tmp290, i32 38
379   %tmp330 = extractelement <128 x float> %tmp290, i32 39
380   %tmp331 = extractelement <128 x float> %tmp290, i32 40
381   %tmp332 = extractelement <128 x float> %tmp290, i32 41
382   %tmp333 = extractelement <128 x float> %tmp290, i32 42
383   %tmp334 = extractelement <128 x float> %tmp290, i32 43
384   %tmp335 = extractelement <128 x float> %tmp290, i32 44
385   %tmp336 = extractelement <128 x float> %tmp290, i32 45
386   %tmp337 = extractelement <128 x float> %tmp290, i32 46
387   %tmp338 = extractelement <128 x float> %tmp290, i32 47
388   %tmp339 = extractelement <128 x float> %tmp290, i32 48
389   %tmp340 = extractelement <128 x float> %tmp290, i32 49
390   %tmp341 = extractelement <128 x float> %tmp290, i32 50
391   %tmp342 = extractelement <128 x float> %tmp290, i32 51
392   %tmp343 = extractelement <128 x float> %tmp290, i32 52
393   %tmp344 = extractelement <128 x float> %tmp290, i32 53
394   %tmp345 = extractelement <128 x float> %tmp290, i32 54
395   %tmp346 = extractelement <128 x float> %tmp290, i32 55
396   %tmp347 = extractelement <128 x float> %tmp290, i32 56
397   %tmp348 = extractelement <128 x float> %tmp290, i32 57
398   %tmp349 = extractelement <128 x float> %tmp290, i32 58
399   %tmp350 = extractelement <128 x float> %tmp290, i32 59
400   %tmp351 = extractelement <128 x float> %tmp290, i32 60
401   %tmp352 = extractelement <128 x float> %tmp290, i32 61
402   %tmp353 = extractelement <128 x float> %tmp290, i32 62
403   %tmp354 = extractelement <128 x float> %tmp290, i32 63
404   %tmp355 = extractelement <128 x float> %tmp290, i32 64
405   %tmp356 = extractelement <128 x float> %tmp290, i32 65
406   %tmp357 = extractelement <128 x float> %tmp290, i32 66
407   %tmp358 = extractelement <128 x float> %tmp290, i32 67
408   %tmp359 = extractelement <128 x float> %tmp290, i32 68
409   %tmp360 = extractelement <128 x float> %tmp290, i32 69
410   %tmp361 = extractelement <128 x float> %tmp290, i32 70
411   %tmp362 = extractelement <128 x float> %tmp290, i32 71
412   %tmp363 = extractelement <128 x float> %tmp290, i32 72
413   %tmp364 = extractelement <128 x float> %tmp290, i32 73
414   %tmp365 = extractelement <128 x float> %tmp290, i32 74
415   %tmp366 = extractelement <128 x float> %tmp290, i32 75
416   %tmp367 = extractelement <128 x float> %tmp290, i32 76
417   %tmp368 = extractelement <128 x float> %tmp290, i32 77
418   %tmp369 = extractelement <128 x float> %tmp290, i32 78
419   %tmp370 = extractelement <128 x float> %tmp290, i32 79
420   %tmp371 = extractelement <128 x float> %tmp290, i32 80
421   %tmp372 = extractelement <128 x float> %tmp290, i32 81
422   %tmp373 = extractelement <128 x float> %tmp290, i32 82
423   %tmp374 = extractelement <128 x float> %tmp290, i32 83
424   %tmp375 = extractelement <128 x float> %tmp290, i32 84
425   %tmp376 = extractelement <128 x float> %tmp290, i32 85
426   %tmp377 = extractelement <128 x float> %tmp290, i32 86
427   %tmp378 = extractelement <128 x float> %tmp290, i32 87
428   %tmp379 = extractelement <128 x float> %tmp290, i32 88
429   %tmp380 = extractelement <128 x float> %tmp290, i32 89
430   %tmp381 = extractelement <128 x float> %tmp290, i32 90
431   %tmp382 = extractelement <128 x float> %tmp290, i32 91
432   %tmp383 = extractelement <128 x float> %tmp290, i32 92
433   %tmp384 = extractelement <128 x float> %tmp290, i32 93
434   %tmp385 = extractelement <128 x float> %tmp290, i32 94
435   %tmp386 = extractelement <128 x float> %tmp290, i32 95
436   %tmp387 = extractelement <128 x float> %tmp290, i32 96
437   %tmp388 = extractelement <128 x float> %tmp290, i32 97
438   %tmp389 = extractelement <128 x float> %tmp290, i32 98
439   %tmp390 = extractelement <128 x float> %tmp290, i32 99
440   %tmp391 = extractelement <128 x float> %tmp290, i32 100
441   %tmp392 = extractelement <128 x float> %tmp290, i32 101
442   %tmp393 = extractelement <128 x float> %tmp290, i32 102
443   %tmp394 = extractelement <128 x float> %tmp290, i32 103
444   %tmp395 = extractelement <128 x float> %tmp290, i32 104
445   %tmp396 = extractelement <128 x float> %tmp290, i32 105
446   %tmp397 = extractelement <128 x float> %tmp290, i32 106
447   %tmp398 = extractelement <128 x float> %tmp290, i32 107
448   %tmp399 = extractelement <128 x float> %tmp290, i32 108
449   %tmp400 = extractelement <128 x float> %tmp290, i32 109
450   %tmp401 = extractelement <128 x float> %tmp290, i32 110
451   %tmp402 = extractelement <128 x float> %tmp290, i32 111
452   %tmp403 = extractelement <128 x float> %tmp290, i32 112
453   %tmp404 = extractelement <128 x float> %tmp290, i32 113
454   %tmp405 = extractelement <128 x float> %tmp290, i32 114
455   %tmp406 = extractelement <128 x float> %tmp290, i32 115
456   %tmp407 = extractelement <128 x float> %tmp290, i32 116
457   %tmp408 = extractelement <128 x float> %tmp290, i32 117
458   %tmp409 = extractelement <128 x float> %tmp290, i32 118
459   %tmp410 = extractelement <128 x float> %tmp290, i32 119
460   %tmp411 = extractelement <128 x float> %tmp290, i32 120
461   %tmp412 = extractelement <128 x float> %tmp290, i32 121
462   %tmp413 = extractelement <128 x float> %tmp290, i32 122
463   %tmp414 = extractelement <128 x float> %tmp290, i32 123
464   %tmp415 = extractelement <128 x float> %tmp290, i32 124
465   %tmp416 = extractelement <128 x float> %tmp290, i32 125
466   %tmp417 = extractelement <128 x float> %tmp290, i32 126
467   %tmp418 = extractelement <128 x float> %tmp290, i32 127
468   %tmp419 = bitcast float %tmp107 to i32
469   %tmp420 = add i32 %tmp419, 1
470   %tmp421 = bitcast i32 %tmp420 to float
471   br label %bb24
472 }
473
474 ; Function Attrs: nounwind readnone
475 declare float @llvm.SI.load.const(<16 x i8>, i32) #1
476
477 ; Function Attrs: nounwind readnone
478 declare <4 x float> @llvm.SI.vs.load.input(<16 x i8>, i32, i32) #1
479
480 declare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float)
481
482 attributes #0 = { "ShaderType"="1" "enable-no-nans-fp-math"="true" }
483 attributes #1 = { nounwind readnone }
484
485 !0 = !{!1, !1, i64 0, i32 1}
486 !1 = !{!"const", null}