LSRV
Variable logical right shift
Use the low count bits to shift or rotate a scalar value.
| Form | Bits | Requires | Encoding |
|---|---|---|---|
LSRV Wd, Wn, Wm | 32 | Armv8-A | 00011010110xxxxx001001xxxxxxxxxx |
LSRV Xd, Xn, Xm | 64 | Armv8-A | 10011010110xxxxx001001xxxxxxxxxx |
Operation#
Pseudo-C · selected form
count = unsigned(Rm) mod width
Rd = logical_right(Rn, count) within width bitsWhat to watch for
- Only the low 5 bits of the count matter; a count equal to the width behaves as zero.
- ASRV replicates the sign bit; logical shifts fill with zeros; RORV wraps shifted-out bits around.
Architectural details#
- Flags
- NZCV unchanged.
- Destination
- Writing Wd clears the corresponding X register’s upper 32 bits. Writes to ZR are discarded; SP is not accepted.
- Encoding
00011010110xxxxx001001xxxxxxxxxx- Operands
Wdwrite · 32 bitsWnread · 32 bitsWmread · 32 bits
- Coverage
- Selected baseline A64 scalar register forms.
Exception information & execution requirements
Complete exception conditions have not been imported.
MRS supplies encoding and availability conditions, not an exhaustive exception model.
Feature availability alone does not guarantee execution: OS state and execution-level controls also apply. Use the linked architecture documentation for the full exception conditions.
Sources & provenance#
Technical fields are imported from pinned upstream files. Explanations and explorer behavior are maintained separately.
Architectural references for this form
Arm · aarchmrs
- Revision
2026-03_rel- SHA-256
bf355d263eed08ef6b3e4e680e6bba3642fa7c3dd0be77ffb4783420041a0860- Terms
- BSD-3-Clause