An apparatus and method for floating-point special case handling. In one
embodiment, a processor may include a first execution unit configured to
execute a longer-latency floating-point instruction, and a second
execution unit configured to execute a shorter-latency floating-point
instruction. In response to the longer-latency floating-point instruction
being issued to the first execution unit, the second execution unit may
be further configured to detect whether a result of the longer-latency
floating-point instruction is determinable from one or more operands of
the longer-latency floating-point instruction independently of the first
execution unit executing the longer-latency floating-point instruction.
In response to detecting that the result is determinable, the second
execution unit may be further configured to flush the longer-latency
floating-point instruction from the first execution unit and to determine
the result.