Don't remove SPIR-V blocks before codegen.
[platform/upstream/glslang.git] / Test / baseResults / spv.AofA.frag.out
1 spv.AofA.frag
2 Warning, version 430 is not yet complete; most version-specific features are present, but some are missing.
3
4
5 Linked fragment stage:
6
7
8 // Module Version 10000
9 // Generated by (magic number): 80001
10 // Id's are bound by 104
11
12                               Capability Shader
13                1:             ExtInstImport  "GLSL.std.450"
14                               MemoryModel Logical GLSL450
15                               EntryPoint Fragment 4  "main" 39 44 78
16                               ExecutionMode 4 OriginLowerLeft
17                               Source GLSL 430
18                               Name 4  "main"
19                               Name 17  "foo(f1[5][7];"
20                               Name 16  "a"
21                               Name 20  "r"
22                               Name 39  "outfloat"
23                               Name 42  "g4"
24                               Name 44  "g5"
25                               Name 45  "param"
26                               Name 48  "u"
27                               Name 52  "param"
28                               Name 66  "many"
29                               Name 68  "i"
30                               Name 70  "j"
31                               Name 72  "k"
32                               Name 78  "infloat"
33                               Name 94  "uAofA"
34                               MemberName 94(uAofA) 0  "f"
35                               Name 98  "nameAofA"
36                               Decorate 94(uAofA) GLSLShared
37                               Decorate 94(uAofA) Block
38                2:             TypeVoid
39                3:             TypeFunction 2
40                6:             TypeFloat 32
41                7:             TypeInt 32 0
42                8:      7(int) Constant 7
43                9:             TypeArray 6(float) 8
44               10:      7(int) Constant 5
45               11:             TypeArray 9 10
46               12:             TypePointer Function 11
47               13:      7(int) Constant 4
48               14:             TypeArray 9 13
49               15:             TypeFunction 14 12(ptr)
50               19:             TypePointer Function 9
51               21:             TypeInt 32 1
52               22:     21(int) Constant 2
53               25:     21(int) Constant 0
54               28:     21(int) Constant 1
55               32:     21(int) Constant 3
56               38:             TypePointer Output 6(float)
57     39(outfloat):     38(ptr) Variable Output
58               40:    6(float) Constant 0
59               41:             TypePointer Private 14
60           42(g4):     41(ptr) Variable Private
61               43:             TypePointer Input 11
62           44(g5):     43(ptr) Variable Input
63               49:    6(float) Constant 1077936128
64               50:             TypePointer Function 6(float)
65               55:      7(int) Constant 6
66               56:             TypeArray 6(float) 55
67               57:             TypeArray 56 10
68               58:             TypeArray 57 13
69               59:      7(int) Constant 3
70               60:             TypeArray 58 59
71               61:      7(int) Constant 2
72               62:             TypeArray 60 61
73               63:      7(int) Constant 1
74               64:             TypeArray 62 63
75               65:             TypePointer Private 64
76         66(many):     65(ptr) Variable Private
77               67:             TypePointer UniformConstant 21(int)
78            68(i):     67(ptr) Variable UniformConstant
79            70(j):     67(ptr) Variable UniformConstant
80            72(k):     67(ptr) Variable UniformConstant
81               77:             TypePointer Input 6(float)
82      78(infloat):     77(ptr) Variable Input
83               80:             TypePointer Private 6(float)
84               92:             TypeArray 6(float) 13
85               93:             TypeArray 92 61
86        94(uAofA):             TypeStruct 93
87               95:             TypeArray 94(uAofA) 10
88               96:             TypeArray 95 59
89               97:             TypePointer Uniform 96
90     98(nameAofA):     97(ptr) Variable Uniform
91               99:             TypePointer Uniform 6(float)
92          4(main):           2 Function None 3
93                5:             Label
94        45(param):     12(ptr) Variable Function
95            48(u):     12(ptr) Variable Function
96        52(param):     12(ptr) Variable Function
97                               Store 39(outfloat) 40
98               46:          11 Load 44(g5)
99                               Store 45(param) 46
100               47:          14 FunctionCall 17(foo(f1[5][7];) 45(param)
101                               Store 42(g4) 47
102               51:     50(ptr) AccessChain 48(u) 22 22
103                               Store 51 49
104               53:          11 Load 48(u)
105                               Store 52(param) 53
106               54:          14 FunctionCall 17(foo(f1[5][7];) 52(param)
107               69:     21(int) Load 68(i)
108               71:     21(int) Load 70(j)
109               73:     21(int) Load 72(k)
110               74:     21(int) Load 68(i)
111               75:     21(int) Load 70(j)
112               76:     21(int) Load 72(k)
113               79:    6(float) Load 78(infloat)
114               81:     80(ptr) AccessChain 66(many) 69 71 73 74 75 76
115                               Store 81 79
116               82:     21(int) Load 70(j)
117               83:     21(int) Load 70(j)
118               84:     21(int) Load 70(j)
119               85:     21(int) Load 70(j)
120               86:     21(int) Load 70(j)
121               87:     21(int) Load 70(j)
122               88:     80(ptr) AccessChain 66(many) 82 83 84 85 86 87
123               89:    6(float) Load 88
124               90:    6(float) Load 39(outfloat)
125               91:    6(float) FAdd 90 89
126                               Store 39(outfloat) 91
127              100:     99(ptr) AccessChain 98(nameAofA) 28 22 25 25 32
128              101:    6(float) Load 100
129              102:    6(float) Load 39(outfloat)
130              103:    6(float) FAdd 102 101
131                               Store 39(outfloat) 103
132                               Return
133                               FunctionEnd
134 17(foo(f1[5][7];):          14 Function None 15
135            16(a):     12(ptr) FunctionParameter
136               18:             Label
137            20(r):     19(ptr) Variable Function
138               23:     19(ptr) AccessChain 16(a) 22
139               24:           9 Load 23
140                               Store 20(r) 24
141               26:     19(ptr) AccessChain 16(a) 25
142               27:           9 Load 26
143               29:     19(ptr) AccessChain 16(a) 28
144               30:           9 Load 29
145               31:           9 Load 20(r)
146               33:     19(ptr) AccessChain 16(a) 32
147               34:           9 Load 33
148               35:          14 CompositeConstruct 27 30 31 34
149                               ReturnValue 35
150                               FunctionEnd