Files
wgpu/naga/tests/out/spv/operators.spvasm
T
Jim Blandy 1b09a44af5 [naga spv-out] Avoid duplicating SPIR-V OpTypePointer instructions.
Simplify `naga::back::spv::LocalType` to have only one variant for
representing pointers, and use the SPIR-V type as the base type, so
that `LocalType` values are equal when the SPIR-V pointer types they
map to would be equal as well.

This avoids emitting multiple `OpTypePointer` instructions, which
SPIR-V would interpret as distinct types, for equivalent Naga IR
pointer types.

Change the `get_pointer_type_id` utility function accordingly, and
adjust its callers.

Change `LocalType::from_inner` into `Writer::localtype_from_inner`, so
that it can call `Writer` methods to build base types. Adjust users.
2025-03-06 09:58:25 -08:00

610 lines
18 KiB
Plaintext

; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 527
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %512 "main" %509
OpExecutionMode %512 LocalSize 1 1 1
OpDecorate %509 BuiltIn WorkgroupId
%2 = OpTypeVoid
%3 = OpTypeFloat 32
%4 = OpTypeVector %3 4
%5 = OpTypeInt 32 1
%6 = OpTypeVector %5 4
%8 = OpTypeBool
%7 = OpTypeVector %8 4
%9 = OpTypeVector %3 2
%10 = OpTypeVector %3 3
%11 = OpTypeMatrix %10 3
%12 = OpTypeMatrix %10 4
%13 = OpTypeMatrix %4 3
%14 = OpTypeVector %5 3
%16 = OpTypeInt 32 0
%15 = OpTypeVector %16 3
%17 = OpConstant %3 1.0
%18 = OpConstantComposite %4 %17 %17 %17 %17
%19 = OpConstant %3 0.0
%20 = OpConstantComposite %4 %19 %19 %19 %19
%21 = OpConstant %3 0.5
%22 = OpConstantComposite %4 %21 %21 %21 %21
%23 = OpConstant %5 1
%24 = OpConstantComposite %6 %23 %23 %23 %23
%27 = OpTypeFunction %4
%28 = OpConstantTrue %8
%29 = OpConstant %5 0
%30 = OpConstantFalse %8
%31 = OpConstantComposite %7 %30 %30 %30 %30
%32 = OpConstant %3 0.1
%33 = OpConstantComposite %6 %29 %29 %29 %29
%54 = OpTypeFunction %6 %6 %6
%58 = OpConstantComposite %6 %29 %29 %29 %29
%60 = OpConstant %5 -2147483648
%61 = OpConstant %5 -1
%62 = OpConstantComposite %6 %60 %60 %60 %60
%63 = OpConstantComposite %6 %61 %61 %61 %61
%68 = OpConstantComposite %6 %23 %23 %23 %23
%75 = OpTypeFunction %4 %3 %5
%76 = OpConstant %3 2.0
%77 = OpConstantComposite %9 %76 %76
%78 = OpConstant %3 4.0
%79 = OpConstantComposite %9 %78 %78
%80 = OpConstant %3 8.0
%81 = OpConstantComposite %9 %80 %80
%82 = OpConstant %5 2
%83 = OpConstantComposite %6 %82 %82 %82 %82
%96 = OpTypeFunction %9
%97 = OpConstantComposite %9 %17 %17
%98 = OpConstant %3 3.0
%99 = OpConstantComposite %9 %98 %98
%101 = OpTypePointer Function %9
%113 = OpTypeFunction %10 %10
%115 = OpTypeVector %8 3
%116 = OpConstantComposite %10 %19 %19 %19
%118 = OpConstantComposite %10 %17 %17 %17
%122 = OpTypeFunction %2
%123 = OpTypeVector %8 2
%124 = OpConstantComposite %123 %28 %28
%125 = OpConstantComposite %115 %28 %28 %28
%126 = OpConstantComposite %115 %30 %30 %30
%127 = OpConstantComposite %7 %28 %28 %28 %28
%128 = OpConstantComposite %7 %30 %30 %30 %30
%139 = OpTypeFunction %5 %5 %5
%151 = OpTypeFunction %16 %16 %16
%155 = OpConstant %16 0
%157 = OpConstant %16 1
%160 = OpTypeVector %5 2
%162 = OpTypeFunction %160 %160 %160
%166 = OpConstantComposite %160 %29 %29
%168 = OpConstantComposite %160 %60 %60
%169 = OpConstantComposite %160 %61 %61
%174 = OpConstantComposite %160 %23 %23
%178 = OpTypeFunction %15 %15 %15
%182 = OpConstantComposite %15 %155 %155 %155
%184 = OpConstantComposite %15 %157 %157 %157
%223 = OpTypeVector %16 2
%225 = OpTypeFunction %223 %223 %223
%229 = OpConstantComposite %223 %155 %155
%231 = OpConstantComposite %223 %157 %157
%243 = OpConstant %16 2
%244 = OpConstantComposite %160 %82 %82
%245 = OpConstantComposite %15 %243 %243 %243
%246 = OpConstantComposite %4 %76 %76 %76 %76
%247 = OpConstantComposite %4 %17 %17 %17 %17
%248 = OpConstantComposite %223 %243 %243
%249 = OpConstantNull %11
%250 = OpConstantNull %12
%251 = OpConstantComposite %10 %76 %76 %76
%252 = OpConstantNull %13
%416 = OpConstantNull %14
%418 = OpTypePointer Function %5
%419 = OpConstantNull %5
%421 = OpTypePointer Function %14
%510 = OpTypePointer Input %15
%509 = OpVariable %510 Input
%513 = OpConstantComposite %10 %17 %17 %17
%26 = OpFunction %4 None %27
%25 = OpLabel
OpBranch %34
%34 = OpLabel
%35 = OpSelect %5 %28 %23 %29
%37 = OpCompositeConstruct %7 %28 %28 %28 %28
%36 = OpSelect %4 %37 %18 %20
%38 = OpSelect %4 %31 %20 %18
%39 = OpExtInst %4 %1 FMix %20 %18 %22
%41 = OpCompositeConstruct %4 %32 %32 %32 %32
%40 = OpExtInst %4 %1 FMix %20 %18 %41
%42 = OpBitcast %3 %23
%43 = OpBitcast %4 %24
%44 = OpCompositeConstruct %6 %35 %35 %35 %35
%45 = OpIAdd %6 %44 %33
%46 = OpConvertSToF %4 %45
%47 = OpFAdd %4 %46 %36
%48 = OpFAdd %4 %47 %39
%49 = OpFAdd %4 %48 %40
%50 = OpCompositeConstruct %4 %42 %42 %42 %42
%51 = OpFAdd %4 %49 %50
%52 = OpFAdd %4 %51 %43
OpReturnValue %52
OpFunctionEnd
%53 = OpFunction %6 None %54
%55 = OpFunctionParameter %6
%56 = OpFunctionParameter %6
%57 = OpLabel
%59 = OpIEqual %7 %56 %58
%64 = OpIEqual %7 %55 %62
%65 = OpIEqual %7 %56 %63
%66 = OpLogicalAnd %7 %64 %65
%67 = OpLogicalOr %7 %59 %66
%69 = OpSelect %6 %67 %68 %56
%70 = OpSRem %6 %55 %69
OpReturnValue %70
OpFunctionEnd
%74 = OpFunction %4 None %75
%72 = OpFunctionParameter %3
%73 = OpFunctionParameter %5
%71 = OpLabel
OpBranch %84
%84 = OpLabel
%85 = OpCompositeConstruct %9 %72 %72
%86 = OpFAdd %9 %77 %85
%87 = OpFSub %9 %86 %79
%88 = OpFDiv %9 %87 %81
%89 = OpCompositeConstruct %6 %73 %73 %73 %73
%90 = OpFunctionCall %6 %53 %89 %83
%91 = OpVectorShuffle %4 %88 %88 0 1 0 1
%92 = OpConvertSToF %4 %90
%93 = OpFAdd %4 %91 %92
OpReturnValue %93
OpFunctionEnd
%95 = OpFunction %9 None %96
%94 = OpLabel
%100 = OpVariable %101 Function %77
OpBranch %102
%102 = OpLabel
%103 = OpLoad %9 %100
%104 = OpFAdd %9 %103 %97
OpStore %100 %104
%105 = OpLoad %9 %100
%106 = OpFSub %9 %105 %99
OpStore %100 %106
%107 = OpLoad %9 %100
%108 = OpFDiv %9 %107 %79
OpStore %100 %108
%109 = OpLoad %9 %100
OpReturnValue %109
OpFunctionEnd
%112 = OpFunction %10 None %113
%111 = OpFunctionParameter %10
%110 = OpLabel
OpBranch %114
%114 = OpLabel
%117 = OpFUnordNotEqual %115 %111 %116
%119 = OpSelect %10 %117 %118 %116
OpReturnValue %119
OpFunctionEnd
%121 = OpFunction %2 None %122
%120 = OpLabel
OpBranch %129
%129 = OpLabel
%130 = OpLogicalNot %8 %28
%131 = OpLogicalNot %123 %124
%132 = OpLogicalOr %8 %28 %30
%133 = OpLogicalAnd %8 %28 %30
%134 = OpLogicalOr %8 %28 %30
%135 = OpLogicalOr %115 %125 %126
%136 = OpLogicalAnd %8 %28 %30
%137 = OpLogicalAnd %7 %127 %128
OpReturn
OpFunctionEnd
%138 = OpFunction %5 None %139
%140 = OpFunctionParameter %5
%141 = OpFunctionParameter %5
%142 = OpLabel
%143 = OpIEqual %8 %141 %29
%144 = OpIEqual %8 %140 %60
%145 = OpIEqual %8 %141 %61
%146 = OpLogicalAnd %8 %144 %145
%147 = OpLogicalOr %8 %143 %146
%148 = OpSelect %5 %147 %23 %141
%149 = OpSDiv %5 %140 %148
OpReturnValue %149
OpFunctionEnd
%150 = OpFunction %16 None %151
%152 = OpFunctionParameter %16
%153 = OpFunctionParameter %16
%154 = OpLabel
%156 = OpIEqual %8 %153 %155
%158 = OpSelect %16 %156 %157 %153
%159 = OpUDiv %16 %152 %158
OpReturnValue %159
OpFunctionEnd
%161 = OpFunction %160 None %162
%163 = OpFunctionParameter %160
%164 = OpFunctionParameter %160
%165 = OpLabel
%167 = OpIEqual %123 %164 %166
%170 = OpIEqual %123 %163 %168
%171 = OpIEqual %123 %164 %169
%172 = OpLogicalAnd %123 %170 %171
%173 = OpLogicalOr %123 %167 %172
%175 = OpSelect %160 %173 %174 %164
%176 = OpSDiv %160 %163 %175
OpReturnValue %176
OpFunctionEnd
%177 = OpFunction %15 None %178
%179 = OpFunctionParameter %15
%180 = OpFunctionParameter %15
%181 = OpLabel
%183 = OpIEqual %115 %180 %182
%185 = OpSelect %15 %183 %184 %180
%186 = OpUDiv %15 %179 %185
OpReturnValue %186
OpFunctionEnd
%187 = OpFunction %5 None %139
%188 = OpFunctionParameter %5
%189 = OpFunctionParameter %5
%190 = OpLabel
%191 = OpIEqual %8 %189 %29
%192 = OpIEqual %8 %188 %60
%193 = OpIEqual %8 %189 %61
%194 = OpLogicalAnd %8 %192 %193
%195 = OpLogicalOr %8 %191 %194
%196 = OpSelect %5 %195 %23 %189
%197 = OpSRem %5 %188 %196
OpReturnValue %197
OpFunctionEnd
%198 = OpFunction %16 None %151
%199 = OpFunctionParameter %16
%200 = OpFunctionParameter %16
%201 = OpLabel
%202 = OpIEqual %8 %200 %155
%203 = OpSelect %16 %202 %157 %200
%204 = OpUMod %16 %199 %203
OpReturnValue %204
OpFunctionEnd
%205 = OpFunction %160 None %162
%206 = OpFunctionParameter %160
%207 = OpFunctionParameter %160
%208 = OpLabel
%209 = OpIEqual %123 %207 %166
%210 = OpIEqual %123 %206 %168
%211 = OpIEqual %123 %207 %169
%212 = OpLogicalAnd %123 %210 %211
%213 = OpLogicalOr %123 %209 %212
%214 = OpSelect %160 %213 %174 %207
%215 = OpSRem %160 %206 %214
OpReturnValue %215
OpFunctionEnd
%216 = OpFunction %15 None %178
%217 = OpFunctionParameter %15
%218 = OpFunctionParameter %15
%219 = OpLabel
%220 = OpIEqual %115 %218 %182
%221 = OpSelect %15 %220 %184 %218
%222 = OpUMod %15 %217 %221
OpReturnValue %222
OpFunctionEnd
%224 = OpFunction %223 None %225
%226 = OpFunctionParameter %223
%227 = OpFunctionParameter %223
%228 = OpLabel
%230 = OpIEqual %123 %227 %229
%232 = OpSelect %223 %230 %231 %227
%233 = OpUDiv %223 %226 %232
OpReturnValue %233
OpFunctionEnd
%234 = OpFunction %223 None %225
%235 = OpFunctionParameter %223
%236 = OpFunctionParameter %223
%237 = OpLabel
%238 = OpIEqual %123 %236 %229
%239 = OpSelect %223 %238 %231 %236
%240 = OpUMod %223 %235 %239
OpReturnValue %240
OpFunctionEnd
%242 = OpFunction %2 None %122
%241 = OpLabel
OpBranch %253
%253 = OpLabel
%254 = OpFNegate %3 %17
%255 = OpSNegate %160 %174
%256 = OpFNegate %9 %97
%257 = OpIAdd %5 %82 %23
%258 = OpIAdd %16 %243 %157
%259 = OpFAdd %3 %76 %17
%260 = OpIAdd %160 %244 %174
%261 = OpIAdd %15 %245 %184
%262 = OpFAdd %4 %246 %247
%263 = OpISub %5 %82 %23
%264 = OpISub %16 %243 %157
%265 = OpFSub %3 %76 %17
%266 = OpISub %160 %244 %174
%267 = OpISub %15 %245 %184
%268 = OpFSub %4 %246 %247
%269 = OpIMul %5 %82 %23
%270 = OpIMul %16 %243 %157
%271 = OpFMul %3 %76 %17
%272 = OpIMul %160 %244 %174
%273 = OpIMul %15 %245 %184
%274 = OpFMul %4 %246 %247
%275 = OpFunctionCall %5 %138 %82 %23
%276 = OpFunctionCall %16 %150 %243 %157
%277 = OpFDiv %3 %76 %17
%278 = OpFunctionCall %160 %161 %244 %174
%279 = OpFunctionCall %15 %177 %245 %184
%280 = OpFDiv %4 %246 %247
%281 = OpFunctionCall %5 %187 %82 %23
%282 = OpFunctionCall %16 %198 %243 %157
%283 = OpFRem %3 %76 %17
%284 = OpFunctionCall %160 %205 %244 %174
%285 = OpFunctionCall %15 %216 %245 %184
%286 = OpFRem %4 %246 %247
OpBranch %287
%287 = OpLabel
%289 = OpIAdd %160 %244 %174
%290 = OpIAdd %160 %244 %174
%291 = OpIAdd %223 %248 %231
%292 = OpIAdd %223 %248 %231
%293 = OpFAdd %9 %77 %97
%294 = OpFAdd %9 %77 %97
%295 = OpISub %160 %244 %174
%296 = OpISub %160 %244 %174
%297 = OpISub %223 %248 %231
%298 = OpISub %223 %248 %231
%299 = OpFSub %9 %77 %97
%300 = OpFSub %9 %77 %97
%302 = OpCompositeConstruct %160 %23 %23
%301 = OpIMul %160 %244 %302
%304 = OpCompositeConstruct %160 %82 %82
%303 = OpIMul %160 %174 %304
%306 = OpCompositeConstruct %223 %157 %157
%305 = OpIMul %223 %248 %306
%308 = OpCompositeConstruct %223 %243 %243
%307 = OpIMul %223 %231 %308
%309 = OpVectorTimesScalar %9 %77 %17
%310 = OpVectorTimesScalar %9 %97 %76
%311 = OpFunctionCall %160 %161 %244 %174
%312 = OpFunctionCall %160 %161 %244 %174
%313 = OpFunctionCall %223 %224 %248 %231
%314 = OpFunctionCall %223 %224 %248 %231
%315 = OpFDiv %9 %77 %97
%316 = OpFDiv %9 %77 %97
%317 = OpFunctionCall %160 %205 %244 %174
%318 = OpFunctionCall %160 %205 %244 %174
%319 = OpFunctionCall %223 %234 %248 %231
%320 = OpFunctionCall %223 %234 %248 %231
%321 = OpFRem %9 %77 %97
%322 = OpFRem %9 %77 %97
OpBranch %288
%288 = OpLabel
%324 = OpCompositeExtract %10 %249 0
%325 = OpCompositeExtract %10 %249 0
%326 = OpFAdd %10 %324 %325
%327 = OpCompositeExtract %10 %249 1
%328 = OpCompositeExtract %10 %249 1
%329 = OpFAdd %10 %327 %328
%330 = OpCompositeExtract %10 %249 2
%331 = OpCompositeExtract %10 %249 2
%332 = OpFAdd %10 %330 %331
%323 = OpCompositeConstruct %11 %326 %329 %332
%334 = OpCompositeExtract %10 %249 0
%335 = OpCompositeExtract %10 %249 0
%336 = OpFSub %10 %334 %335
%337 = OpCompositeExtract %10 %249 1
%338 = OpCompositeExtract %10 %249 1
%339 = OpFSub %10 %337 %338
%340 = OpCompositeExtract %10 %249 2
%341 = OpCompositeExtract %10 %249 2
%342 = OpFSub %10 %340 %341
%333 = OpCompositeConstruct %11 %336 %339 %342
%343 = OpMatrixTimesScalar %11 %249 %17
%344 = OpMatrixTimesScalar %11 %249 %76
%345 = OpMatrixTimesVector %10 %250 %247
%346 = OpVectorTimesMatrix %4 %251 %250
%347 = OpMatrixTimesMatrix %11 %250 %252
OpReturn
OpFunctionEnd
%349 = OpFunction %2 None %122
%348 = OpLabel
OpBranch %350
%350 = OpLabel
%351 = OpNot %5 %23
%352 = OpNot %16 %157
%353 = OpNot %160 %174
%354 = OpNot %15 %184
%355 = OpBitwiseOr %5 %82 %23
%356 = OpBitwiseOr %16 %243 %157
%357 = OpBitwiseOr %160 %244 %174
%358 = OpBitwiseOr %15 %245 %184
%359 = OpBitwiseAnd %5 %82 %23
%360 = OpBitwiseAnd %16 %243 %157
%361 = OpBitwiseAnd %160 %244 %174
%362 = OpBitwiseAnd %15 %245 %184
%363 = OpBitwiseXor %5 %82 %23
%364 = OpBitwiseXor %16 %243 %157
%365 = OpBitwiseXor %160 %244 %174
%366 = OpBitwiseXor %15 %245 %184
%367 = OpShiftLeftLogical %5 %82 %157
%368 = OpShiftLeftLogical %16 %243 %157
%369 = OpShiftLeftLogical %160 %244 %231
%370 = OpShiftLeftLogical %15 %245 %184
%371 = OpShiftRightArithmetic %5 %82 %157
%372 = OpShiftRightLogical %16 %243 %157
%373 = OpShiftRightArithmetic %160 %244 %231
%374 = OpShiftRightLogical %15 %245 %184
OpReturn
OpFunctionEnd
%376 = OpFunction %2 None %122
%375 = OpLabel
OpBranch %377
%377 = OpLabel
%378 = OpIEqual %8 %82 %23
%379 = OpIEqual %8 %243 %157
%380 = OpFOrdEqual %8 %76 %17
%381 = OpIEqual %123 %244 %174
%382 = OpIEqual %115 %245 %184
%383 = OpFOrdEqual %7 %246 %247
%384 = OpINotEqual %8 %82 %23
%385 = OpINotEqual %8 %243 %157
%386 = OpFOrdNotEqual %8 %76 %17
%387 = OpINotEqual %123 %244 %174
%388 = OpINotEqual %115 %245 %184
%389 = OpFOrdNotEqual %7 %246 %247
%390 = OpSLessThan %8 %82 %23
%391 = OpULessThan %8 %243 %157
%392 = OpFOrdLessThan %8 %76 %17
%393 = OpSLessThan %123 %244 %174
%394 = OpULessThan %115 %245 %184
%395 = OpFOrdLessThan %7 %246 %247
%396 = OpSLessThanEqual %8 %82 %23
%397 = OpULessThanEqual %8 %243 %157
%398 = OpFOrdLessThanEqual %8 %76 %17
%399 = OpSLessThanEqual %123 %244 %174
%400 = OpULessThanEqual %115 %245 %184
%401 = OpFOrdLessThanEqual %7 %246 %247
%402 = OpSGreaterThan %8 %82 %23
%403 = OpUGreaterThan %8 %243 %157
%404 = OpFOrdGreaterThan %8 %76 %17
%405 = OpSGreaterThan %123 %244 %174
%406 = OpUGreaterThan %115 %245 %184
%407 = OpFOrdGreaterThan %7 %246 %247
%408 = OpSGreaterThanEqual %8 %82 %23
%409 = OpUGreaterThanEqual %8 %243 %157
%410 = OpFOrdGreaterThanEqual %8 %76 %17
%411 = OpSGreaterThanEqual %123 %244 %174
%412 = OpUGreaterThanEqual %115 %245 %184
%413 = OpFOrdGreaterThanEqual %7 %246 %247
OpReturn
OpFunctionEnd
%415 = OpFunction %2 None %122
%414 = OpLabel
%417 = OpVariable %418 Function %419
%420 = OpVariable %421 Function %416
OpBranch %422
%422 = OpLabel
OpStore %417 %23
%423 = OpLoad %5 %417
%424 = OpIAdd %5 %423 %23
OpStore %417 %424
%425 = OpLoad %5 %417
%426 = OpISub %5 %425 %23
OpStore %417 %426
%427 = OpLoad %5 %417
%428 = OpLoad %5 %417
%429 = OpIMul %5 %428 %427
OpStore %417 %429
%430 = OpLoad %5 %417
%431 = OpLoad %5 %417
%432 = OpFunctionCall %5 %138 %431 %430
OpStore %417 %432
%433 = OpLoad %5 %417
%434 = OpFunctionCall %5 %187 %433 %23
OpStore %417 %434
%435 = OpLoad %5 %417
%436 = OpBitwiseAnd %5 %435 %29
OpStore %417 %436
%437 = OpLoad %5 %417
%438 = OpBitwiseOr %5 %437 %29
OpStore %417 %438
%439 = OpLoad %5 %417
%440 = OpBitwiseXor %5 %439 %29
OpStore %417 %440
%441 = OpLoad %5 %417
%442 = OpShiftLeftLogical %5 %441 %243
OpStore %417 %442
%443 = OpLoad %5 %417
%444 = OpShiftRightArithmetic %5 %443 %157
OpStore %417 %444
%445 = OpLoad %5 %417
%446 = OpIAdd %5 %445 %23
OpStore %417 %446
%447 = OpLoad %5 %417
%448 = OpISub %5 %447 %23
OpStore %417 %448
%449 = OpAccessChain %418 %420 %157
%450 = OpLoad %5 %449
%451 = OpIAdd %5 %450 %23
%452 = OpAccessChain %418 %420 %157
OpStore %452 %451
%453 = OpAccessChain %418 %420 %157
%454 = OpLoad %5 %453
%455 = OpISub %5 %454 %23
%456 = OpAccessChain %418 %420 %157
OpStore %456 %455
OpReturn
OpFunctionEnd
%458 = OpFunction %2 None %122
%457 = OpLabel
OpBranch %459
%459 = OpLabel
%460 = OpSNegate %5 %23
%461 = OpSNegate %5 %23
%462 = OpSNegate %5 %461
%463 = OpSNegate %5 %23
%464 = OpSNegate %5 %463
%465 = OpSNegate %5 %23
%466 = OpSNegate %5 %465
%467 = OpSNegate %5 %23
%468 = OpSNegate %5 %467
%469 = OpSNegate %5 %468
%470 = OpSNegate %5 %23
%471 = OpSNegate %5 %470
%472 = OpSNegate %5 %471
%473 = OpSNegate %5 %472
%474 = OpSNegate %5 %23
%475 = OpSNegate %5 %474
%476 = OpSNegate %5 %475
%477 = OpSNegate %5 %476
%478 = OpSNegate %5 %477
%479 = OpSNegate %5 %23
%480 = OpSNegate %5 %479
%481 = OpSNegate %5 %480
%482 = OpSNegate %5 %481
%483 = OpSNegate %5 %482
%484 = OpFNegate %3 %17
%485 = OpFNegate %3 %17
%486 = OpFNegate %3 %485
%487 = OpFNegate %3 %17
%488 = OpFNegate %3 %487
%489 = OpFNegate %3 %17
%490 = OpFNegate %3 %489
%491 = OpFNegate %3 %17
%492 = OpFNegate %3 %491
%493 = OpFNegate %3 %492
%494 = OpFNegate %3 %17
%495 = OpFNegate %3 %494
%496 = OpFNegate %3 %495
%497 = OpFNegate %3 %496
%498 = OpFNegate %3 %17
%499 = OpFNegate %3 %498
%500 = OpFNegate %3 %499
%501 = OpFNegate %3 %500
%502 = OpFNegate %3 %501
%503 = OpFNegate %3 %17
%504 = OpFNegate %3 %503
%505 = OpFNegate %3 %504
%506 = OpFNegate %3 %505
%507 = OpFNegate %3 %506
OpReturn
OpFunctionEnd
%512 = OpFunction %2 None %122
%508 = OpLabel
%511 = OpLoad %15 %509
OpBranch %514
%514 = OpLabel
%515 = OpFunctionCall %4 %26
%516 = OpCompositeExtract %16 %511 0
%517 = OpConvertUToF %3 %516
%518 = OpCompositeExtract %16 %511 1
%519 = OpBitcast %5 %518
%520 = OpFunctionCall %4 %74 %517 %519
%521 = OpFunctionCall %10 %112 %513
%522 = OpFunctionCall %2 %121
%523 = OpFunctionCall %2 %242
%524 = OpFunctionCall %2 %349
%525 = OpFunctionCall %2 %376
%526 = OpFunctionCall %2 %415
OpReturn
OpFunctionEnd