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