Skip to content

Commit 29caa20

Browse files
committed
somewhat working
1 parent 5139c90 commit 29caa20

20 files changed

+3322
-3322
lines changed

clang/include/clang/Basic/BuiltinsX86.td

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5191,51 +5191,51 @@ let Features = "avx10.2-512", Attributes = [NoThrow, RequiredVectorWidth<512>] i
51915191
}
51925192

51935193
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
5194-
def vcvtne2ph2bf8_128 : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<8, _Float16>)">;
5194+
def vcvt2ph2bf8_128 : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<8, _Float16>)">;
51955195
}
51965196

51975197
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<256>] in {
5198-
def vcvtne2ph2bf8_256 : X86Builtin<"_Vector<32, char>(_Vector<16, _Float16>, _Vector<16, _Float16>)">;
5198+
def vcvt2ph2bf8_256 : X86Builtin<"_Vector<32, char>(_Vector<16, _Float16>, _Vector<16, _Float16>)">;
51995199
}
52005200

52015201
let Features = "avx10.2-512", Attributes = [NoThrow, RequiredVectorWidth<512>] in {
5202-
def vcvtne2ph2bf8_512 : X86Builtin<"_Vector<64, char>(_Vector<32, _Float16>, _Vector<32, _Float16>)">;
5202+
def vcvt2ph2bf8_512 : X86Builtin<"_Vector<64, char>(_Vector<32, _Float16>, _Vector<32, _Float16>)">;
52035203
}
52045204

52055205
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
5206-
def vcvtne2ph2bf8s_128 : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<8, _Float16>)">;
5206+
def vcvt2ph2bf8s_128 : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<8, _Float16>)">;
52075207
}
52085208

52095209
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<256>] in {
5210-
def vcvtne2ph2bf8s_256 : X86Builtin<"_Vector<32, char>(_Vector<16, _Float16>, _Vector<16, _Float16>)">;
5210+
def vcvt2ph2bf8s_256 : X86Builtin<"_Vector<32, char>(_Vector<16, _Float16>, _Vector<16, _Float16>)">;
52115211
}
52125212

52135213
let Features = "avx10.2-512", Attributes = [NoThrow, RequiredVectorWidth<512>] in {
5214-
def vcvtne2ph2bf8s_512 : X86Builtin<"_Vector<64, char>(_Vector<32, _Float16>, _Vector<32, _Float16>)">;
5214+
def vcvt2ph2bf8s_512 : X86Builtin<"_Vector<64, char>(_Vector<32, _Float16>, _Vector<32, _Float16>)">;
52155215
}
52165216

52175217
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
5218-
def vcvtne2ph2hf8_128 : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<8, _Float16>)">;
5218+
def vcvt2ph2hf8_128 : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<8, _Float16>)">;
52195219
}
52205220

52215221
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<256>] in {
5222-
def vcvtne2ph2hf8_256 : X86Builtin<"_Vector<32, char>(_Vector<16, _Float16>, _Vector<16, _Float16>)">;
5222+
def vcvt2ph2hf8_256 : X86Builtin<"_Vector<32, char>(_Vector<16, _Float16>, _Vector<16, _Float16>)">;
52235223
}
52245224

52255225
let Features = "avx10.2-512", Attributes = [NoThrow, RequiredVectorWidth<512>] in {
5226-
def vcvtne2ph2hf8_512 : X86Builtin<"_Vector<64, char>(_Vector<32, _Float16>, _Vector<32, _Float16>)">;
5226+
def vcvt2ph2hf8_512 : X86Builtin<"_Vector<64, char>(_Vector<32, _Float16>, _Vector<32, _Float16>)">;
52275227
}
52285228

52295229
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
5230-
def vcvtne2ph2hf8s_128 : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<8, _Float16>)">;
5230+
def vcvt2ph2hf8s_128 : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<8, _Float16>)">;
52315231
}
52325232

52335233
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<256>] in {
5234-
def vcvtne2ph2hf8s_256 : X86Builtin<"_Vector<32, char>(_Vector<16, _Float16>, _Vector<16, _Float16>)">;
5234+
def vcvt2ph2hf8s_256 : X86Builtin<"_Vector<32, char>(_Vector<16, _Float16>, _Vector<16, _Float16>)">;
52355235
}
52365236

52375237
let Features = "avx10.2-512", Attributes = [NoThrow, RequiredVectorWidth<512>] in {
5238-
def vcvtne2ph2hf8s_512 : X86Builtin<"_Vector<64, char>(_Vector<32, _Float16>, _Vector<32, _Float16>)">;
5238+
def vcvt2ph2hf8s_512 : X86Builtin<"_Vector<64, char>(_Vector<32, _Float16>, _Vector<32, _Float16>)">;
52395239
}
52405240

