Don't remove SPIR-V blocks before codegen.
[platform/upstream/glslang.git] / Test / baseResults / spv.bool.vert.out
1 spv.bool.vert
2 Warning, version 450 is not yet complete; most version-specific features are present, but some are missing.
3
4
5 Linked vertex stage:
6
7
8 // Module Version 10000
9 // Generated by (magic number): 80001
10 // Id's are bound by 50
11
12                               Capability Shader
13                1:             ExtInstImport  "GLSL.std.450"
14                               MemoryModel Logical GLSL450
15                               EntryPoint Vertex 4  "main" 24 48 49
16                               Source GLSL 450
17                               Name 4  "main"
18                               Name 10  "foo(b1;"
19                               Name 9  "b"
20                               Name 22  "gl_PerVertex"
21                               MemberName 22(gl_PerVertex) 0  "gl_Position"
22                               MemberName 22(gl_PerVertex) 1  "gl_PointSize"
23                               MemberName 22(gl_PerVertex) 2  "gl_ClipDistance"
24                               MemberName 22(gl_PerVertex) 3  "gl_CullDistance"
25                               Name 24  ""
26                               Name 29  "ubname"
27                               MemberName 29(ubname) 0  "b"
28                               Name 31  "ubinst"
29                               Name 32  "param"
30                               Name 48  "gl_VertexID"
31                               Name 49  "gl_InstanceID"
32                               MemberDecorate 22(gl_PerVertex) 0 BuiltIn Position
33                               MemberDecorate 22(gl_PerVertex) 1 BuiltIn PointSize
34                               MemberDecorate 22(gl_PerVertex) 2 BuiltIn ClipDistance
35                               MemberDecorate 22(gl_PerVertex) 3 BuiltIn CullDistance
36                               Decorate 22(gl_PerVertex) Block
37                               Decorate 29(ubname) GLSLShared
38                               Decorate 29(ubname) Block
39                               Decorate 48(gl_VertexID) BuiltIn VertexId
40                               Decorate 49(gl_InstanceID) BuiltIn InstanceId
41                2:             TypeVoid
42                3:             TypeFunction 2
43                6:             TypeBool
44                7:             TypePointer Function 6(bool)
45                8:             TypeFunction 6(bool) 7(ptr)
46               13:     6(bool) ConstantFalse
47               17:             TypeFloat 32
48               18:             TypeVector 17(float) 4
49               19:             TypeInt 32 0
50               20:     19(int) Constant 1
51               21:             TypeArray 17(float) 20
52 22(gl_PerVertex):             TypeStruct 18(fvec4) 17(float) 21 21
53               23:             TypePointer Output 22(gl_PerVertex)
54               24:     23(ptr) Variable Output
55               25:             TypeInt 32 1
56               26:     25(int) Constant 0
57               27:             TypePointer Function 18(fvec4)
58       29(ubname):             TypeStruct 6(bool)
59               30:             TypePointer Uniform 29(ubname)
60       31(ubinst):     30(ptr) Variable Uniform
61               33:             TypePointer Uniform 6(bool)
62               39:   17(float) Constant 0
63               40:   18(fvec4) ConstantComposite 39 39 39 39
64               42:   17(float) Constant 1065353216
65               43:   18(fvec4) ConstantComposite 42 42 42 42
66               45:             TypePointer Output 18(fvec4)
67               47:             TypePointer Input 25(int)
68  48(gl_VertexID):     47(ptr) Variable Input
69 49(gl_InstanceID):     47(ptr) Variable Input
70          4(main):           2 Function None 3
71                5:             Label
72               28:     27(ptr) Variable Function
73        32(param):      7(ptr) Variable Function
74               34:     33(ptr) AccessChain 31(ubinst) 26
75               35:     6(bool) Load 34
76                               Store 32(param) 35
77               36:     6(bool) FunctionCall 10(foo(b1;) 32(param)
78                               SelectionMerge 38 None
79                               BranchConditional 36 37 41
80               37:               Label
81                                 Store 28 40
82                                 Branch 38
83               41:               Label
84                                 Store 28 43
85                                 Branch 38
86               38:             Label
87               44:   18(fvec4) Load 28
88               46:     45(ptr) AccessChain 24 26
89                               Store 46 44
90                               Return
91                               FunctionEnd
92      10(foo(b1;):     6(bool) Function None 8
93             9(b):      7(ptr) FunctionParameter
94               11:             Label
95               12:     6(bool) Load 9(b)
96               14:     6(bool) INotEqual 12 13
97                               ReturnValue 14
98                               FunctionEnd