blob: d5800cc7be68620bc5892721074643bd83adbb2b [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 35
; Schema: 0
OpCapability Shader
%10 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %tint_extract_bits "tint_extract_bits"
OpName %v "v"
OpName %offset "offset"
OpName %count "count"
OpName %f_1 "f_1"
OpName %v_0 "v"
OpName %offset_1 "offset_1"
OpName %count_0 "count"
OpName %f "f"
%uint = OpTypeInt 32 0
%v3uint = OpTypeVector %uint 3
%1 = OpTypeFunction %v3uint %v3uint %uint %uint
%uint_32 = OpConstant %uint 32
%void = OpTypeVoid
%16 = OpTypeFunction %void
%20 = OpConstantNull %v3uint
%_ptr_Function_v3uint = OpTypePointer Function %v3uint
%uint_0 = OpConstant %uint 0
%_ptr_Function_uint = OpTypePointer Function %uint
%26 = OpConstantNull %uint
%tint_extract_bits = OpFunction %v3uint None %1
%v = OpFunctionParameter %v3uint
%offset = OpFunctionParameter %uint
%count = OpFunctionParameter %uint
%8 = OpLabel
%9 = OpExtInst %uint %10 UMin %offset %uint_32
%13 = OpIAdd %uint %9 %count
%12 = OpExtInst %uint %10 UMin %uint_32 %13
%15 = OpISub %uint %12 %9
%14 = OpBitFieldUExtract %v3uint %v %9 %15
OpReturnValue %14
OpFunctionEnd
%f_1 = OpFunction %void None %16
%19 = OpLabel
%v_0 = OpVariable %_ptr_Function_v3uint Function %20
%offset_1 = OpVariable %_ptr_Function_uint Function %26
%count_0 = OpVariable %_ptr_Function_uint Function %26
OpStore %v_0 %20
OpStore %offset_1 %uint_0
OpStore %count_0 %uint_0
%28 = OpLoad %v3uint %v_0
%29 = OpLoad %uint %offset_1
%30 = OpLoad %uint %count_0
%31 = OpFunctionCall %v3uint %tint_extract_bits %28 %29 %30
OpReturn
OpFunctionEnd
%f = OpFunction %void None %16
%33 = OpLabel
%34 = OpFunctionCall %void %f_1
OpReturn
OpFunctionEnd