blob: ebee7aea8fed57866ee928f628e2d14a0b01c8e4 [file] [edit]
spv.longVectorBuiltinsfp16.comp
// Module Version 10300
// Generated by (magic number): 8000b
// Id's are bound by 220
Capability Shader
Capability Float16
Capability Int16
Capability LongVectorEXT
Extension "SPV_AMD_gpu_shader_int16"
Extension "SPV_EXT_long_vector"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint GLCompute 4 "main"
ExecutionMode 4 LocalSize 64 1 1
Source GLSL 450
SourceExtension "GL_EXT_buffer_reference"
SourceExtension "GL_EXT_expect_assume"
SourceExtension "GL_EXT_long_vector"
SourceExtension "GL_EXT_shader_explicit_arithmetic_types"
SourceExtension "GL_KHR_memory_scope_semantics"
Name 4 "main"
Name 9 "vf"
Name 74 "f"
Name 81 "tempReturn"
Name 83 "tempArg"
Name 84 "ResType"
Name 128 "vb"
Name 160 "vi"
Name 161 "ResType"
Name 208 "b"
Decorate 219 BuiltIn WorkgroupSize
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 16
7: TypeVector 6(float16_t) 5
8: TypePointer Function 7(f16vec)
73: TypePointer Function 6(float16_t)
84(ResType): TypeStruct 7(f16vec) 7(f16vec)
125: TypeBool
126: TypeVector 125(bool) 5
127: TypePointer Function 126(bvec)
157: TypeInt 16 1
158: TypeVector 157(int16_t) 5
159: TypePointer Function 158(i16vec)
161(ResType): TypeStruct 7(f16vec) 158(i16vec)
207: TypePointer Function 125(bool)
215: TypeInt 32 0
216: TypeVector 215(int) 3
217: 215(int) Constant 64
218: 215(int) Constant 1
219: 216(ivec3) ConstantComposite 217 218 218
4(main): 2 Function None 3
5: Label
9(vf): 8(ptr) Variable Function
74(f): 73(ptr) Variable Function
81(tempReturn): 8(ptr) Variable Function
83(tempArg): 8(ptr) Variable Function
128(vb): 127(ptr) Variable Function
160(vi): 159(ptr) Variable Function
208(b): 207(ptr) Variable Function
10: 7(f16vec) Load 9(vf)
11: 7(f16vec) ExtInst 1(GLSL.std.450) 11(Radians) 10
Store 9(vf) 11
12: 7(f16vec) Load 9(vf)
13: 7(f16vec) ExtInst 1(GLSL.std.450) 12(Degrees) 12
Store 9(vf) 13
14: 7(f16vec) Load 9(vf)
15: 7(f16vec) ExtInst 1(GLSL.std.450) 13(Sin) 14
Store 9(vf) 15
16: 7(f16vec) Load 9(vf)
17: 7(f16vec) ExtInst 1(GLSL.std.450) 14(Cos) 16
Store 9(vf) 17
18: 7(f16vec) Load 9(vf)
19: 7(f16vec) ExtInst 1(GLSL.std.450) 15(Tan) 18
Store 9(vf) 19
20: 7(f16vec) Load 9(vf)
21: 7(f16vec) ExtInst 1(GLSL.std.450) 16(Asin) 20
Store 9(vf) 21
22: 7(f16vec) Load 9(vf)
23: 7(f16vec) ExtInst 1(GLSL.std.450) 17(Acos) 22
Store 9(vf) 23
24: 7(f16vec) Load 9(vf)
25: 7(f16vec) ExtInst 1(GLSL.std.450) 18(Atan) 24
Store 9(vf) 25
26: 7(f16vec) Load 9(vf)
27: 7(f16vec) Load 9(vf)
28: 7(f16vec) ExtInst 1(GLSL.std.450) 25(Atan2) 26 27
Store 9(vf) 28
29: 7(f16vec) Load 9(vf)
30: 7(f16vec) ExtInst 1(GLSL.std.450) 19(Sinh) 29
Store 9(vf) 30
31: 7(f16vec) Load 9(vf)
32: 7(f16vec) ExtInst 1(GLSL.std.450) 20(Cosh) 31
Store 9(vf) 32
33: 7(f16vec) Load 9(vf)
34: 7(f16vec) ExtInst 1(GLSL.std.450) 21(Tanh) 33
Store 9(vf) 34
35: 7(f16vec) Load 9(vf)
36: 7(f16vec) ExtInst 1(GLSL.std.450) 22(Asinh) 35
Store 9(vf) 36
37: 7(f16vec) Load 9(vf)
38: 7(f16vec) ExtInst 1(GLSL.std.450) 23(Acosh) 37
Store 9(vf) 38
39: 7(f16vec) Load 9(vf)
40: 7(f16vec) ExtInst 1(GLSL.std.450) 24(Atanh) 39
Store 9(vf) 40
41: 7(f16vec) Load 9(vf)
42: 7(f16vec) Load 9(vf)
43: 7(f16vec) ExtInst 1(GLSL.std.450) 26(Pow) 41 42
Store 9(vf) 43
44: 7(f16vec) Load 9(vf)
45: 7(f16vec) ExtInst 1(GLSL.std.450) 27(Exp) 44
Store 9(vf) 45
46: 7(f16vec) Load 9(vf)
47: 7(f16vec) ExtInst 1(GLSL.std.450) 28(Log) 46
Store 9(vf) 47
48: 7(f16vec) Load 9(vf)
49: 7(f16vec) ExtInst 1(GLSL.std.450) 29(Exp2) 48
Store 9(vf) 49
50: 7(f16vec) Load 9(vf)
51: 7(f16vec) ExtInst 1(GLSL.std.450) 30(Log2) 50
Store 9(vf) 51
52: 7(f16vec) Load 9(vf)
53: 7(f16vec) ExtInst 1(GLSL.std.450) 31(Sqrt) 52
Store 9(vf) 53
54: 7(f16vec) Load 9(vf)
55: 7(f16vec) ExtInst 1(GLSL.std.450) 32(InverseSqrt) 54
Store 9(vf) 55
56: 7(f16vec) Load 9(vf)
57: 7(f16vec) ExtInst 1(GLSL.std.450) 4(FAbs) 56
Store 9(vf) 57
58: 7(f16vec) Load 9(vf)
59: 7(f16vec) ExtInst 1(GLSL.std.450) 6(FSign) 58
Store 9(vf) 59
60: 7(f16vec) Load 9(vf)
61: 7(f16vec) ExtInst 1(GLSL.std.450) 8(Floor) 60
Store 9(vf) 61
62: 7(f16vec) Load 9(vf)
63: 7(f16vec) ExtInst 1(GLSL.std.450) 3(Trunc) 62
Store 9(vf) 63
64: 7(f16vec) Load 9(vf)
65: 7(f16vec) ExtInst 1(GLSL.std.450) 1(Round) 64
Store 9(vf) 65
66: 7(f16vec) Load 9(vf)
67: 7(f16vec) ExtInst 1(GLSL.std.450) 2(RoundEven) 66
Store 9(vf) 67
68: 7(f16vec) Load 9(vf)
69: 7(f16vec) ExtInst 1(GLSL.std.450) 9(Ceil) 68
Store 9(vf) 69
70: 7(f16vec) Load 9(vf)
71: 7(f16vec) ExtInst 1(GLSL.std.450) 10(Fract) 70
Store 9(vf) 71
72: 7(f16vec) Load 9(vf)
75:6(float16_t) Load 74(f)
76: 7(f16vec) CompositeConstruct 75 75 75 75 75
77: 7(f16vec) FMod 72 76
Store 9(vf) 77
78: 7(f16vec) Load 9(vf)
79: 7(f16vec) Load 9(vf)
80: 7(f16vec) FMod 78 79
Store 9(vf) 80
82: 7(f16vec) Load 9(vf)
85: 84(ResType) ExtInst 1(GLSL.std.450) 36(ModfStruct) 82
86: 7(f16vec) CompositeExtract 85 1
Store 83(tempArg) 86
87: 7(f16vec) CompositeExtract 85 0
Store 81(tempReturn) 87
88: 7(f16vec) Load 83(tempArg)
Store 9(vf) 88
89: 7(f16vec) Load 81(tempReturn)
Store 9(vf) 89
90: 7(f16vec) Load 9(vf)
91:6(float16_t) Load 74(f)
92: 7(f16vec) CompositeConstruct 91 91 91 91 91
93: 7(f16vec) ExtInst 1(GLSL.std.450) 37(FMin) 90 92
Store 9(vf) 93
94: 7(f16vec) Load 9(vf)
95: 7(f16vec) Load 9(vf)
96: 7(f16vec) ExtInst 1(GLSL.std.450) 37(FMin) 94 95
Store 9(vf) 96
97: 7(f16vec) Load 9(vf)
98:6(float16_t) Load 74(f)
99: 7(f16vec) CompositeConstruct 98 98 98 98 98
100: 7(f16vec) ExtInst 1(GLSL.std.450) 40(FMax) 97 99
Store 9(vf) 100
101: 7(f16vec) Load 9(vf)
102: 7(f16vec) Load 9(vf)
103: 7(f16vec) ExtInst 1(GLSL.std.450) 40(FMax) 101 102
Store 9(vf) 103
104: 7(f16vec) Load 9(vf)
105:6(float16_t) Load 74(f)
106:6(float16_t) Load 74(f)
107: 7(f16vec) CompositeConstruct 105 105 105 105 105
108: 7(f16vec) CompositeConstruct 106 106 106 106 106
109: 7(f16vec) ExtInst 1(GLSL.std.450) 43(FClamp) 104 107 108
Store 9(vf) 109
110: 7(f16vec) Load 9(vf)
111: 7(f16vec) Load 9(vf)
112: 7(f16vec) Load 9(vf)
113: 7(f16vec) ExtInst 1(GLSL.std.450) 43(FClamp) 110 111 112
Store 9(vf) 113
114: 7(f16vec) Load 9(vf)
115: 7(f16vec) Load 9(vf)
116:6(float16_t) Load 74(f)
117: 7(f16vec) CompositeConstruct 116 116 116 116 116
118: 7(f16vec) ExtInst 1(GLSL.std.450) 46(FMix) 114 115 117
Store 9(vf) 118
119: 7(f16vec) Load 9(vf)
120: 7(f16vec) Load 9(vf)
121: 7(f16vec) Load 9(vf)
122: 7(f16vec) ExtInst 1(GLSL.std.450) 46(FMix) 119 120 121
Store 9(vf) 122
123: 7(f16vec) Load 9(vf)
124: 7(f16vec) Load 9(vf)
129: 126(bvec) Load 128(vb)
130: 7(f16vec) Select 129 124 123
Store 9(vf) 130
131: 7(f16vec) Load 9(vf)
132: 7(f16vec) Load 9(vf)
133: 7(f16vec) ExtInst 1(GLSL.std.450) 48(Step) 131 132
Store 9(vf) 133
134:6(float16_t) Load 74(f)
135: 7(f16vec) Load 9(vf)
136: 7(f16vec) CompositeConstruct 134 134 134 134 134
137: 7(f16vec) ExtInst 1(GLSL.std.450) 48(Step) 136 135
Store 9(vf) 137
138: 7(f16vec) Load 9(vf)
139: 7(f16vec) Load 9(vf)
140: 7(f16vec) Load 9(vf)
141: 7(f16vec) ExtInst 1(GLSL.std.450) 49(SmoothStep) 138 139 140
Store 9(vf) 141
142:6(float16_t) Load 74(f)
143:6(float16_t) Load 74(f)
144: 7(f16vec) Load 9(vf)
145: 7(f16vec) CompositeConstruct 142 142 142 142 142
146: 7(f16vec) CompositeConstruct 143 143 143 143 143
147: 7(f16vec) ExtInst 1(GLSL.std.450) 49(SmoothStep) 145 146 144
Store 9(vf) 147
148: 7(f16vec) Load 9(vf)
149: 126(bvec) IsNan 148
Store 128(vb) 149
150: 7(f16vec) Load 9(vf)
151: 126(bvec) IsInf 150
Store 128(vb) 151
152: 7(f16vec) Load 9(vf)
153: 7(f16vec) Load 9(vf)
154: 7(f16vec) Load 9(vf)
155: 7(f16vec) ExtInst 1(GLSL.std.450) 50(Fma) 152 153 154
Store 9(vf) 155
156: 7(f16vec) Load 9(vf)
162:161(ResType) ExtInst 1(GLSL.std.450) 52(FrexpStruct) 156
163: 158(i16vec) CompositeExtract 162 1
Store 160(vi) 163
164: 7(f16vec) CompositeExtract 162 0
Store 9(vf) 164
165: 7(f16vec) Load 9(vf)
166: 158(i16vec) Load 160(vi)
167: 7(f16vec) ExtInst 1(GLSL.std.450) 53(Ldexp) 165 166
Store 9(vf) 167
168: 7(f16vec) Load 9(vf)
169:6(float16_t) ExtInst 1(GLSL.std.450) 66(Length) 168
Store 74(f) 169
170: 7(f16vec) Load 9(vf)
171: 7(f16vec) Load 9(vf)
172:6(float16_t) ExtInst 1(GLSL.std.450) 67(Distance) 170 171
Store 74(f) 172
173: 7(f16vec) Load 9(vf)
174: 7(f16vec) Load 9(vf)
175:6(float16_t) Dot 173 174
Store 74(f) 175
176: 7(f16vec) Load 9(vf)
177: 7(f16vec) ExtInst 1(GLSL.std.450) 69(Normalize) 176
Store 9(vf) 177
178: 7(f16vec) Load 9(vf)
179: 7(f16vec) Load 9(vf)
180: 7(f16vec) Load 9(vf)
181: 7(f16vec) ExtInst 1(GLSL.std.450) 70(FaceForward) 178 179 180
Store 9(vf) 181
182: 7(f16vec) Load 9(vf)
183: 7(f16vec) Load 9(vf)
184: 7(f16vec) ExtInst 1(GLSL.std.450) 71(Reflect) 182 183
Store 9(vf) 184
185: 7(f16vec) Load 9(vf)
186: 7(f16vec) Load 9(vf)
187:6(float16_t) Load 74(f)
188: 7(f16vec) ExtInst 1(GLSL.std.450) 72(Refract) 185 186 187
Store 9(vf) 188
189: 7(f16vec) Load 9(vf)
190: 7(f16vec) Load 9(vf)
191: 126(bvec) FOrdLessThan 189 190
Store 128(vb) 191
192: 7(f16vec) Load 9(vf)
193: 7(f16vec) Load 9(vf)
194: 126(bvec) FOrdLessThanEqual 192 193
Store 128(vb) 194
195: 7(f16vec) Load 9(vf)
196: 7(f16vec) Load 9(vf)
197: 126(bvec) FOrdGreaterThan 195 196
Store 128(vb) 197
198: 7(f16vec) Load 9(vf)
199: 7(f16vec) Load 9(vf)
200: 126(bvec) FOrdGreaterThanEqual 198 199
Store 128(vb) 200
201: 7(f16vec) Load 9(vf)
202: 7(f16vec) Load 9(vf)
203: 126(bvec) FOrdEqual 201 202
Store 128(vb) 203
204: 7(f16vec) Load 9(vf)
205: 7(f16vec) Load 9(vf)
206: 126(bvec) FUnordNotEqual 204 205
Store 128(vb) 206
209: 126(bvec) Load 128(vb)
210: 125(bool) Any 209
Store 208(b) 210
211: 126(bvec) Load 128(vb)
212: 125(bool) All 211
Store 208(b) 212
213: 126(bvec) Load 128(vb)
214: 126(bvec) LogicalNot 213
Store 128(vb) 214
Return
FunctionEnd