blob: bd449ae776a5b3d44f6a04981991f60e8bfd99eb [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 29
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
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 %m "m"
OpName %f "f"
OpName %v "v"
%bool = OpTypeBool
%_ptr_Private_bool = OpTypePointer Private %bool
%4 = OpConstantNull %bool
%t = OpVariable %_ptr_Private_bool Private %4
%void = OpTypeVoid
%5 = OpTypeFunction %void
%v2bool = OpTypeVector %bool 2
%9 = OpTypeFunction %v2bool
%true = OpConstantTrue %bool
%half = OpTypeFloat 16
%v2half = OpTypeVector %half 2
%half_0x0p_0 = OpConstant %half 0x0p+0
%half_0x1p_0 = OpConstant %half 0x1p+0
%24 = OpConstantComposite %v2half %half_0x0p_0 %half_0x0p_0
%25 = OpConstantComposite %v2half %half_0x1p_0 %half_0x1p_0
%_ptr_Function_v2half = OpTypePointer Function %v2half
%28 = OpConstantNull %v2half
%unused_entry_point = OpFunction %void None %5
%8 = OpLabel
OpReturn
OpFunctionEnd
%m = OpFunction %v2bool None %9
%12 = OpLabel
OpStore %t %true
%14 = OpLoad %bool %t
%15 = OpCompositeConstruct %v2bool %14 %14
OpReturnValue %15
OpFunctionEnd
%f = OpFunction %void None %5
%17 = OpLabel
%v = OpVariable %_ptr_Function_v2half Function %28
%18 = OpFunctionCall %v2bool %m
%19 = OpSelect %v2half %18 %25 %24
OpStore %v %19
OpReturn
OpFunctionEnd