blob: cb952f731d664fedb2d5394e159755831403377d [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 36
; 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
%v3float = OpTypeVector %float 3
%float_1 = OpConstant %float 1
%4 = OpConstantComposite %v3float %float_1 %float_1 %float_1
%_ptr_Private_v3float = OpTypePointer Private %v3float
%u = OpVariable %_ptr_Private_v3float Private %4
%void = OpTypeVoid
%7 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%11 = OpTypeFunction %v3int %v3float
%float_2_14748352e_09 = OpConstant %float 2.14748352e+09
%19 = OpConstantComposite %v3float %float_2_14748352e_09 %float_2_14748352e_09 %float_2_14748352e_09
%bool = OpTypeBool
%v3bool = OpTypeVector %bool 3
%float_n2_14748365e_09 = OpConstant %float -2.14748365e+09
%25 = OpConstantComposite %v3float %float_n2_14748365e_09 %float_n2_14748365e_09 %float_n2_14748365e_09
%int_n2147483648 = OpConstant %int -2147483648
%28 = OpConstantComposite %v3int %int_n2147483648 %int_n2147483648 %int_n2147483648
%int_2147483647 = OpConstant %int 2147483647
%31 = OpConstantComposite %v3int %int_2147483647 %int_2147483647 %int_2147483647
%unused_entry_point = OpFunction %void None %7
%10 = OpLabel
OpReturn
OpFunctionEnd
%tint_ftoi = OpFunction %v3int None %11
%v = OpFunctionParameter %v3float
%16 = OpLabel
%20 = OpFOrdLessThan %v3bool %v %19
%26 = OpFOrdLessThan %v3bool %v %25
%29 = OpConvertFToS %v3int %v
%23 = OpSelect %v3int %26 %28 %29
%17 = OpSelect %v3int %20 %23 %31
OpReturnValue %17
OpFunctionEnd
%f = OpFunction %void None %7
%33 = OpLabel
%35 = OpLoad %v3float %u
%34 = OpFunctionCall %v3int %tint_ftoi %35
OpReturn
OpFunctionEnd