Community
cancel
Showing results for 
Search instead for 
Did you mean: 
K___Arav
Beginner
65 Views

Shifting by signed values?

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