657d6472e88322180f5a43623e5646697ca04251
[platform/upstream/glslang.git] / Test / baseResults / spv.1.4.OpSelect.frag.out
1 spv.1.4.OpSelect.frag
2 Validation failed
3 // Module Version 10400
4 // Generated by (magic number): 80007
5 // Id's are bound by 98
6
7                               Capability Shader
8                1:             ExtInstImport  "GLSL.std.450"
9                               MemoryModel Logical GLSL450
10                               EntryPoint Fragment 4  "main" 17 20 82 84
11                               ExecutionMode 4 OriginUpperLeft
12                               Source GLSL 450
13                               Name 4  "main"
14                               Name 6  "fun1("
15                               Name 8  "fun2("
16                               Name 12  "f1"
17                               Name 14  "f2"
18                               Name 17  "outv"
19                               Name 20  "cond"
20                               Name 30  "iv1"
21                               Name 34  "iv2"
22                               Name 53  "m1"
23                               Name 59  "m2"
24                               Name 75  "S1"
25                               MemberName 75(S1) 0  "a"
26                               MemberName 75(S1) 1  "b"
27                               Name 77  "fv"
28                               Name 82  "in1"
29                               Name 84  "in2"
30                               Decorate 17(outv) Location 0
31                               Decorate 20(cond) Flat
32                               Decorate 20(cond) Location 4
33                               Decorate 82(in1) Flat
34                               Decorate 82(in1) Location 0
35                               Decorate 84(in2) Flat
36                               Decorate 84(in2) Location 2
37                2:             TypeVoid
38                3:             TypeFunction 2
39               10:             TypeFloat 32
40               11:             TypePointer Function 10(float)
41               13:   10(float) Constant 1065353216
42               15:   10(float) Constant 1073741824
43               16:             TypePointer Output 10(float)
44         17(outv):     16(ptr) Variable Output
45               18:             TypeInt 32 1
46               19:             TypePointer Input 18(int)
47         20(cond):     19(ptr) Variable Input
48               22:     18(int) Constant 8
49               23:             TypeBool
50               28:             TypeVector 18(int) 4
51               29:             TypePointer Function 28(ivec4)
52               39:     18(int) Constant 0
53               44:             TypeInt 32 0
54               45:     44(int) Constant 2
55               50:             TypeVector 10(float) 3
56               51:             TypeMatrix 50(fvec3) 3
57               52:             TypePointer Function 51
58               54:   10(float) Constant 0
59               55:   50(fvec3) ConstantComposite 13 54 54
60               56:   50(fvec3) ConstantComposite 54 13 54
61               57:   50(fvec3) ConstantComposite 54 54 13
62               58:          51 ConstantComposite 55 56 57
63               60:   50(fvec3) ConstantComposite 15 54 54
64               61:   50(fvec3) ConstantComposite 54 15 54
65               62:   50(fvec3) ConstantComposite 54 54 15
66               63:          51 ConstantComposite 60 61 62
67               65:     18(int) Constant 20
68               70:     18(int) Constant 2
69               71:     44(int) Constant 1
70           75(S1):             TypeStruct 10(float) 18(int)
71               76:             TypePointer Function 75(S1)
72               79:     18(int) Constant 5
73               81:             TypePointer Input 75(S1)
74          82(in1):     81(ptr) Variable Input
75          84(in2):     81(ptr) Variable Input
76          4(main):           2 Function None 3
77                5:             Label
78           12(f1):     11(ptr) Variable Function
79           14(f2):     11(ptr) Variable Function
80          30(iv1):     29(ptr) Variable Function
81          34(iv2):     29(ptr) Variable Function
82           53(m1):     52(ptr) Variable Function
83           59(m2):     52(ptr) Variable Function
84           77(fv):     76(ptr) Variable Function
85                               Store 12(f1) 13
86                               Store 14(f2) 15
87               21:     18(int) Load 20(cond)
88               24:    23(bool) SLessThan 21 22
89               25:   10(float) Load 12(f1)
90               26:   10(float) Load 14(f2)
91               27:   10(float) Select 24 25 26
92                               Store 17(outv) 27
93               31:   10(float) Load 12(f1)
94               32:     18(int) ConvertFToS 31
95               33:   28(ivec4) CompositeConstruct 32 32 32 32
96                               Store 30(iv1) 33
97               35:   10(float) Load 14(f2)
98               36:     18(int) ConvertFToS 35
99               37:   28(ivec4) CompositeConstruct 36 36 36 36
100                               Store 34(iv2) 37
101               38:     18(int) Load 20(cond)
102               40:    23(bool) SGreaterThan 38 39
103               41:   28(ivec4) Load 30(iv1)
104               42:   28(ivec4) Load 34(iv2)
105               43:   28(ivec4) Select 40 41 42
106               46:     18(int) CompositeExtract 43 2
107               47:   10(float) ConvertSToF 46
108               48:   10(float) Load 17(outv)
109               49:   10(float) FMul 48 47
110                               Store 17(outv) 49
111                               Store 53(m1) 58
112                               Store 59(m2) 63
113               64:     18(int) Load 20(cond)
114               66:    23(bool) SLessThan 64 65
115               67:          51 Load 53(m1)
116               68:          51 Load 59(m2)
117               69:          51 Select 66 67 68
118               72:   10(float) CompositeExtract 69 2 1
119               73:   10(float) Load 17(outv)
120               74:   10(float) FMul 73 72
121                               Store 17(outv) 74
122               78:     18(int) Load 20(cond)
123               80:    23(bool) SGreaterThan 78 79
124               83:      75(S1) Load 82(in1)
125               85:      75(S1) Load 84(in2)
126               86:      75(S1) Select 80 83 85
127                               Store 77(fv) 86
128               87:     11(ptr) AccessChain 77(fv) 39
129               88:   10(float) Load 87
130               89:   10(float) Load 17(outv)
131               90:   10(float) FMul 89 88
132                               Store 17(outv) 90
133               91:     18(int) Load 20(cond)
134               92:    23(bool) SGreaterThan 91 39
135                               SelectionMerge 94 None
136                               BranchConditional 92 93 96
137               93:               Label
138               95:           2   FunctionCall 6(fun1()
139                                 Branch 94
140               96:               Label
141               97:           2   FunctionCall 8(fun2()
142                                 Branch 94
143               94:             Label
144                               Return
145                               FunctionEnd
146         6(fun1():           2 Function None 3
147                7:             Label
148                               Return
149                               FunctionEnd
150         8(fun2():           2 Function None 3
151                9:             Label
152                               Return
153                               FunctionEnd