/
Avx512DQ.cs
531 lines (499 loc) · 29.7 KB
/
Avx512DQ.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
namespace System.Runtime.Intrinsics.X86
{
/// <summary>This class provides access to X86 AVX512DQ hardware instructions via intrinsics</summary>
[Intrinsic]
[CLSCompliant(false)]
public abstract class Avx512DQ : Avx512F
{
internal Avx512DQ() { }
public static new bool IsSupported { get => IsSupported; }
[Intrinsic]
public new abstract class VL : Avx512F.VL
{
internal VL() { }
public static new bool IsSupported { get => IsSupported; }
/// <summary>
/// __m128i _mm_broadcast_i32x2 (__m128i a)
/// VBROADCASTI32x2 xmm1 {k1}{z}, xmm2/m64
/// </summary>
public static Vector128<int> BroadcastPairScalarToVector128(Vector128<int> value) => BroadcastPairScalarToVector128(value);
/// <summary>
/// __m128i _mm_broadcast_i32x2 (__m128i a)
/// VBROADCASTI32x2 xmm1 {k1}{z}, xmm2/m64
/// </summary>
public static Vector128<uint> BroadcastPairScalarToVector128(Vector128<uint> value) => BroadcastPairScalarToVector128(value);
/// <summary>
/// __m256i _mm256_broadcast_i32x2 (__m128i a)
/// VBROADCASTI32x2 ymm1 {k1}{z}, xmm2/m64
/// </summary>
public static Vector256<int> BroadcastPairScalarToVector256(Vector128<int> value) => BroadcastPairScalarToVector256(value);
/// <summary>
/// __m256i _mm256_broadcast_i32x2 (__m128i a)
/// VBROADCASTI32x2 ymm1 {k1}{z}, xmm2/m64
/// </summary>
public static Vector256<uint> BroadcastPairScalarToVector256(Vector128<uint> value) => BroadcastPairScalarToVector256(value);
/// <summary>
/// __m256 _mm256_broadcast_f32x2 (__m128 a)
/// VBROADCASTF32x2 ymm1 {k1}{z}, xmm2/m64
/// </summary>
public static Vector256<float> BroadcastPairScalarToVector256(Vector128<float> value) => BroadcastPairScalarToVector256(value);
/// <summary>
/// __m128d _mm_cvtepi64_pd (__m128i a)
/// VCVTQQ2PD xmm1 {k1}{z}, xmm2/m128/m64bcst
/// </summary>
public static Vector128<double> ConvertToVector128Double(Vector128<long> value) => ConvertToVector128Double(value);
/// <summary>
/// __m128d _mm_cvtepu64_pd (__m128i a)
/// VCVTUQQ2PD xmm1 {k1}{z}, xmm2/m128/m64bcst
/// </summary>
public static Vector128<double> ConvertToVector128Double(Vector128<ulong> value) => ConvertToVector128Double(value);
/// <summary>
/// __m128i _mm_cvtps_epi64 (__m128 a)
/// VCVTPS2QQ xmm1 {k1}{z}, xmm2/m64/m32bcst
/// </summary>
public static Vector128<long> ConvertToVector128Int64(Vector128<float> value) => ConvertToVector128Int64(value);
/// <summary>
/// __m128i _mm_cvtpd_epi64 (__m128d a)
/// VCVTPD2QQ xmm1 {k1}{z}, xmm2/m128/m64bcst
/// </summary>
public static Vector128<long> ConvertToVector128Int64(Vector128<double> value) => ConvertToVector128Int64(value);
/// <summary>
/// __m128i _mm_cvttps_epi64 (__m128 a)
/// VCVTTPS2QQ xmm1 {k1}{z}, xmm2/m64/m32bcst
/// </summary>
public static Vector128<long> ConvertToVector128Int64WithTruncation(Vector128<float> value) => ConvertToVector128Int64WithTruncation(value);
/// <summary>
/// __m128i _mm_cvttpd_epi64 (__m128d a)
/// VCVTTPD2QQ xmm1 {k1}{z}, xmm2/m128/m64bcst
/// </summary>
public static Vector128<long> ConvertToVector128Int64WithTruncation(Vector128<double> value) => ConvertToVector128Int64WithTruncation(value);
/// <summary>
/// __m128 _mm_cvtepi64_ps (__m128i a)
/// VCVTQQ2PS xmm1 {k1}{z}, xmm2/m128/m64bcst
/// </summary>
public static Vector128<float> ConvertToVector128Single(Vector128<long> value) => ConvertToVector128Single(value);
/// <summary>
/// __m128 _mm256_cvtepi64_ps (__m256i a)
/// VCVTQQ2PS xmm1 {k1}{z}, ymm2/m256/m64bcst
/// </summary>
public static Vector128<float> ConvertToVector128Single(Vector256<long> value) => ConvertToVector128Single(value);
/// <summary>
/// __m128 _mm_cvtepu64_ps (__m128i a)
/// VCVTUQQ2PS xmm1 {k1}{z}, xmm2/m128/m64bcst
/// </summary>
public static Vector128<float> ConvertToVector128Single(Vector128<ulong> value) => ConvertToVector128Single(value);
/// <summary>
/// __m128 _mm256_cvtepu64_ps (__m256i a)
/// VCVTUQQ2PS xmm1 {k1}{z}, ymm2/m256/m64bcst
/// </summary>
public static Vector128<float> ConvertToVector128Single(Vector256<ulong> value) => ConvertToVector128Single(value);
/// <summary>
/// __m128i _mm_cvtps_epu64 (__m128 a)
/// VCVTPS2UQQ xmm1 {k1}{z}, xmm2/m64/m32bcst
/// </summary>
public static Vector128<ulong> ConvertToVector128UInt64(Vector128<float> value) => ConvertToVector128UInt64(value);
/// <summary>
/// __m128i _mm_cvtpd_epu64 (__m128d a)
/// VCVTPD2UQQ xmm1 {k1}{z}, xmm2/m128/m64bcst
/// </summary>
public static Vector128<ulong> ConvertToVector128UInt64(Vector128<double> value) => ConvertToVector128UInt64(value);
/// <summary>
/// __m128i _mm_cvttps_epu64 (__m128 a)
/// VCVTTPS2UQQ xmm1 {k1}{z}, xmm2/m64/m32bcst
/// </summary>
public static Vector128<ulong> ConvertToVector128UInt64WithTruncation(Vector128<float> value) => ConvertToVector128UInt64WithTruncation(value);
/// <summary>
/// __m128i _mm_cvttpd_epu64 (__m128d a)
/// VCVTTPD2UQQ xmm1 {k1}{z}, xmm2/m128/m64bcst
/// </summary>
public static Vector128<ulong> ConvertToVector128UInt64WithTruncation(Vector128<double> value) => ConvertToVector128UInt64WithTruncation(value);
/// <summary>
/// __m256d _mm256_cvtepi64_pd (__m256i a)
/// VCVTQQ2PD ymm1 {k1}{z}, ymm2/m256/m64bcst
/// </summary>
public static Vector256<double> ConvertToVector256Double(Vector256<long> value) => ConvertToVector256Double(value);
/// <summary>
/// __m256d _mm256_cvtepu64_pd (__m256i a)
/// VCVTUQQ2PD ymm1 {k1}{z}, ymm2/m256/m64bcst
/// </summary>
public static Vector256<double> ConvertToVector256Double(Vector256<ulong> value) => ConvertToVector256Double(value);
/// <summary>
/// __m256i _mm256_cvtps_epi64 (__m128 a)
/// VCVTPS2QQ ymm1 {k1}{z}, xmm2/m128/m32bcst
/// </summary>
public static Vector256<long> ConvertToVector256Int64(Vector128<float> value) => ConvertToVector256Int64(value);
/// <summary>
/// __m256i _mm256_cvtpd_epi64 (__m256d a)
/// VCVTPD2QQ ymm1 {k1}{z}, ymm2/m256/m64bcst
/// </summary>
public static Vector256<long> ConvertToVector256Int64(Vector256<double> value) => ConvertToVector256Int64(value);
/// <summary>
/// __m256i _mm256_cvttps_epi64 (__m128 a)
/// VCVTTPS2QQ ymm1 {k1}{z}, xmm2/m128/m32bcst
/// </summary>
public static Vector256<long> ConvertToVector256Int64WithTruncation(Vector128<float> value) => ConvertToVector256Int64WithTruncation(value);
/// <summary>
/// __m256i _mm256_cvttpd_epi64 (__m256d a)
/// VCVTTPD2QQ ymm1 {k1}{z}, ymm2/m256/m64bcst
/// </summary>
public static Vector256<long> ConvertToVector256Int64WithTruncation(Vector256<double> value) => ConvertToVector256Int64WithTruncation(value);
/// <summary>
/// __m256i _mm256_cvtps_epu64 (__m128 a)
/// VCVTPS2UQQ ymm1 {k1}{z}, xmm2/m128/m32bcst
/// </summary>
public static Vector256<ulong> ConvertToVector256UInt64(Vector128<float> value) => ConvertToVector256UInt64(value);
/// <summary>
/// __m256i _mm256_cvtpd_epu64 (__m256d a)
/// VCVTPD2UQQ ymm1 {k1}{z}, ymm2/m256/m64bcst
/// </summary>
public static Vector256<ulong> ConvertToVector256UInt64(Vector256<double> value) => ConvertToVector256UInt64(value);
/// <summary>
/// __m256i _mm256_cvttps_epu64 (__m128 a)
/// VCVTTPS2UQQ ymm1 {k1}{z}, xmm2/m128/m32bcst
/// </summary>
public static Vector256<ulong> ConvertToVector256UInt64WithTruncation(Vector128<float> value) => ConvertToVector256UInt64WithTruncation(value);
/// <summary>
/// __m256i _mm256_cvttpd_epu64 (__m256d a)
/// VCVTTPD2UQQ ymm1 {k1}{z}, ymm2/m256/m64bcst
/// </summary>
public static Vector256<ulong> ConvertToVector256UInt64WithTruncation(Vector256<double> value) => ConvertToVector256UInt64WithTruncation(value);
/// <summary>
/// __m128i _mm_mullo_epi64 (__m128i a, __m128i b)
/// VPMULLQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst
/// </summary>
public static Vector128<long> MultiplyLow(Vector128<long> left, Vector128<long> right) => MultiplyLow(left, right);
/// <summary>
/// __m128i _mm_mullo_epi64 (__m128i a, __m128i b)
/// VPMULLQ xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst
/// </summary>
public static Vector128<ulong> MultiplyLow(Vector128<ulong> left, Vector128<ulong> right) => MultiplyLow(left, right);
/// <summary>
/// __m256i _mm256_mullo_epi64 (__m256i a, __m256i b)
/// VPMULLQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst
/// </summary>
public static Vector256<long> MultiplyLow(Vector256<long> left, Vector256<long> right) => MultiplyLow(left, right);
/// <summary>
/// __m256i _mm256_mullo_epi64 (__m256i a, __m256i b)
/// VPMULLQ ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst
/// </summary>
public static Vector256<ulong> MultiplyLow(Vector256<ulong> left, Vector256<ulong> right) => MultiplyLow(left, right);
/// <summary>
/// __m128 _mm_range_ps(__m128 a, __m128 b, int imm);
/// VRANGEPS xmm1 {k1}{z}, xmm2, xmm3/m128/m32bcst, imm8
/// </summary>
public static Vector128<float> Range(Vector128<float> left, Vector128<float> right, [ConstantExpected(Max = (byte)(0x0F))] byte control) => Range(left, right, control);
/// <summary>
/// __m128d _mm_range_pd(__m128d a, __m128d b, int imm);
/// VRANGEPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcst, imm8
/// </summary>
public static Vector128<double> Range(Vector128<double> left, Vector128<double> right, [ConstantExpected(Max = (byte)(0x0F))] byte control) => Range(left, right, control);
/// <summary>
/// __m256 _mm256_range_ps(__m256 a, __m256 b, int imm);
/// VRANGEPS ymm1 {k1}{z}, ymm2, ymm3/m256/m32bcst, imm8
/// </summary>
public static Vector256<float> Range(Vector256<float> left, Vector256<float> right, [ConstantExpected(Max = (byte)(0x0F))] byte control) => Range(left, right, control);
/// <summary>
/// __m256d _mm256_range_pd(__m256d a, __m256d b, int imm);
/// VRANGEPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcst, imm8
/// </summary>
public static Vector256<double> Range(Vector256<double> left, Vector256<double> right, [ConstantExpected(Max = (byte)(0x0F))] byte control) => Range(left, right, control);
/// <summary>
/// __m128 _mm_reduce_ps(__m128 a, int imm);
/// VREDUCEPS xmm1 {k1}{z}, xmm2/m128/m32bcst, imm8
/// </summary>
public static Vector128<float> Reduce(Vector128<float> value, [ConstantExpected] byte control) => Reduce(value, control);
/// <summary>
/// __m128d _mm_reduce_pd(__m128d a, int imm);
/// VREDUCEPD xmm1 {k1}{z}, xmm2/m128/m64bcst, imm8
/// </summary>
public static Vector128<double> Reduce(Vector128<double> value, [ConstantExpected] byte control) => Reduce(value, control);
/// <summary>
/// __m256 _mm256_reduce_ps(__m256 a, int imm);
/// VREDUCEPS ymm1 {k1}{z}, ymm2/m256/m32bcst, imm8
/// </summary>
public static Vector256<float> Reduce(Vector256<float> value, [ConstantExpected] byte control) => Reduce(value, control);
/// <summary>
/// __m256d _mm256_reduce_pd(__m256d a, int imm);
/// VREDUCEPD ymm1 {k1}{z}, ymm2/m256/m64bcst, imm8
/// </summary>
public static Vector256<double> Reduce(Vector256<double> value, [ConstantExpected] byte control) => Reduce(value, control);
}
[Intrinsic]
public new abstract class X64 : Avx512F.X64
{
internal X64() { }
public static new bool IsSupported { get => IsSupported; }
}
/// <summary>
/// __m512 _mm512_and_ps (__m512 a, __m512 b)
/// VANDPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst
/// </summary>
public static Vector512<float> And(Vector512<float> left, Vector512<float> right) => And(left, right);
/// <summary>
/// __m512d _mm512_and_pd (__m512d a, __m512d b)
/// VANDPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst
/// </summary>
public static Vector512<double> And(Vector512<double> left, Vector512<double> right) => And(left, right);
/// <summary>
/// __m512 _mm512_andnot_ps (__m512 a, __m512 b)
/// VANDNPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst
/// </summary>
public static Vector512<float> AndNot(Vector512<float> left, Vector512<float> right) => AndNot(left, right);
/// <summary>
/// __m512d _mm512_andnot_pd (__m512d a, __m512d b)
/// VANDNPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst
/// </summary>
public static Vector512<double> AndNot(Vector512<double> left, Vector512<double> right) => AndNot(left, right);
/// <summary>
/// __m512i _mm512_broadcast_i32x2 (__m128i a)
/// VBROADCASTI32x2 zmm1 {k1}{z}, xmm2/m64
/// </summary>
public static Vector512<int> BroadcastPairScalarToVector512(Vector128<int> value) => BroadcastPairScalarToVector512(value);
/// <summary>
/// __m512i _mm512_broadcast_i32x2 (__m128i a)
/// VBROADCASTI32x2 zmm1 {k1}{z}, xmm2/m64
/// </summary>
public static Vector512<uint> BroadcastPairScalarToVector512(Vector128<uint> value) => BroadcastPairScalarToVector512(value);
/// <summary>
/// __m512 _mm512_broadcast_f32x2 (__m128 a)
/// VBROADCASTF32x2 zmm1 {k1}{z}, xmm2/m64
/// </summary>
public static Vector512<float> BroadcastPairScalarToVector512(Vector128<float> value) => BroadcastPairScalarToVector512(value);
/// <summary>
/// __m512i _mm512_broadcast_i64x2 (__m128i const * mem_addr)
/// VBROADCASTI64x2 zmm1 {k1}{z}, m128
/// </summary>
public static unsafe Vector512<long> BroadcastVector128ToVector512(long* address) => BroadcastVector128ToVector512(address);
/// <summary>
/// __m512i _mm512_broadcast_i64x2 (__m128i const * mem_addr)
/// VBROADCASTI64x2 zmm1 {k1}{z}, m128
/// </summary>
public static unsafe Vector512<ulong> BroadcastVector128ToVector512(ulong* address) => BroadcastVector128ToVector512(address);
/// <summary>
/// __m512d _mm512_broadcast_f64x2 (__m128d const * mem_addr)
/// VBROADCASTF64x2 zmm1 {k1}{z}, m128
/// </summary>
public static unsafe Vector512<double> BroadcastVector128ToVector512(double* address) => BroadcastVector128ToVector512(address);
/// <summary>
/// __m512i _mm512_broadcast_i32x8 (__m256i const * mem_addr)
/// VBROADCASTI32x8 zmm1 {k1}{z}, m256
/// </summary>
public static unsafe Vector512<int> BroadcastVector256ToVector512(int* address) => BroadcastVector256ToVector512(address);
/// <summary>
/// __m512i _mm512_broadcast_i32x8 (__m256i const * mem_addr)
/// VBROADCASTI32x8 zmm1 {k1}{z}, m256
/// </summary>
public static unsafe Vector512<uint> BroadcastVector256ToVector512(uint* address) => BroadcastVector256ToVector512(address);
/// <summary>
/// __m512 _mm512_broadcast_f32x8 (__m256 const * mem_addr)
/// VBROADCASTF32x8 zmm1 {k1}{z}, m256
/// </summary>
public static unsafe Vector512<float> BroadcastVector256ToVector512(float* address) => BroadcastVector256ToVector512(address);
/// <summary>
/// __m512 _mm512_cvtepi64_ps (__m512i a)
/// VCVTQQ2PS ymm1 {k1}{z}, zmm2/m512/m64bcst
/// </summary>
public static Vector256<float> ConvertToVector256Single(Vector512<long> value) => ConvertToVector256Single(value);
/// <summary>
/// __m512 _mm512_cvtepu64_ps (__m512i a)
/// VCVTUQQ2PS ymm1 {k1}{z}, zmm2/m512/m64bcst
/// </summary>
public static Vector256<float> ConvertToVector256Single(Vector512<ulong> value) => ConvertToVector256Single(value);
/// <summary>
/// __m512d _mm512_cvtepi64_pd (__m512i a)
/// VCVTQQ2PD zmm1 {k1}{z}, zmm2/m512/m64bcst
/// </summary>
public static Vector512<double> ConvertToVector512Double(Vector512<long> value) => ConvertToVector512Double(value);
/// <summary>
/// __m512d _mm512_cvtepu64_pd (__m512i a)
/// VCVTUQQ2PD zmm1 {k1}{z}, zmm2/m512/m64bcst
/// </summary>
public static Vector512<double> ConvertToVector512Double(Vector512<ulong> value) => ConvertToVector512Double(value);
/// <summary>
/// __m512i _mm512_cvtps_epi64 (__m512 a)
/// VCVTPS2QQ zmm1 {k1}{z}, ymm2/m256/m32bcst{er}
/// </summary>
public static Vector512<long> ConvertToVector512Int64(Vector256<float> value) => ConvertToVector512Int64(value);
/// <summary>
/// __m512i _mm512_cvtpd_epi64 (__m512d a)
/// VCVTPD2QQ zmm1 {k1}{z}, zmm2/m512/m64bcst{er}
/// </summary>
public static Vector512<long> ConvertToVector512Int64(Vector512<double> value) => ConvertToVector512Int64(value);
/// <summary>
/// __m512i _mm512_cvttps_epi64 (__m512 a)
/// VCVTTPS2QQ zmm1 {k1}{z}, ymm2/m256/m32bcst{er}
/// </summary>
public static Vector512<long> ConvertToVector512Int64WithTruncation(Vector256<float> value) => ConvertToVector512Int64WithTruncation(value);
/// <summary>
/// __m512i _mm512_cvttpd_epi64 (__m512 a)
/// VCVTTPD2QQ zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}
/// </summary>
public static Vector512<long> ConvertToVector512Int64WithTruncation(Vector512<double> value) => ConvertToVector512Int64WithTruncation(value);
/// <summary>
/// __m512i _mm512_cvtps_epu64 (__m512 a)
/// VCVTPS2UQQ zmm1 {k1}{z}, ymm2/m256/m32bcst{er}
/// </summary>
public static Vector512<ulong> ConvertToVector512UInt64(Vector256<float> value) => ConvertToVector512UInt64(value);
/// <summary>
/// __m512i _mm512_cvtpd_epu64 (__m512d a)
/// VCVTPD2UQQ zmm1 {k1}{z}, zmm2/m512/m64bcst{er}
/// </summary>
public static Vector512<ulong> ConvertToVector512UInt64(Vector512<double> value) => ConvertToVector512UInt64(value);
/// <summary>
/// __m512i _mm512_cvttps_epu64 (__m512 a)
/// VCVTTPS2UQQ zmm1 {k1}{z}, ymm2/m256/m32bcst{er}
/// </summary>
public static Vector512<ulong> ConvertToVector512UInt64WithTruncation(Vector256<float> value) => ConvertToVector512UInt64WithTruncation(value);
/// <summary>
/// __m512i _mm512_cvttpd_epu64 (__m512d a)
/// VCVTTPD2UQQ zmm1 {k1}{z}, zmm2/m512/m64bcst{er}
/// </summary>
public static Vector512<ulong> ConvertToVector512UInt64WithTruncation(Vector512<double> value) => ConvertToVector512UInt64WithTruncation(value);
/// <summary>
/// __m128i _mm512_extracti64x2_epi64 (__m512i a, const int imm8)
/// VEXTRACTI64x2 xmm1/m128 {k1}{z}, zmm2, imm8
/// </summary>
public static new Vector128<long> ExtractVector128(Vector512<long> value, [ConstantExpected] byte index) => ExtractVector128(value, index);
/// <summary>
/// __m128i _mm512_extracti64x2_epi64 (__m512i a, const int imm8)
/// VEXTRACTI64x2 xmm1/m128 {k1}{z}, zmm2, imm8
/// </summary>
public static new Vector128<ulong> ExtractVector128(Vector512<ulong> value, [ConstantExpected] byte index) => ExtractVector128(value, index);
/// <summary>
/// __m128d _mm512_extractf64x2_pd (__m512d a, const int imm8)
/// VEXTRACTF64x2 xmm1/m128 {k1}{z}, zmm2, imm8
/// </summary>
public static new Vector128<double> ExtractVector128(Vector512<double> value, [ConstantExpected] byte index) => ExtractVector128(value, index);
/// <summary>
/// __m256i _mm512_extracti32x8_epi32 (__m512i a, const int imm8)
/// VEXTRACTI32x8 ymm1/m256 {k1}{z}, zmm2, imm8
/// </summary>
public static new Vector256<int> ExtractVector256(Vector512<int> value, [ConstantExpected] byte index) => ExtractVector256(value, index);
/// <summary>
/// __m256i _mm512_extracti32x8_epi32 (__m512i a, const int imm8)
/// VEXTRACTI32x8 ymm1/m256 {k1}{z}, zmm2, imm8
/// </summary>
public static new Vector256<uint> ExtractVector256(Vector512<uint> value, [ConstantExpected] byte index) => ExtractVector256(value, index);
/// <summary>
/// __m256 _mm512_extractf32x8_ps (__m512 a, const int imm8)
/// VEXTRACTF32x8 ymm1/m256 {k1}{z}, zmm2, imm8
/// </summary>
public static new Vector256<float> ExtractVector256(Vector512<float> value, [ConstantExpected] byte index) => ExtractVector256(value, index);
/// <summary>
/// __m512i _mm512_inserti64x2_si512 (__m512i a, __m128i b, const int imm8)
/// VINSERTI64x2 zmm1 {k1}{z}, zmm2, xmm3/m128, imm8
/// </summary>
public static new Vector512<long> InsertVector128(Vector512<long> value, Vector128<long> data, [ConstantExpected] byte index) => InsertVector128(value, data, index);
/// <summary>
/// __m512i _mm512_inserti64x2_si512 (__m512i a, __m128i b, const int imm8)
/// VINSERTI64x2 zmm1 {k1}{z}, zmm2, xmm3/m128, imm8
/// </summary>
public static new Vector512<ulong> InsertVector128(Vector512<ulong> value, Vector128<ulong> data, [ConstantExpected] byte index) => InsertVector128(value, data, index);
/// <summary>
/// __m512d _mm512_insertf64x2_pd (__m512d a, __m128d b, int imm8)
/// VINSERTF64x2 zmm1 {k1}{z}, zmm2, xmm3/m128, imm8
/// </summary>
public static new Vector512<double> InsertVector128(Vector512<double> value, Vector128<double> data, [ConstantExpected] byte index) => InsertVector128(value, data, index);
/// <summary>
/// __m512i _mm512_inserti32x8_si512 (__m512i a, __m256i b, const int imm8)
/// VINSERTI32x8 zmm1 {k1}{z}, zmm2, xmm3/m256, imm8
/// </summary>
public static new Vector512<int> InsertVector256(Vector512<int> value, Vector256<int> data, [ConstantExpected] byte index) => InsertVector256(value, data, index);
/// <summary>
/// __m512i _mm512_inserti32x8_si512 (__m512i a, __m256i b, const int imm8)
/// VINSERTI32x8 zmm1 {k1}{z}, zmm2, xmm3/m256, imm8
/// </summary>
public static new Vector512<uint> InsertVector256(Vector512<uint> value, Vector256<uint> data, [ConstantExpected] byte index) => InsertVector256(value, data, index);
/// <summary>
/// __m512 _mm512_insertf32x8_ps (__m512 a, __m256 b, int imm8)
/// VINSERTF32x8 zmm1 {k1}{z}, zmm2, xmm3/m256, imm8
/// </summary>
public static new Vector512<float> InsertVector256(Vector512<float> value, Vector256<float> data, [ConstantExpected] byte index) => InsertVector256(value, data, index);
/// <summary>
/// __m512i _mm512_mullo_epi64 (__m512i a, __m512i b)
/// VPMULLQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst
/// </summary>
public static Vector512<long> MultiplyLow(Vector512<long> left, Vector512<long> right) => MultiplyLow(left, right);
/// <summary>
/// __m512i _mm512_mullo_epi64 (__m512i a, __m512i b)
/// VPMULLQ zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst
/// </summary>
public static Vector512<ulong> MultiplyLow(Vector512<ulong> left, Vector512<ulong> right) => MultiplyLow(left, right);
/// <summary>
/// __m512 _mm512_or_ps (__m512 a, __m512 b)
/// VORPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst
/// </summary>
public static Vector512<float> Or(Vector512<float> left, Vector512<float> right) => Or(left, right);
/// <summary>
/// __m512d _mm512_or_pd (__m512d a, __m512d b)
/// VORPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst
/// </summary>
public static Vector512<double> Or(Vector512<double> left, Vector512<double> right) => Or(left, right);
/// <summary>
/// __m512 _mm512_range_ps(__m512 a, __m512 b, int imm);
/// VRANGEPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst{sae}, imm8
/// </summary>
public static Vector512<float> Range(Vector512<float> left, Vector512<float> right, [ConstantExpected(Max = (byte)(0x0F))] byte control) => Range(left, right, control);
/// <summary>
/// __m512d _mm512_range_pd(__m512d a, __m512d b, int imm);
/// VRANGEPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{sae}, imm8
/// </summary>
public static Vector512<double> Range(Vector512<double> left, Vector512<double> right, [ConstantExpected(Max = (byte)(0x0F))] byte control) => Range(left, right, control);
/// <summary>
/// __m128 _mm_range_ss(__m128 a, __m128 b, int imm);
/// VRANGESS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}, imm8
/// </summary>
public static Vector128<float> RangeScalar(Vector128<float> left, Vector128<float> right, [ConstantExpected(Max = (byte)(0x0F))] byte control) => RangeScalar(left, right, control);
/// <summary>
/// __m128d _mm_range_sd(__m128d a, __m128d b, int imm);
/// VRANGESD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}, imm8
/// </summary>
public static Vector128<double> RangeScalar(Vector128<double> left, Vector128<double> right, [ConstantExpected(Max = (byte)(0x0F))] byte control) => RangeScalar(left, right, control);
/// <summary>
/// __m512 _mm512_reduce_ps(__m512 a, int imm);
/// VREDUCEPS zmm1 {k1}{z}, zmm2/m512/m32bcst{sae}, imm8
/// </summary>
public static Vector512<float> Reduce(Vector512<float> value, [ConstantExpected] byte control) => Reduce(value, control);
/// <summary>
/// __m512d _mm512_reduce_pd(__m512d a, int imm);
/// VREDUCEPD zmm1 {k1}{z}, zmm2/m512/m64bcst{sae}, imm8
/// </summary>
public static Vector512<double> Reduce(Vector512<double> value, [ConstantExpected] byte control) => Reduce(value, control);
/// <summary>
/// __m128 _mm_reduce_ss(__m128 a, int imm);
/// VREDUCESS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}, imm8
/// </summary>
public static Vector128<float> ReduceScalar(Vector128<float> value, [ConstantExpected] byte control) => ReduceScalar(value, control);
/// <summary>
/// __m128d _mm_reduce_sd(__m128d a, int imm);
/// VREDUCESD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}, imm8
/// </summary>
public static Vector128<double> ReduceScalar(Vector128<double> value, [ConstantExpected] byte control) => ReduceScalar(value, control);
/// <summary>
/// __m128 _mm_reduce_ss(__m128 a, __m128 b, int imm);
/// VREDUCESS xmm1 {k1}{z}, xmm2, xmm3/m32{sae}, imm8
/// The above native signature does not exist. We provide this additional overload for consistency with the other scalar APIs.
/// </summary>
public static Vector128<float> ReduceScalar(Vector128<float> upper, Vector128<float> value, [ConstantExpected] byte control) => ReduceScalar(upper, value, control);
/// <summary>
/// __m128d _mm_reduce_sd(__m128d a, __m128d b, int imm);
/// VREDUCESD xmm1 {k1}{z}, xmm2, xmm3/m64{sae}, imm8
/// The above native signature does not exist. We provide this additional overload for consistency with the other scalar APIs.
/// </summary>
public static Vector128<double> ReduceScalar(Vector128<double> upper, Vector128<double> value, [ConstantExpected] byte control) => ReduceScalar(upper, value, control);
/// <summary>
/// __m512 _mm512_xor_ps (__m512 a, __m512 b)
/// VXORPS zmm1 {k1}{z}, zmm2, zmm3/m512/m32bcst
/// </summary>
public static Vector512<float> Xor(Vector512<float> left, Vector512<float> right) => Xor(left, right);
/// <summary>
/// __m512d _mm512_xor_pd (__m512d a, __m512d b)
/// VXORPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst
/// </summary>
public static Vector512<double> Xor(Vector512<double> left, Vector512<double> right) => Xor(left, right);
}
}