SPV 1.4: Move to 1.4 validation, removing all 1.4 validation failures.
[platform/upstream/glslang.git] / Test / baseResults / spv.1.4.OpCopyLogicalBool.comp.out
1 spv.1.4.OpCopyLogicalBool.comp
2 // Module Version 10400
3 // Generated by (magic number): 80007
4 // Id's are bound by 135
5
6                               Capability Shader
7                1:             ExtInstImport  "GLSL.std.450"
8                               MemoryModel Logical GLSL450
9                               EntryPoint GLCompute 4  "main" 19 37 53 79 109
10                               ExecutionMode 4 LocalSize 1 1 1
11                               Source GLSL 450
12                               Name 4  "main"
13                               Name 12  "MyStruct"
14                               MemberName 12(MyStruct) 0  "foo"
15                               MemberName 12(MyStruct) 1  "sb"
16                               Name 14  "t"
17                               Name 16  "MyStruct"
18                               MemberName 16(MyStruct) 0  "foo"
19                               MemberName 16(MyStruct) 1  "sb"
20                               Name 17  "SSBO0"
21                               MemberName 17(SSBO0) 0  "a"
22                               Name 19  "inBuf"
23                               Name 35  "SSBO1"
24                               MemberName 35(SSBO1) 0  "b"
25                               Name 37  "outBuf"
26                               Name 50  "MyStruct"
27                               MemberName 50(MyStruct) 0  "foo"
28                               MemberName 50(MyStruct) 1  "sb"
29                               Name 51  "UBO"
30                               MemberName 51(UBO) 0  "c"
31                               Name 53  "uBuf"
32                               Name 72  "Nested"
33                               MemberName 72(Nested) 0  "b"
34                               MemberName 72(Nested) 1  "S"
35                               Name 74  "n"
36                               Name 76  "Nested"
37                               MemberName 76(Nested) 0  "b"
38                               MemberName 76(Nested) 1  "S"
39                               Name 77  "UBON"
40                               MemberName 77(UBON) 0  "N1"
41                               Name 79  "uBufN"
42                               Name 106  "Nested"
43                               MemberName 106(Nested) 0  "b"
44                               MemberName 106(Nested) 1  "S"
45                               Name 107  "SSBO1N"
46                               MemberName 107(SSBO1N) 0  "N2"
47                               Name 109  "outBufN"
48                               Decorate 15 ArrayStride 8
49                               MemberDecorate 16(MyStruct) 0 Offset 0
50                               MemberDecorate 16(MyStruct) 1 Offset 16
51                               MemberDecorate 17(SSBO0) 0 Offset 0
52                               Decorate 17(SSBO0) Block
53                               Decorate 19(inBuf) DescriptorSet 0
54                               Decorate 19(inBuf) Binding 0
55                               MemberDecorate 35(SSBO1) 0 Offset 0
56                               Decorate 35(SSBO1) Block
57                               Decorate 37(outBuf) DescriptorSet 0
58                               Decorate 37(outBuf) Binding 1
59                               Decorate 49 ArrayStride 16
60                               MemberDecorate 50(MyStruct) 0 Offset 0
61                               MemberDecorate 50(MyStruct) 1 Offset 32
62                               MemberDecorate 51(UBO) 0 Offset 0
63                               Decorate 51(UBO) Block
64                               Decorate 53(uBuf) DescriptorSet 0
65                               Decorate 53(uBuf) Binding 2
66                               Decorate 75 ArrayStride 48
67                               MemberDecorate 76(Nested) 0 Offset 0
68                               MemberDecorate 76(Nested) 1 Offset 16
69                               MemberDecorate 77(UBON) 0 Offset 0
70                               Decorate 77(UBON) Block
71                               Decorate 79(uBufN) DescriptorSet 0
72                               Decorate 79(uBufN) Binding 2
73                               Decorate 105 ArrayStride 24
74                               MemberDecorate 106(Nested) 0 Offset 0
75                               MemberDecorate 106(Nested) 1 Offset 8
76                               MemberDecorate 107(SSBO1N) 0 Offset 0
77                               Decorate 107(SSBO1N) Block
78                               Decorate 109(outBufN) DescriptorSet 0
79                               Decorate 109(outBufN) Binding 1
80                2:             TypeVoid
81                3:             TypeFunction 2
82                6:             TypeFloat 32
83                7:             TypeVector 6(float) 2
84                8:             TypeInt 32 0
85                9:      8(int) Constant 2
86               10:             TypeArray 7(fvec2) 9
87               11:             TypeBool
88     12(MyStruct):             TypeStruct 10 11(bool)
89               13:             TypePointer Function 12(MyStruct)
90               15:             TypeArray 7(fvec2) 9
91     16(MyStruct):             TypeStruct 15 8(int)
92        17(SSBO0):             TypeStruct 16(MyStruct)
93               18:             TypePointer StorageBuffer 17(SSBO0)
94        19(inBuf):     18(ptr) Variable StorageBuffer
95               20:             TypeInt 32 1
96               21:     20(int) Constant 0
97               22:             TypePointer StorageBuffer 16(MyStruct)
98               26:             TypePointer Function 10
99               30:     20(int) Constant 1
100               31:      8(int) Constant 0
101               33:             TypePointer Function 11(bool)
102        35(SSBO1):             TypeStruct 16(MyStruct)
103               36:             TypePointer StorageBuffer 35(SSBO1)
104       37(outBuf):     36(ptr) Variable StorageBuffer
105               41:             TypePointer StorageBuffer 15
106               45:      8(int) Constant 1
107               47:             TypePointer StorageBuffer 8(int)
108               49:             TypeArray 7(fvec2) 9
109     50(MyStruct):             TypeStruct 49 8(int)
110          51(UBO):             TypeStruct 50(MyStruct)
111               52:             TypePointer Uniform 51(UBO)
112         53(uBuf):     52(ptr) Variable Uniform
113               54:             TypePointer Uniform 50(MyStruct)
114               71:             TypeArray 12(MyStruct) 9
115       72(Nested):             TypeStruct 11(bool) 71
116               73:             TypePointer Function 72(Nested)
117               75:             TypeArray 50(MyStruct) 9
118       76(Nested):             TypeStruct 8(int) 75
119         77(UBON):             TypeStruct 76(Nested)
120               78:             TypePointer Uniform 77(UBON)
121        79(uBufN):     78(ptr) Variable Uniform
122               80:             TypePointer Uniform 76(Nested)
123               87:             TypePointer Function 71
124              105:             TypeArray 16(MyStruct) 9
125      106(Nested):             TypeStruct 8(int) 105
126      107(SSBO1N):             TypeStruct 106(Nested)
127              108:             TypePointer StorageBuffer 107(SSBO1N)
128     109(outBufN):    108(ptr) Variable StorageBuffer
129              111:             TypePointer StorageBuffer 106(Nested)
130              117:             TypePointer StorageBuffer 105
131          4(main):           2 Function None 3
132                5:             Label
133            14(t):     13(ptr) Variable Function
134            74(n):     73(ptr) Variable Function
135               23:     22(ptr) AccessChain 19(inBuf) 21
136               24:16(MyStruct) Load 23
137               25:          15 CompositeExtract 24 0
138               27:     26(ptr) AccessChain 14(t) 21
139               28:          10 CopyLogical 25
140                               Store 27 28
141               29:      8(int) CompositeExtract 24 1
142               32:    11(bool) INotEqual 29 31
143               34:     33(ptr) AccessChain 14(t) 30
144                               Store 34 32
145               38:12(MyStruct) Load 14(t)
146               39:     22(ptr) AccessChain 37(outBuf) 21
147               40:          10 CompositeExtract 38 0
148               42:     41(ptr) AccessChain 39 21
149               43:          15 CopyLogical 40
150                               Store 42 43
151               44:    11(bool) CompositeExtract 38 1
152               46:      8(int) Select 44 45 31
153               48:     47(ptr) AccessChain 39 30
154                               Store 48 46
155               55:     54(ptr) AccessChain 53(uBuf) 21
156               56:50(MyStruct) Load 55
157               57:          49 CompositeExtract 56 0
158               58:     26(ptr) AccessChain 14(t) 21
159               59:          10 CopyLogical 57
160                               Store 58 59
161               60:      8(int) CompositeExtract 56 1
162               61:    11(bool) INotEqual 60 31
163               62:     33(ptr) AccessChain 14(t) 30
164                               Store 62 61
165               63:12(MyStruct) Load 14(t)
166               64:     22(ptr) AccessChain 37(outBuf) 21
167               65:          10 CompositeExtract 63 0
168               66:     41(ptr) AccessChain 64 21
169               67:          15 CopyLogical 65
170                               Store 66 67
171               68:    11(bool) CompositeExtract 63 1
172               69:      8(int) Select 68 45 31
173               70:     47(ptr) AccessChain 64 30
174                               Store 70 69
175               81:     80(ptr) AccessChain 79(uBufN) 21
176               82:  76(Nested) Load 81
177               83:      8(int) CompositeExtract 82 0
178               84:    11(bool) INotEqual 83 31
179               85:     33(ptr) AccessChain 74(n) 21
180                               Store 85 84
181               86:          75 CompositeExtract 82 1
182               88:     87(ptr) AccessChain 74(n) 30
183               89:50(MyStruct) CompositeExtract 86 0
184               90:     13(ptr) AccessChain 88 21
185               91:          49 CompositeExtract 89 0
186               92:     26(ptr) AccessChain 90 21
187               93:          10 CopyLogical 91
188                               Store 92 93
189               94:      8(int) CompositeExtract 89 1
190               95:    11(bool) INotEqual 94 31
191               96:     33(ptr) AccessChain 90 30
192                               Store 96 95
193               97:50(MyStruct) CompositeExtract 86 1
194               98:     13(ptr) AccessChain 88 30
195               99:          49 CompositeExtract 97 0
196              100:     26(ptr) AccessChain 98 21
197              101:          10 CopyLogical 99
198                               Store 100 101
199              102:      8(int) CompositeExtract 97 1
200              103:    11(bool) INotEqual 102 31
201              104:     33(ptr) AccessChain 98 30
202                               Store 104 103
203              110:  72(Nested) Load 74(n)
204              112:    111(ptr) AccessChain 109(outBufN) 21
205              113:    11(bool) CompositeExtract 110 0
206              114:      8(int) Select 113 45 31
207              115:     47(ptr) AccessChain 112 21
208                               Store 115 114
209              116:          71 CompositeExtract 110 1
210              118:    117(ptr) AccessChain 112 30
211              119:12(MyStruct) CompositeExtract 116 0
212              120:     22(ptr) AccessChain 118 21
213              121:          10 CompositeExtract 119 0
214              122:     41(ptr) AccessChain 120 21
215              123:          15 CopyLogical 121
216                               Store 122 123
217              124:    11(bool) CompositeExtract 119 1
218              125:      8(int) Select 124 45 31
219              126:     47(ptr) AccessChain 120 30
220                               Store 126 125
221              127:12(MyStruct) CompositeExtract 116 1
222              128:     22(ptr) AccessChain 118 30
223              129:          10 CompositeExtract 127 0
224              130:     41(ptr) AccessChain 128 21
225              131:          15 CopyLogical 129
226                               Store 130 131
227              132:    11(bool) CompositeExtract 127 1
228              133:      8(int) Select 132 45 31
229              134:     47(ptr) AccessChain 128 30
230                               Store 134 133
231                               Return
232                               FunctionEnd