APX
APX-EVEX-CCMP exception class
APX-EVEX-CCMP is the APX specification's exception class for CCMPscc and CTESTscc, the conditional compare and test instructions that APX adds in EVEX map 4.
- Class
APX-EVEX-CCMPin Intel XED- Applies to
- CCMPscc and CTESTscc (APX), which reuse the opcodes of CMP and TEST in EVEX map 4.
- Instructions
- 2 mnemonics, 20 forms
- Data
- Intel XED v2026.08.23
Exception conditions
| Exception | Real | Virtual-8086 | Protected | 64-bit | Condition |
|---|---|---|---|---|---|
#UD | yes | yes | no | no | Always: the EVEX prefix raises #UD in real-address and virtual-8086 mode. |
#UD | no | no | yes | no | Always: EVEX map 4, where these instructions are, exists only in 64-bit mode. |
#UD | no | no | no | yes | XCR0 bit 19 (APX) or CR4.OSXSAVE is 0: the operating system has not enabled APX. |
#UD | no | no | no | yes | A bit of the last EVEX payload byte other than the source condition bits SC3 to SC0 is 1. |
#UD | no | no | no | yes | The operand is a register (ModRM.mod = 11B) and EVEX.U is 0. |
#UD | no | no | no | yes | A LOCK, 66H, F2H, F3H or REX prefix comes before the EVEX prefix. |
#UD | no | no | no | yes | CPUID reports no APX_F. |
#SS(0) | no | no | no | yes | The memory address uses the SS segment and is not canonical. |
#GP(0) | no | no | no | yes | The memory address is not canonical. |
#PF(fault-code) | no | no | no | yes | The memory access causes a page fault. |
#AC(0) | no | no | no | yes | Alignment checking is enabled, CPL is 3 and the memory access is unaligned. |
Notes
When the source condition is false, CCMPscc and CTESTscc skip the comparison and set OF, SF, ZF and CF from the default flags value, which sits where EVEX.vvvv usually is (PF gets CF’s value and AF is cleared). Unlike CFCMOVcc, a false condition does not suppress the faults of a memory operand, so these rows apply whatever the condition.
Related classes
Instructions
Intel XED puts forms of 2 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.
APX
Sources
- Intel Advanced Performance Extensions (Intel APX) Architecture Specification, revision 7.0 (July 2025): Section 4.2.5, Table 4.6; Section 3.1.3.2.1.
- 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.