AVX-512
AVX512-K20 exception class
VEX-encoded instructions on opmask registers without a memory operand, such as KANDW, KORTESTQ and KSHIFTLD, which Intel's manual calls Exceptions Type K20.
- Class
AVX512-K20in Intel XED- Applies to
- VEX encodings on opmask and general-purpose registers.
- Instructions
- 51 mnemonics, 54 forms
- Data
- Intel XED v2026.08.23
Exception conditions
| Exception | Real | Virtual-8086 | Protected | 64-bit | Condition |
|---|---|---|---|---|---|
#UD | yes | yes | yes | yes | The processor lacks the instruction’s extension: its CPUID feature flag is 0. |
#UD | yes | yes | no | no | Always: real and virtual-8086 mode have no VEX prefix. |
#UD | no | no | yes | yes | The operating system has not enabled the opmask state: CR4.OSXSAVE is 0, or XCR0 lacks one of the bits that Table 2-39 requires. |
#UD | no | no | yes | yes | A VEX field has a value that the manual’s general rules forbid (Tables 2-40 and 2-41). |
#UD | no | no | yes | yes | A REX, F2, F3 or 66 prefix comes before the VEX prefix. |
#UD | no | no | yes | yes | The ModR/M byte encodes a memory operand (its mod field is not 11b). |
#NM | yes | yes | yes | yes | CR0.TS (task switched, bit 3) is 1. |
Notes
Without a memory operand, only #UD and #NM remain. The moves from a mask register to a general-purpose register (KMOVB, KMOVW, KMOVD and KMOVQ) are here; their other forms are AVX512-K21.
Related classes
Instructions
Intel XED puts forms of 51 mnemonics in this class, listed here by extension. Where a mnemonic also has forms of other classes, its link leads to its first form of this one.
AVX10.1
- KADDB
- KADDD
- KADDQ
- KADDW
- KANDB
- KANDD
- KANDNB
- KANDND
- KANDNQ
- KANDNW
- KANDQ
- KANDW
- KMOVB
- KMOVD
- KMOVQ
- KMOVW
- KNOTB
- KNOTD
- KNOTQ
- KNOTW
- KORB
- KORD
- KORQ
- KORTESTB
- KORTESTD
- KORTESTQ
- KORTESTW
- KORW
- KSHIFTLB
- KSHIFTLD
- KSHIFTLQ
- KSHIFTLW
- KSHIFTRB
- KSHIFTRD
- KSHIFTRQ
- KSHIFTRW
- KTESTB
- KTESTD
- KTESTQ
- KTESTW
- KUNPCKBW
- KUNPCKDQ
- KUNPCKWD
- KXNORB
- KXNORD
- KXNORQ
- KXNORW
- KXORB
- KXORD
- KXORQ
- KXORW
Sources
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Section 2.9.1, Table 2-65; Section 2.7.11, Tables 2-39 to 2-41.
- Intel XED v2026.08.23 (commit
0bcb6237345c): the exception class of each instruction form.
The list of instructions is derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted it. The text is our own.