AMD amd64 architecture User Manual

Page of 336
x87 Floating-Point Programming
279
24592—Rev. 3.15—November 2009
AMD64 Technology
#DB—Debug Exception (Vector 1)
#BP—Breakpoint Exception (Vector 3)
#UD—Invalid-Opcode Exception (Vector 6)
#NM—Device-Not-Available Exception (Vector 7)
#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)
For details on #MF exceptions, see “x87 Floating-Point Exception Causes” below.
Exceptions Not Generated.
x87 instructions do not generate the following general-purpose
exceptions:
#DE—Divide-by-zero-error exception (Vector 0)
Non-Maskable-Interrupt Exception (Vector 2)
#OF—Overflow exception (Vector 4)
#BR—Bound-range exception (Vector 5)
Coprocessor-segment-overrun exception (Vector 9)
#TS—Invalid-TSS exception (Vector 10)
#NP—Segment-not-present exception (Vector 11)
#MC—Machine-check exception (Vector 18)
#XF—SIMD floating-point exception (Vector 19)
For details on all general-purpose exceptions, see “Exceptions and Interrupts” in Volume 2.
6.8.2 x87 Floating-Point Exception Causes
The x87 floating-point exception-pending (#MF) exception listed above in “General-Purpose
Exceptions” 
is actually the logical OR of six exceptions that can be caused by x87 floating-point
instructions. Each of the six exceptions has a status flag in the x87 status word and a mask bit in the
x87 control word. A seventh exception, stack fault (SF), is reported together with one of the six
maskable exceptions and does not have a mask bit.
If a #MF exception occurs when its mask bit is set to 1 (masked), the processor responds in a default
way that does not invoke the #MF exception service routine. If an exception occurs when its mask bit is
cleared to 0 (unmasked), the processor suspends processing of the faulting instruction (if possible) and,
at the boundary of the next non-control x87 or 64-bit media instruction (see “Control” on page 273),