Generate separate stores for partially swizzled memory stores
[platform/upstream/glslang.git] / Test / baseResults / spv.interpOps.frag.out
1 spv.interpOps.frag
2 // Module Version 10000
3 // Generated by (magic number): 8000a
4 // Id's are bound by 120
5
6                               Capability Shader
7                               Capability InterpolationFunction
8                1:             ExtInstImport  "GLSL.std.450"
9                               MemoryModel Logical GLSL450
10                               EntryPoint Fragment 4  "main" 13 24 36 49 55 86 118
11                               ExecutionMode 4 OriginUpperLeft
12                               Source GLSL 450
13                               Name 4  "main"
14                               Name 9  "f4"
15                               Name 13  "if1"
16                               Name 24  "if2"
17                               Name 36  "if3"
18                               Name 49  "if4"
19                               Name 55  "samp"
20                               Name 86  "offset"
21                               Name 118  "fragColor"
22                               Decorate 13(if1) Location 0
23                               Decorate 24(if2) Location 1
24                               Decorate 36(if3) Location 2
25                               Decorate 49(if4) Location 3
26                               Decorate 55(samp) Flat
27                               Decorate 55(samp) Location 4
28                               Decorate 86(offset) Flat
29                               Decorate 86(offset) Location 5
30                               Decorate 118(fragColor) Location 0
31                2:             TypeVoid
32                3:             TypeFunction 2
33                6:             TypeFloat 32
34                7:             TypeVector 6(float) 4
35                8:             TypePointer Function 7(fvec4)
36               10:    6(float) Constant 0
37               11:    7(fvec4) ConstantComposite 10 10 10 10
38               12:             TypePointer Input 6(float)
39          13(if1):     12(ptr) Variable Input
40               15:             TypeInt 32 0
41               16:     15(int) Constant 0
42               17:             TypePointer Function 6(float)
43               22:             TypeVector 6(float) 2
44               23:             TypePointer Input 22(fvec2)
45          24(if2):     23(ptr) Variable Input
46               31:     15(int) Constant 1
47               34:             TypeVector 6(float) 3
48               35:             TypePointer Input 34(fvec3)
49          36(if3):     35(ptr) Variable Input
50               45:     15(int) Constant 2
51               48:             TypePointer Input 7(fvec4)
52          49(if4):     48(ptr) Variable Input
53               53:             TypeInt 32 1
54               54:             TypePointer Input 53(int)
55         55(samp):     54(ptr) Variable Input
56       86(offset):     23(ptr) Variable Input
57              117:             TypePointer Output 7(fvec4)
58   118(fragColor):    117(ptr) Variable Output
59          4(main):           2 Function None 3
60                5:             Label
61            9(f4):      8(ptr) Variable Function
62                               Store 9(f4) 11
63               14:    6(float) ExtInst 1(GLSL.std.450) 76(InterpolateAtCentroid) 13(if1)
64               18:     17(ptr) AccessChain 9(f4) 16
65               19:    6(float) Load 18
66               20:    6(float) FAdd 19 14
67               21:     17(ptr) AccessChain 9(f4) 16
68                               Store 21 20
69               25:   22(fvec2) ExtInst 1(GLSL.std.450) 76(InterpolateAtCentroid) 24(if2)
70               26:    7(fvec4) Load 9(f4)
71               27:   22(fvec2) VectorShuffle 26 26 0 1
72               28:   22(fvec2) FAdd 27 25
73               29:     17(ptr) AccessChain 9(f4) 16
74               30:    6(float) CompositeExtract 28 0
75                               Store 29 30
76               32:     17(ptr) AccessChain 9(f4) 31
77               33:    6(float) CompositeExtract 28 1
78                               Store 32 33
79               37:   34(fvec3) ExtInst 1(GLSL.std.450) 76(InterpolateAtCentroid) 36(if3)
80               38:    7(fvec4) Load 9(f4)
81               39:   34(fvec3) VectorShuffle 38 38 0 1 2
82               40:   34(fvec3) FAdd 39 37
83               41:     17(ptr) AccessChain 9(f4) 16
84               42:    6(float) CompositeExtract 40 0
85                               Store 41 42
86               43:     17(ptr) AccessChain 9(f4) 31
87               44:    6(float) CompositeExtract 40 1
88                               Store 43 44
89               46:     17(ptr) AccessChain 9(f4) 45
90               47:    6(float) CompositeExtract 40 2
91                               Store 46 47
92               50:    7(fvec4) ExtInst 1(GLSL.std.450) 76(InterpolateAtCentroid) 49(if4)
93               51:    7(fvec4) Load 9(f4)
94               52:    7(fvec4) FAdd 51 50
95                               Store 9(f4) 52
96               56:     53(int) Load 55(samp)
97               57:    6(float) ExtInst 1(GLSL.std.450) 77(InterpolateAtSample) 13(if1) 56
98               58:     17(ptr) AccessChain 9(f4) 16
99               59:    6(float) Load 58
100               60:    6(float) FAdd 59 57
101               61:     17(ptr) AccessChain 9(f4) 16
102                               Store 61 60
103               62:     53(int) Load 55(samp)
104               63:   22(fvec2) ExtInst 1(GLSL.std.450) 77(InterpolateAtSample) 24(if2) 62
105               64:    7(fvec4) Load 9(f4)
106               65:   22(fvec2) VectorShuffle 64 64 0 1
107               66:   22(fvec2) FAdd 65 63
108               67:     17(ptr) AccessChain 9(f4) 16
109               68:    6(float) CompositeExtract 66 0
110                               Store 67 68
111               69:     17(ptr) AccessChain 9(f4) 31
112               70:    6(float) CompositeExtract 66 1
113                               Store 69 70
114               71:     53(int) Load 55(samp)
115               72:   34(fvec3) ExtInst 1(GLSL.std.450) 77(InterpolateAtSample) 36(if3) 71
116               73:    7(fvec4) Load 9(f4)
117               74:   34(fvec3) VectorShuffle 73 73 0 1 2
118               75:   34(fvec3) FAdd 74 72
119               76:     17(ptr) AccessChain 9(f4) 16
120               77:    6(float) CompositeExtract 75 0
121                               Store 76 77
122               78:     17(ptr) AccessChain 9(f4) 31
123               79:    6(float) CompositeExtract 75 1
124                               Store 78 79
125               80:     17(ptr) AccessChain 9(f4) 45
126               81:    6(float) CompositeExtract 75 2
127                               Store 80 81
128               82:     53(int) Load 55(samp)
129               83:    7(fvec4) ExtInst 1(GLSL.std.450) 77(InterpolateAtSample) 49(if4) 82
130               84:    7(fvec4) Load 9(f4)
131               85:    7(fvec4) FAdd 84 83
132                               Store 9(f4) 85
133               87:   22(fvec2) Load 86(offset)
134               88:    6(float) ExtInst 1(GLSL.std.450) 78(InterpolateAtOffset) 13(if1) 87
135               89:     17(ptr) AccessChain 9(f4) 16
136               90:    6(float) Load 89
137               91:    6(float) FAdd 90 88
138               92:     17(ptr) AccessChain 9(f4) 16
139                               Store 92 91
140               93:   22(fvec2) Load 86(offset)
141               94:   22(fvec2) ExtInst 1(GLSL.std.450) 78(InterpolateAtOffset) 24(if2) 93
142               95:    7(fvec4) Load 9(f4)
143               96:   22(fvec2) VectorShuffle 95 95 0 1
144               97:   22(fvec2) FAdd 96 94
145               98:     17(ptr) AccessChain 9(f4) 16
146               99:    6(float) CompositeExtract 97 0
147                               Store 98 99
148              100:     17(ptr) AccessChain 9(f4) 31
149              101:    6(float) CompositeExtract 97 1
150                               Store 100 101
151              102:   22(fvec2) Load 86(offset)
152              103:   34(fvec3) ExtInst 1(GLSL.std.450) 78(InterpolateAtOffset) 36(if3) 102
153              104:    7(fvec4) Load 9(f4)
154              105:   34(fvec3) VectorShuffle 104 104 0 1 2
155              106:   34(fvec3) FAdd 105 103
156              107:     17(ptr) AccessChain 9(f4) 16
157              108:    6(float) CompositeExtract 106 0
158                               Store 107 108
159              109:     17(ptr) AccessChain 9(f4) 31
160              110:    6(float) CompositeExtract 106 1
161                               Store 109 110
162              111:     17(ptr) AccessChain 9(f4) 45
163              112:    6(float) CompositeExtract 106 2
164                               Store 111 112
165              113:   22(fvec2) Load 86(offset)
166              114:    7(fvec4) ExtInst 1(GLSL.std.450) 78(InterpolateAtOffset) 49(if4) 113
167              115:    7(fvec4) Load 9(f4)
168              116:    7(fvec4) FAdd 115 114
169                               Store 9(f4) 116
170              119:    7(fvec4) Load 9(f4)
171                               Store 118(fragColor) 119
172                               Return
173                               FunctionEnd