52415241
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
@@ -5251,51 +5251,51 @@ let Features = "avx10.2-512", Attributes = [NoThrow, RequiredVectorWidth<512>] i
52515251
}
52525252

52535253
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
5254-
def vcvtneph2bf8_128_mask : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<16, char>, unsigned char)">;
5254+
def vcvtph2bf8_128_mask : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<16, char>, unsigned char)">;
52555255
}
52565256

52575257
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<256>] in {
5258-
def vcvtneph2bf8_256_mask : X86Builtin<"_Vector<16, char>(_Vector<16, _Float16>, _Vector<16, char>, unsigned short)">;
5258+
def vcvtph2bf8_256_mask : X86Builtin<"_Vector<16, char>(_Vector<16, _Float16>, _Vector<16, char>, unsigned short)">;
52595259
}
52605260

52615261
let Features = "avx10.2-512", Attributes = [NoThrow, RequiredVectorWidth<512>] in {
5262-
def vcvtneph2bf8_512_mask : X86Builtin<"_Vector<32, char>(_Vector<32, _Float16>, _Vector<32, char>, unsigned int)">;
5262+
def vcvtph2bf8_512_mask : X86Builtin<"_Vector<32, char>(_Vector<32, _Float16>, _Vector<32, char>, unsigned int)">;
52635263
}
52645264

52655265
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
5266-
def vcvtneph2bf8s_128_mask : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<16, char>, unsigned char)">;
5266+
def vcvtph2bf8s_128_mask : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<16, char>, unsigned char)">;
52675267
}
52685268

52695269
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<256>] in {
5270-
def vcvtneph2bf8s_256_mask : X86Builtin<"_Vector<16, char>(_Vector<16, _Float16>, _Vector<16, char>, unsigned short)">;
5270+
def vcvtph2bf8s_256_mask : X86Builtin<"_Vector<16, char>(_Vector<16, _Float16>, _Vector<16, char>, unsigned short)">;
52715271
}
52725272

52735273
let Features = "avx10.2-512", Attributes = [NoThrow, RequiredVectorWidth<512>] in {
5274-
def vcvtneph2bf8s_512_mask : X86Builtin<"_Vector<32, char>(_Vector<32, _Float16>, _Vector<32, char>, unsigned int)">;
5274+
def vcvtph2bf8s_512_mask : X86Builtin<"_Vector<32, char>(_Vector<32, _Float16>, _Vector<32, char>, unsigned int)">;
52755275
}
52765276

52775277
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
5278-
def vcvtneph2hf8_128_mask : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<16, char>, unsigned char)">;
5278+
def vcvtph2hf8_128_mask : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<16, char>, unsigned char)">;
52795279
}
52805280

52815281
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<256>] in {
5282-
def vcvtneph2hf8_256_mask : X86Builtin<"_Vector<16, char>(_Vector<16, _Float16>, _Vector<16, char>, unsigned short)">;
5282+
def vcvtph2hf8_256_mask : X86Builtin<"_Vector<16, char>(_Vector<16, _Float16>, _Vector<16, char>, unsigned short)">;
52835283
}
52845284

52855285
let Features = "avx10.2-512", Attributes = [NoThrow, RequiredVectorWidth<512>] in {
5286-
def vcvtneph2hf8_512_mask : X86Builtin<"_Vector<32, char>(_Vector<32, _Float16>, _Vector<32, char>, unsigned int)">;
5286+
def vcvtph2hf8_512_mask : X86Builtin<"_Vector<32, char>(_Vector<32, _Float16>, _Vector<32, char>, unsigned int)">;
52875287
}
52885288

52895289
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<128>] in {
5290-
def vcvtneph2hf8s_128_mask : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<16, char>, unsigned char)">;
5290+
def vcvtph2hf8s_128_mask : X86Builtin<"_Vector<16, char>(_Vector<8, _Float16>, _Vector<16, char>, unsigned char)">;
52915291
}
52925292

52935293
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<256>] in {
5294-
def vcvtneph2hf8s_256_mask : X86Builtin<"_Vector<16, char>(_Vector<16, _Float16>, _Vector<16, char>, unsigned short)">;
5294+
def vcvtph2hf8s_256_mask : X86Builtin<"_Vector<16, char>(_Vector<16, _Float16>, _Vector<16, char>, unsigned short)">;
52955295
}
52965296

