dawn-cmake/test/tint/builtins/extractBits/scalar/i32.spvasm

31 lines
1.3 KiB
Plaintext
Raw Normal View History

OpCapability Shader
%15 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %f "f"
OpName %v "v"
OpName %offset "offset"
OpName %count "count"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%8 = OpConstantNull %int
%uint = OpTypeInt 32 0
%_ptr_Function_uint = OpTypePointer Function %uint
%12 = OpConstantNull %uint
%uint_31 = OpConstant %uint 31
%uint_32 = OpConstant %uint 32
%f = OpFunction %void None %1
%4 = OpLabel
%v = OpVariable %_ptr_Function_int Function %8
%offset = OpVariable %_ptr_Function_uint Function %12
%count = OpVariable %_ptr_Function_uint Function %12
%16 = OpLoad %int %v
%17 = OpLoad %uint %offset
%18 = OpLoad %uint %count
%14 = OpBitFieldSExtract %int %16 %17 %18
OpReturn
OpFunctionEnd