| CPC G06F 9/30145 (2013.01) [G06F 9/3001 (2013.01); G06F 9/30181 (2013.01)] | 16 Claims |

|
1. A processor, comprising:
fusion detector circuitry configured to:
receive fetched instructions;
detect a first pair of the fetched instructions, wherein the first pair includes:
a first instruction that is executable to:
perform a divide operation using a dividend from a first source register and a divisor from a second source register; and
write a quotient of the divide operation to a first destination register; and
a second instruction that is executable to:
read the quotient, the dividend and the divisor from the first destination register, the first source register and the second source register;
calculate a remainder of the divide operation; and
write the remainder to the first destination register, overwriting the quotient; and
fuse the first pair of the fetched instructions into a first fused instruction operation that is executable to use the dividend and the divisor to calculate the remainder and write the remainder instead of the quotient to the first destination register; and
execution circuitry coupled to the fusion detector circuitry and configured to execute the first fused instruction operation.
|