3 ms·
A shift is basically a rotate and mask. If wonder if they came from a machine where there was no shift instruction?
by benj111 3y ago
A shift is basically a rotate and mask. If wonder if they came from a machine where there was no shift instruction?
- unwind 3y agoNot for the signed ("arithmetic") case when you need to duplicate the sign bit into the topmost bit. You can't replicate that with a rotate, it's a distinct operation.
- benj111 3y agoNo but if this hypothetical instruction set doesn't even include shifts, it wouldn't be surprising if it missed other instructions.