dawn-cmake/test/tint/unittest/reader/spirv/SpvUnaryBitTest_BitCount_In...

49 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

; Test: SpvUnaryBitTest_BitCount_Int_Uint.spvasm
; SPIR-V
; Version: 1.0
; Generator: Khronos SPIR-V Tools Assembler; 0
; Bound: 101
; Schema: 0
OpCapability Shader
%2 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %100 "main"
OpExecutionMode %100 LocalSize 1 1 1
OpName %u1 "u1"
OpName %i1 "i1"
OpName %v2u1 "v2u1"
OpName %v2i1 "v2i1"
%void = OpTypeVoid
%8 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%int = OpTypeInt 32 1
%float = OpTypeFloat 32
%uint_10 = OpConstant %uint 10
%uint_20 = OpConstant %uint 20
%int_30 = OpConstant %int 30
%int_40 = OpConstant %int 40
%float_50 = OpConstant %float 50
%float_60 = OpConstant %float 60
%_ptr_Function_uint = OpTypePointer Function %uint
%_ptr_Function_int = OpTypePointer Function %int
%_ptr_Function_float = OpTypePointer Function %float
%v2uint = OpTypeVector %uint 2
%v2int = OpTypeVector %int 2
%v2float = OpTypeVector %float 2
%24 = OpConstantComposite %v2uint %uint_10 %uint_20
%25 = OpConstantComposite %v2uint %uint_20 %uint_10
%26 = OpConstantComposite %v2int %int_30 %int_40
%27 = OpConstantComposite %v2int %int_40 %int_30
%28 = OpConstantComposite %v2float %float_50 %float_60
%29 = OpConstantComposite %v2float %float_60 %float_50
%100 = OpFunction %void None %8
%30 = OpLabel
%u1 = OpCopyObject %uint %uint_10
%i1 = OpCopyObject %int %int_30
%v2u1 = OpCopyObject %v2uint %24
%v2i1 = OpCopyObject %v2int %26
%1 = OpBitCount %int %u1
OpReturn
OpFunctionEnd