52975297
let Features = "avx10.2-512", Attributes = [NoThrow, RequiredVectorWidth<512>] in {
5298-
def vcvtneph2hf8s_512_mask : X86Builtin<"_Vector<32, char>(_Vector<32, _Float16>, _Vector<32, char>, unsigned int)">;
5298+
def vcvtph2hf8s_512_mask : X86Builtin<"_Vector<32, char>(_Vector<32, _Float16>, _Vector<32, char>, unsigned int)">;
52995299
}
53005300

53015301
let Features = "avx10.2-256", Attributes = [NoThrow, RequiredVectorWidth<128>] in {

clang/lib/Headers/avx10_2_512convertintrin.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ _mm512_maskz_cvtbiassph_phf8(__mmask32 __U, __m512i __A, __m512h __B) {
139139

140140
static __inline__ __m512i __DEFAULT_FN_ATTRS512
141141
_mm512_cvtne2ph_pbf8(__m512h __A, __m512h __B) {
142-
return (__m512i)__builtin_ia32_vcvtne2ph2bf8_512((__v32hf)(__A),
142+
return (__m512i)__builtin_ia32_vcvt2ph2bf8_512((__v32hf)(__A),
143143
(__v32hf)(__B));
144144
}
145145

@@ -158,7 +158,7 @@ _mm512_maskz_cvtne2ph_pbf8(__mmask64 __U, __m512h __A, __m512h __B) {
158158

159159
static __inline__ __m512i __DEFAULT_FN_ATTRS512
160160
_mm512_cvtnes2ph_pbf8(__m512h __A, __m512h __B) {
161-
return (__m512i)__builtin_ia32_vcvtne2ph2bf8s_512((__v32hf)(__A),
161+
return (__m512i)__builtin_ia32_vcvt2ph2bf8s_512((__v32hf)(__A),
162162
(__v32hf)(__B));
163163
}
164164

@@ -177,7 +177,7 @@ _mm512_maskz_cvtnes2ph_pbf8(__mmask64 __U, __m512h __A, __m512h __B) {
177177

178178
static __inline__ __m512i __DEFAULT_FN_ATTRS512
179179
_mm512_cvtne2ph_phf8(__m512h __A, __m512h __B) {
180-
return (__m512i)__builtin_ia32_vcvtne2ph2hf8_512((__v32hf)(__A),
180+
return (__m512i)__builtin_ia32_vcvt2ph2hf8_512((__v32hf)(__A),
181181
(__v32hf)(__B));
182182
}
183183

@@ -196,7 +196,7 @@ _mm512_maskz_cvtne2ph_phf8(__mmask64 __U, __m512h __A, __m512h __B) {
196196

197197
static __inline__ __m512i __DEFAULT_FN_ATTRS512
198198
_mm512_cvtnes2ph_phf8(__m512h __A, __m512h __B) {
199-
return (__m512i)__builtin_ia32_vcvtne2ph2hf8s_512((__v32hf)(__A),
199+
return (__m512i)__builtin_ia32_vcvt2ph2hf8s_512((__v32hf)(__A),
200200
(__v32hf)(__B));
201201
}
202202

@@ -233,73 +233,73 @@ _mm512_maskz_cvtnehf8_ph(__mmask32 __U, __m256i __A) {
233233

234234
static __inline__ __m256i __DEFAULT_FN_ATTRS512
235235
_mm512_cvtneph_pbf8(__m512h __A) {
236-
return (__m256i)__builtin_ia32_vcvtneph2bf8_512_mask(
236+
return (__m256i)__builtin_ia32_vcvtph2bf8_512_mask(
237237
(__v32hf)__A, (__v32qi)(__m256i)_mm256_undefined_si256(), (__mmask32)-1);
238238
}
239239

240240
static __inline__ __m256i __DEFAULT_FN_ATTRS512
241241
_mm512_mask_cvtneph_pbf8(__m256i __W, __mmask32 __U, __m512h __A) {
242-
return (__m256i)__builtin_ia32_vcvtneph2bf8_512_mask(
242+
return (__m256i)__builtin_ia32_vcvtph2bf8_512_mask(
243243
(__v32hf)__A, (__v32qi)(__m256i)__W, (__mmask32)__U);
244244
}
245245

246246
static __inline__ __m256i __DEFAULT_FN_ATTRS512
247247
_mm512_maskz_cvtneph_pbf8(__mmask32 __U, __m512h __A) {
248-
return (__m256i)__builtin_ia32_vcvtneph2bf8_512_mask(
248+
return (__m256i)__builtin_ia32_vcvtph2bf8_512_mask(
249249
(__v32hf)__A, (__v32qi)(__m256i)_mm256_setzero_si256(), (__mmask32)__U);
250250
}
251251

252252
static __inline__ __m256i __DEFAULT_FN_ATTRS512
253253
_mm512_cvtnesph_pbf8(__m512h __A) {
254-
return (__m256i)__builtin_ia32_vcvtneph2bf8s_512_mask(
254+
return (__m256i)__builtin_ia32_vcvtph2bf8s_512_mask(
255255
(__v32hf)__A, (__v32qi)(__m256i)_mm256_undefined_si256(), (__mmask32)-1);
256256
}
257257

258258
static __inline__ __m256i __DEFAULT_FN_ATTRS512
259259
_mm512_mask_cvtnesph_pbf8(__m256i __W, __mmask32 __U, __m512h __A) {
260-
return (__m256i)__builtin_ia32_vcvtneph2bf8s_512_mask(
260+
return (__m256i)__builtin_ia32_vcvtph2bf8s_512_mask(
261261
(__v32hf)__A, (__v32qi)(__m256i)__W, (__mmask32)__U);
262262
}
263263

264264
static __inline__ __m256i __DEFAULT_FN_ATTRS512
265265
_mm512_maskz_cvtnesph_pbf8(__mmask32 __U, __m512h __A) {
266-
return (__m256i)__builtin_ia32_vcvtneph2bf8s_512_mask(
266+
return (__m256i)__builtin_ia32_vcvtph2bf8s_512_mask(
267267
(__v32hf)__A, (__v32qi)(__m256i)_mm256_setzero_si256(), (__mmask32)__U);
268268
}
269269

270270
static __inline__ __m256i __DEFAULT_FN_ATTRS512
271271
_mm512_cvtneph_phf8(__m512h __A) {
272-
return (__m256i)__builtin_ia32_vcvtneph2hf8_512_mask(
272+
return (__m256i)__builtin_ia32_vcvtph2hf8_512_mask(
273273
(__v32hf)__A, (__v32qi)(__m256i)_mm256_undefined_si256(), (__mmask32)-1);
274274
}
275275

276276
static __inline__ __m256i __DEFAULT_FN_ATTRS512
277277
_mm512_mask_cvtneph_phf8(__m256i __W, __mmask32 __U, __m512h __A) {
278-
return (__m256i)__builtin_ia32_vcvtneph2hf8_512_mask(
278+
return (__m256i)__builtin_ia32_vcvtph2hf8_512_mask(
279279
(__v32hf)__A, (__v32qi)(__m256i)__W, (__mmask32)__U);
280280
}
281281

282282
static __inline__ __m256i __DEFAULT_FN_ATTRS512
283283
_mm512_maskz_cvtneph_phf8(__mmask32 __U, __m512h __A) {
284-
return (__m256i)__builtin_ia32_vcvtneph2hf8_512_mask(
284+
return (__m256i)__builtin_ia32_vcvtph2hf8_512_mask(
285285
(__v32hf)__A, (__v32qi)(__m256i)_mm256_setzero_si256(), (__mmask32)__U);
286286
}
287287

288288
static __inline__ __m256i __DEFAULT_FN_ATTRS512
289289
_mm512_cvtnesph_phf8(__m512h __A) {
290-
return (__m256i)__builtin_ia32_vcvtneph2hf8s_512_mask(
290+
return (__m256i)__builtin_ia32_vcvtph2hf8s_512_mask(
291291
(__v32hf)__A, (__v32qi)(__m256i)_mm256_undefined_si256(), (__mmask32)-1);
292292
}
293293

294294
static __inline__ __m256i __DEFAULT_FN_ATTRS512
295295
_mm512_mask_cvtnesph_phf8(__m256i __W, __mmask32 __U, __m512h __A) {
296-
return (__m256i)__builtin_ia32_vcvtneph2hf8s_512_mask(
296+
return (__m256i)__builtin_ia32_vcvtph2hf8s_512_mask(
297297
(__v32hf)__A, (__v32qi)(__m256i)__W, (__mmask32)__U);
298298
}
299299

300300
static __inline__ __m256i __DEFAULT_FN_ATTRS512
301301
_mm512_maskz_cvtnesph_phf8(__mmask32 __U, __m512h __A) {
302-
return (__m256i)__builtin_ia32_vcvtneph2hf8s_512_mask(
302+
return (__m256i)__builtin_ia32_vcvtph2hf8s_512_mask(
303303
(__v32hf)__A, (__v32qi)(__m256i)_mm256_setzero_si256(), (__mmask32)__U);
304304
}
305305

0 commit comments

Comments
 (0)