Currently I am reading through the Intel 64-bit documentation, however I am confused by the pseudocode for the shift instructions.
The pseudocode states that
IF instruction is SAR
THEN
DEST ← DEST / 2; (* Signed divide, rounding toward negative infinity *)
ELSE (* Instruction is SHR *)
DEST ← DEST / 2 ; (* Unsigned divide *)
-Page 341 of vol 2
As the divisor is in both cases 2, shouldn't they always have the same result?