roriw
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userZbb, Zbkb, Zkt-DITSummary
Performs a rotate right on the least-significant word of xs1 by the amount in the least-significant log2(XLEN) bits of shamt. The resulting word value is sign-extended by copying bit 31 to all of the more-significant bits.
Syntax / Encoding
roriw xd, xs1, shamt | 0110000xxxxxxxxxx101xxxxx0011011 (mask=0xfe00707f match=0x6000501b)
Cross-Chip Latency & Throughput (11 cores)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| Andes 45-Series | 1 | 0.5 | 1 | Andes45ALU | llvm_sched_models |
| MIPS P8700 (RISC-V) | 1 | 0.5 | 1 | p8700WriteEitherALU | llvm_sched_models |
| SiFive P670 / P600 | 1 | 0.25 | 1 | SiFiveP600IntArith | llvm_sched_models |
| SiFive P870 / P800 | 1 | 0.25 | 1 | SiFiveP800IntArith | llvm_sched_models |
| SpacemiT X100 | 1 | 0.25 | 1 | SMTX100_IQ | llvm_sched_models |
| SpacemiT X60 (K1) | 1 | 0.5 | 1 | SMX60_IEU | llvm_sched_models |
| Syntacore SCR7 | 1 | 1 | 1 | BMU | llvm_sched_models |
| Tenstorrent Ascalon-X | 1 | 1 | 1 | AscalonFX | llvm_sched_models |
| XiangShan KunMingHu | 1 | 0.25 | 1 | XSPipeGroupALU | llvm_sched_models |
| XiangShan NanHu | 1 | 0.25 | 1 | XS2ALU | llvm_sched_models |
| SiFive 7-Series (U74) | 3 | 1 | 1 | PipeB | llvm_sched_models |
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | 0110000xxxxxxxxxx101xxxxx0011011 | 0xfe00707f / 0x6000501b |
Operands
| Name | Description |
|---|---|
shamt | bits [24:20] |
xs1 | bits [19:15] |
xd | bits [11:7] |
Reference Notes
Performs a rotate right on the least-significant word of xs1 by the amount in the least-significant log2(XLEN) bits of shamt. The resulting word value is sign-extended by copying bit 31 to all of the more-significant bits.