User Guide
64-Bit Media Programming 231
24592—Rev. 3.15—November 2009 AMD64 Technology
• #UD—Invalid-Opcode Exception (Vector 6)
• #DF—Double-Fault Exception (Vector 8)
• #SS—Stack Exception (Vector 12)
• #GP—General-Protection Exception (Vector 13)
• #PF—Page-Fault Exception (Vector 14)
• #MF—x87 Floating-Point Exception-Pending (Vector 16)
• #AC—Alignment-Check Exception (Vector 17)
• #MC—Machine-Check Exception (Vector 18)
• #XF—SIMD Floating-Point Exception (Vector 19)—Only by the CVTPS2PI, CVTTPS2PI,
CVTPD2PI, and CVTTPD2PI instructions.
An invalid-opcode exception (#UD) can occur if a required CPUID feature flag is not set (see “Feature
Detection” on page 229), or if an attempt is made to execute a 64-bit media instruction and the
operating system has set the floating-point software-emulation (EM) bit in control register 0 to 1
(CR0.EM = 1).
For details on the system control-register bits, see “System-Control Registers” in Volume 2. For details
on the machine-check mechanism, see “Machine Check Mechanism” in Volume 2.
For details on #MF exceptions, see “x87 Floating-Point Exceptions (#MF)” on page 231.
Exceptions Not Generated. The 64-bit media instructions do not generate the following general-
purpose exceptions:
• #DE—Divide-By-Zero-Error Exception (Vector 0)
• Non-Maskable-Interrupt Exception (Vector 2)
• #BP—Breakpoint Exception (Vector 3)
• #OF—Overflow Exception (Vector 4)
• #BR—Bound-Range Exception (Vector 5)
• #NM—Device-Not-Available Exception (Vector 7)
• Coprocessor-Segment-Overrun Exception (Vector 9)
• #TS—Invalid-TSS Exception (Vector 10)
• #NP—Segment-Not-Present Exception (Vector 11)
For details on all general-purpose exceptions, see “Exceptions and Interrupts” in Volume 2.
5.11.2 x87 Floating-Point Exceptions (#MF)
The 6 4-bit media instructions do not generate x87 floating-point (#MF) exceptions as a consequence
of their own computations. However, an #MF exception can occur during the execution of a 64-bit
media instruction, due to a prior x87 floating-point instruction. Specifically, if an unmasked x87
floating-point exception is pending at the instruction boundary of the next 64-bit media instruction, the