Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

Shifting by signed values?

K___Arav
Beginner
457 Views

Why has no-one combined left- and right- shift into a single shift operation with a signed shift amount? This would allow simultaneously left-shifting and right-shifting in e.g SIMD. It would also be useful in typical GPR instructions (including a double-precision version like SHRD/SHLD). I have one use at this moment: Shifting a 128-bit value between two GPR registers left or right by a signed integer (currently doing both and then conditionally moving the correct result to the destination regs).

Why is this not yet implemented? Are there issues in hardware which prevent such instructions from being implemented?

0 Kudos
0 Replies
Reply