blob: 526d0ef0ad4714959cefbb1d3bb29e257a153412 [file] [log] [blame]
David Netod1a026e2021-07-30 16:03:06 +00001; Test: SpvParserTest_Normalize_Scalar.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 %u2 "u2"
14OpName %u3 "u3"
15OpName %i1 "i1"
16OpName %i2 "i2"
17OpName %i3 "i3"
18OpName %f1 "f1"
19OpName %f2 "f2"
20OpName %f3 "f3"
21OpName %v2u1 "v2u1"
22OpName %v2u2 "v2u2"
23OpName %v2u3 "v2u3"
24OpName %v2i1 "v2i1"
25OpName %v2i2 "v2i2"
26OpName %v2i3 "v2i3"
27OpName %v2f1 "v2f1"
28OpName %v2f2 "v2f2"
29OpName %v2f3 "v2f3"
30OpName %v3f1 "v3f1"
31OpName %v3f2 "v3f2"
32OpName %v4f1 "v4f1"
33OpName %v4f2 "v4f2"
34%void = OpTypeVoid
35%26 = OpTypeFunction %void
36%uint = OpTypeInt 32 0
37%int = OpTypeInt 32 1
38%float = OpTypeFloat 32
39%uint_10 = OpConstant %uint 10
40%uint_15 = OpConstant %uint 15
41%uint_20 = OpConstant %uint 20
42%int_30 = OpConstant %int 30
43%int_35 = OpConstant %int 35
44%int_40 = OpConstant %int 40
45%float_50 = OpConstant %float 50
46%float_60 = OpConstant %float 60
47%float_70 = OpConstant %float 70
48%v2uint = OpTypeVector %uint 2
49%v2int = OpTypeVector %int 2
50%v2float = OpTypeVector %float 2
51%v3float = OpTypeVector %float 3
52%v4float = OpTypeVector %float 4
53%44 = OpConstantComposite %v2uint %uint_10 %uint_20
54%45 = OpConstantComposite %v2uint %uint_20 %uint_10
55%46 = OpConstantComposite %v2uint %uint_15 %uint_15
56%47 = OpConstantComposite %v2int %int_30 %int_40
57%48 = OpConstantComposite %v2int %int_40 %int_30
58%49 = OpConstantComposite %v2int %int_35 %int_35
59%50 = OpConstantComposite %v2float %float_50 %float_60
60%51 = OpConstantComposite %v2float %float_60 %float_50
61%52 = OpConstantComposite %v2float %float_70 %float_70
62%53 = OpConstantComposite %v3float %float_50 %float_60 %float_70
63%54 = OpConstantComposite %v3float %float_60 %float_70 %float_50
64%55 = OpConstantComposite %v4float %float_50 %float_50 %float_50 %float_50
65%100 = OpFunction %void None %26
66%56 = OpLabel
67%u1 = OpCopyObject %uint %uint_10
68%u2 = OpCopyObject %uint %uint_15
69%u3 = OpCopyObject %uint %uint_20
70%i1 = OpCopyObject %int %int_30
71%i2 = OpCopyObject %int %int_35
72%i3 = OpCopyObject %int %int_40
73%f1 = OpCopyObject %float %float_50
74%f2 = OpCopyObject %float %float_60
75%f3 = OpCopyObject %float %float_70
76%v2u1 = OpCopyObject %v2uint %44
77%v2u2 = OpCopyObject %v2uint %45
78%v2u3 = OpCopyObject %v2uint %46
79%v2i1 = OpCopyObject %v2int %47
80%v2i2 = OpCopyObject %v2int %48
81%v2i3 = OpCopyObject %v2int %49
82%v2f1 = OpCopyObject %v2float %50
83%v2f2 = OpCopyObject %v2float %51
84%v2f3 = OpCopyObject %v2float %52
85%v3f1 = OpCopyObject %v3float %53
86%v3f2 = OpCopyObject %v3float %54
87%v4f1 = OpCopyObject %v4float %55
88%v4f2 = OpCopyObject %v4float %v4f1
89%1 = OpExtInst %float %2 Normalize %f1
90OpReturn
91OpFunctionEnd
92