Patent ID: 8458684

Claim:
A method, in a data processing system, for inserting instructions into code for checking for in-data path special exception values indicative of deferred exception conditions, comprising: analyzing, by a compiler executing on a processor of the data processing system, a portion of first code to identify at least one non-speculative instruction performing a designated non-speculative operation in the first code that is a candidate for replacement by an operation-and-indicate instruction that performs the designated non-speculative operation and further performs an indication operation for indicating any exception conditions corresponding to in-data path special exception values present in vector slots of vector register inputs to the operation-and-indicate instruction; replacing, by the compiler executing on the processor, the at least one non-speculative instruction performing a designated non-speculative operation in the first code with the operation-and-indicate instruction; and generating, by the compiler executing on the processor, second code based on the replacement of the at least one non-speculative instruction in the first code, wherein analyzing the portion of first code comprises analyzing a dependence graph of the portion of the first code to identify a node within the dependence graph where an operation-and-indicate instruction may be inserted as a replacement for an instruction corresponding to the node.