blob: 34c87023ae495576fadaaefe03b45fad4e6f87ca [file] [log] [blame]
David Netod1a026e2021-07-30 16:03:06 +00001; Test: SpvUnaryBitTest_BitCount_Uint_Int.spvasm
2; SPIR-V
3; Version: 1.0
4; Generator: Khronos SPIR-V Tools Assembler; 0
5; Bound: 101
6; Schema: 0
7OpCapability Shader
8%2 = OpExtInstImport "GLSL.std.450"
9OpMemoryModel Logical GLSL450
10OpEntryPoint GLCompute %100 "main"
11OpExecutionMode %100 LocalSize 1 1 1
12OpName %u1 "u1"
13OpName %i1 "i1"
14OpName %v2u1 "v2u1"
15OpName %v2i1 "v2i1"
16%void = OpTypeVoid
17%8 = OpTypeFunction %void
18%uint = OpTypeInt 32 0
19%int = OpTypeInt 32 1
20%float = OpTypeFloat 32
21%uint_10 = OpConstant %uint 10
22%uint_20 = OpConstant %uint 20
23%int_30 = OpConstant %int 30
24%int_40 = OpConstant %int 40
25%float_50 = OpConstant %float 50
26%float_60 = OpConstant %float 60
27%_ptr_Function_uint = OpTypePointer Function %uint
28%_ptr_Function_int = OpTypePointer Function %int
29%_ptr_Function_float = OpTypePointer Function %float
30%v2uint = OpTypeVector %uint 2
31%v2int = OpTypeVector %int 2
32%v2float = OpTypeVector %float 2
33%24 = OpConstantComposite %v2uint %uint_10 %uint_20
34%25 = OpConstantComposite %v2uint %uint_20 %uint_10
35%26 = OpConstantComposite %v2int %int_30 %int_40
36%27 = OpConstantComposite %v2int %int_40 %int_30
37%28 = OpConstantComposite %v2float %float_50 %float_60
38%29 = OpConstantComposite %v2float %float_60 %float_50
39%100 = OpFunction %void None %8
40%30 = OpLabel
41%u1 = OpCopyObject %uint %uint_10
42%i1 = OpCopyObject %int %int_30
43%v2u1 = OpCopyObject %v2uint %24
44%v2i1 = OpCopyObject %v2int %26
45%1 = OpBitCount %uint %i1
46OpReturn
47OpFunctionEnd
48