blob: 54328c513cd5590757c435f4f738d6b7da139a1f [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 25
; 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"
%half = OpTypeFloat 16
%_ptr_Private_half = OpTypePointer Private %half
%4 = OpConstantNull %half
%t = OpVariable %_ptr_Private_half Private %4
%void = OpTypeVoid
%5 = OpTypeFunction %void
%v2half = OpTypeVector %half 2
%9 = OpTypeFunction %v2half
%half_0x1p_0 = OpConstant %half 0x1p+0
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%_ptr_Function_v2int = OpTypePointer Function %v2int
%24 = OpConstantNull %v2int
%unused_entry_point = OpFunction %void None %5
%8 = OpLabel
OpReturn
OpFunctionEnd
%m = OpFunction %v2half None %9
%12 = OpLabel
OpStore %t %half_0x1p_0
%14 = OpLoad %half %t
%15 = OpCompositeConstruct %v2half %14 %14
OpReturnValue %15
OpFunctionEnd
%f = OpFunction %void None %5
%17 = OpLabel
%v = OpVariable %_ptr_Function_v2int Function %24
%18 = OpFunctionCall %v2half %m
%19 = OpConvertFToS %v2int %18
OpStore %v %19
OpReturn
OpFunctionEnd