Don't remove SPIR-V blocks before codegen.
[platform/upstream/glslang.git] / Test / baseResults / spv.matFun.vert.out
1 spv.matFun.vert
2
3 Linked vertex stage:
4
5
6 // Module Version 10000
7 // Generated by (magic number): 80001
8 // Id's are bound by 96
9
10                               Capability Shader
11                1:             ExtInstImport  "GLSL.std.450"
12                               MemoryModel Logical GLSL450
13                               EntryPoint Vertex 4  "main" 72 76 95
14                               Source GLSL 130
15                               Name 4  "main"
16                               Name 14  "xf(mf33;vf3;"
17                               Name 12  "m"
18                               Name 13  "v"
19                               Name 21  "Mat3(mf44;"
20                               Name 20  "m"
21                               Name 26  "mxv(mf44;vf3;"
22                               Name 24  "m4"
23                               Name 25  "v"
24                               Name 65  "param"
25                               Name 72  "gl_Position"
26                               Name 74  "m4"
27                               Name 76  "v3"
28                               Name 77  "param"
29                               Name 79  "param"
30                               Name 83  "m3"
31                               Name 84  "param"
32                               Name 86  "param"
33                               Name 95  "gl_VertexID"
34                               Decorate 72(gl_Position) BuiltIn Position
35                               Decorate 95(gl_VertexID) BuiltIn VertexId
36                2:             TypeVoid
37                3:             TypeFunction 2
38                6:             TypeFloat 32
39                7:             TypeVector 6(float) 3
40                8:             TypeMatrix 7(fvec3) 3
41                9:             TypePointer Function 8
42               10:             TypePointer Function 7(fvec3)
43               11:             TypeFunction 7(fvec3) 9(ptr) 10(ptr)
44               16:             TypeVector 6(float) 4
45               17:             TypeMatrix 16(fvec4) 4
46               18:             TypePointer Function 17
47               19:             TypeFunction 8 18(ptr)
48               23:             TypeFunction 7(fvec3) 18(ptr) 10(ptr)
49               33:             TypeInt 32 1
50               34:     33(int) Constant 0
51               35:             TypePointer Function 16(fvec4)
52               39:     33(int) Constant 1
53               43:     33(int) Constant 2
54               47:    6(float) Constant 1065353216
55               48:    6(float) Constant 0
56               71:             TypePointer Output 16(fvec4)
57  72(gl_Position):     71(ptr) Variable Output
58               73:             TypePointer UniformConstant 17
59           74(m4):     73(ptr) Variable UniformConstant
60               75:             TypePointer Input 7(fvec3)
61           76(v3):     75(ptr) Variable Input
62               82:             TypePointer UniformConstant 8
63           83(m3):     82(ptr) Variable UniformConstant
64               94:             TypePointer Input 33(int)
65  95(gl_VertexID):     94(ptr) Variable Input
66          4(main):           2 Function None 3
67                5:             Label
68        77(param):     18(ptr) Variable Function
69        79(param):     10(ptr) Variable Function
70        84(param):      9(ptr) Variable Function
71        86(param):     10(ptr) Variable Function
72               78:          17 Load 74(m4)
73                               Store 77(param) 78
74               80:    7(fvec3) Load 76(v3)
75                               Store 79(param) 80
76               81:    7(fvec3) FunctionCall 26(mxv(mf44;vf3;) 77(param) 79(param)
77               85:           8 Load 83(m3)
78                               Store 84(param) 85
79               87:    7(fvec3) Load 76(v3)
80                               Store 86(param) 87
81               88:    7(fvec3) FunctionCall 14(xf(mf33;vf3;) 84(param) 86(param)
82               89:    7(fvec3) FAdd 81 88
83               90:    6(float) CompositeExtract 89 0
84               91:    6(float) CompositeExtract 89 1
85               92:    6(float) CompositeExtract 89 2
86               93:   16(fvec4) CompositeConstruct 90 91 92 47
87                               Store 72(gl_Position) 93
88                               Return
89                               FunctionEnd
90 14(xf(mf33;vf3;):    7(fvec3) Function None 11
91            12(m):      9(ptr) FunctionParameter
92            13(v):     10(ptr) FunctionParameter
93               15:             Label
94               28:    7(fvec3) Load 13(v)
95               29:           8 Load 12(m)
96               30:    7(fvec3) VectorTimesMatrix 28 29
97                               ReturnValue 30
98                               FunctionEnd
99   21(Mat3(mf44;):           8 Function None 19
100            20(m):     18(ptr) FunctionParameter
101               22:             Label
102               36:     35(ptr) AccessChain 20(m) 34
103               37:   16(fvec4) Load 36
104               38:    7(fvec3) VectorShuffle 37 37 0 1 2
105               40:     35(ptr) AccessChain 20(m) 39
106               41:   16(fvec4) Load 40
107               42:    7(fvec3) VectorShuffle 41 41 0 1 2
108               44:     35(ptr) AccessChain 20(m) 43
109               45:   16(fvec4) Load 44
110               46:    7(fvec3) VectorShuffle 45 45 0 1 2
111               49:    6(float) CompositeExtract 38 0
112               50:    6(float) CompositeExtract 38 1
113               51:    6(float) CompositeExtract 38 2
114               52:    6(float) CompositeExtract 42 0
115               53:    6(float) CompositeExtract 42 1
116               54:    6(float) CompositeExtract 42 2
117               55:    6(float) CompositeExtract 46 0
118               56:    6(float) CompositeExtract 46 1
119               57:    6(float) CompositeExtract 46 2
120               58:    7(fvec3) CompositeConstruct 49 50 51
121               59:    7(fvec3) CompositeConstruct 52 53 54
122               60:    7(fvec3) CompositeConstruct 55 56 57
123               61:           8 CompositeConstruct 58 59 60
124                               ReturnValue 61
125                               FunctionEnd
126 26(mxv(mf44;vf3;):    7(fvec3) Function None 23
127           24(m4):     18(ptr) FunctionParameter
128            25(v):     10(ptr) FunctionParameter
129               27:             Label
130        65(param):     18(ptr) Variable Function
131               64:    7(fvec3) Load 25(v)
132               66:          17 Load 24(m4)
133                               Store 65(param) 66
134               67:           8 FunctionCall 21(Mat3(mf44;) 65(param)
135               68:    7(fvec3) VectorTimesMatrix 64 67
136                               ReturnValue 68
137                               FunctionEnd