CPC G06F 9/30032 (2013.01) [G06F 9/30094 (2013.01); G06F 9/30098 (2013.01)] | 19 Claims |
1. An apparatus comprising:
a register to store a plurality of flags, including a carry flag, a sign flag, a zero flag, and an overflow flag;
a decoder to decode instructions, including a single rotate right instruction, wherein some of the instructions indicate 64-bit general-purpose registers that are to store 64-bit operands in a 64-bit mode and are to store 32-bit operands in a 32-bit mode, wherein the 32-bit operands are to be stored in a lower 32-bits of the 64-bit general-purpose registers, and wherein the single rotate right instruction is to indicate a 64-bit operand size, a first 64-bit source operand, a second 64-bit source operand, and has a field to specify a first 64-bit general-purpose register; and
execution circuitry coupled with the decoder, the execution circuitry to perform operations corresponding to the single rotate right instruction, including to:
rotate the first 64-bit source operand right by an amount that is to be indicated by the second 64-bit source operand, wherein bits rotated out of a least significant bit of the first 64-bit source operand are to be rotated into a most significant bit of the first 64-bit source operand;
store a result that is to include the first 64-bit source operand rotated right by the amount into the first 64-bit general-purpose register; and
complete the execution of the single rotate right instruction without causing the carry flag to be read, without causing the carry flag to be written, without causing the sign flag to be read, without causing the sign flag to be written, without causing the zero flag to be read, without causing the zero flag to be written, without causing the overflow flag to be read, and without causing the overflow flag to be written.
|