| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 28 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpName %u "u" |
| OpName %unused_entry_point "unused_entry_point" |
| OpName %tint_ftoi "tint_ftoi" |
| OpName %v "v" |
| OpName %f "f" |
| %float = OpTypeFloat 32 |
| %float_1 = OpConstant %float 1 |
| %_ptr_Private_float = OpTypePointer Private %float |
| %u = OpVariable %_ptr_Private_float Private %float_1 |
| %void = OpTypeVoid |
| %5 = OpTypeFunction %void |
| %int = OpTypeInt 32 1 |
| %9 = OpTypeFunction %int %float |
| %float_2_14748352e_09 = OpConstant %float 2.14748352e+09 |
| %bool = OpTypeBool |
| %float_n2_14748365e_09 = OpConstant %float -2.14748365e+09 |
| %int_n2147483648 = OpConstant %int -2147483648 |
| %int_2147483647 = OpConstant %int 2147483647 |
| %unused_entry_point = OpFunction %void None %5 |
| %8 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_ftoi = OpFunction %int None %9 |
| %v = OpFunctionParameter %float |
| %13 = OpLabel |
| %16 = OpFOrdLessThan %bool %v %float_2_14748352e_09 |
| %20 = OpFOrdLessThan %bool %v %float_n2_14748365e_09 |
| %22 = OpConvertFToS %int %v |
| %18 = OpSelect %int %20 %int_n2147483648 %22 |
| %14 = OpSelect %int %16 %18 %int_2147483647 |
| OpReturnValue %14 |
| OpFunctionEnd |
| %f = OpFunction %void None %5 |
| %25 = OpLabel |
| %27 = OpLoad %float %u |
| %26 = OpFunctionCall %int %tint_ftoi %27 |
| OpReturn |
| OpFunctionEnd |