| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 44 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpName %t "t" |
| OpName %unused_entry_point "unused_entry_point" |
| OpName %tint_ftoi "tint_ftoi" |
| OpName %v "v" |
| OpName %m "m" |
| OpName %f "f" |
| OpName %v_0 "v" |
| %float = OpTypeFloat 32 |
| %_ptr_Private_float = OpTypePointer Private %float |
| %4 = OpConstantNull %float |
| %t = OpVariable %_ptr_Private_float Private %4 |
| %void = OpTypeVoid |
| %5 = OpTypeFunction %void |
| %int = OpTypeInt 32 1 |
| %v2int = OpTypeVector %int 2 |
| %v2float = OpTypeVector %float 2 |
| %9 = OpTypeFunction %v2int %v2float |
| %float_2_14748352e_09 = OpConstant %float 2.14748352e+09 |
| %18 = OpConstantComposite %v2float %float_2_14748352e_09 %float_2_14748352e_09 |
| %bool = OpTypeBool |
| %v2bool = OpTypeVector %bool 2 |
| %float_n2_14748365e_09 = OpConstant %float -2.14748365e+09 |
| %24 = OpConstantComposite %v2float %float_n2_14748365e_09 %float_n2_14748365e_09 |
| %int_n2147483648 = OpConstant %int -2147483648 |
| %27 = OpConstantComposite %v2int %int_n2147483648 %int_n2147483648 |
| %int_2147483647 = OpConstant %int 2147483647 |
| %30 = OpConstantComposite %v2int %int_2147483647 %int_2147483647 |
| %31 = OpTypeFunction %v2float |
| %float_1 = OpConstant %float 1 |
| %_ptr_Function_v2int = OpTypePointer Function %v2int |
| %43 = OpConstantNull %v2int |
| %unused_entry_point = OpFunction %void None %5 |
| %8 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_ftoi = OpFunction %v2int None %9 |
| %v = OpFunctionParameter %v2float |
| %15 = OpLabel |
| %19 = OpFOrdLessThan %v2bool %v %18 |
| %25 = OpFOrdLessThan %v2bool %v %24 |
| %28 = OpConvertFToS %v2int %v |
| %22 = OpSelect %v2int %25 %27 %28 |
| %16 = OpSelect %v2int %19 %22 %30 |
| OpReturnValue %16 |
| OpFunctionEnd |
| %m = OpFunction %v2float None %31 |
| %33 = OpLabel |
| OpStore %t %float_1 |
| %35 = OpLoad %float %t |
| %36 = OpCompositeConstruct %v2float %35 %35 |
| OpReturnValue %36 |
| OpFunctionEnd |
| %f = OpFunction %void None %5 |
| %38 = OpLabel |
| %v_0 = OpVariable %_ptr_Function_v2int Function %43 |
| %39 = OpFunctionCall %v2float %m |
| %40 = OpFunctionCall %v2int %tint_ftoi %39 |
| OpStore %v_0 %40 |
| OpReturn |
| OpFunctionEnd |