Skip to main content

asmkit/x86/features/
AVX512_VBMI.rs

1use crate::x86::assembler::*;
2use crate::x86::operands::*;
3use super::super::opcodes::*;
4use crate::core::emitter::*;
5use crate::core::operand::*;
6
7/// A dummy operand that represents no register. Here just for simplicity.
8const NOREG: Operand = Operand::new();
9
10/// `VPERMB` (VPERMB). 
11/// Copies bytes from the second source operand (the third operand) to the destination operand (the first operand) according to the byte indices in the first source operand (the second operand). Note that this instruction permits a byte in the source operand to be copied to more than one location in the destination operand.
12///
13///
14/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMB.html).
15///
16/// Supported operand variants:
17///
18/// ```text
19/// +---+---------------+
20/// | # | Operands      |
21/// +---+---------------+
22/// | 1 | Xmm, Xmm, Mem |
23/// | 2 | Xmm, Xmm, Xmm |
24/// | 3 | Ymm, Ymm, Mem |
25/// | 4 | Ymm, Ymm, Ymm |
26/// | 5 | Zmm, Zmm, Mem |
27/// | 6 | Zmm, Zmm, Zmm |
28/// +---+---------------+
29/// ```
30pub trait VpermbEmitter<A, B, C> {
31    fn vpermb(&mut self, op0: A, op1: B, op2: C);
32}
33
34impl<'a> VpermbEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
35    fn vpermb(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
36        self.emit(VPERMB128RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
37    }
38}
39
40impl<'a> VpermbEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
41    fn vpermb(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
42        self.emit(VPERMB128RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
43    }
44}
45
46impl<'a> VpermbEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
47    fn vpermb(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
48        self.emit(VPERMB256RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
49    }
50}
51
52impl<'a> VpermbEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
53    fn vpermb(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
54        self.emit(VPERMB256RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
55    }
56}
57
58impl<'a> VpermbEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
59    fn vpermb(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
60        self.emit(VPERMB512RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
61    }
62}
63
64impl<'a> VpermbEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
65    fn vpermb(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
66        self.emit(VPERMB512RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
67    }
68}
69
70/// `VPERMB_MASK` (VPERMB). 
71/// Copies bytes from the second source operand (the third operand) to the destination operand (the first operand) according to the byte indices in the first source operand (the second operand). Note that this instruction permits a byte in the source operand to be copied to more than one location in the destination operand.
72///
73///
74/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMB.html).
75///
76/// Supported operand variants:
77///
78/// ```text
79/// +---+---------------+
80/// | # | Operands      |
81/// +---+---------------+
82/// | 1 | Xmm, Xmm, Mem |
83/// | 2 | Xmm, Xmm, Xmm |
84/// | 3 | Ymm, Ymm, Mem |
85/// | 4 | Ymm, Ymm, Ymm |
86/// | 5 | Zmm, Zmm, Mem |
87/// | 6 | Zmm, Zmm, Zmm |
88/// +---+---------------+
89/// ```
90pub trait VpermbMaskEmitter<A, B, C> {
91    fn vpermb_mask(&mut self, op0: A, op1: B, op2: C);
92}
93
94impl<'a> VpermbMaskEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
95    fn vpermb_mask(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
96        self.emit(VPERMB128RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
97    }
98}
99
100impl<'a> VpermbMaskEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
101    fn vpermb_mask(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
102        self.emit(VPERMB128RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
103    }
104}
105
106impl<'a> VpermbMaskEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
107    fn vpermb_mask(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
108        self.emit(VPERMB256RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
109    }
110}
111
112impl<'a> VpermbMaskEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
113    fn vpermb_mask(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
114        self.emit(VPERMB256RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
115    }
116}
117
118impl<'a> VpermbMaskEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
119    fn vpermb_mask(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
120        self.emit(VPERMB512RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
121    }
122}
123
124impl<'a> VpermbMaskEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
125    fn vpermb_mask(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
126        self.emit(VPERMB512RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
127    }
128}
129
130/// `VPERMB_MASKZ` (VPERMB). 
131/// Copies bytes from the second source operand (the third operand) to the destination operand (the first operand) according to the byte indices in the first source operand (the second operand). Note that this instruction permits a byte in the source operand to be copied to more than one location in the destination operand.
132///
133///
134/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMB.html).
135///
136/// Supported operand variants:
137///
138/// ```text
139/// +---+---------------+
140/// | # | Operands      |
141/// +---+---------------+
142/// | 1 | Xmm, Xmm, Mem |
143/// | 2 | Xmm, Xmm, Xmm |
144/// | 3 | Ymm, Ymm, Mem |
145/// | 4 | Ymm, Ymm, Ymm |
146/// | 5 | Zmm, Zmm, Mem |
147/// | 6 | Zmm, Zmm, Zmm |
148/// +---+---------------+
149/// ```
150pub trait VpermbMaskzEmitter<A, B, C> {
151    fn vpermb_maskz(&mut self, op0: A, op1: B, op2: C);
152}
153
154impl<'a> VpermbMaskzEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
155    fn vpermb_maskz(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
156        self.emit(VPERMB128RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
157    }
158}
159
160impl<'a> VpermbMaskzEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
161    fn vpermb_maskz(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
162        self.emit(VPERMB128RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
163    }
164}
165
166impl<'a> VpermbMaskzEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
167    fn vpermb_maskz(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
168        self.emit(VPERMB256RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
169    }
170}
171
172impl<'a> VpermbMaskzEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
173    fn vpermb_maskz(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
174        self.emit(VPERMB256RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
175    }
176}
177
178impl<'a> VpermbMaskzEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
179    fn vpermb_maskz(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
180        self.emit(VPERMB512RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
181    }
182}
183
184impl<'a> VpermbMaskzEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
185    fn vpermb_maskz(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
186        self.emit(VPERMB512RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
187    }
188}
189
190/// `VPERMI2B` (VPERMI2B). 
191/// Permutes byte values in the second operand (the first source operand) and the third operand (the second source operand) using the byte indices in the first operand (the destination operand) to select byte elements from the second or third source operands. The selected byte elements are written to the destination at byte granularity under the writemask k1.
192///
193///
194/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMI2B.html).
195///
196/// Supported operand variants:
197///
198/// ```text
199/// +---+---------------+
200/// | # | Operands      |
201/// +---+---------------+
202/// | 1 | Xmm, Xmm, Mem |
203/// | 2 | Xmm, Xmm, Xmm |
204/// | 3 | Ymm, Ymm, Mem |
205/// | 4 | Ymm, Ymm, Ymm |
206/// | 5 | Zmm, Zmm, Mem |
207/// | 6 | Zmm, Zmm, Zmm |
208/// +---+---------------+
209/// ```
210pub trait Vpermi2bEmitter<A, B, C> {
211    fn vpermi2b(&mut self, op0: A, op1: B, op2: C);
212}
213
214impl<'a> Vpermi2bEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
215    fn vpermi2b(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
216        self.emit(VPERMI2B128RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
217    }
218}
219
220impl<'a> Vpermi2bEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
221    fn vpermi2b(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
222        self.emit(VPERMI2B128RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
223    }
224}
225
226impl<'a> Vpermi2bEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
227    fn vpermi2b(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
228        self.emit(VPERMI2B256RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
229    }
230}
231
232impl<'a> Vpermi2bEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
233    fn vpermi2b(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
234        self.emit(VPERMI2B256RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
235    }
236}
237
238impl<'a> Vpermi2bEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
239    fn vpermi2b(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
240        self.emit(VPERMI2B512RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
241    }
242}
243
244impl<'a> Vpermi2bEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
245    fn vpermi2b(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
246        self.emit(VPERMI2B512RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
247    }
248}
249
250/// `VPERMI2B_MASK` (VPERMI2B). 
251/// Permutes byte values in the second operand (the first source operand) and the third operand (the second source operand) using the byte indices in the first operand (the destination operand) to select byte elements from the second or third source operands. The selected byte elements are written to the destination at byte granularity under the writemask k1.
252///
253///
254/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMI2B.html).
255///
256/// Supported operand variants:
257///
258/// ```text
259/// +---+---------------+
260/// | # | Operands      |
261/// +---+---------------+
262/// | 1 | Xmm, Xmm, Mem |
263/// | 2 | Xmm, Xmm, Xmm |
264/// | 3 | Ymm, Ymm, Mem |
265/// | 4 | Ymm, Ymm, Ymm |
266/// | 5 | Zmm, Zmm, Mem |
267/// | 6 | Zmm, Zmm, Zmm |
268/// +---+---------------+
269/// ```
270pub trait Vpermi2bMaskEmitter<A, B, C> {
271    fn vpermi2b_mask(&mut self, op0: A, op1: B, op2: C);
272}
273
274impl<'a> Vpermi2bMaskEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
275    fn vpermi2b_mask(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
276        self.emit(VPERMI2B128RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
277    }
278}
279
280impl<'a> Vpermi2bMaskEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
281    fn vpermi2b_mask(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
282        self.emit(VPERMI2B128RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
283    }
284}
285
286impl<'a> Vpermi2bMaskEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
287    fn vpermi2b_mask(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
288        self.emit(VPERMI2B256RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
289    }
290}
291
292impl<'a> Vpermi2bMaskEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
293    fn vpermi2b_mask(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
294        self.emit(VPERMI2B256RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
295    }
296}
297
298impl<'a> Vpermi2bMaskEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
299    fn vpermi2b_mask(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
300        self.emit(VPERMI2B512RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
301    }
302}
303
304impl<'a> Vpermi2bMaskEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
305    fn vpermi2b_mask(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
306        self.emit(VPERMI2B512RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
307    }
308}
309
310/// `VPERMI2B_MASKZ` (VPERMI2B). 
311/// Permutes byte values in the second operand (the first source operand) and the third operand (the second source operand) using the byte indices in the first operand (the destination operand) to select byte elements from the second or third source operands. The selected byte elements are written to the destination at byte granularity under the writemask k1.
312///
313///
314/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMI2B.html).
315///
316/// Supported operand variants:
317///
318/// ```text
319/// +---+---------------+
320/// | # | Operands      |
321/// +---+---------------+
322/// | 1 | Xmm, Xmm, Mem |
323/// | 2 | Xmm, Xmm, Xmm |
324/// | 3 | Ymm, Ymm, Mem |
325/// | 4 | Ymm, Ymm, Ymm |
326/// | 5 | Zmm, Zmm, Mem |
327/// | 6 | Zmm, Zmm, Zmm |
328/// +---+---------------+
329/// ```
330pub trait Vpermi2bMaskzEmitter<A, B, C> {
331    fn vpermi2b_maskz(&mut self, op0: A, op1: B, op2: C);
332}
333
334impl<'a> Vpermi2bMaskzEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
335    fn vpermi2b_maskz(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
336        self.emit(VPERMI2B128RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
337    }
338}
339
340impl<'a> Vpermi2bMaskzEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
341    fn vpermi2b_maskz(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
342        self.emit(VPERMI2B128RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
343    }
344}
345
346impl<'a> Vpermi2bMaskzEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
347    fn vpermi2b_maskz(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
348        self.emit(VPERMI2B256RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
349    }
350}
351
352impl<'a> Vpermi2bMaskzEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
353    fn vpermi2b_maskz(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
354        self.emit(VPERMI2B256RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
355    }
356}
357
358impl<'a> Vpermi2bMaskzEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
359    fn vpermi2b_maskz(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
360        self.emit(VPERMI2B512RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
361    }
362}
363
364impl<'a> Vpermi2bMaskzEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
365    fn vpermi2b_maskz(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
366        self.emit(VPERMI2B512RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
367    }
368}
369
370/// `VPERMT2B` (VPERMT2B). 
371/// Permutes byte values from two tables, comprising of the first operand (also the destination operand) and the third operand (the second source operand). The second operand (the first source operand) provides byte indices to select byte results from the two tables. The selected byte elements are written to the destination at byte granularity under the writemask k1.
372///
373///
374/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMT2B.html).
375///
376/// Supported operand variants:
377///
378/// ```text
379/// +---+---------------+
380/// | # | Operands      |
381/// +---+---------------+
382/// | 1 | Xmm, Xmm, Mem |
383/// | 2 | Xmm, Xmm, Xmm |
384/// | 3 | Ymm, Ymm, Mem |
385/// | 4 | Ymm, Ymm, Ymm |
386/// | 5 | Zmm, Zmm, Mem |
387/// | 6 | Zmm, Zmm, Zmm |
388/// +---+---------------+
389/// ```
390pub trait Vpermt2bEmitter<A, B, C> {
391    fn vpermt2b(&mut self, op0: A, op1: B, op2: C);
392}
393
394impl<'a> Vpermt2bEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
395    fn vpermt2b(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
396        self.emit(VPERMT2B128RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
397    }
398}
399
400impl<'a> Vpermt2bEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
401    fn vpermt2b(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
402        self.emit(VPERMT2B128RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
403    }
404}
405
406impl<'a> Vpermt2bEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
407    fn vpermt2b(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
408        self.emit(VPERMT2B256RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
409    }
410}
411
412impl<'a> Vpermt2bEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
413    fn vpermt2b(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
414        self.emit(VPERMT2B256RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
415    }
416}
417
418impl<'a> Vpermt2bEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
419    fn vpermt2b(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
420        self.emit(VPERMT2B512RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
421    }
422}
423
424impl<'a> Vpermt2bEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
425    fn vpermt2b(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
426        self.emit(VPERMT2B512RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
427    }
428}
429
430/// `VPERMT2B_MASK` (VPERMT2B). 
431/// Permutes byte values from two tables, comprising of the first operand (also the destination operand) and the third operand (the second source operand). The second operand (the first source operand) provides byte indices to select byte results from the two tables. The selected byte elements are written to the destination at byte granularity under the writemask k1.
432///
433///
434/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMT2B.html).
435///
436/// Supported operand variants:
437///
438/// ```text
439/// +---+---------------+
440/// | # | Operands      |
441/// +---+---------------+
442/// | 1 | Xmm, Xmm, Mem |
443/// | 2 | Xmm, Xmm, Xmm |
444/// | 3 | Ymm, Ymm, Mem |
445/// | 4 | Ymm, Ymm, Ymm |
446/// | 5 | Zmm, Zmm, Mem |
447/// | 6 | Zmm, Zmm, Zmm |
448/// +---+---------------+
449/// ```
450pub trait Vpermt2bMaskEmitter<A, B, C> {
451    fn vpermt2b_mask(&mut self, op0: A, op1: B, op2: C);
452}
453
454impl<'a> Vpermt2bMaskEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
455    fn vpermt2b_mask(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
456        self.emit(VPERMT2B128RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
457    }
458}
459
460impl<'a> Vpermt2bMaskEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
461    fn vpermt2b_mask(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
462        self.emit(VPERMT2B128RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
463    }
464}
465
466impl<'a> Vpermt2bMaskEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
467    fn vpermt2b_mask(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
468        self.emit(VPERMT2B256RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
469    }
470}
471
472impl<'a> Vpermt2bMaskEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
473    fn vpermt2b_mask(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
474        self.emit(VPERMT2B256RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
475    }
476}
477
478impl<'a> Vpermt2bMaskEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
479    fn vpermt2b_mask(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
480        self.emit(VPERMT2B512RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
481    }
482}
483
484impl<'a> Vpermt2bMaskEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
485    fn vpermt2b_mask(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
486        self.emit(VPERMT2B512RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
487    }
488}
489
490/// `VPERMT2B_MASKZ` (VPERMT2B). 
491/// Permutes byte values from two tables, comprising of the first operand (also the destination operand) and the third operand (the second source operand). The second operand (the first source operand) provides byte indices to select byte results from the two tables. The selected byte elements are written to the destination at byte granularity under the writemask k1.
492///
493///
494/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMT2B.html).
495///
496/// Supported operand variants:
497///
498/// ```text
499/// +---+---------------+
500/// | # | Operands      |
501/// +---+---------------+
502/// | 1 | Xmm, Xmm, Mem |
503/// | 2 | Xmm, Xmm, Xmm |
504/// | 3 | Ymm, Ymm, Mem |
505/// | 4 | Ymm, Ymm, Ymm |
506/// | 5 | Zmm, Zmm, Mem |
507/// | 6 | Zmm, Zmm, Zmm |
508/// +---+---------------+
509/// ```
510pub trait Vpermt2bMaskzEmitter<A, B, C> {
511    fn vpermt2b_maskz(&mut self, op0: A, op1: B, op2: C);
512}
513
514impl<'a> Vpermt2bMaskzEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
515    fn vpermt2b_maskz(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
516        self.emit(VPERMT2B128RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
517    }
518}
519
520impl<'a> Vpermt2bMaskzEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
521    fn vpermt2b_maskz(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
522        self.emit(VPERMT2B128RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
523    }
524}
525
526impl<'a> Vpermt2bMaskzEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
527    fn vpermt2b_maskz(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
528        self.emit(VPERMT2B256RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
529    }
530}
531
532impl<'a> Vpermt2bMaskzEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
533    fn vpermt2b_maskz(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
534        self.emit(VPERMT2B256RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
535    }
536}
537
538impl<'a> Vpermt2bMaskzEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
539    fn vpermt2b_maskz(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
540        self.emit(VPERMT2B512RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
541    }
542}
543
544impl<'a> Vpermt2bMaskzEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
545    fn vpermt2b_maskz(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
546        self.emit(VPERMT2B512RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
547    }
548}
549
550/// `VPMULTISHIFTQB` (VPMULTISHIFTQB). 
551/// This instruction selects eight unaligned bytes from each input qword element of the second source operand (the third operand) and writes eight assembled bytes for each qword element in the destination operand (the first operand). Each byte result is selected using a byte-granular shift control within the corresponding qword element of the first source operand (the second operand). Each byte result in the destination operand is updated under the writemask k1.
552///
553///
554/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPMULTISHIFTQB.html).
555///
556/// Supported operand variants:
557///
558/// ```text
559/// +---+---------------+
560/// | # | Operands      |
561/// +---+---------------+
562/// | 1 | Xmm, Xmm, Mem |
563/// | 2 | Xmm, Xmm, Xmm |
564/// | 3 | Ymm, Ymm, Mem |
565/// | 4 | Ymm, Ymm, Ymm |
566/// | 5 | Zmm, Zmm, Mem |
567/// | 6 | Zmm, Zmm, Zmm |
568/// +---+---------------+
569/// ```
570pub trait VpmultishiftqbEmitter<A, B, C> {
571    fn vpmultishiftqb(&mut self, op0: A, op1: B, op2: C);
572}
573
574impl<'a> VpmultishiftqbEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
575    fn vpmultishiftqb(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
576        self.emit(VPMULTISHIFTQB128RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
577    }
578}
579
580impl<'a> VpmultishiftqbEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
581    fn vpmultishiftqb(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
582        self.emit(VPMULTISHIFTQB128RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
583    }
584}
585
586impl<'a> VpmultishiftqbEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
587    fn vpmultishiftqb(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
588        self.emit(VPMULTISHIFTQB256RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
589    }
590}
591
592impl<'a> VpmultishiftqbEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
593    fn vpmultishiftqb(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
594        self.emit(VPMULTISHIFTQB256RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
595    }
596}
597
598impl<'a> VpmultishiftqbEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
599    fn vpmultishiftqb(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
600        self.emit(VPMULTISHIFTQB512RRR, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
601    }
602}
603
604impl<'a> VpmultishiftqbEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
605    fn vpmultishiftqb(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
606        self.emit(VPMULTISHIFTQB512RRM, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
607    }
608}
609
610/// `VPMULTISHIFTQB_MASK` (VPMULTISHIFTQB). 
611/// This instruction selects eight unaligned bytes from each input qword element of the second source operand (the third operand) and writes eight assembled bytes for each qword element in the destination operand (the first operand). Each byte result is selected using a byte-granular shift control within the corresponding qword element of the first source operand (the second operand). Each byte result in the destination operand is updated under the writemask k1.
612///
613///
614/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPMULTISHIFTQB.html).
615///
616/// Supported operand variants:
617///
618/// ```text
619/// +---+---------------+
620/// | # | Operands      |
621/// +---+---------------+
622/// | 1 | Xmm, Xmm, Mem |
623/// | 2 | Xmm, Xmm, Xmm |
624/// | 3 | Ymm, Ymm, Mem |
625/// | 4 | Ymm, Ymm, Ymm |
626/// | 5 | Zmm, Zmm, Mem |
627/// | 6 | Zmm, Zmm, Zmm |
628/// +---+---------------+
629/// ```
630pub trait VpmultishiftqbMaskEmitter<A, B, C> {
631    fn vpmultishiftqb_mask(&mut self, op0: A, op1: B, op2: C);
632}
633
634impl<'a> VpmultishiftqbMaskEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
635    fn vpmultishiftqb_mask(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
636        self.emit(VPMULTISHIFTQB128RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
637    }
638}
639
640impl<'a> VpmultishiftqbMaskEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
641    fn vpmultishiftqb_mask(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
642        self.emit(VPMULTISHIFTQB128RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
643    }
644}
645
646impl<'a> VpmultishiftqbMaskEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
647    fn vpmultishiftqb_mask(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
648        self.emit(VPMULTISHIFTQB256RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
649    }
650}
651
652impl<'a> VpmultishiftqbMaskEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
653    fn vpmultishiftqb_mask(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
654        self.emit(VPMULTISHIFTQB256RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
655    }
656}
657
658impl<'a> VpmultishiftqbMaskEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
659    fn vpmultishiftqb_mask(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
660        self.emit(VPMULTISHIFTQB512RRR_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
661    }
662}
663
664impl<'a> VpmultishiftqbMaskEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
665    fn vpmultishiftqb_mask(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
666        self.emit(VPMULTISHIFTQB512RRM_MASK, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
667    }
668}
669
670/// `VPMULTISHIFTQB_MASKZ` (VPMULTISHIFTQB). 
671/// This instruction selects eight unaligned bytes from each input qword element of the second source operand (the third operand) and writes eight assembled bytes for each qword element in the destination operand (the first operand). Each byte result is selected using a byte-granular shift control within the corresponding qword element of the first source operand (the second operand). Each byte result in the destination operand is updated under the writemask k1.
672///
673///
674/// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPMULTISHIFTQB.html).
675///
676/// Supported operand variants:
677///
678/// ```text
679/// +---+---------------+
680/// | # | Operands      |
681/// +---+---------------+
682/// | 1 | Xmm, Xmm, Mem |
683/// | 2 | Xmm, Xmm, Xmm |
684/// | 3 | Ymm, Ymm, Mem |
685/// | 4 | Ymm, Ymm, Ymm |
686/// | 5 | Zmm, Zmm, Mem |
687/// | 6 | Zmm, Zmm, Zmm |
688/// +---+---------------+
689/// ```
690pub trait VpmultishiftqbMaskzEmitter<A, B, C> {
691    fn vpmultishiftqb_maskz(&mut self, op0: A, op1: B, op2: C);
692}
693
694impl<'a> VpmultishiftqbMaskzEmitter<Xmm, Xmm, Xmm> for Assembler<'a> {
695    fn vpmultishiftqb_maskz(&mut self, op0: Xmm, op1: Xmm, op2: Xmm) {
696        self.emit(VPMULTISHIFTQB128RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
697    }
698}
699
700impl<'a> VpmultishiftqbMaskzEmitter<Xmm, Xmm, Mem> for Assembler<'a> {
701    fn vpmultishiftqb_maskz(&mut self, op0: Xmm, op1: Xmm, op2: Mem) {
702        self.emit(VPMULTISHIFTQB128RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
703    }
704}
705
706impl<'a> VpmultishiftqbMaskzEmitter<Ymm, Ymm, Ymm> for Assembler<'a> {
707    fn vpmultishiftqb_maskz(&mut self, op0: Ymm, op1: Ymm, op2: Ymm) {
708        self.emit(VPMULTISHIFTQB256RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
709    }
710}
711
712impl<'a> VpmultishiftqbMaskzEmitter<Ymm, Ymm, Mem> for Assembler<'a> {
713    fn vpmultishiftqb_maskz(&mut self, op0: Ymm, op1: Ymm, op2: Mem) {
714        self.emit(VPMULTISHIFTQB256RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
715    }
716}
717
718impl<'a> VpmultishiftqbMaskzEmitter<Zmm, Zmm, Zmm> for Assembler<'a> {
719    fn vpmultishiftqb_maskz(&mut self, op0: Zmm, op1: Zmm, op2: Zmm) {
720        self.emit(VPMULTISHIFTQB512RRR_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
721    }
722}
723
724impl<'a> VpmultishiftqbMaskzEmitter<Zmm, Zmm, Mem> for Assembler<'a> {
725    fn vpmultishiftqb_maskz(&mut self, op0: Zmm, op1: Zmm, op2: Mem) {
726        self.emit(VPMULTISHIFTQB512RRM_MASKZ, op0.as_operand(), op1.as_operand(), op2.as_operand(), &NOREG);
727    }
728}
729
730
731impl<'a> Assembler<'a> {
732    /// `VPERMB` (VPERMB). 
733    /// Copies bytes from the second source operand (the third operand) to the destination operand (the first operand) according to the byte indices in the first source operand (the second operand). Note that this instruction permits a byte in the source operand to be copied to more than one location in the destination operand.
734    ///
735    ///
736    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMB.html).
737    ///
738    /// Supported operand variants:
739    ///
740    /// ```text
741    /// +---+---------------+
742    /// | # | Operands      |
743    /// +---+---------------+
744    /// | 1 | Xmm, Xmm, Mem |
745    /// | 2 | Xmm, Xmm, Xmm |
746    /// | 3 | Ymm, Ymm, Mem |
747    /// | 4 | Ymm, Ymm, Ymm |
748    /// | 5 | Zmm, Zmm, Mem |
749    /// | 6 | Zmm, Zmm, Zmm |
750    /// +---+---------------+
751    /// ```
752    #[inline]
753    pub fn vpermb<A, B, C>(&mut self, op0: A, op1: B, op2: C)
754    where Assembler<'a>: VpermbEmitter<A, B, C> {
755        <Self as VpermbEmitter<A, B, C>>::vpermb(self, op0, op1, op2);
756    }
757    /// `VPERMB_MASK` (VPERMB). 
758    /// Copies bytes from the second source operand (the third operand) to the destination operand (the first operand) according to the byte indices in the first source operand (the second operand). Note that this instruction permits a byte in the source operand to be copied to more than one location in the destination operand.
759    ///
760    ///
761    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMB.html).
762    ///
763    /// Supported operand variants:
764    ///
765    /// ```text
766    /// +---+---------------+
767    /// | # | Operands      |
768    /// +---+---------------+
769    /// | 1 | Xmm, Xmm, Mem |
770    /// | 2 | Xmm, Xmm, Xmm |
771    /// | 3 | Ymm, Ymm, Mem |
772    /// | 4 | Ymm, Ymm, Ymm |
773    /// | 5 | Zmm, Zmm, Mem |
774    /// | 6 | Zmm, Zmm, Zmm |
775    /// +---+---------------+
776    /// ```
777    #[inline]
778    pub fn vpermb_mask<A, B, C>(&mut self, op0: A, op1: B, op2: C)
779    where Assembler<'a>: VpermbMaskEmitter<A, B, C> {
780        <Self as VpermbMaskEmitter<A, B, C>>::vpermb_mask(self, op0, op1, op2);
781    }
782    /// `VPERMB_MASKZ` (VPERMB). 
783    /// Copies bytes from the second source operand (the third operand) to the destination operand (the first operand) according to the byte indices in the first source operand (the second operand). Note that this instruction permits a byte in the source operand to be copied to more than one location in the destination operand.
784    ///
785    ///
786    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMB.html).
787    ///
788    /// Supported operand variants:
789    ///
790    /// ```text
791    /// +---+---------------+
792    /// | # | Operands      |
793    /// +---+---------------+
794    /// | 1 | Xmm, Xmm, Mem |
795    /// | 2 | Xmm, Xmm, Xmm |
796    /// | 3 | Ymm, Ymm, Mem |
797    /// | 4 | Ymm, Ymm, Ymm |
798    /// | 5 | Zmm, Zmm, Mem |
799    /// | 6 | Zmm, Zmm, Zmm |
800    /// +---+---------------+
801    /// ```
802    #[inline]
803    pub fn vpermb_maskz<A, B, C>(&mut self, op0: A, op1: B, op2: C)
804    where Assembler<'a>: VpermbMaskzEmitter<A, B, C> {
805        <Self as VpermbMaskzEmitter<A, B, C>>::vpermb_maskz(self, op0, op1, op2);
806    }
807    /// `VPERMI2B` (VPERMI2B). 
808    /// Permutes byte values in the second operand (the first source operand) and the third operand (the second source operand) using the byte indices in the first operand (the destination operand) to select byte elements from the second or third source operands. The selected byte elements are written to the destination at byte granularity under the writemask k1.
809    ///
810    ///
811    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMI2B.html).
812    ///
813    /// Supported operand variants:
814    ///
815    /// ```text
816    /// +---+---------------+
817    /// | # | Operands      |
818    /// +---+---------------+
819    /// | 1 | Xmm, Xmm, Mem |
820    /// | 2 | Xmm, Xmm, Xmm |
821    /// | 3 | Ymm, Ymm, Mem |
822    /// | 4 | Ymm, Ymm, Ymm |
823    /// | 5 | Zmm, Zmm, Mem |
824    /// | 6 | Zmm, Zmm, Zmm |
825    /// +---+---------------+
826    /// ```
827    #[inline]
828    pub fn vpermi2b<A, B, C>(&mut self, op0: A, op1: B, op2: C)
829    where Assembler<'a>: Vpermi2bEmitter<A, B, C> {
830        <Self as Vpermi2bEmitter<A, B, C>>::vpermi2b(self, op0, op1, op2);
831    }
832    /// `VPERMI2B_MASK` (VPERMI2B). 
833    /// Permutes byte values in the second operand (the first source operand) and the third operand (the second source operand) using the byte indices in the first operand (the destination operand) to select byte elements from the second or third source operands. The selected byte elements are written to the destination at byte granularity under the writemask k1.
834    ///
835    ///
836    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMI2B.html).
837    ///
838    /// Supported operand variants:
839    ///
840    /// ```text
841    /// +---+---------------+
842    /// | # | Operands      |
843    /// +---+---------------+
844    /// | 1 | Xmm, Xmm, Mem |
845    /// | 2 | Xmm, Xmm, Xmm |
846    /// | 3 | Ymm, Ymm, Mem |
847    /// | 4 | Ymm, Ymm, Ymm |
848    /// | 5 | Zmm, Zmm, Mem |
849    /// | 6 | Zmm, Zmm, Zmm |
850    /// +---+---------------+
851    /// ```
852    #[inline]
853    pub fn vpermi2b_mask<A, B, C>(&mut self, op0: A, op1: B, op2: C)
854    where Assembler<'a>: Vpermi2bMaskEmitter<A, B, C> {
855        <Self as Vpermi2bMaskEmitter<A, B, C>>::vpermi2b_mask(self, op0, op1, op2);
856    }
857    /// `VPERMI2B_MASKZ` (VPERMI2B). 
858    /// Permutes byte values in the second operand (the first source operand) and the third operand (the second source operand) using the byte indices in the first operand (the destination operand) to select byte elements from the second or third source operands. The selected byte elements are written to the destination at byte granularity under the writemask k1.
859    ///
860    ///
861    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMI2B.html).
862    ///
863    /// Supported operand variants:
864    ///
865    /// ```text
866    /// +---+---------------+
867    /// | # | Operands      |
868    /// +---+---------------+
869    /// | 1 | Xmm, Xmm, Mem |
870    /// | 2 | Xmm, Xmm, Xmm |
871    /// | 3 | Ymm, Ymm, Mem |
872    /// | 4 | Ymm, Ymm, Ymm |
873    /// | 5 | Zmm, Zmm, Mem |
874    /// | 6 | Zmm, Zmm, Zmm |
875    /// +---+---------------+
876    /// ```
877    #[inline]
878    pub fn vpermi2b_maskz<A, B, C>(&mut self, op0: A, op1: B, op2: C)
879    where Assembler<'a>: Vpermi2bMaskzEmitter<A, B, C> {
880        <Self as Vpermi2bMaskzEmitter<A, B, C>>::vpermi2b_maskz(self, op0, op1, op2);
881    }
882    /// `VPERMT2B` (VPERMT2B). 
883    /// Permutes byte values from two tables, comprising of the first operand (also the destination operand) and the third operand (the second source operand). The second operand (the first source operand) provides byte indices to select byte results from the two tables. The selected byte elements are written to the destination at byte granularity under the writemask k1.
884    ///
885    ///
886    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMT2B.html).
887    ///
888    /// Supported operand variants:
889    ///
890    /// ```text
891    /// +---+---------------+
892    /// | # | Operands      |
893    /// +---+---------------+
894    /// | 1 | Xmm, Xmm, Mem |
895    /// | 2 | Xmm, Xmm, Xmm |
896    /// | 3 | Ymm, Ymm, Mem |
897    /// | 4 | Ymm, Ymm, Ymm |
898    /// | 5 | Zmm, Zmm, Mem |
899    /// | 6 | Zmm, Zmm, Zmm |
900    /// +---+---------------+
901    /// ```
902    #[inline]
903    pub fn vpermt2b<A, B, C>(&mut self, op0: A, op1: B, op2: C)
904    where Assembler<'a>: Vpermt2bEmitter<A, B, C> {
905        <Self as Vpermt2bEmitter<A, B, C>>::vpermt2b(self, op0, op1, op2);
906    }
907    /// `VPERMT2B_MASK` (VPERMT2B). 
908    /// Permutes byte values from two tables, comprising of the first operand (also the destination operand) and the third operand (the second source operand). The second operand (the first source operand) provides byte indices to select byte results from the two tables. The selected byte elements are written to the destination at byte granularity under the writemask k1.
909    ///
910    ///
911    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMT2B.html).
912    ///
913    /// Supported operand variants:
914    ///
915    /// ```text
916    /// +---+---------------+
917    /// | # | Operands      |
918    /// +---+---------------+
919    /// | 1 | Xmm, Xmm, Mem |
920    /// | 2 | Xmm, Xmm, Xmm |
921    /// | 3 | Ymm, Ymm, Mem |
922    /// | 4 | Ymm, Ymm, Ymm |
923    /// | 5 | Zmm, Zmm, Mem |
924    /// | 6 | Zmm, Zmm, Zmm |
925    /// +---+---------------+
926    /// ```
927    #[inline]
928    pub fn vpermt2b_mask<A, B, C>(&mut self, op0: A, op1: B, op2: C)
929    where Assembler<'a>: Vpermt2bMaskEmitter<A, B, C> {
930        <Self as Vpermt2bMaskEmitter<A, B, C>>::vpermt2b_mask(self, op0, op1, op2);
931    }
932    /// `VPERMT2B_MASKZ` (VPERMT2B). 
933    /// Permutes byte values from two tables, comprising of the first operand (also the destination operand) and the third operand (the second source operand). The second operand (the first source operand) provides byte indices to select byte results from the two tables. The selected byte elements are written to the destination at byte granularity under the writemask k1.
934    ///
935    ///
936    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPERMT2B.html).
937    ///
938    /// Supported operand variants:
939    ///
940    /// ```text
941    /// +---+---------------+
942    /// | # | Operands      |
943    /// +---+---------------+
944    /// | 1 | Xmm, Xmm, Mem |
945    /// | 2 | Xmm, Xmm, Xmm |
946    /// | 3 | Ymm, Ymm, Mem |
947    /// | 4 | Ymm, Ymm, Ymm |
948    /// | 5 | Zmm, Zmm, Mem |
949    /// | 6 | Zmm, Zmm, Zmm |
950    /// +---+---------------+
951    /// ```
952    #[inline]
953    pub fn vpermt2b_maskz<A, B, C>(&mut self, op0: A, op1: B, op2: C)
954    where Assembler<'a>: Vpermt2bMaskzEmitter<A, B, C> {
955        <Self as Vpermt2bMaskzEmitter<A, B, C>>::vpermt2b_maskz(self, op0, op1, op2);
956    }
957    /// `VPMULTISHIFTQB` (VPMULTISHIFTQB). 
958    /// This instruction selects eight unaligned bytes from each input qword element of the second source operand (the third operand) and writes eight assembled bytes for each qword element in the destination operand (the first operand). Each byte result is selected using a byte-granular shift control within the corresponding qword element of the first source operand (the second operand). Each byte result in the destination operand is updated under the writemask k1.
959    ///
960    ///
961    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPMULTISHIFTQB.html).
962    ///
963    /// Supported operand variants:
964    ///
965    /// ```text
966    /// +---+---------------+
967    /// | # | Operands      |
968    /// +---+---------------+
969    /// | 1 | Xmm, Xmm, Mem |
970    /// | 2 | Xmm, Xmm, Xmm |
971    /// | 3 | Ymm, Ymm, Mem |
972    /// | 4 | Ymm, Ymm, Ymm |
973    /// | 5 | Zmm, Zmm, Mem |
974    /// | 6 | Zmm, Zmm, Zmm |
975    /// +---+---------------+
976    /// ```
977    #[inline]
978    pub fn vpmultishiftqb<A, B, C>(&mut self, op0: A, op1: B, op2: C)
979    where Assembler<'a>: VpmultishiftqbEmitter<A, B, C> {
980        <Self as VpmultishiftqbEmitter<A, B, C>>::vpmultishiftqb(self, op0, op1, op2);
981    }
982    /// `VPMULTISHIFTQB_MASK` (VPMULTISHIFTQB). 
983    /// This instruction selects eight unaligned bytes from each input qword element of the second source operand (the third operand) and writes eight assembled bytes for each qword element in the destination operand (the first operand). Each byte result is selected using a byte-granular shift control within the corresponding qword element of the first source operand (the second operand). Each byte result in the destination operand is updated under the writemask k1.
984    ///
985    ///
986    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPMULTISHIFTQB.html).
987    ///
988    /// Supported operand variants:
989    ///
990    /// ```text
991    /// +---+---------------+
992    /// | # | Operands      |
993    /// +---+---------------+
994    /// | 1 | Xmm, Xmm, Mem |
995    /// | 2 | Xmm, Xmm, Xmm |
996    /// | 3 | Ymm, Ymm, Mem |
997    /// | 4 | Ymm, Ymm, Ymm |
998    /// | 5 | Zmm, Zmm, Mem |
999    /// | 6 | Zmm, Zmm, Zmm |
1000    /// +---+---------------+
1001    /// ```
1002    #[inline]
1003    pub fn vpmultishiftqb_mask<A, B, C>(&mut self, op0: A, op1: B, op2: C)
1004    where Assembler<'a>: VpmultishiftqbMaskEmitter<A, B, C> {
1005        <Self as VpmultishiftqbMaskEmitter<A, B, C>>::vpmultishiftqb_mask(self, op0, op1, op2);
1006    }
1007    /// `VPMULTISHIFTQB_MASKZ` (VPMULTISHIFTQB). 
1008    /// This instruction selects eight unaligned bytes from each input qword element of the second source operand (the third operand) and writes eight assembled bytes for each qword element in the destination operand (the first operand). Each byte result is selected using a byte-granular shift control within the corresponding qword element of the first source operand (the second operand). Each byte result in the destination operand is updated under the writemask k1.
1009    ///
1010    ///
1011    /// For more details, see the [Intel manual](https://www.felixcloutier.com/x86/VPMULTISHIFTQB.html).
1012    ///
1013    /// Supported operand variants:
1014    ///
1015    /// ```text
1016    /// +---+---------------+
1017    /// | # | Operands      |
1018    /// +---+---------------+
1019    /// | 1 | Xmm, Xmm, Mem |
1020    /// | 2 | Xmm, Xmm, Xmm |
1021    /// | 3 | Ymm, Ymm, Mem |
1022    /// | 4 | Ymm, Ymm, Ymm |
1023    /// | 5 | Zmm, Zmm, Mem |
1024    /// | 6 | Zmm, Zmm, Zmm |
1025    /// +---+---------------+
1026    /// ```
1027    #[inline]
1028    pub fn vpmultishiftqb_maskz<A, B, C>(&mut self, op0: A, op1: B, op2: C)
1029    where Assembler<'a>: VpmultishiftqbMaskzEmitter<A, B, C> {
1030        <Self as VpmultishiftqbMaskzEmitter<A, B, C>>::vpmultishiftqb_maskz(self, op0, op1, op2);
1031    }
1032}