yum-mirror/glslang

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

Jeff BolzImplement GL_EXT_long_vector (#4132)b937eae5

main
9.7 KiB204 linesraw
1spv.longVectorBuiltinsBitcast.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 126
5
6                              Capability Shader
7                              Capability Float16
8                              Capability Float64
9                              Capability Int64
10                              Capability Int16
11                              Capability Int8
12                              Capability Float8EXT
13                              Capability BFloat16TypeKHR
14                              Capability LongVectorEXT
15                              Extension  "SPV_EXT_float8"
16                              Extension  "SPV_EXT_long_vector"
17                              Extension  "SPV_KHR_bfloat16"
18               1:             ExtInstImport  "GLSL.std.450"
19                              MemoryModel Logical GLSL450
20                              EntryPoint GLCompute 4  "main"
21                              ExecutionMode 4 LocalSize 64 1 1
22                              Source GLSL 450
23                              SourceExtension  "GL_EXT_bfloat16"
24                              SourceExtension  "GL_EXT_buffer_reference"
25                              SourceExtension  "GL_EXT_expect_assume"
26                              SourceExtension  "GL_EXT_float_e4m3"
27                              SourceExtension  "GL_EXT_float_e5m2"
28                              SourceExtension  "GL_EXT_long_vector"
29                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
30                              SourceExtension  "GL_KHR_memory_scope_semantics"
31                              Name 4  "main"
32                              Name 9  "vi16"
33                              Name 13  "vf16"
34                              Name 19  "vu16"
35                              Name 37  "vbf16"
36                              Name 49  "vi32"
37                              Name 53  "vf32"
38                              Name 59  "vu32"
39                              Name 69  "vi64"
40                              Name 73  "vf64"
41                              Name 79  "vu64"
42                              Name 89  "vi8"
43                              Name 93  "vfe5m2"
44                              Name 99  "vu8"
45                              Name 109  "vfe4m3"
46                              Decorate 119 DecorationSaturatedToLargestFloat8NormalConversionEXT
47                              Decorate 121 DecorationSaturatedToLargestFloat8NormalConversionEXT
48                              Decorate 125 BuiltIn WorkgroupSize
49               2:             TypeVoid
50               3:             TypeFunction 2
51               6:             TypeInt 16 1
52               7:             TypeVector 6(int16_t) 5
53               8:             TypePointer Function 7(i16vec)
54              10:             TypeFloat 16
55              11:             TypeVector 10(float16_t) 5
56              12:             TypePointer Function 11(f16vec)
57              16:             TypeInt 16 0
58              17:             TypeVector 16(int16_t) 5
59              18:             TypePointer Function 17(i16vec)
60              34:             TypeFloat 16 0
61              35:             TypeVector 34(bfloat16_t) 5
62              36:             TypePointer Function 35(bf16vec)
63              46:             TypeInt 32 1
64              47:             TypeVector 46(int) 5
65              48:             TypePointer Function 47(ivec)
66              50:             TypeFloat 32
67              51:             TypeVector 50(float) 5
68              52:             TypePointer Function 51(fvec)
69              56:             TypeInt 32 0
70              57:             TypeVector 56(int) 5
71              58:             TypePointer Function 57(ivec)
72              66:             TypeInt 64 1
73              67:             TypeVector 66(int64_t) 5
74              68:             TypePointer Function 67(i64vec)
75              70:             TypeFloat 64
76              71:             TypeVector 70(float64_t) 5
77              72:             TypePointer Function 71(f64vec)
78              76:             TypeInt 64 0
79              77:             TypeVector 76(int64_t) 5
80              78:             TypePointer Function 77(i64vec)
81              86:             TypeInt 8 1
82              87:             TypeVector 86(int8_t) 5
83              88:             TypePointer Function 87(i8vec)
84              90:             TypeFloat 8 4215
85              91:             TypeVector 90(floate5m2_t) 5
86              92:             TypePointer Function 91(fvec)
87              96:             TypeInt 8 0
88              97:             TypeVector 96(int8_t) 5
89              98:             TypePointer Function 97(i8vec)
90             106:             TypeFloat 8 4214
91             107:             TypeVector 106(floate4m3_t) 5
92             108:             TypePointer Function 107(fvec)
93             122:             TypeVector 56(int) 3
94             123:     56(int) Constant 64
95             124:     56(int) Constant 1
96             125:  122(ivec3) ConstantComposite 123 124 124
97         4(main):           2 Function None 3
98               5:             Label
99         9(vi16):      8(ptr) Variable Function
100        13(vf16):     12(ptr) Variable Function
101        19(vu16):     18(ptr) Variable Function
102       37(vbf16):     36(ptr) Variable Function
103        49(vi32):     48(ptr) Variable Function
104        53(vf32):     52(ptr) Variable Function
105        59(vu32):     58(ptr) Variable Function
106        69(vi64):     68(ptr) Variable Function
107        73(vf64):     72(ptr) Variable Function
108        79(vu64):     78(ptr) Variable Function
109         89(vi8):     88(ptr) Variable Function
110      93(vfe5m2):     92(ptr) Variable Function
111         99(vu8):     98(ptr) Variable Function
112     109(vfe4m3):    108(ptr) Variable Function
113              14:  11(f16vec) Load 13(vf16)
114              15:   7(i16vec) Bitcast 14
115                              Store 9(vi16) 15
116              20:  11(f16vec) Load 13(vf16)
117              21:  17(i16vec) Bitcast 20
118                              Store 19(vu16) 21
119              22:   7(i16vec) Load 9(vi16)
120              23:  11(f16vec) Bitcast 22
121                              Store 13(vf16) 23
122              24:  17(i16vec) Load 19(vu16)
123              25:  11(f16vec) Bitcast 24
124                              Store 13(vf16) 25
125              26:  11(f16vec) Load 13(vf16)
126              27:   7(i16vec) Bitcast 26
127                              Store 9(vi16) 27
128              28:  11(f16vec) Load 13(vf16)
129              29:  17(i16vec) Bitcast 28
130                              Store 19(vu16) 29
131              30:   7(i16vec) Load 9(vi16)
132              31:  11(f16vec) Bitcast 30
133                              Store 13(vf16) 31
134              32:  17(i16vec) Load 19(vu16)
135              33:  11(f16vec) Bitcast 32
136                              Store 13(vf16) 33
137              38: 35(bf16vec) Load 37(vbf16)
138              39:   7(i16vec) Bitcast 38
139                              Store 9(vi16) 39
140              40: 35(bf16vec) Load 37(vbf16)
141              41:  17(i16vec) Bitcast 40
142                              Store 19(vu16) 41
143              42:   7(i16vec) Load 9(vi16)
144              43: 35(bf16vec) Bitcast 42
145                              Store 37(vbf16) 43
146              44:  17(i16vec) Load 19(vu16)
147              45: 35(bf16vec) Bitcast 44
148                              Store 37(vbf16) 45
149              54:    51(fvec) Load 53(vf32)
150              55:    47(ivec) Bitcast 54
151                              Store 49(vi32) 55
152              60:    51(fvec) Load 53(vf32)
153              61:    57(ivec) Bitcast 60
154                              Store 59(vu32) 61
155              62:    47(ivec) Load 49(vi32)
156              63:    51(fvec) Bitcast 62
157                              Store 53(vf32) 63
158              64:    57(ivec) Load 59(vu32)
159              65:    51(fvec) Bitcast 64
160                              Store 53(vf32) 65
161              74:  71(f64vec) Load 73(vf64)
162              75:  67(i64vec) Bitcast 74
163                              Store 69(vi64) 75
164              80:  71(f64vec) Load 73(vf64)
165              81:  77(i64vec) Bitcast 80
166                              Store 79(vu64) 81
167              82:  67(i64vec) Load 69(vi64)
168              83:  71(f64vec) Bitcast 82
169                              Store 73(vf64) 83
170              84:  77(i64vec) Load 79(vu64)
171              85:  71(f64vec) Bitcast 84
172                              Store 73(vf64) 85
173              94:    91(fvec) Load 93(vfe5m2)
174              95:   87(i8vec) Bitcast 94
175                              Store 89(vi8) 95
176             100:    91(fvec) Load 93(vfe5m2)
177             101:   97(i8vec) Bitcast 100
178                              Store 99(vu8) 101
179             102:   87(i8vec) Load 89(vi8)
180             103:    91(fvec) Bitcast 102
181                              Store 93(vfe5m2) 103
182             104:   97(i8vec) Load 99(vu8)
183             105:    91(fvec) Bitcast 104
184                              Store 93(vfe5m2) 105
185             110:   107(fvec) Load 109(vfe4m3)
186             111:   87(i8vec) Bitcast 110
187                              Store 89(vi8) 111
188             112:   107(fvec) Load 109(vfe4m3)
189             113:   97(i8vec) Bitcast 112
190                              Store 99(vu8) 113
191             114:   87(i8vec) Load 89(vi8)
192             115:   107(fvec) Bitcast 114
193                              Store 109(vfe4m3) 115
194             116:   97(i8vec) Load 99(vu8)
195             117:   107(fvec) Bitcast 116
196                              Store 109(vfe4m3) 117
197             118:  11(f16vec) Load 13(vf16)
198             119:    91(fvec) FConvert 118
199                              Store 93(vfe5m2) 119
200             120:    51(fvec) Load 53(vf32)
201             121:   107(fvec) FConvert 120
202                              Store 109(vfe4m3) 121
203                              Return
204                              FunctionEnd