sarx
Shift Arithmetic Right Without Affecting Flags
SARX r32, r/m32, r32
Arithmetic right shift, count in register. No flags update.
Details
The Shift Arithmetic Right Without Affecting Flags instruction arithmetic right shift, count in register. No flags update.
Pseudocode Operation
// Arithmetic right shift, count in register. No flags update
Example
SARX eax, ebx, eax
Encoding
Binary Layout
VEX
+0
opcode
+3
ModRM
+4
Operands
-
dest
32-bit general-purpose register (e.g. EAX) -
src1
32-bit register or memory -
src2
32-bit general-purpose register (e.g. EAX)