1; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck %s
2; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck %s
3
4; These tests check that the compiler won't crash when it needs to spill
5; SGPRs.
6
7
8@ddxy_lds = external addrspace(3) global [64 x i32]
9
10; CHECK-LABEL: {{^}}main:
11; CHECK: s_wqm
12
13; Make sure not emitting unused scratch resource descriptor setup
14; CHECK-NOT: s_mov_b32
15; CHECK-NOT: s_mov_b32
16; CHECK-NOT: s_mov_b32
17; CHECK-NOT: s_mov_b32
18
19; CHECK: s_mov_b32 m0
20
21
22; Writing to M0 from an SMRD instruction will hang the GPU.
23; CHECK-NOT: s_buffer_load_dword m0
24; CHECK: s_endpgm
25define amdgpu_ps void @main([17 x <16 x i8>] addrspace(2)* byval %arg, [32 x <16 x i8>] addrspace(2)* byval %arg1, [16 x <8 x i32>] addrspace(2)* byval %arg2, float inreg %arg3, i32 inreg %arg4, <2 x i32> %arg5, <2 x i32> %arg6, <2 x i32> %arg7, <3 x i32> %arg8, <2 x i32> %arg9, <2 x i32> %arg10, <2 x i32> %arg11, float %arg12, float %arg13, float %arg14, float %arg15, float %arg16, float %arg17, float %arg18, float %arg19, float %arg20) {
26main_body:
27  %tmp = getelementptr [17 x <16 x i8>], [17 x <16 x i8>] addrspace(2)* %arg, i64 0, i32 0
28  %tmp21 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp, !tbaa !0
29  %tmp22 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 96)
30  %tmp23 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 100)
31  %tmp24 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 104)
32  %tmp25 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 112)
33  %tmp26 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 116)
34  %tmp27 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 120)
35  %tmp28 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 128)
36  %tmp29 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 132)
37  %tmp30 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 140)
38  %tmp31 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 144)
39  %tmp32 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 160)
40  %tmp33 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 176)
41  %tmp34 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 180)
42  %tmp35 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 184)
43  %tmp36 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 192)
44  %tmp37 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 196)
45  %tmp38 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 200)
46  %tmp39 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 208)
47  %tmp40 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 212)
48  %tmp41 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 216)
49  %tmp42 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 224)
50  %tmp43 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 240)
51  %tmp44 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 244)
52  %tmp45 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 248)
53  %tmp46 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 256)
54  %tmp47 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 272)
55  %tmp48 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 276)
56  %tmp49 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 280)
57  %tmp50 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 288)
58  %tmp51 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 292)
59  %tmp52 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 296)
60  %tmp53 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 304)
61  %tmp54 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 308)
62  %tmp55 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 312)
63  %tmp56 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 368)
64  %tmp57 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 372)
65  %tmp58 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 376)
66  %tmp59 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 384)
67  %tmp60 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 0
68  %tmp61 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp60, !tbaa !0
69  %tmp62 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 0
70  %tmp63 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp62, !tbaa !0
71  %tmp63.bc = bitcast <16 x i8> %tmp63 to <4 x i32>
72  %tmp64 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 1
73  %tmp65 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp64, !tbaa !0
74  %tmp66 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 1
75  %tmp67 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp66, !tbaa !0
76  %tmp68 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 2
77  %tmp69 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp68, !tbaa !0
78  %tmp70 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 2
79  %tmp71 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp70, !tbaa !0
80  %tmp72 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 3
81  %tmp73 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp72, !tbaa !0
82  %tmp74 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 3
83  %tmp75 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp74, !tbaa !0
84  %tmp76 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 4
85  %tmp77 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp76, !tbaa !0
86  %tmp78 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 4
87  %tmp79 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp78, !tbaa !0
88  %tmp80 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 5
89  %tmp81 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp80, !tbaa !0
90  %tmp82 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 5
91  %tmp83 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp82, !tbaa !0
92  %tmp84 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 6
93  %tmp85 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp84, !tbaa !0
94  %tmp86 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 6
95  %tmp87 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp86, !tbaa !0
96  %tmp88 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 7
97  %tmp89 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp88, !tbaa !0
98  %tmp90 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 7
99  %tmp91 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp90, !tbaa !0
100  %tmp92 = call float @llvm.SI.fs.interp(i32 0, i32 0, i32 %arg4, <2 x i32> %arg6)
101  %tmp93 = call float @llvm.SI.fs.interp(i32 1, i32 0, i32 %arg4, <2 x i32> %arg6)
102  %tmp94 = call float @llvm.SI.fs.interp(i32 0, i32 1, i32 %arg4, <2 x i32> %arg6)
103  %tmp95 = call float @llvm.SI.fs.interp(i32 1, i32 1, i32 %arg4, <2 x i32> %arg6)
104  %tmp96 = call float @llvm.SI.fs.interp(i32 2, i32 1, i32 %arg4, <2 x i32> %arg6)
105  %tmp97 = call float @llvm.SI.fs.interp(i32 0, i32 2, i32 %arg4, <2 x i32> %arg6)
106  %tmp98 = call float @llvm.SI.fs.interp(i32 1, i32 2, i32 %arg4, <2 x i32> %arg6)
107  %tmp99 = call float @llvm.SI.fs.interp(i32 2, i32 2, i32 %arg4, <2 x i32> %arg6)
108  %tmp100 = call float @llvm.SI.fs.interp(i32 0, i32 3, i32 %arg4, <2 x i32> %arg6)
109  %tmp101 = call float @llvm.SI.fs.interp(i32 1, i32 3, i32 %arg4, <2 x i32> %arg6)
110  %tmp102 = call float @llvm.SI.fs.interp(i32 2, i32 3, i32 %arg4, <2 x i32> %arg6)
111  %tmp103 = call float @llvm.SI.fs.interp(i32 0, i32 4, i32 %arg4, <2 x i32> %arg6)
112  %tmp104 = call float @llvm.SI.fs.interp(i32 1, i32 4, i32 %arg4, <2 x i32> %arg6)
113  %tmp105 = call float @llvm.SI.fs.interp(i32 2, i32 4, i32 %arg4, <2 x i32> %arg6)
114  %tmp106 = call float @llvm.SI.fs.interp(i32 0, i32 5, i32 %arg4, <2 x i32> %arg6)
115  %tmp107 = call float @llvm.SI.fs.interp(i32 1, i32 5, i32 %arg4, <2 x i32> %arg6)
116  %tmp108 = call float @llvm.SI.fs.interp(i32 2, i32 5, i32 %arg4, <2 x i32> %arg6)
117  %mbcnt.lo.0 = call i32 @llvm.amdgcn.mbcnt.lo(i32 -1, i32 0)
118  %tmp109 = call i32 @llvm.amdgcn.mbcnt.hi(i32 -1, i32 %mbcnt.lo.0)
119  %tmp110 = getelementptr [64 x i32], [64 x i32] addrspace(3)* @ddxy_lds, i32 0, i32 %tmp109
120  %tmp111 = bitcast float %tmp92 to i32
121  store i32 %tmp111, i32 addrspace(3)* %tmp110
122  %tmp112 = bitcast float %tmp93 to i32
123  store i32 %tmp112, i32 addrspace(3)* %tmp110
124  %mbcnt.lo.1 = call i32 @llvm.amdgcn.mbcnt.lo(i32 -1, i32 0)
125  %tmp113 = call i32 @llvm.amdgcn.mbcnt.hi(i32 -1, i32 %mbcnt.lo.1)
126  %tmp114 = getelementptr [64 x i32], [64 x i32] addrspace(3)* @ddxy_lds, i32 0, i32 %tmp113
127  %tmp115 = and i32 %tmp113, -4
128  %tmp116 = getelementptr [64 x i32], [64 x i32] addrspace(3)* @ddxy_lds, i32 0, i32 %tmp115
129  %tmp117 = add i32 %tmp115, 1
130  %tmp118 = getelementptr [64 x i32], [64 x i32] addrspace(3)* @ddxy_lds, i32 0, i32 %tmp117
131  %tmp119 = bitcast float %tmp92 to i32
132  store i32 %tmp119, i32 addrspace(3)* %tmp114
133  %tmp120 = load i32, i32 addrspace(3)* %tmp116
134  %tmp121 = bitcast i32 %tmp120 to float
135  %tmp122 = load i32, i32 addrspace(3)* %tmp118
136  %tmp123 = bitcast i32 %tmp122 to float
137  %tmp124 = fsub float %tmp123, %tmp121
138  %tmp125 = bitcast float %tmp93 to i32
139  store i32 %tmp125, i32 addrspace(3)* %tmp114
140  %tmp126 = load i32, i32 addrspace(3)* %tmp116
141  %tmp127 = bitcast i32 %tmp126 to float
142  %tmp128 = load i32, i32 addrspace(3)* %tmp118
143  %tmp129 = bitcast i32 %tmp128 to float
144  %tmp130 = fsub float %tmp129, %tmp127
145  %tmp131 = insertelement <4 x float> undef, float %tmp124, i32 0
146  %tmp132 = insertelement <4 x float> %tmp131, float %tmp130, i32 1
147  %tmp133 = insertelement <4 x float> %tmp132, float %tmp130, i32 2
148  %tmp134 = insertelement <4 x float> %tmp133, float %tmp130, i32 3
149  %tmp135 = extractelement <4 x float> %tmp134, i32 0
150  %tmp136 = extractelement <4 x float> %tmp134, i32 1
151  %tmp137 = fmul float %tmp59, %tmp92
152  %tmp138 = fmul float %tmp59, %tmp93
153  %tmp139 = fmul float %tmp59, %tmp93
154  %tmp140 = fmul float %tmp59, %tmp93
155  %mbcnt.lo.2 = call i32 @llvm.amdgcn.mbcnt.lo(i32 -1, i32 0)
156  %tmp141 = call i32 @llvm.amdgcn.mbcnt.hi(i32 -1, i32 %mbcnt.lo.2)
157  %tmp142 = getelementptr [64 x i32], [64 x i32] addrspace(3)* @ddxy_lds, i32 0, i32 %tmp141
158  %tmp143 = bitcast float %tmp137 to i32
159  store i32 %tmp143, i32 addrspace(3)* %tmp142
160  %tmp144 = bitcast float %tmp138 to i32
161  store i32 %tmp144, i32 addrspace(3)* %tmp142
162  %tmp145 = bitcast float %tmp139 to i32
163  store i32 %tmp145, i32 addrspace(3)* %tmp142
164  %tmp146 = bitcast float %tmp140 to i32
165  store i32 %tmp146, i32 addrspace(3)* %tmp142
166  %mbcnt.lo.3 = call i32 @llvm.amdgcn.mbcnt.lo(i32 -1, i32 0)
167  %tmp147 = call i32 @llvm.amdgcn.mbcnt.hi(i32 -1, i32 %mbcnt.lo.3)
168  %tmp148 = getelementptr [64 x i32], [64 x i32] addrspace(3)* @ddxy_lds, i32 0, i32 %tmp147
169  %tmp149 = and i32 %tmp147, -4
170  %tmp150 = getelementptr [64 x i32], [64 x i32] addrspace(3)* @ddxy_lds, i32 0, i32 %tmp149
171  %tmp151 = add i32 %tmp149, 2
172  %tmp152 = getelementptr [64 x i32], [64 x i32] addrspace(3)* @ddxy_lds, i32 0, i32 %tmp151
173  %tmp153 = bitcast float %tmp137 to i32
174  store i32 %tmp153, i32 addrspace(3)* %tmp148
175  %tmp154 = load i32, i32 addrspace(3)* %tmp150
176  %tmp155 = bitcast i32 %tmp154 to float
177  %tmp156 = load i32, i32 addrspace(3)* %tmp152
178  %tmp157 = bitcast i32 %tmp156 to float
179  %tmp158 = fsub float %tmp157, %tmp155
180  %tmp159 = bitcast float %tmp138 to i32
181  store i32 %tmp159, i32 addrspace(3)* %tmp148
182  %tmp160 = load i32, i32 addrspace(3)* %tmp150
183  %tmp161 = bitcast i32 %tmp160 to float
184  %tmp162 = load i32, i32 addrspace(3)* %tmp152
185  %tmp163 = bitcast i32 %tmp162 to float
186  %tmp164 = fsub float %tmp163, %tmp161
187  %tmp165 = bitcast float %tmp139 to i32
188  store i32 %tmp165, i32 addrspace(3)* %tmp148
189  %tmp166 = load i32, i32 addrspace(3)* %tmp150
190  %tmp167 = bitcast i32 %tmp166 to float
191  %tmp168 = load i32, i32 addrspace(3)* %tmp152
192  %tmp169 = bitcast i32 %tmp168 to float
193  %tmp170 = fsub float %tmp169, %tmp167
194  %tmp171 = bitcast float %tmp140 to i32
195  store i32 %tmp171, i32 addrspace(3)* %tmp148
196  %tmp172 = load i32, i32 addrspace(3)* %tmp150
197  %tmp173 = bitcast i32 %tmp172 to float
198  %tmp174 = load i32, i32 addrspace(3)* %tmp152
199  %tmp175 = bitcast i32 %tmp174 to float
200  %tmp176 = fsub float %tmp175, %tmp173
201  %tmp177 = insertelement <4 x float> undef, float %tmp158, i32 0
202  %tmp178 = insertelement <4 x float> %tmp177, float %tmp164, i32 1
203  %tmp179 = insertelement <4 x float> %tmp178, float %tmp170, i32 2
204  %tmp180 = insertelement <4 x float> %tmp179, float %tmp176, i32 3
205  %tmp181 = extractelement <4 x float> %tmp180, i32 0
206  %tmp182 = extractelement <4 x float> %tmp180, i32 1
207  %tmp183 = fdiv float 1.000000e+00, %tmp96
208  %tmp184 = fmul float %tmp32, %tmp183
209  %tmp185 = fcmp uge float 1.000000e+00, %tmp184
210  %tmp186 = select i1 %tmp185, float %tmp184, float 1.000000e+00
211  %tmp187 = fmul float %tmp186, %tmp29
212  %tmp188 = call float @ceil(float %tmp187)
213  %tmp189 = fcmp uge float 3.000000e+00, %tmp188
214  %tmp190 = select i1 %tmp189, float 3.000000e+00, float %tmp188
215  %tmp191 = fdiv float 1.000000e+00, %tmp190
216  %tmp192 = fdiv float 1.000000e+00, %tmp29
217  %tmp193 = fmul float %tmp190, %tmp192
218  %tmp194 = fmul float %tmp30, %tmp193
219  %tmp195 = fmul float %tmp94, %tmp94
220  %tmp196 = fmul float %tmp95, %tmp95
221  %tmp197 = fadd float %tmp196, %tmp195
222  %tmp198 = fmul float %tmp96, %tmp96
223  %tmp199 = fadd float %tmp197, %tmp198
224  %tmp200 = call float @llvm.amdgcn.rsq.f32(float %tmp199)
225  %tmp201 = fmul float %tmp94, %tmp200
226  %tmp202 = fmul float %tmp95, %tmp200
227  %tmp203 = fmul float %tmp201, %tmp28
228  %tmp204 = fmul float %tmp202, %tmp28
229  %tmp205 = fmul float %tmp203, -1.000000e+00
230  %tmp206 = fmul float %tmp204, 1.000000e+00
231  %tmp207 = fmul float %tmp205, %tmp31
232  %tmp208 = fmul float %tmp206, %tmp31
233  %tmp209 = fsub float -0.000000e+00, %tmp207
234  %tmp210 = fadd float %tmp92, %tmp209
235  %tmp211 = fsub float -0.000000e+00, %tmp208
236  %tmp212 = fadd float %tmp93, %tmp211
237  %tmp213 = fmul float %tmp205, %tmp191
238  %tmp214 = fmul float %tmp206, %tmp191
239  %tmp215 = fmul float -1.000000e+00, %tmp191
240  %tmp216 = bitcast float %tmp135 to i32
241  %tmp217 = bitcast float %tmp181 to i32
242  %tmp218 = bitcast float %tmp136 to i32
243  %tmp219 = bitcast float %tmp182 to i32
244  %tmp220 = insertelement <8 x i32> undef, i32 %tmp216, i32 0
245  %tmp221 = insertelement <8 x i32> %tmp220, i32 %tmp217, i32 1
246  %tmp222 = insertelement <8 x i32> %tmp221, i32 %tmp218, i32 2
247  %tmp223 = insertelement <8 x i32> %tmp222, i32 %tmp219, i32 3
248  br label %LOOP
249
250LOOP:                                             ; preds = %ENDIF, %main_body
251  %temp24.0 = phi float [ 1.000000e+00, %main_body ], [ %tmp257, %ENDIF ]
252  %temp28.0 = phi float [ %tmp210, %main_body ], [ %tmp252, %ENDIF ]
253  %temp29.0 = phi float [ %tmp212, %main_body ], [ %tmp254, %ENDIF ]
254  %temp30.0 = phi float [ 1.000000e+00, %main_body ], [ %tmp256, %ENDIF ]
255  %tmp224 = fcmp oge float %temp24.0, %tmp190
256  %tmp225 = sext i1 %tmp224 to i32
257  %tmp226 = bitcast i32 %tmp225 to float
258  %tmp227 = bitcast float %tmp226 to i32
259  %tmp228 = icmp ne i32 %tmp227, 0
260  br i1 %tmp228, label %IF, label %ENDIF
261
262IF:                                               ; preds = %LOOP
263  %tmp229 = bitcast float %tmp135 to i32
264  %tmp230 = bitcast float %tmp181 to i32
265  %tmp231 = bitcast float %tmp136 to i32
266  %tmp232 = bitcast float %tmp182 to i32
267  %tmp233 = insertelement <8 x i32> undef, i32 %tmp229, i32 0
268  %tmp234 = insertelement <8 x i32> %tmp233, i32 %tmp230, i32 1
269  %tmp235 = insertelement <8 x i32> %tmp234, i32 %tmp231, i32 2
270  %tmp236 = insertelement <8 x i32> %tmp235, i32 %tmp232, i32 3
271  br label %LOOP65
272
273ENDIF:                                            ; preds = %LOOP
274  %tmp237 = bitcast float %temp28.0 to i32
275  %tmp238 = bitcast float %temp29.0 to i32
276  %tmp239 = insertelement <8 x i32> %tmp223, i32 %tmp237, i32 4
277  %tmp240 = insertelement <8 x i32> %tmp239, i32 %tmp238, i32 5
278  %tmp241 = insertelement <8 x i32> %tmp240, i32 undef, i32 6
279  %tmp242 = insertelement <8 x i32> %tmp241, i32 undef, i32 7
280  %tmp243 = call <4 x float> @llvm.SI.image.sample.d.v8i32(<8 x i32> %tmp242, <8 x i32> %tmp61, <4 x i32> %tmp63.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
281  %tmp244 = extractelement <4 x float> %tmp243, i32 3
282  %tmp245 = fcmp oge float %temp30.0, %tmp244
283  %tmp246 = sext i1 %tmp245 to i32
284  %tmp247 = bitcast i32 %tmp246 to float
285  %tmp248 = bitcast float %tmp247 to i32
286  %tmp249 = and i32 %tmp248, 1065353216
287  %tmp250 = bitcast i32 %tmp249 to float
288  %tmp251 = fmul float %tmp213, %tmp250
289  %tmp252 = fadd float %tmp251, %temp28.0
290  %tmp253 = fmul float %tmp214, %tmp250
291  %tmp254 = fadd float %tmp253, %temp29.0
292  %tmp255 = fmul float %tmp215, %tmp250
293  %tmp256 = fadd float %tmp255, %temp30.0
294  %tmp257 = fadd float %temp24.0, 1.000000e+00
295  br label %LOOP
296
297LOOP65:                                           ; preds = %ENDIF66, %IF
298  %temp24.1 = phi float [ 0.000000e+00, %IF ], [ %tmp609, %ENDIF66 ]
299  %temp28.1 = phi float [ %temp28.0, %IF ], [ %tmp604, %ENDIF66 ]
300  %temp29.1 = phi float [ %temp29.0, %IF ], [ %tmp606, %ENDIF66 ]
301  %temp30.1 = phi float [ %temp30.0, %IF ], [ %tmp608, %ENDIF66 ]
302  %temp32.0 = phi float [ 1.000000e+00, %IF ], [ %tmp610, %ENDIF66 ]
303  %tmp258 = fcmp oge float %temp24.1, %tmp194
304  %tmp259 = sext i1 %tmp258 to i32
305  %tmp260 = bitcast i32 %tmp259 to float
306  %tmp261 = bitcast float %tmp260 to i32
307  %tmp262 = icmp ne i32 %tmp261, 0
308  br i1 %tmp262, label %IF67, label %ENDIF66
309
310IF67:                                             ; preds = %LOOP65
311  %tmp263 = bitcast float %tmp135 to i32
312  %tmp264 = bitcast float %tmp181 to i32
313  %tmp265 = bitcast float %tmp136 to i32
314  %tmp266 = bitcast float %tmp182 to i32
315  %tmp267 = bitcast float %temp28.1 to i32
316  %tmp268 = bitcast float %temp29.1 to i32
317  %tmp269 = insertelement <8 x i32> undef, i32 %tmp263, i32 0
318  %tmp270 = insertelement <8 x i32> %tmp269, i32 %tmp264, i32 1
319  %tmp271 = insertelement <8 x i32> %tmp270, i32 %tmp265, i32 2
320  %tmp272 = insertelement <8 x i32> %tmp271, i32 %tmp266, i32 3
321  %tmp273 = insertelement <8 x i32> %tmp272, i32 %tmp267, i32 4
322  %tmp274 = insertelement <8 x i32> %tmp273, i32 %tmp268, i32 5
323  %tmp275 = insertelement <8 x i32> %tmp274, i32 undef, i32 6
324  %tmp276 = insertelement <8 x i32> %tmp275, i32 undef, i32 7
325  %tmp67.bc = bitcast <16 x i8> %tmp67 to <4 x i32>
326  %tmp277 = call <4 x float> @llvm.SI.image.sample.d.v8i32(<8 x i32> %tmp276, <8 x i32> %tmp65, <4 x i32> %tmp67.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
327  %tmp278 = extractelement <4 x float> %tmp277, i32 0
328  %tmp279 = extractelement <4 x float> %tmp277, i32 1
329  %tmp280 = extractelement <4 x float> %tmp277, i32 2
330  %tmp281 = extractelement <4 x float> %tmp277, i32 3
331  %tmp282 = fmul float %tmp281, %tmp46
332  %tmp283 = bitcast float %tmp135 to i32
333  %tmp284 = bitcast float %tmp181 to i32
334  %tmp285 = bitcast float %tmp136 to i32
335  %tmp286 = bitcast float %tmp182 to i32
336  %tmp287 = bitcast float %temp28.1 to i32
337  %tmp288 = bitcast float %temp29.1 to i32
338  %tmp289 = insertelement <8 x i32> undef, i32 %tmp283, i32 0
339  %tmp290 = insertelement <8 x i32> %tmp289, i32 %tmp284, i32 1
340  %tmp291 = insertelement <8 x i32> %tmp290, i32 %tmp285, i32 2
341  %tmp292 = insertelement <8 x i32> %tmp291, i32 %tmp286, i32 3
342  %tmp293 = insertelement <8 x i32> %tmp292, i32 %tmp287, i32 4
343  %tmp294 = insertelement <8 x i32> %tmp293, i32 %tmp288, i32 5
344  %tmp295 = insertelement <8 x i32> %tmp294, i32 undef, i32 6
345  %tmp296 = insertelement <8 x i32> %tmp295, i32 undef, i32 7
346  %tmp83.bc = bitcast <16 x i8> %tmp83 to <4 x i32>
347  %tmp297 = call <4 x float> @llvm.SI.image.sample.d.v8i32(<8 x i32> %tmp296, <8 x i32> %tmp81, <4 x i32> %tmp83.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
348  %tmp298 = extractelement <4 x float> %tmp297, i32 0
349  %tmp299 = extractelement <4 x float> %tmp297, i32 1
350  %tmp300 = extractelement <4 x float> %tmp297, i32 2
351  %tmp301 = bitcast float %tmp135 to i32
352  %tmp302 = bitcast float %tmp181 to i32
353  %tmp303 = bitcast float %tmp136 to i32
354  %tmp304 = bitcast float %tmp182 to i32
355  %tmp305 = bitcast float %temp28.1 to i32
356  %tmp306 = bitcast float %temp29.1 to i32
357  %tmp307 = insertelement <8 x i32> undef, i32 %tmp301, i32 0
358  %tmp308 = insertelement <8 x i32> %tmp307, i32 %tmp302, i32 1
359  %tmp309 = insertelement <8 x i32> %tmp308, i32 %tmp303, i32 2
360  %tmp310 = insertelement <8 x i32> %tmp309, i32 %tmp304, i32 3
361  %tmp311 = insertelement <8 x i32> %tmp310, i32 %tmp305, i32 4
362  %tmp312 = insertelement <8 x i32> %tmp311, i32 %tmp306, i32 5
363  %tmp313 = insertelement <8 x i32> %tmp312, i32 undef, i32 6
364  %tmp314 = insertelement <8 x i32> %tmp313, i32 undef, i32 7
365  %tmp79.bc = bitcast <16 x i8> %tmp79 to <4 x i32>
366  %tmp315 = call <4 x float> @llvm.SI.image.sample.d.v8i32(<8 x i32> %tmp314, <8 x i32> %tmp77, <4 x i32> %tmp79.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
367  %tmp316 = extractelement <4 x float> %tmp315, i32 0
368  %tmp317 = extractelement <4 x float> %tmp315, i32 1
369  %tmp318 = extractelement <4 x float> %tmp315, i32 2
370  %tmp319 = fmul float %tmp316, %tmp22
371  %tmp320 = fmul float %tmp317, %tmp23
372  %tmp321 = fmul float %tmp318, %tmp24
373  %tmp322 = fmul float %tmp298, %tmp25
374  %tmp323 = fadd float %tmp322, %tmp319
375  %tmp324 = fmul float %tmp299, %tmp26
376  %tmp325 = fadd float %tmp324, %tmp320
377  %tmp326 = fmul float %tmp300, %tmp27
378  %tmp327 = fadd float %tmp326, %tmp321
379  %tmp328 = fadd float %tmp278, %tmp323
380  %tmp329 = fadd float %tmp279, %tmp325
381  %tmp330 = fadd float %tmp280, %tmp327
382  %tmp331 = bitcast float %tmp135 to i32
383  %tmp332 = bitcast float %tmp181 to i32
384  %tmp333 = bitcast float %tmp136 to i32
385  %tmp334 = bitcast float %tmp182 to i32
386  %tmp335 = bitcast float %temp28.1 to i32
387  %tmp336 = bitcast float %temp29.1 to i32
388  %tmp337 = insertelement <8 x i32> undef, i32 %tmp331, i32 0
389  %tmp338 = insertelement <8 x i32> %tmp337, i32 %tmp332, i32 1
390  %tmp339 = insertelement <8 x i32> %tmp338, i32 %tmp333, i32 2
391  %tmp340 = insertelement <8 x i32> %tmp339, i32 %tmp334, i32 3
392  %tmp341 = insertelement <8 x i32> %tmp340, i32 %tmp335, i32 4
393  %tmp342 = insertelement <8 x i32> %tmp341, i32 %tmp336, i32 5
394  %tmp343 = insertelement <8 x i32> %tmp342, i32 undef, i32 6
395  %tmp344 = insertelement <8 x i32> %tmp343, i32 undef, i32 7
396  %tmp345 = call <4 x float> @llvm.SI.image.sample.d.v8i32(<8 x i32> %tmp344, <8 x i32> %tmp61, <4 x i32> %tmp63.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
397  %tmp346 = extractelement <4 x float> %tmp345, i32 0
398  %tmp347 = extractelement <4 x float> %tmp345, i32 1
399  %tmp348 = extractelement <4 x float> %tmp345, i32 2
400  %tmp349 = fadd float %tmp346, -5.000000e-01
401  %tmp350 = fadd float %tmp347, -5.000000e-01
402  %tmp351 = fadd float %tmp348, -5.000000e-01
403  %tmp352 = fmul float %tmp349, %tmp349
404  %tmp353 = fmul float %tmp350, %tmp350
405  %tmp354 = fadd float %tmp353, %tmp352
406  %tmp355 = fmul float %tmp351, %tmp351
407  %tmp356 = fadd float %tmp354, %tmp355
408  %tmp357 = call float @llvm.amdgcn.rsq.f32(float %tmp356)
409  %tmp358 = fmul float %tmp349, %tmp357
410  %tmp359 = fmul float %tmp350, %tmp357
411  %tmp360 = fmul float %tmp351, %tmp357
412  %tmp361 = bitcast float %tmp135 to i32
413  %tmp362 = bitcast float %tmp181 to i32
414  %tmp363 = bitcast float %tmp136 to i32
415  %tmp364 = bitcast float %tmp182 to i32
416  %tmp365 = bitcast float %temp28.1 to i32
417  %tmp366 = bitcast float %temp29.1 to i32
418  %tmp367 = insertelement <8 x i32> undef, i32 %tmp361, i32 0
419  %tmp368 = insertelement <8 x i32> %tmp367, i32 %tmp362, i32 1
420  %tmp369 = insertelement <8 x i32> %tmp368, i32 %tmp363, i32 2
421  %tmp370 = insertelement <8 x i32> %tmp369, i32 %tmp364, i32 3
422  %tmp371 = insertelement <8 x i32> %tmp370, i32 %tmp365, i32 4
423  %tmp372 = insertelement <8 x i32> %tmp371, i32 %tmp366, i32 5
424  %tmp373 = insertelement <8 x i32> %tmp372, i32 undef, i32 6
425  %tmp374 = insertelement <8 x i32> %tmp373, i32 undef, i32 7
426  %tmp71.bc = bitcast <16 x i8> %tmp71 to <4 x i32>
427  %tmp375 = call <4 x float> @llvm.SI.image.sample.d.v8i32(<8 x i32> %tmp374, <8 x i32> %tmp69, <4 x i32> %tmp71.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
428  %tmp376 = extractelement <4 x float> %tmp375, i32 0
429  %tmp377 = extractelement <4 x float> %tmp375, i32 1
430  %tmp378 = extractelement <4 x float> %tmp375, i32 2
431  %tmp379 = extractelement <4 x float> %tmp375, i32 3
432  %tmp380 = fsub float -0.000000e+00, %tmp94
433  %tmp381 = fsub float -0.000000e+00, %tmp95
434  %tmp382 = fsub float -0.000000e+00, %tmp96
435  %tmp383 = fmul float %tmp358, %tmp380
436  %tmp384 = fmul float %tmp359, %tmp381
437  %tmp385 = fadd float %tmp384, %tmp383
438  %tmp386 = fmul float %tmp360, %tmp382
439  %tmp387 = fadd float %tmp385, %tmp386
440  %tmp388 = fmul float %tmp387, %tmp358
441  %tmp389 = fmul float %tmp387, %tmp359
442  %tmp390 = fmul float %tmp387, %tmp360
443  %tmp391 = fmul float 2.000000e+00, %tmp388
444  %tmp392 = fmul float 2.000000e+00, %tmp389
445  %tmp393 = fmul float 2.000000e+00, %tmp390
446  %tmp394 = fsub float -0.000000e+00, %tmp391
447  %tmp395 = fadd float %tmp380, %tmp394
448  %tmp396 = fsub float -0.000000e+00, %tmp392
449  %tmp397 = fadd float %tmp381, %tmp396
450  %tmp398 = fsub float -0.000000e+00, %tmp393
451  %tmp399 = fadd float %tmp382, %tmp398
452  %tmp400 = fmul float %tmp395, %tmp97
453  %tmp401 = fmul float %tmp395, %tmp98
454  %tmp402 = fmul float %tmp395, %tmp99
455  %tmp403 = fmul float %tmp397, %tmp100
456  %tmp404 = fadd float %tmp403, %tmp400
457  %tmp405 = fmul float %tmp397, %tmp101
458  %tmp406 = fadd float %tmp405, %tmp401
459  %tmp407 = fmul float %tmp397, %tmp102
460  %tmp408 = fadd float %tmp407, %tmp402
461  %tmp409 = fmul float %tmp399, %tmp103
462  %tmp410 = fadd float %tmp409, %tmp404
463  %tmp411 = fmul float %tmp399, %tmp104
464  %tmp412 = fadd float %tmp411, %tmp406
465  %tmp413 = fmul float %tmp399, %tmp105
466  %tmp414 = fadd float %tmp413, %tmp408
467  %tmp415 = bitcast float %tmp135 to i32
468  %tmp416 = bitcast float %tmp181 to i32
469  %tmp417 = bitcast float %tmp136 to i32
470  %tmp418 = bitcast float %tmp182 to i32
471  %tmp419 = bitcast float %temp28.1 to i32
472  %tmp420 = bitcast float %temp29.1 to i32
473  %tmp421 = insertelement <8 x i32> undef, i32 %tmp415, i32 0
474  %tmp422 = insertelement <8 x i32> %tmp421, i32 %tmp416, i32 1
475  %tmp423 = insertelement <8 x i32> %tmp422, i32 %tmp417, i32 2
476  %tmp424 = insertelement <8 x i32> %tmp423, i32 %tmp418, i32 3
477  %tmp425 = insertelement <8 x i32> %tmp424, i32 %tmp419, i32 4
478  %tmp426 = insertelement <8 x i32> %tmp425, i32 %tmp420, i32 5
479  %tmp427 = insertelement <8 x i32> %tmp426, i32 undef, i32 6
480  %tmp428 = insertelement <8 x i32> %tmp427, i32 undef, i32 7
481  %tmp87.bc = bitcast <16 x i8> %tmp87 to <4 x i32>
482  %tmp429 = call <4 x float> @llvm.SI.image.sample.d.v8i32(<8 x i32> %tmp428, <8 x i32> %tmp85, <4 x i32> %tmp87.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
483  %tmp430 = extractelement <4 x float> %tmp429, i32 0
484  %tmp431 = extractelement <4 x float> %tmp429, i32 1
485  %tmp432 = extractelement <4 x float> %tmp429, i32 2
486  %tmp433 = fmul float %tmp47, %tmp410
487  %tmp434 = fmul float %tmp48, %tmp410
488  %tmp435 = fmul float %tmp49, %tmp410
489  %tmp436 = fmul float %tmp50, %tmp412
490  %tmp437 = fadd float %tmp436, %tmp433
491  %tmp438 = fmul float %tmp51, %tmp412
492  %tmp439 = fadd float %tmp438, %tmp434
493  %tmp440 = fmul float %tmp52, %tmp412
494  %tmp441 = fadd float %tmp440, %tmp435
495  %tmp442 = fmul float %tmp53, %tmp414
496  %tmp443 = fadd float %tmp442, %tmp437
497  %tmp444 = fmul float %tmp54, %tmp414
498  %tmp445 = fadd float %tmp444, %tmp439
499  %tmp446 = fmul float %tmp55, %tmp414
500  %tmp447 = fadd float %tmp446, %tmp441
501  %tmp448 = insertelement <4 x float> undef, float %tmp443, i32 0
502  %tmp449 = insertelement <4 x float> %tmp448, float %tmp445, i32 1
503  %tmp450 = insertelement <4 x float> %tmp449, float %tmp447, i32 2
504  %tmp451 = insertelement <4 x float> %tmp450, float %tmp194, i32 3
505  %tmp452 = call <4 x float> @llvm.AMDGPU.cube(<4 x float> %tmp451)
506  %tmp453 = extractelement <4 x float> %tmp452, i32 0
507  %tmp454 = extractelement <4 x float> %tmp452, i32 1
508  %tmp455 = extractelement <4 x float> %tmp452, i32 2
509  %tmp456 = extractelement <4 x float> %tmp452, i32 3
510  %tmp457 = call float @fabs(float %tmp455)
511  %tmp458 = fdiv float 1.000000e+00, %tmp457
512  %tmp459 = fmul float %tmp453, %tmp458
513  %tmp460 = fadd float %tmp459, 1.500000e+00
514  %tmp461 = fmul float %tmp454, %tmp458
515  %tmp462 = fadd float %tmp461, 1.500000e+00
516  %tmp463 = bitcast float %tmp462 to i32
517  %tmp464 = bitcast float %tmp460 to i32
518  %tmp465 = bitcast float %tmp456 to i32
519  %tmp466 = insertelement <4 x i32> undef, i32 %tmp463, i32 0
520  %tmp467 = insertelement <4 x i32> %tmp466, i32 %tmp464, i32 1
521  %tmp468 = insertelement <4 x i32> %tmp467, i32 %tmp465, i32 2
522  %tmp469 = insertelement <4 x i32> %tmp468, i32 undef, i32 3
523  %tmp91.bc = bitcast <16 x i8> %tmp91 to <4 x i32>
524  %tmp470 = call <4 x float> @llvm.SI.image.sample.v4i32(<4 x i32> %tmp469, <8 x i32> %tmp89, <4 x i32> %tmp91.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
525  %tmp471 = extractelement <4 x float> %tmp470, i32 0
526  %tmp472 = extractelement <4 x float> %tmp470, i32 1
527  %tmp473 = extractelement <4 x float> %tmp470, i32 2
528  %tmp474 = fmul float %tmp430, %tmp471
529  %tmp475 = fadd float %tmp474, %tmp328
530  %tmp476 = fmul float %tmp431, %tmp472
531  %tmp477 = fadd float %tmp476, %tmp329
532  %tmp478 = fmul float %tmp432, %tmp473
533  %tmp479 = fadd float %tmp478, %tmp330
534  %tmp480 = fmul float %tmp106, %tmp106
535  %tmp481 = fmul float %tmp107, %tmp107
536  %tmp482 = fadd float %tmp481, %tmp480
537  %tmp483 = fmul float %tmp108, %tmp108
538  %tmp484 = fadd float %tmp482, %tmp483
539  %tmp485 = call float @llvm.amdgcn.rsq.f32(float %tmp484)
540  %tmp486 = fmul float %tmp106, %tmp485
541  %tmp487 = fmul float %tmp107, %tmp485
542  %tmp488 = fmul float %tmp108, %tmp485
543  %tmp489 = fmul float %tmp376, %tmp39
544  %tmp490 = fmul float %tmp377, %tmp40
545  %tmp491 = fmul float %tmp378, %tmp41
546  %tmp492 = fmul float %tmp358, %tmp486
547  %tmp493 = fmul float %tmp359, %tmp487
548  %tmp494 = fadd float %tmp493, %tmp492
549  %tmp495 = fmul float %tmp360, %tmp488
550  %tmp496 = fadd float %tmp494, %tmp495
551  %tmp497 = fmul float %tmp496, %tmp358
552  %tmp498 = fmul float %tmp496, %tmp359
553  %tmp499 = fmul float %tmp496, %tmp360
554  %tmp500 = fmul float 2.000000e+00, %tmp497
555  %tmp501 = fmul float 2.000000e+00, %tmp498
556  %tmp502 = fmul float 2.000000e+00, %tmp499
557  %tmp503 = fsub float -0.000000e+00, %tmp500
558  %tmp504 = fadd float %tmp486, %tmp503
559  %tmp505 = fsub float -0.000000e+00, %tmp501
560  %tmp506 = fadd float %tmp487, %tmp505
561  %tmp507 = fsub float -0.000000e+00, %tmp502
562  %tmp508 = fadd float %tmp488, %tmp507
563  %tmp509 = fmul float %tmp94, %tmp94
564  %tmp510 = fmul float %tmp95, %tmp95
565  %tmp511 = fadd float %tmp510, %tmp509
566  %tmp512 = fmul float %tmp96, %tmp96
567  %tmp513 = fadd float %tmp511, %tmp512
568  %tmp514 = call float @llvm.amdgcn.rsq.f32(float %tmp513)
569  %tmp515 = fmul float %tmp94, %tmp514
570  %tmp516 = fmul float %tmp95, %tmp514
571  %tmp517 = fmul float %tmp96, %tmp514
572  %tmp518 = fmul float %tmp504, %tmp515
573  %tmp519 = fmul float %tmp506, %tmp516
574  %tmp520 = fadd float %tmp519, %tmp518
575  %tmp521 = fmul float %tmp508, %tmp517
576  %tmp522 = fadd float %tmp520, %tmp521
577  %tmp523 = fsub float -0.000000e+00, %tmp522
578  %tmp524 = fcmp uge float %tmp523, 0.000000e+00
579  %tmp525 = select i1 %tmp524, float %tmp523, float 0.000000e+00
580  %tmp526 = fmul float %tmp42, %tmp379
581  %tmp527 = fadd float %tmp526, 1.000000e+00
582  %tmp528 = call float @llvm.pow.f32(float %tmp525, float %tmp527)
583  %tmp529 = fmul float %tmp475, %tmp36
584  %tmp530 = fmul float %tmp477, %tmp37
585  %tmp531 = fmul float %tmp479, %tmp38
586  %tmp532 = fmul float %tmp358, %tmp486
587  %tmp533 = fmul float %tmp359, %tmp487
588  %tmp534 = fadd float %tmp533, %tmp532
589  %tmp535 = fmul float %tmp360, %tmp488
590  %tmp536 = fadd float %tmp534, %tmp535
591  %tmp537 = fcmp uge float %tmp536, 0.000000e+00
592  %tmp538 = select i1 %tmp537, float %tmp536, float 0.000000e+00
593  %tmp539 = fmul float %tmp529, %tmp538
594  %tmp540 = fmul float %tmp530, %tmp538
595  %tmp541 = fmul float %tmp531, %tmp538
596  %tmp542 = fmul float %tmp489, %tmp528
597  %tmp543 = fadd float %tmp542, %tmp539
598  %tmp544 = fmul float %tmp490, %tmp528
599  %tmp545 = fadd float %tmp544, %tmp540
600  %tmp546 = fmul float %tmp491, %tmp528
601  %tmp547 = fadd float %tmp546, %tmp541
602  %tmp548 = fmul float %tmp475, %tmp33
603  %tmp549 = fmul float %tmp477, %tmp34
604  %tmp550 = fmul float %tmp479, %tmp35
605  %tmp551 = fmul float %tmp543, %tmp56
606  %tmp552 = fadd float %tmp551, %tmp548
607  %tmp553 = fmul float %tmp545, %tmp57
608  %tmp554 = fadd float %tmp553, %tmp549
609  %tmp555 = fmul float %tmp547, %tmp58
610  %tmp556 = fadd float %tmp555, %tmp550
611  %tmp557 = bitcast float %tmp135 to i32
612  %tmp558 = bitcast float %tmp181 to i32
613  %tmp559 = bitcast float %tmp136 to i32
614  %tmp560 = bitcast float %tmp182 to i32
615  %tmp561 = bitcast float %temp28.1 to i32
616  %tmp562 = bitcast float %temp29.1 to i32
617  %tmp563 = insertelement <8 x i32> undef, i32 %tmp557, i32 0
618  %tmp564 = insertelement <8 x i32> %tmp563, i32 %tmp558, i32 1
619  %tmp565 = insertelement <8 x i32> %tmp564, i32 %tmp559, i32 2
620  %tmp566 = insertelement <8 x i32> %tmp565, i32 %tmp560, i32 3
621  %tmp567 = insertelement <8 x i32> %tmp566, i32 %tmp561, i32 4
622  %tmp568 = insertelement <8 x i32> %tmp567, i32 %tmp562, i32 5
623  %tmp569 = insertelement <8 x i32> %tmp568, i32 undef, i32 6
624  %tmp570 = insertelement <8 x i32> %tmp569, i32 undef, i32 7
625  %tmp75.bc = bitcast <16 x i8> %tmp75 to <4 x i32>
626  %tmp571 = call <4 x float> @llvm.SI.image.sample.d.v8i32(<8 x i32> %tmp570, <8 x i32> %tmp73, <4 x i32> %tmp75.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
627  %tmp572 = extractelement <4 x float> %tmp571, i32 0
628  %tmp573 = extractelement <4 x float> %tmp571, i32 1
629  %tmp574 = extractelement <4 x float> %tmp571, i32 2
630  %tmp575 = fmul float %tmp572, %tmp43
631  %tmp576 = fadd float %tmp575, %tmp552
632  %tmp577 = fmul float %tmp573, %tmp44
633  %tmp578 = fadd float %tmp577, %tmp554
634  %tmp579 = fmul float %tmp574, %tmp45
635  %tmp580 = fadd float %tmp579, %tmp556
636  %tmp581 = call i32 @llvm.SI.packf16(float %tmp576, float %tmp578)
637  %tmp582 = bitcast i32 %tmp581 to float
638  %tmp583 = call i32 @llvm.SI.packf16(float %tmp580, float %tmp282)
639  %tmp584 = bitcast i32 %tmp583 to float
640  call void @llvm.SI.export(i32 15, i32 1, i32 1, i32 0, i32 1, float %tmp582, float %tmp584, float %tmp582, float %tmp584)
641  ret void
642
643ENDIF66:                                          ; preds = %LOOP65
644  %tmp585 = bitcast float %temp28.1 to i32
645  %tmp586 = bitcast float %temp29.1 to i32
646  %tmp587 = insertelement <8 x i32> %tmp236, i32 %tmp585, i32 4
647  %tmp588 = insertelement <8 x i32> %tmp587, i32 %tmp586, i32 5
648  %tmp589 = insertelement <8 x i32> %tmp588, i32 undef, i32 6
649  %tmp590 = insertelement <8 x i32> %tmp589, i32 undef, i32 7
650  %tmp591 = call <4 x float> @llvm.SI.image.sample.d.v8i32(<8 x i32> %tmp590, <8 x i32> %tmp61, <4 x i32> %tmp63.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
651  %tmp592 = extractelement <4 x float> %tmp591, i32 3
652  %tmp593 = fcmp oge float %temp30.1, %tmp592
653  %tmp594 = sext i1 %tmp593 to i32
654  %tmp595 = bitcast i32 %tmp594 to float
655  %tmp596 = bitcast float %tmp595 to i32
656  %tmp597 = and i32 %tmp596, 1065353216
657  %tmp598 = bitcast i32 %tmp597 to float
658  %tmp599 = fmul float 5.000000e-01, %temp32.0
659  %tmp600 = fsub float -0.000000e+00, %tmp599
660  %tmp601 = fmul float %tmp598, %temp32.0
661  %tmp602 = fadd float %tmp601, %tmp600
662  %tmp603 = fmul float %tmp213, %tmp602
663  %tmp604 = fadd float %tmp603, %temp28.1
664  %tmp605 = fmul float %tmp214, %tmp602
665  %tmp606 = fadd float %tmp605, %temp29.1
666  %tmp607 = fmul float %tmp215, %tmp602
667  %tmp608 = fadd float %tmp607, %temp30.1
668  %tmp609 = fadd float %temp24.1, 1.000000e+00
669  %tmp610 = fmul float %temp32.0, 5.000000e-01
670  br label %LOOP65
671}
672
673; CHECK-LABEL: {{^}}main1:
674; CHECK: s_endpgm
675define amdgpu_ps void @main1([17 x <16 x i8>] addrspace(2)* byval %arg, [32 x <16 x i8>] addrspace(2)* byval %arg1, [16 x <8 x i32>] addrspace(2)* byval %arg2, float inreg %arg3, i32 inreg %arg4, <2 x i32> %arg5, <2 x i32> %arg6, <2 x i32> %arg7, <3 x i32> %arg8, <2 x i32> %arg9, <2 x i32> %arg10, <2 x i32> %arg11, float %arg12, float %arg13, float %arg14, float %arg15, float %arg16, float %arg17, float %arg18, float %arg19, float %arg20) {
676main_body:
677  %tmp = getelementptr [17 x <16 x i8>], [17 x <16 x i8>] addrspace(2)* %arg, i64 0, i32 0
678  %tmp21 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp, !tbaa !0
679  %tmp22 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 0)
680  %tmp23 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 4)
681  %tmp24 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 8)
682  %tmp25 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 12)
683  %tmp26 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 28)
684  %tmp27 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 48)
685  %tmp28 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 52)
686  %tmp29 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 56)
687  %tmp30 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 64)
688  %tmp31 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 68)
689  %tmp32 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 72)
690  %tmp33 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 76)
691  %tmp34 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 128)
692  %tmp35 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 132)
693  %tmp36 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 144)
694  %tmp37 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 148)
695  %tmp38 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 152)
696  %tmp39 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 160)
697  %tmp40 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 164)
698  %tmp41 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 168)
699  %tmp42 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 172)
700  %tmp43 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 176)
701  %tmp44 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 180)
702  %tmp45 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 184)
703  %tmp46 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 192)
704  %tmp47 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 196)
705  %tmp48 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 200)
706  %tmp49 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 208)
707  %tmp50 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 212)
708  %tmp51 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 216)
709  %tmp52 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 220)
710  %tmp53 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 236)
711  %tmp54 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 240)
712  %tmp55 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 244)
713  %tmp56 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 248)
714  %tmp57 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 252)
715  %tmp58 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 256)
716  %tmp59 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 260)
717  %tmp60 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 264)
718  %tmp61 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 268)
719  %tmp62 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 272)
720  %tmp63 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 276)
721  %tmp64 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 280)
722  %tmp65 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 284)
723  %tmp66 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 288)
724  %tmp67 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 292)
725  %tmp68 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 464)
726  %tmp69 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 468)
727  %tmp70 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 472)
728  %tmp71 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 496)
729  %tmp72 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 500)
730  %tmp73 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 504)
731  %tmp74 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 512)
732  %tmp75 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 516)
733  %tmp76 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 524)
734  %tmp77 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 532)
735  %tmp78 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 536)
736  %tmp79 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 540)
737  %tmp80 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 544)
738  %tmp81 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 548)
739  %tmp82 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 552)
740  %tmp83 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 556)
741  %tmp84 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 560)
742  %tmp85 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 564)
743  %tmp86 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 568)
744  %tmp87 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 572)
745  %tmp88 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 576)
746  %tmp89 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 580)
747  %tmp90 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 584)
748  %tmp91 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 588)
749  %tmp92 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 592)
750  %tmp93 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 596)
751  %tmp94 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 600)
752  %tmp95 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 604)
753  %tmp96 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 608)
754  %tmp97 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 612)
755  %tmp98 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 616)
756  %tmp99 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 624)
757  %tmp100 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 628)
758  %tmp101 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 632)
759  %tmp102 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 636)
760  %tmp103 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 640)
761  %tmp104 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 644)
762  %tmp105 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 648)
763  %tmp106 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 652)
764  %tmp107 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 656)
765  %tmp108 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 660)
766  %tmp109 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 664)
767  %tmp110 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 668)
768  %tmp111 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 672)
769  %tmp112 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 676)
770  %tmp113 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 680)
771  %tmp114 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 684)
772  %tmp115 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 688)
773  %tmp116 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 692)
774  %tmp117 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 696)
775  %tmp118 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 700)
776  %tmp119 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 704)
777  %tmp120 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 708)
778  %tmp121 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 712)
779  %tmp122 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 716)
780  %tmp123 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 864)
781  %tmp124 = call float @llvm.SI.load.const(<16 x i8> %tmp21, i32 868)
782  %tmp125 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 0
783  %tmp126 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp125, !tbaa !0
784  %tmp127 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 0
785  %tmp128 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp127, !tbaa !0
786  %tmp129 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 1
787  %tmp130 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp129, !tbaa !0
788  %tmp131 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 1
789  %tmp132 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp131, !tbaa !0
790  %tmp133 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 2
791  %tmp134 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp133, !tbaa !0
792  %tmp135 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 2
793  %tmp136 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp135, !tbaa !0
794  %tmp137 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 3
795  %tmp138 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp137, !tbaa !0
796  %tmp139 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 3
797  %tmp140 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp139, !tbaa !0
798  %tmp141 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 4
799  %tmp142 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp141, !tbaa !0
800  %tmp143 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 4
801  %tmp144 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp143, !tbaa !0
802  %tmp145 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 5
803  %tmp146 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp145, !tbaa !0
804  %tmp147 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 5
805  %tmp148 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp147, !tbaa !0
806  %tmp149 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 6
807  %tmp150 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp149, !tbaa !0
808  %tmp151 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 6
809  %tmp152 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp151, !tbaa !0
810  %tmp153 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 7
811  %tmp154 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp153, !tbaa !0
812  %tmp155 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 7
813  %tmp156 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp155, !tbaa !0
814  %tmp157 = getelementptr [16 x <8 x i32>], [16 x <8 x i32>] addrspace(2)* %arg2, i64 0, i32 8
815  %tmp158 = load <8 x i32>, <8 x i32> addrspace(2)* %tmp157, !tbaa !0
816  %tmp159 = getelementptr [32 x <16 x i8>], [32 x <16 x i8>] addrspace(2)* %arg1, i64 0, i32 8
817  %tmp160 = load <16 x i8>, <16 x i8> addrspace(2)* %tmp159, !tbaa !0
818  %tmp161 = fcmp ugt float %arg17, 0.000000e+00
819  %tmp162 = select i1 %tmp161, float 1.000000e+00, float 0.000000e+00
820  %tmp163 = call float @llvm.SI.fs.interp(i32 0, i32 0, i32 %arg4, <2 x i32> %arg6)
821  %tmp164 = call float @llvm.SI.fs.interp(i32 1, i32 0, i32 %arg4, <2 x i32> %arg6)
822  %tmp165 = call float @llvm.SI.fs.interp(i32 2, i32 0, i32 %arg4, <2 x i32> %arg6)
823  %tmp166 = call float @llvm.SI.fs.interp(i32 3, i32 0, i32 %arg4, <2 x i32> %arg6)
824  %tmp167 = call float @llvm.SI.fs.interp(i32 0, i32 1, i32 %arg4, <2 x i32> %arg6)
825  %tmp168 = call float @llvm.SI.fs.interp(i32 1, i32 1, i32 %arg4, <2 x i32> %arg6)
826  %tmp169 = call float @llvm.SI.fs.interp(i32 2, i32 1, i32 %arg4, <2 x i32> %arg6)
827  %tmp170 = call float @llvm.SI.fs.interp(i32 3, i32 1, i32 %arg4, <2 x i32> %arg6)
828  %tmp171 = call float @llvm.SI.fs.interp(i32 0, i32 2, i32 %arg4, <2 x i32> %arg6)
829  %tmp172 = call float @llvm.SI.fs.interp(i32 1, i32 2, i32 %arg4, <2 x i32> %arg6)
830  %tmp173 = call float @llvm.SI.fs.interp(i32 2, i32 2, i32 %arg4, <2 x i32> %arg6)
831  %tmp174 = call float @llvm.SI.fs.interp(i32 3, i32 2, i32 %arg4, <2 x i32> %arg6)
832  %tmp175 = call float @llvm.SI.fs.interp(i32 0, i32 3, i32 %arg4, <2 x i32> %arg6)
833  %tmp176 = call float @llvm.SI.fs.interp(i32 1, i32 3, i32 %arg4, <2 x i32> %arg6)
834  %tmp177 = call float @llvm.SI.fs.interp(i32 2, i32 3, i32 %arg4, <2 x i32> %arg6)
835  %tmp178 = call float @llvm.SI.fs.interp(i32 3, i32 3, i32 %arg4, <2 x i32> %arg6)
836  %tmp179 = call float @llvm.SI.fs.interp(i32 0, i32 4, i32 %arg4, <2 x i32> %arg6)
837  %tmp180 = call float @llvm.SI.fs.interp(i32 1, i32 4, i32 %arg4, <2 x i32> %arg6)
838  %tmp181 = call float @llvm.SI.fs.interp(i32 2, i32 4, i32 %arg4, <2 x i32> %arg6)
839  %tmp182 = call float @llvm.SI.fs.interp(i32 3, i32 4, i32 %arg4, <2 x i32> %arg6)
840  %tmp183 = call float @llvm.SI.fs.interp(i32 0, i32 5, i32 %arg4, <2 x i32> %arg6)
841  %tmp184 = call float @llvm.SI.fs.interp(i32 1, i32 5, i32 %arg4, <2 x i32> %arg6)
842  %tmp185 = call float @llvm.SI.fs.interp(i32 2, i32 5, i32 %arg4, <2 x i32> %arg6)
843  %tmp186 = call float @llvm.SI.fs.interp(i32 3, i32 5, i32 %arg4, <2 x i32> %arg6)
844  %tmp187 = call float @llvm.SI.fs.interp(i32 0, i32 6, i32 %arg4, <2 x i32> %arg6)
845  %tmp188 = call float @llvm.SI.fs.interp(i32 1, i32 6, i32 %arg4, <2 x i32> %arg6)
846  %tmp189 = call float @llvm.SI.fs.interp(i32 2, i32 6, i32 %arg4, <2 x i32> %arg6)
847  %tmp190 = call float @llvm.SI.fs.interp(i32 3, i32 6, i32 %arg4, <2 x i32> %arg6)
848  %tmp191 = call float @llvm.SI.fs.interp(i32 0, i32 7, i32 %arg4, <2 x i32> %arg6)
849  %tmp192 = call float @llvm.SI.fs.interp(i32 1, i32 7, i32 %arg4, <2 x i32> %arg6)
850  %tmp193 = call float @llvm.SI.fs.interp(i32 2, i32 7, i32 %arg4, <2 x i32> %arg6)
851  %tmp194 = call float @llvm.SI.fs.interp(i32 3, i32 7, i32 %arg4, <2 x i32> %arg6)
852  %tmp195 = fmul float %arg14, %tmp123
853  %tmp196 = fadd float %tmp195, %tmp124
854  %tmp197 = call float @llvm.AMDGPU.clamp.f32(float %tmp162, float 0.000000e+00, float 1.000000e+00)
855  %tmp198 = call float @llvm.AMDGPU.clamp.f32(float 0.000000e+00, float 0.000000e+00, float 1.000000e+00)
856  %tmp199 = call float @llvm.AMDGPU.clamp.f32(float 0.000000e+00, float 0.000000e+00, float 1.000000e+00)
857  %tmp200 = call float @llvm.AMDGPU.clamp.f32(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00)
858  %tmp201 = bitcast float %tmp197 to i32
859  %tmp202 = icmp ne i32 %tmp201, 0
860  %. = select i1 %tmp202, float -1.000000e+00, float 1.000000e+00
861  %tmp203 = fsub float -0.000000e+00, %tmp163
862  %tmp204 = fadd float %tmp43, %tmp203
863  %tmp205 = fsub float -0.000000e+00, %tmp164
864  %tmp206 = fadd float %tmp44, %tmp205
865  %tmp207 = fsub float -0.000000e+00, %tmp165
866  %tmp208 = fadd float %tmp45, %tmp207
867  %tmp209 = fmul float %tmp204, %tmp204
868  %tmp210 = fmul float %tmp206, %tmp206
869  %tmp211 = fadd float %tmp210, %tmp209
870  %tmp212 = fmul float %tmp208, %tmp208
871  %tmp213 = fadd float %tmp211, %tmp212
872  %tmp214 = call float @llvm.amdgcn.rsq.f32(float %tmp213)
873  %tmp215 = fmul float %tmp204, %tmp214
874  %tmp216 = fmul float %tmp206, %tmp214
875  %tmp217 = fmul float %tmp208, %tmp214
876  %tmp218 = fmul float %., %tmp53
877  %tmp219 = fmul float %arg13, %tmp46
878  %tmp220 = fmul float %tmp196, %tmp47
879  %tmp221 = bitcast float %tmp173 to i32
880  %tmp222 = bitcast float %tmp174 to i32
881  %tmp223 = insertelement <2 x i32> undef, i32 %tmp221, i32 0
882  %tmp224 = insertelement <2 x i32> %tmp223, i32 %tmp222, i32 1
883  %tmp132.bc = bitcast <16 x i8> %tmp132 to <4 x i32>
884  %tmp225 = call <4 x float> @llvm.SI.image.sample.v2i32(<2 x i32> %tmp224, <8 x i32> %tmp130, <4 x i32> %tmp132.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
885  %tmp226 = extractelement <4 x float> %tmp225, i32 0
886  %tmp227 = extractelement <4 x float> %tmp225, i32 1
887  %tmp228 = extractelement <4 x float> %tmp225, i32 2
888  %tmp229 = extractelement <4 x float> %tmp225, i32 3
889  %tmp230 = fmul float %tmp226, 0x4012611180000000
890  %tmp231 = fmul float %tmp227, 0x4012611180000000
891  %tmp232 = fmul float %tmp228, 0x4012611180000000
892  %one.sub.a.i = fsub float 1.000000e+00, %tmp26
893  %result.i = fadd float %tmp230, %one.sub.a.i
894  %one.sub.a.i43 = fsub float 1.000000e+00, %tmp26
895  %result.i44 = fadd float %tmp231, %one.sub.a.i43
896  %one.sub.a.i41 = fsub float 1.000000e+00, %tmp26
897  %result.i42 = fadd float %tmp232, %one.sub.a.i41
898  %tmp233 = fmul float %tmp215, %tmp183
899  %tmp234 = fmul float %tmp216, %tmp184
900  %tmp235 = fadd float %tmp234, %tmp233
901  %tmp236 = fmul float %tmp217, %tmp185
902  %tmp237 = fadd float %tmp235, %tmp236
903  %tmp238 = fmul float %tmp215, %tmp186
904  %tmp239 = fmul float %tmp216, %tmp187
905  %tmp240 = fadd float %tmp239, %tmp238
906  %tmp241 = fmul float %tmp217, %tmp188
907  %tmp242 = fadd float %tmp240, %tmp241
908  %tmp243 = fmul float %tmp215, %tmp189
909  %tmp244 = fmul float %tmp216, %tmp190
910  %tmp245 = fadd float %tmp244, %tmp243
911  %tmp246 = fmul float %tmp217, %tmp191
912  %tmp247 = fadd float %tmp245, %tmp246
913  %tmp248 = call float @llvm.AMDGPU.clamp.f32(float %tmp247, float 0.000000e+00, float 1.000000e+00)
914  %tmp249 = fmul float %tmp213, 0x3F5A36E2E0000000
915  %tmp250 = call float @llvm.AMDGPU.clamp.f32(float %tmp249, float 0.000000e+00, float 1.000000e+00)
916  %tmp251 = fsub float -0.000000e+00, %tmp250
917  %tmp252 = fadd float 1.000000e+00, %tmp251
918  %tmp253 = call float @llvm.pow.f32(float %tmp248, float 2.500000e-01)
919  %tmp254 = fmul float %tmp38, %tmp253
920  %tmp255 = fmul float %tmp237, %tmp254
921  %tmp256 = fmul float %tmp242, %tmp254
922  %tmp257 = fmul float %tmp255, %tmp229
923  %tmp258 = fmul float %tmp256, %tmp229
924  %tmp259 = fadd float %tmp248, 0x3EE4F8B580000000
925  %tmp260 = fsub float -0.000000e+00, %tmp248
926  %tmp261 = fadd float 1.000000e+00, %tmp260
927  %tmp262 = fmul float 1.200000e+01, %tmp261
928  %tmp263 = fadd float %tmp262, 4.000000e+00
929  %tmp264 = fsub float -0.000000e+00, %tmp263
930  %tmp265 = fmul float %tmp264, %tmp259
931  %tmp266 = fsub float -0.000000e+00, %tmp263
932  %tmp267 = fmul float %tmp266, %tmp259
933  %tmp268 = fsub float -0.000000e+00, %tmp263
934  %tmp269 = fmul float %tmp268, %tmp259
935  %tmp270 = fdiv float 1.000000e+00, %tmp265
936  %tmp271 = fdiv float 1.000000e+00, %tmp267
937  %tmp272 = fdiv float 1.000000e+00, %tmp269
938  %tmp273 = fmul float %tmp257, %tmp270
939  %tmp274 = fmul float %tmp258, %tmp271
940  %tmp275 = fmul float %tmp259, %tmp272
941  br label %LOOP
942
943LOOP:                                             ; preds = %LOOP, %main_body
944  %temp144.0 = phi float [ 1.000000e+00, %main_body ], [ %tmp288, %LOOP ]
945  %temp168.0 = phi float [ %tmp175, %main_body ], [ %tmp284, %LOOP ]
946  %temp169.0 = phi float [ %tmp176, %main_body ], [ %tmp285, %LOOP ]
947  %temp170.0 = phi float [ %tmp252, %main_body ], [ %tmp286, %LOOP ]
948  %tmp276 = bitcast float %temp168.0 to i32
949  %tmp277 = bitcast float %temp169.0 to i32
950  %tmp278 = insertelement <4 x i32> undef, i32 %tmp276, i32 0
951  %tmp279 = insertelement <4 x i32> %tmp278, i32 %tmp277, i32 1
952  %tmp280 = insertelement <4 x i32> %tmp279, i32 0, i32 2
953  %tmp281 = insertelement <4 x i32> %tmp280, i32 undef, i32 3
954  %tmp148.bc = bitcast <16 x i8> %tmp148 to <4 x i32>
955  %tmp282 = call <4 x float> @llvm.SI.image.sample.l.v4i32(<4 x i32> %tmp281, <8 x i32> %tmp146, <4 x i32> %tmp148.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
956  %tmp283 = extractelement <4 x float> %tmp282, i32 3
957  %tmp284 = fadd float %temp168.0, %tmp273
958  %tmp285 = fadd float %temp169.0, %tmp274
959  %tmp286 = fadd float %temp170.0, %tmp275
960  %tmp287 = fsub float -0.000000e+00, %tmp283
961  %tmp288 = fadd float %tmp286, %tmp287
962  %tmp289 = fcmp oge float 0.000000e+00, %tmp288
963  %tmp290 = sext i1 %tmp289 to i32
964  %tmp291 = bitcast i32 %tmp290 to float
965  %tmp292 = bitcast float %tmp291 to i32
966  %tmp293 = icmp ne i32 %tmp292, 0
967  br i1 %tmp293, label %IF189, label %LOOP
968
969IF189:                                            ; preds = %LOOP
970  %tmp294 = extractelement <4 x float> %tmp282, i32 0
971  %tmp295 = extractelement <4 x float> %tmp282, i32 1
972  %tmp296 = extractelement <4 x float> %tmp282, i32 2
973  %tmp297 = fsub float -0.000000e+00, %tmp288
974  %tmp298 = fadd float %temp144.0, %tmp297
975  %tmp299 = fdiv float 1.000000e+00, %tmp298
976  %tmp300 = fmul float %tmp288, %tmp299
977  %tmp301 = fadd float %tmp300, -1.000000e+00
978  %tmp302 = fmul float %tmp301, %tmp273
979  %tmp303 = fadd float %tmp302, %tmp284
980  %tmp304 = fmul float %tmp301, %tmp274
981  %tmp305 = fadd float %tmp304, %tmp285
982  %tmp306 = fsub float -0.000000e+00, %tmp175
983  %tmp307 = fadd float %tmp303, %tmp306
984  %tmp308 = fsub float -0.000000e+00, %tmp176
985  %tmp309 = fadd float %tmp305, %tmp308
986  %tmp310 = fadd float %tmp175, %tmp307
987  %tmp311 = fadd float %tmp176, %tmp309
988  %tmp312 = fmul float %tmp307, %tmp66
989  %tmp313 = fmul float %tmp309, %tmp67
990  %tmp314 = fmul float %tmp312, %tmp54
991  %tmp315 = fmul float %tmp312, %tmp55
992  %tmp316 = fmul float %tmp313, %tmp56
993  %tmp317 = fadd float %tmp316, %tmp314
994  %tmp318 = fmul float %tmp313, %tmp57
995  %tmp319 = fadd float %tmp318, %tmp315
996  %tmp320 = fadd float %tmp177, %tmp317
997  %tmp321 = fadd float %tmp178, %tmp319
998  %tmp322 = fmul float %tmp312, %tmp58
999  %tmp323 = fmul float %tmp312, %tmp59
1000  %tmp324 = fmul float %tmp312, %tmp60
1001  %tmp325 = fmul float %tmp312, %tmp61
1002  %tmp326 = fmul float %tmp313, %tmp62
1003  %tmp327 = fadd float %tmp326, %tmp322
1004  %tmp328 = fmul float %tmp313, %tmp63
1005  %tmp329 = fadd float %tmp328, %tmp323
1006  %tmp330 = fmul float %tmp313, %tmp64
1007  %tmp331 = fadd float %tmp330, %tmp324
1008  %tmp332 = fmul float %tmp313, %tmp65
1009  %tmp333 = fadd float %tmp332, %tmp325
1010  %tmp334 = fadd float %tmp167, %tmp327
1011  %tmp335 = fadd float %tmp168, %tmp329
1012  %tmp336 = fadd float %tmp169, %tmp331
1013  %tmp337 = fadd float %tmp170, %tmp333
1014  %tmp338 = bitcast float %tmp334 to i32
1015  %tmp339 = bitcast float %tmp335 to i32
1016  %tmp340 = insertelement <2 x i32> undef, i32 %tmp338, i32 0
1017  %tmp341 = insertelement <2 x i32> %tmp340, i32 %tmp339, i32 1
1018  %tmp136.bc = bitcast <16 x i8> %tmp136 to <4 x i32>
1019  %tmp342 = call <4 x float> @llvm.SI.image.sample.v2i32(<2 x i32> %tmp341, <8 x i32> %tmp134, <4 x i32> %tmp136.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
1020  %tmp343 = extractelement <4 x float> %tmp342, i32 0
1021  %tmp344 = extractelement <4 x float> %tmp342, i32 1
1022  %tmp345 = extractelement <4 x float> %tmp342, i32 2
1023  %tmp346 = extractelement <4 x float> %tmp342, i32 3
1024  %tmp347 = fmul float %tmp343, %tmp22
1025  %tmp348 = fmul float %tmp344, %tmp23
1026  %tmp349 = fmul float %tmp345, %tmp24
1027  %tmp350 = fmul float %tmp346, %tmp25
1028  %tmp351 = fmul float %tmp347, %tmp179
1029  %tmp352 = fmul float %tmp348, %tmp180
1030  %tmp353 = fmul float %tmp349, %tmp181
1031  %tmp354 = fmul float %tmp350, %tmp182
1032  %tmp355 = fsub float -0.000000e+00, %tmp346
1033  %tmp356 = fadd float 1.000000e+00, %tmp355
1034  %tmp357 = fmul float %tmp356, %tmp48
1035  %one.sub.a.i37 = fsub float 1.000000e+00, %tmp357
1036  %one.sub.ac.i38 = fmul float %one.sub.a.i37, %tmp351
1037  %mul.i39 = fmul float %tmp343, %tmp351
1038  %result.i40 = fadd float %mul.i39, %one.sub.ac.i38
1039  %one.sub.a.i33 = fsub float 1.000000e+00, %tmp357
1040  %one.sub.ac.i34 = fmul float %one.sub.a.i33, %tmp352
1041  %mul.i35 = fmul float %tmp344, %tmp352
1042  %result.i36 = fadd float %mul.i35, %one.sub.ac.i34
1043  %one.sub.a.i29 = fsub float 1.000000e+00, %tmp357
1044  %one.sub.ac.i30 = fmul float %one.sub.a.i29, %tmp353
1045  %mul.i31 = fmul float %tmp345, %tmp353
1046  %result.i32 = fadd float %mul.i31, %one.sub.ac.i30
1047  %tmp358 = bitcast float %tmp336 to i32
1048  %tmp359 = bitcast float %tmp337 to i32
1049  %tmp360 = insertelement <2 x i32> undef, i32 %tmp358, i32 0
1050  %tmp361 = insertelement <2 x i32> %tmp360, i32 %tmp359, i32 1
1051  %tmp152.bc = bitcast <16 x i8> %tmp152 to <4 x i32>
1052  %tmp362 = call <4 x float> @llvm.SI.image.sample.v2i32(<2 x i32> %tmp361, <8 x i32> %tmp150, <4 x i32> %tmp152.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
1053  %tmp363 = extractelement <4 x float> %tmp362, i32 2
1054  %tmp364 = fmul float %result.i40, %result.i
1055  %tmp365 = fmul float %result.i36, %result.i44
1056  %tmp366 = fmul float %result.i32, %result.i42
1057  %tmp367 = fmul float %tmp354, %tmp229
1058  %tmp368 = bitcast float %tmp310 to i32
1059  %tmp369 = bitcast float %tmp311 to i32
1060  %tmp370 = insertelement <2 x i32> undef, i32 %tmp368, i32 0
1061  %tmp371 = insertelement <2 x i32> %tmp370, i32 %tmp369, i32 1
1062  %tmp140.bc = bitcast <16 x i8> %tmp140 to <4 x i32>
1063  %tmp372 = call <4 x float> @llvm.SI.image.sample.v2i32(<2 x i32> %tmp371, <8 x i32> %tmp138, <4 x i32> %tmp140.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
1064  %tmp373 = extractelement <4 x float> %tmp372, i32 0
1065  %tmp374 = extractelement <4 x float> %tmp372, i32 1
1066  %tmp375 = extractelement <4 x float> %tmp372, i32 2
1067  %tmp376 = extractelement <4 x float> %tmp372, i32 3
1068  %tmp377 = fcmp olt float 0.000000e+00, %tmp375
1069  %tmp378 = sext i1 %tmp377 to i32
1070  %tmp379 = bitcast i32 %tmp378 to float
1071  %tmp380 = bitcast float %tmp379 to i32
1072  %tmp381 = icmp ne i32 %tmp380, 0
1073  %.224 = select i1 %tmp381, float %tmp374, float %tmp373
1074  %.225 = select i1 %tmp381, float %tmp376, float %tmp374
1075  %tmp382 = bitcast float %tmp320 to i32
1076  %tmp383 = bitcast float %tmp321 to i32
1077  %tmp384 = insertelement <2 x i32> undef, i32 %tmp382, i32 0
1078  %tmp385 = insertelement <2 x i32> %tmp384, i32 %tmp383, i32 1
1079  %tmp144.bc = bitcast <16 x i8> %tmp144 to <4 x i32>
1080  %tmp386 = call <4 x float> @llvm.SI.image.sample.v2i32(<2 x i32> %tmp385, <8 x i32> %tmp142, <4 x i32> %tmp144.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
1081  %tmp387 = extractelement <4 x float> %tmp386, i32 0
1082  %tmp388 = extractelement <4 x float> %tmp386, i32 1
1083  %tmp389 = extractelement <4 x float> %tmp386, i32 2
1084  %tmp390 = extractelement <4 x float> %tmp386, i32 3
1085  %tmp391 = fcmp olt float 0.000000e+00, %tmp389
1086  %tmp392 = sext i1 %tmp391 to i32
1087  %tmp393 = bitcast i32 %tmp392 to float
1088  %tmp394 = bitcast float %tmp393 to i32
1089  %tmp395 = icmp ne i32 %tmp394, 0
1090  %temp112.1 = select i1 %tmp395, float %tmp388, float %tmp387
1091  %temp113.1 = select i1 %tmp395, float %tmp390, float %tmp388
1092  %tmp396 = fmul float %.224, 2.000000e+00
1093  %tmp397 = fadd float %tmp396, -1.000000e+00
1094  %tmp398 = fmul float %.225, 2.000000e+00
1095  %tmp399 = fadd float %tmp398, -1.000000e+00
1096  %tmp400 = fmul float %temp112.1, 2.000000e+00
1097  %tmp401 = fadd float %tmp400, -1.000000e+00
1098  %tmp402 = fmul float %temp113.1, 2.000000e+00
1099  %tmp403 = fadd float %tmp402, -1.000000e+00
1100  %tmp404 = fsub float -0.000000e+00, %tmp397
1101  %tmp405 = fmul float %tmp404, %tmp34
1102  %tmp406 = fsub float -0.000000e+00, %tmp399
1103  %tmp407 = fmul float %tmp406, %tmp34
1104  %tmp408 = fsub float -0.000000e+00, %tmp401
1105  %tmp409 = fmul float %tmp408, %tmp35
1106  %tmp410 = fsub float -0.000000e+00, %tmp403
1107  %tmp411 = fmul float %tmp410, %tmp35
1108  %tmp412 = fmul float %tmp409, %tmp363
1109  %tmp413 = fmul float %tmp411, %tmp363
1110  %tmp414 = call float @fabs(float %tmp405)
1111  %tmp415 = call float @fabs(float %tmp407)
1112  %tmp416 = fsub float -0.000000e+00, %tmp414
1113  %tmp417 = fadd float 1.000000e+00, %tmp416
1114  %tmp418 = fsub float -0.000000e+00, %tmp415
1115  %tmp419 = fadd float 1.000000e+00, %tmp418
1116  %tmp420 = fmul float %tmp417, %tmp412
1117  %tmp421 = fadd float %tmp420, %tmp405
1118  %tmp422 = fmul float %tmp419, %tmp413
1119  %tmp423 = fadd float %tmp422, %tmp407
1120  %tmp424 = fmul float %tmp421, %tmp421
1121  %tmp425 = fmul float %tmp423, %tmp423
1122  %tmp426 = fadd float %tmp424, %tmp425
1123  %tmp427 = fsub float -0.000000e+00, %tmp426
1124  %tmp428 = fadd float 0x3FF00068E0000000, %tmp427
1125  %tmp429 = call float @llvm.AMDGPU.clamp.f32(float %tmp428, float 0.000000e+00, float 1.000000e+00)
1126  %tmp430 = call float @llvm.amdgcn.rsq.f32(float %tmp429)
1127  %tmp431 = fmul float %tmp430, %tmp429
1128  %tmp432 = fsub float -0.000000e+00, %tmp429
1129  %cmp = fcmp ogt float 0.000000e+00, %tmp432
1130  %tmp433 = select i1 %cmp, float %tmp431, float 0.000000e+00
1131  %tmp434 = fmul float %tmp183, %tmp421
1132  %tmp435 = fmul float %tmp184, %tmp421
1133  %tmp436 = fmul float %tmp185, %tmp421
1134  %tmp437 = fmul float %tmp186, %tmp423
1135  %tmp438 = fadd float %tmp437, %tmp434
1136  %tmp439 = fmul float %tmp187, %tmp423
1137  %tmp440 = fadd float %tmp439, %tmp435
1138  %tmp441 = fmul float %tmp188, %tmp423
1139  %tmp442 = fadd float %tmp441, %tmp436
1140  %tmp443 = fmul float %tmp189, %tmp433
1141  %tmp444 = fadd float %tmp443, %tmp438
1142  %tmp445 = fmul float %tmp190, %tmp433
1143  %tmp446 = fadd float %tmp445, %tmp440
1144  %tmp447 = fmul float %tmp191, %tmp433
1145  %tmp448 = fadd float %tmp447, %tmp442
1146  %tmp449 = fmul float %tmp444, %tmp444
1147  %tmp450 = fmul float %tmp446, %tmp446
1148  %tmp451 = fadd float %tmp450, %tmp449
1149  %tmp452 = fmul float %tmp448, %tmp448
1150  %tmp453 = fadd float %tmp451, %tmp452
1151  %tmp454 = call float @llvm.amdgcn.rsq.f32(float %tmp453)
1152  %tmp455 = fmul float %tmp444, %tmp454
1153  %tmp456 = fmul float %tmp446, %tmp454
1154  %tmp457 = fmul float %tmp448, %tmp454
1155  %tmp458 = fcmp olt float 0.000000e+00, %tmp218
1156  %tmp459 = sext i1 %tmp458 to i32
1157  %tmp460 = bitcast i32 %tmp459 to float
1158  %tmp461 = bitcast float %tmp460 to i32
1159  %tmp462 = icmp ne i32 %tmp461, 0
1160  br i1 %tmp462, label %IF198, label %ENDIF197
1161
1162IF198:                                            ; preds = %IF189
1163  %tmp463 = fsub float -0.000000e+00, %tmp455
1164  %tmp464 = fsub float -0.000000e+00, %tmp456
1165  %tmp465 = fsub float -0.000000e+00, %tmp457
1166  br label %ENDIF197
1167
1168ENDIF197:                                         ; preds = %IF198, %IF189
1169  %temp14.0 = phi float [ %tmp465, %IF198 ], [ %tmp457, %IF189 ]
1170  %temp13.0 = phi float [ %tmp464, %IF198 ], [ %tmp456, %IF189 ]
1171  %temp12.0 = phi float [ %tmp463, %IF198 ], [ %tmp455, %IF189 ]
1172  %tmp466 = bitcast float %tmp219 to i32
1173  %tmp467 = bitcast float %tmp220 to i32
1174  %tmp468 = insertelement <2 x i32> undef, i32 %tmp466, i32 0
1175  %tmp469 = insertelement <2 x i32> %tmp468, i32 %tmp467, i32 1
1176  %tmp160.bc = bitcast <16 x i8> %tmp160 to <4 x i32>
1177  %tmp470 = call <4 x float> @llvm.SI.image.sample.v2i32(<2 x i32> %tmp469, <8 x i32> %tmp158, <4 x i32> %tmp160.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
1178  %tmp471 = extractelement <4 x float> %tmp470, i32 0
1179  %tmp472 = extractelement <4 x float> %tmp470, i32 1
1180  %tmp473 = extractelement <4 x float> %tmp470, i32 2
1181  %tmp474 = extractelement <4 x float> %tmp470, i32 3
1182  %tmp475 = fmul float %tmp471, %tmp39
1183  %tmp476 = fadd float %tmp475, %tmp40
1184  %tmp477 = fmul float %tmp472, %tmp39
1185  %tmp478 = fadd float %tmp477, %tmp40
1186  %tmp479 = fmul float %tmp473, %tmp39
1187  %tmp480 = fadd float %tmp479, %tmp40
1188  %tmp481 = fmul float %tmp474, %tmp41
1189  %tmp482 = fadd float %tmp481, %tmp42
1190  %tmp483 = bitcast float %tmp171 to i32
1191  %tmp484 = bitcast float %tmp172 to i32
1192  %tmp485 = insertelement <2 x i32> undef, i32 %tmp483, i32 0
1193  %tmp486 = insertelement <2 x i32> %tmp485, i32 %tmp484, i32 1
1194  %tmp156.bc = bitcast <16 x i8> %tmp156 to <4 x i32>
1195  %tmp487 = call <4 x float> @llvm.SI.image.sample.v2i32(<2 x i32> %tmp486, <8 x i32> %tmp154, <4 x i32> %tmp156.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
1196  %tmp488 = extractelement <4 x float> %tmp487, i32 0
1197  %tmp489 = extractelement <4 x float> %tmp487, i32 1
1198  %tmp490 = extractelement <4 x float> %tmp487, i32 2
1199  %tmp491 = extractelement <4 x float> %tmp487, i32 3
1200  %tmp492 = fmul float %tmp491, 3.200000e+01
1201  %tmp493 = fadd float %tmp492, -1.600000e+01
1202  %tmp494 = call float @llvm.exp2.f32(float %tmp493)
1203  %tmp495 = fmul float %tmp488, %tmp494
1204  %tmp496 = fmul float %tmp489, %tmp494
1205  %tmp497 = fmul float %tmp490, %tmp494
1206  %tmp498 = fmul float %tmp27, %tmp495
1207  %tmp499 = fadd float %tmp498, %tmp192
1208  %tmp500 = fmul float %tmp28, %tmp496
1209  %tmp501 = fadd float %tmp500, %tmp193
1210  %tmp502 = fmul float %tmp29, %tmp497
1211  %tmp503 = fadd float %tmp502, %tmp194
1212  %tmp504 = fmul float %tmp499, %tmp482
1213  %tmp505 = fmul float %tmp501, %tmp482
1214  %tmp506 = fmul float %tmp503, %tmp482
1215  %tmp507 = fmul float %tmp482, 5.000000e-01
1216  %tmp508 = fadd float %tmp507, 5.000000e-01
1217  %tmp509 = fmul float %tmp476, %tmp508
1218  %tmp510 = fadd float %tmp509, %tmp504
1219  %tmp511 = fmul float %tmp478, %tmp508
1220  %tmp512 = fadd float %tmp511, %tmp505
1221  %tmp513 = fmul float %tmp480, %tmp508
1222  %tmp514 = fadd float %tmp513, %tmp506
1223  %tmp515 = fmul float %tmp510, %tmp364
1224  %tmp516 = fmul float %tmp512, %tmp365
1225  %tmp517 = fmul float %tmp514, %tmp366
1226  %tmp518 = fmul float %tmp421, 0x3FDB272440000000
1227  %tmp519 = fmul float %tmp423, 0xBFDB272440000000
1228  %tmp520 = fadd float %tmp519, %tmp518
1229  %tmp521 = fmul float %tmp433, 0x3FE99999A0000000
1230  %tmp522 = fadd float %tmp520, %tmp521
1231  %tmp523 = fmul float %tmp522, 5.000000e-01
1232  %tmp524 = fadd float %tmp523, 0x3FE3333340000000
1233  %tmp525 = fmul float %tmp524, %tmp524
1234  %tmp526 = fmul float %tmp515, %tmp525
1235  %tmp527 = fmul float %tmp516, %tmp525
1236  %tmp528 = fmul float %tmp517, %tmp525
1237  %tmp529 = fsub float -0.000000e+00, %tmp71
1238  %tmp530 = fsub float -0.000000e+00, %tmp72
1239  %tmp531 = fsub float -0.000000e+00, %tmp73
1240  %tmp532 = fmul float %temp12.0, %tmp529
1241  %tmp533 = fmul float %temp13.0, %tmp530
1242  %tmp534 = fadd float %tmp533, %tmp532
1243  %tmp535 = fmul float %temp14.0, %tmp531
1244  %tmp536 = fadd float %tmp534, %tmp535
1245  %tmp537 = call float @llvm.AMDGPU.clamp.f32(float %tmp536, float 0.000000e+00, float 1.000000e+00)
1246  %tmp538 = fmul float %tmp364, %tmp537
1247  %tmp539 = fmul float %tmp365, %tmp537
1248  %tmp540 = fmul float %tmp366, %tmp537
1249  %tmp541 = fmul float %tmp538, %tmp68
1250  %tmp542 = fmul float %tmp539, %tmp69
1251  %tmp543 = fmul float %tmp540, %tmp70
1252  %tmp544 = fsub float -0.000000e+00, %tmp163
1253  %tmp545 = fadd float %tmp96, %tmp544
1254  %tmp546 = fsub float -0.000000e+00, %tmp164
1255  %tmp547 = fadd float %tmp97, %tmp546
1256  %tmp548 = fsub float -0.000000e+00, %tmp165
1257  %tmp549 = fadd float %tmp98, %tmp548
1258  %tmp550 = fmul float %tmp545, %tmp545
1259  %tmp551 = fmul float %tmp547, %tmp547
1260  %tmp552 = fadd float %tmp551, %tmp550
1261  %tmp553 = fmul float %tmp549, %tmp549
1262  %tmp554 = fadd float %tmp552, %tmp553
1263  %tmp555 = call float @llvm.amdgcn.rsq.f32(float %tmp554)
1264  %tmp556 = fmul float %tmp555, %tmp554
1265  %tmp557 = fsub float -0.000000e+00, %tmp554
1266  %cmp1 = fcmp ogt float %tmp557, 0.000000e+00
1267  %tmp558 = select i1 %cmp1, float %tmp556, float 0.000000e+00
1268  %tmp559 = fsub float -0.000000e+00, %tmp83
1269  %tmp560 = fadd float %tmp558, %tmp559
1270  %tmp561 = fsub float -0.000000e+00, %tmp82
1271  %tmp562 = fadd float %tmp558, %tmp561
1272  %tmp563 = fsub float -0.000000e+00, %tmp81
1273  %tmp564 = fadd float %tmp558, %tmp563
1274  %tmp565 = fsub float -0.000000e+00, %tmp83
1275  %tmp566 = fadd float %tmp82, %tmp565
1276  %tmp567 = fsub float -0.000000e+00, %tmp82
1277  %tmp568 = fadd float %tmp81, %tmp567
1278  %tmp569 = fsub float -0.000000e+00, %tmp81
1279  %tmp570 = fadd float %tmp80, %tmp569
1280  %tmp571 = fdiv float 1.000000e+00, %tmp566
1281  %tmp572 = fdiv float 1.000000e+00, %tmp568
1282  %tmp573 = fdiv float 1.000000e+00, %tmp570
1283  %tmp574 = fmul float %tmp560, %tmp571
1284  %tmp575 = fmul float %tmp562, %tmp572
1285  %tmp576 = fmul float %tmp564, %tmp573
1286  %tmp577 = fcmp olt float %tmp558, %tmp82
1287  %tmp578 = sext i1 %tmp577 to i32
1288  %tmp579 = bitcast i32 %tmp578 to float
1289  %tmp580 = bitcast float %tmp579 to i32
1290  %tmp581 = icmp ne i32 %tmp580, 0
1291  br i1 %tmp581, label %ENDIF200, label %ELSE202
1292
1293ELSE202:                                          ; preds = %ENDIF197
1294  %tmp582 = fcmp olt float %tmp558, %tmp81
1295  %tmp583 = sext i1 %tmp582 to i32
1296  %tmp584 = bitcast i32 %tmp583 to float
1297  %tmp585 = bitcast float %tmp584 to i32
1298  %tmp586 = icmp ne i32 %tmp585, 0
1299  br i1 %tmp586, label %ENDIF200, label %ELSE205
1300
1301ENDIF200:                                         ; preds = %ELSE205, %ELSE202, %ENDIF197
1302  %temp80.0 = phi float [ %tmp574, %ENDIF197 ], [ %.226, %ELSE205 ], [ %tmp575, %ELSE202 ]
1303  %temp88.0 = phi float [ %tmp121, %ENDIF197 ], [ %.227, %ELSE205 ], [ %tmp119, %ELSE202 ]
1304  %temp89.0 = phi float [ %tmp122, %ENDIF197 ], [ %.228, %ELSE205 ], [ %tmp120, %ELSE202 ]
1305  %temp90.0 = phi float [ %tmp119, %ENDIF197 ], [ %tmp115, %ELSE205 ], [ %tmp117, %ELSE202 ]
1306  %temp91.0 = phi float [ %tmp120, %ENDIF197 ], [ %tmp116, %ELSE205 ], [ %tmp118, %ELSE202 ]
1307  %tmp587 = fcmp olt float %tmp558, %tmp82
1308  %tmp588 = sext i1 %tmp587 to i32
1309  %tmp589 = bitcast i32 %tmp588 to float
1310  %tmp590 = bitcast float %tmp589 to i32
1311  %tmp591 = icmp ne i32 %tmp590, 0
1312  br i1 %tmp591, label %ENDIF209, label %ELSE211
1313
1314ELSE205:                                          ; preds = %ELSE202
1315  %tmp592 = fcmp olt float %tmp558, %tmp80
1316  %tmp593 = sext i1 %tmp592 to i32
1317  %tmp594 = bitcast i32 %tmp593 to float
1318  %tmp595 = bitcast float %tmp594 to i32
1319  %tmp596 = icmp ne i32 %tmp595, 0
1320  %.226 = select i1 %tmp596, float %tmp576, float 1.000000e+00
1321  %.227 = select i1 %tmp596, float %tmp117, float %tmp115
1322  %.228 = select i1 %tmp596, float %tmp118, float %tmp116
1323  br label %ENDIF200
1324
1325ELSE211:                                          ; preds = %ENDIF200
1326  %tmp597 = fcmp olt float %tmp558, %tmp81
1327  %tmp598 = sext i1 %tmp597 to i32
1328  %tmp599 = bitcast i32 %tmp598 to float
1329  %tmp600 = bitcast float %tmp599 to i32
1330  %tmp601 = icmp ne i32 %tmp600, 0
1331  br i1 %tmp601, label %ENDIF209, label %ELSE214
1332
1333ENDIF209:                                         ; preds = %ELSE214, %ELSE211, %ENDIF200
1334  %temp52.0 = phi float [ %tmp107, %ENDIF200 ], [ %tmp99, %ELSE214 ], [ %tmp103, %ELSE211 ]
1335  %temp53.0 = phi float [ %tmp108, %ENDIF200 ], [ %tmp100, %ELSE214 ], [ %tmp104, %ELSE211 ]
1336  %temp54.0 = phi float [ %tmp109, %ENDIF200 ], [ %tmp101, %ELSE214 ], [ %tmp105, %ELSE211 ]
1337  %temp55.0 = phi float [ %tmp110, %ENDIF200 ], [ %tmp102, %ELSE214 ], [ %tmp106, %ELSE211 ]
1338  %temp68.0 = phi float [ %tmp111, %ENDIF200 ], [ %.230, %ELSE214 ], [ %tmp107, %ELSE211 ]
1339  %temp69.0 = phi float [ %tmp112, %ENDIF200 ], [ %.231, %ELSE214 ], [ %tmp108, %ELSE211 ]
1340  %temp70.0 = phi float [ %tmp113, %ENDIF200 ], [ %.232, %ELSE214 ], [ %tmp109, %ELSE211 ]
1341  %temp71.0 = phi float [ %tmp114, %ENDIF200 ], [ %.233, %ELSE214 ], [ %tmp110, %ELSE211 ]
1342  %tmp602 = fmul float %tmp163, %tmp84
1343  %tmp603 = fmul float %tmp164, %tmp85
1344  %tmp604 = fadd float %tmp602, %tmp603
1345  %tmp605 = fmul float %tmp165, %tmp86
1346  %tmp606 = fadd float %tmp604, %tmp605
1347  %tmp607 = fmul float %tmp166, %tmp87
1348  %tmp608 = fadd float %tmp606, %tmp607
1349  %tmp609 = fmul float %tmp163, %tmp88
1350  %tmp610 = fmul float %tmp164, %tmp89
1351  %tmp611 = fadd float %tmp609, %tmp610
1352  %tmp612 = fmul float %tmp165, %tmp90
1353  %tmp613 = fadd float %tmp611, %tmp612
1354  %tmp614 = fmul float %tmp166, %tmp91
1355  %tmp615 = fadd float %tmp613, %tmp614
1356  %tmp616 = fmul float %tmp163, %tmp92
1357  %tmp617 = fmul float %tmp164, %tmp93
1358  %tmp618 = fadd float %tmp616, %tmp617
1359  %tmp619 = fmul float %tmp165, %tmp94
1360  %tmp620 = fadd float %tmp618, %tmp619
1361  %tmp621 = fmul float %tmp166, %tmp95
1362  %tmp622 = fadd float %tmp620, %tmp621
1363  %tmp623 = fsub float -0.000000e+00, %tmp77
1364  %tmp624 = fadd float 1.000000e+00, %tmp623
1365  %tmp625 = call float @fabs(float %tmp608)
1366  %tmp626 = call float @fabs(float %tmp615)
1367  %tmp627 = fcmp oge float %tmp624, %tmp625
1368  %tmp628 = sext i1 %tmp627 to i32
1369  %tmp629 = bitcast i32 %tmp628 to float
1370  %tmp630 = bitcast float %tmp629 to i32
1371  %tmp631 = and i32 %tmp630, 1065353216
1372  %tmp632 = bitcast i32 %tmp631 to float
1373  %tmp633 = fcmp oge float %tmp624, %tmp626
1374  %tmp634 = sext i1 %tmp633 to i32
1375  %tmp635 = bitcast i32 %tmp634 to float
1376  %tmp636 = bitcast float %tmp635 to i32
1377  %tmp637 = and i32 %tmp636, 1065353216
1378  %tmp638 = bitcast i32 %tmp637 to float
1379  %tmp639 = fmul float %tmp632, %tmp638
1380  %tmp640 = fmul float %tmp622, %tmp639
1381  %tmp641 = fmul float %tmp608, %temp68.0
1382  %tmp642 = fadd float %tmp641, %temp70.0
1383  %tmp643 = fmul float %tmp615, %temp69.0
1384  %tmp644 = fadd float %tmp643, %temp71.0
1385  %tmp645 = fmul float %tmp608, %temp52.0
1386  %tmp646 = fadd float %tmp645, %temp54.0
1387  %tmp647 = fmul float %tmp615, %temp53.0
1388  %tmp648 = fadd float %tmp647, %temp55.0
1389  %tmp649 = fadd float %temp80.0, -1.000000e+00
1390  %tmp650 = fmul float %tmp649, %tmp76
1391  %tmp651 = fadd float %tmp650, 1.000000e+00
1392  %tmp652 = call float @llvm.AMDGPU.clamp.f32(float %tmp651, float 0.000000e+00, float 1.000000e+00)
1393  %tmp653 = bitcast float %tmp642 to i32
1394  %tmp654 = bitcast float %tmp644 to i32
1395  %tmp655 = bitcast float 0.000000e+00 to i32
1396  %tmp656 = insertelement <4 x i32> undef, i32 %tmp653, i32 0
1397  %tmp657 = insertelement <4 x i32> %tmp656, i32 %tmp654, i32 1
1398  %tmp658 = insertelement <4 x i32> %tmp657, i32 %tmp655, i32 2
1399  %tmp659 = insertelement <4 x i32> %tmp658, i32 undef, i32 3
1400  %tmp128.bc = bitcast <16 x i8> %tmp128 to <4 x i32>
1401  %tmp660 = call <4 x float> @llvm.SI.image.sample.l.v4i32(<4 x i32> %tmp659, <8 x i32> %tmp126, <4 x i32> %tmp128.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
1402  %tmp661 = extractelement <4 x float> %tmp660, i32 0
1403  %tmp662 = extractelement <4 x float> %tmp660, i32 1
1404  %tmp663 = bitcast float %tmp646 to i32
1405  %tmp664 = bitcast float %tmp648 to i32
1406  %tmp665 = bitcast float 0.000000e+00 to i32
1407  %tmp666 = insertelement <4 x i32> undef, i32 %tmp663, i32 0
1408  %tmp667 = insertelement <4 x i32> %tmp666, i32 %tmp664, i32 1
1409  %tmp668 = insertelement <4 x i32> %tmp667, i32 %tmp665, i32 2
1410  %tmp669 = insertelement <4 x i32> %tmp668, i32 undef, i32 3
1411  %tmp670 = call <4 x float> @llvm.SI.image.sample.l.v4i32(<4 x i32> %tmp669, <8 x i32> %tmp126, <4 x i32> %tmp128.bc, i32 15, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0)
1412  %tmp671 = extractelement <4 x float> %tmp670, i32 0
1413  %tmp672 = extractelement <4 x float> %tmp670, i32 1
1414  %tmp673 = fsub float -0.000000e+00, %tmp662
1415  %tmp674 = fadd float 1.000000e+00, %tmp673
1416  %tmp675 = fsub float -0.000000e+00, %tmp672
1417  %tmp676 = fadd float 1.000000e+00, %tmp675
1418  %tmp677 = fmul float %tmp674, 2.500000e-01
1419  %tmp678 = fmul float %tmp676, 2.500000e-01
1420  %tmp679 = fsub float -0.000000e+00, %tmp677
1421  %tmp680 = fadd float %tmp661, %tmp679
1422  %tmp681 = fsub float -0.000000e+00, %tmp678
1423  %tmp682 = fadd float %tmp671, %tmp681
1424  %tmp683 = fmul float %tmp640, %temp88.0
1425  %tmp684 = fadd float %tmp683, %temp89.0
1426  %tmp685 = fmul float %tmp640, %temp90.0
1427  %tmp686 = fadd float %tmp685, %temp91.0
1428  %tmp687 = call float @llvm.AMDGPU.clamp.f32(float %tmp684, float 0.000000e+00, float 1.000000e+00)
1429  %tmp688 = call float @llvm.AMDGPU.clamp.f32(float %tmp686, float 0.000000e+00, float 1.000000e+00)
1430  %tmp689 = fsub float -0.000000e+00, %tmp687
1431  %tmp690 = fadd float %tmp661, %tmp689
1432  %tmp691 = fsub float -0.000000e+00, %tmp688
1433  %tmp692 = fadd float %tmp671, %tmp691
1434  %tmp693 = fmul float %tmp661, %tmp661
1435  %tmp694 = fmul float %tmp671, %tmp671
1436  %tmp695 = fsub float -0.000000e+00, %tmp693
1437  %tmp696 = fadd float %tmp680, %tmp695
1438  %tmp697 = fsub float -0.000000e+00, %tmp694
1439  %tmp698 = fadd float %tmp682, %tmp697
1440  %tmp699 = fcmp uge float %tmp696, %tmp74
1441  %tmp700 = select i1 %tmp699, float %tmp696, float %tmp74
1442  %tmp701 = fcmp uge float %tmp698, %tmp74
1443  %tmp702 = select i1 %tmp701, float %tmp698, float %tmp74
1444  %tmp703 = fmul float %tmp690, %tmp690
1445  %tmp704 = fadd float %tmp703, %tmp700
1446  %tmp705 = fmul float %tmp692, %tmp692
1447  %tmp706 = fadd float %tmp705, %tmp702
1448  %tmp707 = fdiv float 1.000000e+00, %tmp704
1449  %tmp708 = fdiv float 1.000000e+00, %tmp706
1450  %tmp709 = fmul float %tmp700, %tmp707
1451  %tmp710 = fmul float %tmp702, %tmp708
1452  %tmp711 = fcmp oge float %tmp690, 0.000000e+00
1453  %tmp712 = sext i1 %tmp711 to i32
1454  %tmp713 = bitcast i32 %tmp712 to float
1455  %tmp714 = bitcast float %tmp713 to i32
1456  %tmp715 = icmp ne i32 %tmp714, 0
1457  %.229 = select i1 %tmp715, float 1.000000e+00, float %tmp709
1458  %tmp716 = fcmp oge float %tmp692, 0.000000e+00
1459  %tmp717 = sext i1 %tmp716 to i32
1460  %tmp718 = bitcast i32 %tmp717 to float
1461  %tmp719 = bitcast float %tmp718 to i32
1462  %tmp720 = icmp ne i32 %tmp719, 0
1463  %temp28.0 = select i1 %tmp720, float 1.000000e+00, float %tmp710
1464  %one.sub.a.i25 = fsub float 1.000000e+00, %tmp652
1465  %one.sub.ac.i26 = fmul float %one.sub.a.i25, %.229
1466  %mul.i27 = fmul float %temp28.0, %.229
1467  %result.i28 = fadd float %mul.i27, %one.sub.ac.i26
1468  %tmp721 = call float @llvm.pow.f32(float %result.i28, float %tmp75)
1469  %tmp722 = fmul float %tmp721, %tmp78
1470  %tmp723 = fadd float %tmp722, %tmp79
1471  %tmp724 = call float @llvm.AMDGPU.clamp.f32(float %tmp723, float 0.000000e+00, float 1.000000e+00)
1472  %tmp725 = fmul float %tmp724, %tmp724
1473  %tmp726 = fmul float 2.000000e+00, %tmp724
1474  %tmp727 = fsub float -0.000000e+00, %tmp726
1475  %tmp728 = fadd float 3.000000e+00, %tmp727
1476  %tmp729 = fmul float %tmp725, %tmp728
1477  %tmp730 = fmul float %tmp541, %tmp729
1478  %tmp731 = fmul float %tmp542, %tmp729
1479  %tmp732 = fmul float %tmp543, %tmp729
1480  %tmp733 = fmul float %tmp730, %tmp508
1481  %tmp734 = fadd float %tmp733, %tmp526
1482  %tmp735 = fmul float %tmp731, %tmp508
1483  %tmp736 = fadd float %tmp735, %tmp527
1484  %tmp737 = fmul float %tmp732, %tmp508
1485  %tmp738 = fadd float %tmp737, %tmp528
1486  %one.sub.a.i23 = fsub float 1.000000e+00, %tmp229
1487  %result.i24 = fadd float %tmp283, %one.sub.a.i23
1488  %one.sub.a.i21 = fsub float 1.000000e+00, %tmp36
1489  %result.i22 = fadd float %tmp294, %one.sub.a.i21
1490  %one.sub.a.i19 = fsub float 1.000000e+00, %tmp36
1491  %result.i20 = fadd float %tmp295, %one.sub.a.i19
1492  %one.sub.a.i17 = fsub float 1.000000e+00, %tmp36
1493  %result.i18 = fadd float %tmp296, %one.sub.a.i17
1494  %one.sub.a.i15 = fsub float 1.000000e+00, %tmp37
1495  %result.i16 = fadd float %result.i24, %one.sub.a.i15
1496  %tmp739 = fmul float %result.i22, %result.i16
1497  %tmp740 = fmul float %result.i20, %result.i16
1498  %tmp741 = fmul float %result.i18, %result.i16
1499  %tmp742 = fmul float %tmp734, %tmp739
1500  %tmp743 = fmul float %tmp736, %tmp740
1501  %tmp744 = fmul float %tmp738, %tmp741
1502  %tmp745 = fmul float %temp12.0, %tmp215
1503  %tmp746 = fmul float %temp13.0, %tmp216
1504  %tmp747 = fadd float %tmp746, %tmp745
1505  %tmp748 = fmul float %temp14.0, %tmp217
1506  %tmp749 = fadd float %tmp747, %tmp748
1507  %tmp750 = call float @fabs(float %tmp749)
1508  %tmp751 = fmul float %tmp750, %tmp750
1509  %tmp752 = fmul float %tmp751, %tmp49
1510  %tmp753 = fadd float %tmp752, %tmp50
1511  %tmp754 = call float @llvm.AMDGPU.clamp.f32(float %tmp753, float 0.000000e+00, float 1.000000e+00)
1512  %tmp755 = fsub float -0.000000e+00, %tmp754
1513  %tmp756 = fadd float 1.000000e+00, %tmp755
1514  %tmp757 = fmul float %tmp32, %tmp756
1515  %tmp758 = fmul float %tmp32, %tmp756
1516  %tmp759 = fmul float %tmp32, %tmp756
1517  %tmp760 = fmul float %tmp33, %tmp756
1518  %one.sub.a.i11 = fsub float 1.000000e+00, %tmp757
1519  %one.sub.ac.i12 = fmul float %one.sub.a.i11, %tmp742
1520  %mul.i13 = fmul float %tmp30, %tmp742
1521  %result.i14 = fadd float %mul.i13, %one.sub.ac.i12
1522  %one.sub.a.i7 = fsub float 1.000000e+00, %tmp758
1523  %one.sub.ac.i8 = fmul float %one.sub.a.i7, %tmp743
1524  %mul.i9 = fmul float %tmp30, %tmp743
1525  %result.i10 = fadd float %mul.i9, %one.sub.ac.i8
1526  %one.sub.a.i3 = fsub float 1.000000e+00, %tmp759
1527  %one.sub.ac.i4 = fmul float %one.sub.a.i3, %tmp744
1528  %mul.i5 = fmul float %tmp30, %tmp744
1529  %result.i6 = fadd float %mul.i5, %one.sub.ac.i4
1530  %one.sub.a.i1 = fsub float 1.000000e+00, %tmp760
1531  %one.sub.ac.i = fmul float %one.sub.a.i1, %tmp367
1532  %mul.i = fmul float %tmp31, %tmp367
1533  %result.i2 = fadd float %mul.i, %one.sub.ac.i
1534  %tmp761 = fcmp uge float %result.i14, 0x3E6FFFFE60000000
1535  %tmp762 = select i1 %tmp761, float %result.i14, float 0x3E6FFFFE60000000
1536  %tmp763 = fcmp uge float %result.i10, 0x3E6FFFFE60000000
1537  %tmp764 = select i1 %tmp763, float %result.i10, float 0x3E6FFFFE60000000
1538  %tmp765 = fcmp uge float %result.i6, 0x3E6FFFFE60000000
1539  %tmp766 = select i1 %tmp765, float %result.i6, float 0x3E6FFFFE60000000
1540  %tmp767 = fcmp uge float %tmp762, 6.550400e+04
1541  %tmp768 = select i1 %tmp767, float 6.550400e+04, float %tmp762
1542  %tmp769 = fcmp uge float %tmp764, 6.550400e+04
1543  %tmp770 = select i1 %tmp769, float 6.550400e+04, float %tmp764
1544  %tmp771 = fcmp uge float %tmp766, 6.550400e+04
1545  %tmp772 = select i1 %tmp771, float 6.550400e+04, float %tmp766
1546  %tmp773 = fmul float %result.i2, %tmp51
1547  %tmp774 = fadd float %tmp773, %tmp52
1548  %tmp775 = call float @llvm.AMDGPU.clamp.f32(float %tmp774, float 0.000000e+00, float 1.000000e+00)
1549  %tmp776 = call i32 @llvm.SI.packf16(float %tmp768, float %tmp770)
1550  %tmp777 = bitcast i32 %tmp776 to float
1551  %tmp778 = call i32 @llvm.SI.packf16(float %tmp772, float %tmp775)
1552  %tmp779 = bitcast i32 %tmp778 to float
1553  call void @llvm.SI.export(i32 15, i32 1, i32 1, i32 0, i32 1, float %tmp777, float %tmp779, float %tmp777, float %tmp779)
1554  ret void
1555
1556ELSE214:                                          ; preds = %ELSE211
1557  %tmp780 = fcmp olt float %tmp558, %tmp80
1558  %tmp781 = sext i1 %tmp780 to i32
1559  %tmp782 = bitcast i32 %tmp781 to float
1560  %tmp783 = bitcast float %tmp782 to i32
1561  %tmp784 = icmp ne i32 %tmp783, 0
1562  %.230 = select i1 %tmp784, float %tmp103, float %tmp99
1563  %.231 = select i1 %tmp784, float %tmp104, float %tmp100
1564  %.232 = select i1 %tmp784, float %tmp105, float %tmp101
1565  %.233 = select i1 %tmp784, float %tmp106, float %tmp102
1566  br label %ENDIF209
1567}
1568
1569; Function Attrs: readnone
1570declare float @llvm.AMDGPU.clamp.f32(float, float, float) #1
1571
1572; Function Attrs: nounwind readnone
1573declare <4 x float> @llvm.SI.image.sample.v2i32(<2 x i32>, <8 x i32>, <4 x i32>, i32, i32, i32, i32, i32, i32, i32, i32) #2
1574
1575; Function Attrs: nounwind readnone
1576declare <4 x float> @llvm.SI.image.sample.l.v4i32(<4 x i32>, <8 x i32>, <4 x i32>, i32, i32, i32, i32, i32, i32, i32, i32) #2
1577
1578
1579declare float @llvm.exp2.f32(float) #2
1580
1581; Function Attrs: nounwind readnone
1582declare float @llvm.SI.load.const(<16 x i8>, i32) #2
1583
1584; Function Attrs: nounwind readnone
1585declare float @llvm.SI.fs.interp(i32, i32, i32, <2 x i32>) #2
1586
1587declare i32 @llvm.amdgcn.mbcnt.lo(i32, i32) #1
1588declare i32 @llvm.amdgcn.mbcnt.hi(i32, i32) #1
1589
1590; Function Attrs: nounwind readonly
1591declare float @ceil(float) #3
1592
1593; Function Attrs: nounwind readnone
1594declare float @llvm.amdgcn.rsq.f32(float) #2
1595
1596; Function Attrs: nounwind readnone
1597declare <4 x float> @llvm.SI.image.sample.d.v8i32(<8 x i32>, <8 x i32>, <4 x i32>, i32, i32, i32, i32, i32, i32, i32, i32) #2
1598
1599; Function Attrs: readnone
1600declare <4 x float> @llvm.AMDGPU.cube(<4 x float>) #1
1601
1602; Function Attrs: readnone
1603declare float @fabs(float) #1
1604
1605; Function Attrs: nounwind readnone
1606declare <4 x float> @llvm.SI.image.sample.v4i32(<4 x i32>, <8 x i32>, <4 x i32>, i32, i32, i32, i32, i32, i32, i32, i32) #2
1607
1608
1609; Function Attrs: nounwind readnone
1610declare float @llvm.pow.f32(float, float) #2
1611
1612; Function Attrs: nounwind readnone
1613declare i32 @llvm.SI.packf16(float, float) #2
1614
1615declare void @llvm.SI.export(i32, i32, i32, i32, i32, float, float, float, float)
1616
1617attributes #1 = { readnone }
1618attributes #2 = { nounwind readnone }
1619attributes #3 = { nounwind readonly }
1620
1621!0 = !{!1, !1, i64 0, i32 1}
1622!1 = !{!"const", null}
1623