blob: 6043ff173f3c735fc6c5618181d2bb89d3379d36 [file] [log] [blame]
; 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
%v4int = OpTypeVector %int 4
%v4float = OpTypeVector %float 4
%9 = OpTypeFunction %v4int %v4float
%float_2_14748352e_09 = OpConstant %float 2.14748352e+09
%18 = OpConstantComposite %v4float %float_2_14748352e_09 %float_2_14748352e_09 %float_2_14748352e_09 %float_2_14748352e_09
%bool = OpTypeBool
%v4bool = OpTypeVector %bool 4
%float_n2_14748365e_09 = OpConstant %float -2.14748365e+09
%24 = OpConstantComposite %v4float %float_n2_14748365e_09 %float_n2_14748365e_09 %float_n2_14748365e_09 %float_n2_14748365e_09
%int_n2147483648 = OpConstant %int -2147483648
%27 = OpConstantComposite %v4int %int_n2147483648 %int_n2147483648 %int_n2147483648 %int_n2147483648
%int_2147483647 = OpConstant %int 2147483647
%30 = OpConstantComposite %v4int %int_2147483647 %int_2147483647 %int_2147483647 %int_2147483647
%31 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%_ptr_Function_v4int = OpTypePointer Function %v4int
%43 = OpConstantNull %v4int
%unused_entry_point = OpFunction %void None %5
%8 = OpLabel
OpReturn
OpFunctionEnd
%tint_ftoi = OpFunction %v4int None %9
%v = OpFunctionParameter %v4float
%15 = OpLabel
%19 = OpFOrdLessThan %v4bool %v %18
%25 = OpFOrdLessThan %v4bool %v %24
%28 = OpConvertFToS %v4int %v
%22 = OpSelect %v4int %25 %27 %28
%16 = OpSelect %v4int %19 %22 %30
OpReturnValue %16
OpFunctionEnd
%m = OpFunction %v4float None %31
%33 = OpLabel
OpStore %t %float_1
%35 = OpLoad %float %t
%36 = OpCompositeConstruct %v4float %35 %35 %35 %35
OpReturnValue %36
OpFunctionEnd
%f = OpFunction %void None %5
%38 = OpLabel
%v_0 = OpVariable %_ptr_Function_v4int Function %43
%39 = OpFunctionCall %v4float %m
%40 = OpFunctionCall %v4int %tint_ftoi %39
OpStore %v_0 %40
OpReturn
OpFunctionEnd