yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Jeff BolzImplement GL_EXT_long_vector (#4132)b937eae5

main
9.2 KiB197 linesraw
1spv.longVectorBuiltinsuint16.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 130
5
6                              Capability Shader
7                              Capability Int16
8                              Capability LongVectorEXT
9                              Capability ExpectAssumeKHR
10                              Extension  "SPV_EXT_long_vector"
11                              Extension  "SPV_KHR_expect_assume"
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical GLSL450
14                              EntryPoint GLCompute 4  "main"
15                              ExecutionMode 4 LocalSize 64 1 1
16                              Source GLSL 450
17                              SourceExtension  "GL_EXT_buffer_reference"
18                              SourceExtension  "GL_EXT_expect_assume"
19                              SourceExtension  "GL_EXT_long_vector"
20                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
21                              SourceExtension  "GL_KHR_memory_scope_semantics"
22                              Name 4  "main"
23                              Name 9  "vu"
24                              Name 12  "u"
25                              Name 41  "vb"
26                              Name 62  "tempReturn"
27                              Name 65  "tempArg"
28                              Name 66  "ResType"
29                              Name 72  "tempReturn"
30                              Name 75  "tempArg"
31                              Name 83  "tempArg"
32                              Name 84  "tempArg"
33                              Name 93  "i"
34                              Name 111  "vi"
35                              Decorate 129 BuiltIn WorkgroupSize
36               2:             TypeVoid
37               3:             TypeFunction 2
38               6:             TypeInt 16 0
39               7:             TypeVector 6(int16_t) 5
40               8:             TypePointer Function 7(i16vec)
41              11:             TypePointer Function 6(int16_t)
42              38:             TypeBool
43              39:             TypeVector 38(bool) 5
44              40:             TypePointer Function 39(bvec)
45     66(ResType):             TypeStruct 7(i16vec) 7(i16vec)
46              91:             TypeInt 16 1
47              92:             TypePointer Function 91(int16_t)
48              95:             TypeInt 32 1
49             109:             TypeVector 91(int16_t) 5
50             110:             TypePointer Function 109(i16vec)
51             125:             TypeInt 32 0
52             126:             TypeVector 125(int) 3
53             127:    125(int) Constant 64
54             128:    125(int) Constant 1
55             129:  126(ivec3) ConstantComposite 127 128 128
56         4(main):           2 Function None 3
57               5:             Label
58           9(vu):      8(ptr) Variable Function
59           12(u):     11(ptr) Variable Function
60          41(vb):     40(ptr) Variable Function
61  62(tempReturn):      8(ptr) Variable Function
62     65(tempArg):      8(ptr) Variable Function
63  72(tempReturn):      8(ptr) Variable Function
64     75(tempArg):      8(ptr) Variable Function
65     83(tempArg):      8(ptr) Variable Function
66     84(tempArg):      8(ptr) Variable Function
67           93(i):     92(ptr) Variable Function
68         111(vi):    110(ptr) Variable Function
69              10:   7(i16vec) Load 9(vu)
70              13:  6(int16_t) Load 12(u)
71              14:   7(i16vec) CompositeConstruct 13 13 13 13 13
72              15:   7(i16vec) ExtInst 1(GLSL.std.450) 38(UMin) 10 14
73                              Store 9(vu) 15
74              16:   7(i16vec) Load 9(vu)
75              17:   7(i16vec) Load 9(vu)
76              18:   7(i16vec) ExtInst 1(GLSL.std.450) 38(UMin) 16 17
77                              Store 9(vu) 18
78              19:   7(i16vec) Load 9(vu)
79              20:  6(int16_t) Load 12(u)
80              21:   7(i16vec) CompositeConstruct 20 20 20 20 20
81              22:   7(i16vec) ExtInst 1(GLSL.std.450) 41(UMax) 19 21
82                              Store 9(vu) 22
83              23:   7(i16vec) Load 9(vu)
84              24:   7(i16vec) Load 9(vu)
85              25:   7(i16vec) ExtInst 1(GLSL.std.450) 41(UMax) 23 24
86                              Store 9(vu) 25
87              26:   7(i16vec) Load 9(vu)
88              27:  6(int16_t) Load 12(u)
89              28:  6(int16_t) Load 12(u)
90              29:   7(i16vec) CompositeConstruct 27 27 27 27 27
91              30:   7(i16vec) CompositeConstruct 28 28 28 28 28
92              31:   7(i16vec) ExtInst 1(GLSL.std.450) 44(UClamp) 26 29 30
93                              Store 9(vu) 31
94              32:   7(i16vec) Load 9(vu)
95              33:   7(i16vec) Load 9(vu)
96              34:   7(i16vec) Load 9(vu)
97              35:   7(i16vec) ExtInst 1(GLSL.std.450) 44(UClamp) 32 33 34
98                              Store 9(vu) 35
99              36:   7(i16vec) Load 9(vu)
100              37:   7(i16vec) Load 9(vu)
101              42:    39(bvec) Load 41(vb)
102              43:   7(i16vec) Select 42 37 36
103                              Store 9(vu) 43
104              44:   7(i16vec) Load 9(vu)
105              45:   7(i16vec) Load 9(vu)
106              46:    39(bvec) ULessThan 44 45
107                              Store 41(vb) 46
108              47:   7(i16vec) Load 9(vu)
109              48:   7(i16vec) Load 9(vu)
110              49:    39(bvec) ULessThanEqual 47 48
111                              Store 41(vb) 49
112              50:   7(i16vec) Load 9(vu)
113              51:   7(i16vec) Load 9(vu)
114              52:    39(bvec) UGreaterThan 50 51
115                              Store 41(vb) 52
116              53:   7(i16vec) Load 9(vu)
117              54:   7(i16vec) Load 9(vu)
118              55:    39(bvec) UGreaterThanEqual 53 54
119                              Store 41(vb) 55
120              56:   7(i16vec) Load 9(vu)
121              57:   7(i16vec) Load 9(vu)
122              58:    39(bvec) IEqual 56 57
123                              Store 41(vb) 58
124              59:   7(i16vec) Load 9(vu)
125              60:   7(i16vec) Load 9(vu)
126              61:    39(bvec) INotEqual 59 60
127                              Store 41(vb) 61
128              63:   7(i16vec) Load 9(vu)
129              64:   7(i16vec) Load 9(vu)
130              67: 66(ResType) IAddCarry 63 64
131              68:   7(i16vec) CompositeExtract 67 1
132                              Store 65(tempArg) 68
133              69:   7(i16vec) CompositeExtract 67 0
134                              Store 62(tempReturn) 69
135              70:   7(i16vec) Load 65(tempArg)
136                              Store 9(vu) 70
137              71:   7(i16vec) Load 62(tempReturn)
138                              Store 9(vu) 71
139              73:   7(i16vec) Load 9(vu)
140              74:   7(i16vec) Load 9(vu)
141              76: 66(ResType) ISubBorrow 73 74
142              77:   7(i16vec) CompositeExtract 76 1
143                              Store 75(tempArg) 77
144              78:   7(i16vec) CompositeExtract 76 0
145                              Store 72(tempReturn) 78
146              79:   7(i16vec) Load 75(tempArg)
147                              Store 9(vu) 79
148              80:   7(i16vec) Load 72(tempReturn)
149                              Store 9(vu) 80
150              81:   7(i16vec) Load 9(vu)
151              82:   7(i16vec) Load 9(vu)
152              85: 66(ResType) UMulExtended 81 82
153              86:   7(i16vec) CompositeExtract 85 0
154                              Store 84(tempArg) 86
155              87:   7(i16vec) CompositeExtract 85 1
156                              Store 83(tempArg) 87
157              88:   7(i16vec) Load 83(tempArg)
158                              Store 9(vu) 88
159              89:   7(i16vec) Load 84(tempArg)
160                              Store 9(vu) 89
161              90:   7(i16vec) Load 9(vu)
162              94: 91(int16_t) Load 93(i)
163              96:     95(int) SConvert 94
164              97: 91(int16_t) Load 93(i)
165              98:     95(int) SConvert 97
166              99:   7(i16vec) BitFieldUExtract 90 96 98
167                              Store 9(vu) 99
168             100:   7(i16vec) Load 9(vu)
169             101:   7(i16vec) Load 9(vu)
170             102: 91(int16_t) Load 93(i)
171             103:     95(int) SConvert 102
172             104: 91(int16_t) Load 93(i)
173             105:     95(int) SConvert 104
174             106:   7(i16vec) BitFieldInsert 100 101 103 105
175                              Store 9(vu) 106
176             107:   7(i16vec) Load 9(vu)
177             108:   7(i16vec) BitReverse 107
178                              Store 9(vu) 108
179             112:   7(i16vec) Load 9(vu)
180             113: 109(i16vec) BitCount 112
181                              Store 111(vi) 113
182             114:   7(i16vec) Load 9(vu)
183             115:   7(i16vec) Load 9(vu)
184             116:    39(bvec) Load 41(vb)
185             117:   7(i16vec) Select 116 115 114
186                              Store 9(vu) 117
187             118:    39(bvec) Load 41(vb)
188             119:    39(bvec) Load 41(vb)
189             120:    39(bvec) Load 41(vb)
190             121:    39(bvec) Select 120 119 118
191                              Store 41(vb) 121
192             122:   7(i16vec) Load 9(vu)
193             123:   7(i16vec) Load 9(vu)
194             124:   7(i16vec) ExpectKHR 122 123
195                              Store 9(vu) 124
196                              Return
197                              FunctionEnd