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