摘要 |
PROBLEM TO BE SOLVED: To provide fusible instructions and logic to realize OR-test and AND-test functionality on multiple test sources.SOLUTION: A test instruction specifies first, second and third source data operands, and an operation type. Execution units, in response to the decoded test instruction, perform one logical operation, according to the specified operation type, between data from the first and second source data operands, and perform a second logical operation between the data from the third source data operand and the result of the first logical operation to set a condition flag. The test instruction is generated dynamically by fusing one logical instruction with a prior-art test instruction. The test instruction may be generated through a just-in-time compiler. Further, the test instruction is fused with a subsequent conditional branch instruction, and a branch is performed according to how the condition flag is set.SELECTED DRAWING: Figure 15A |