ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

roriw

T1 riscv bitmanip insn
Rotate right word (Immediate)
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zbb, Zbkb, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZbb, Zbkb, Zkt-DIT

Summary

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)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Andes 45-Series10.51Andes45ALUllvm_sched_models
MIPS P8700 (RISC-V)10.51p8700WriteEitherALUllvm_sched_models
SiFive P670 / P60010.251SiFiveP600IntArithllvm_sched_models
SiFive P870 / P80010.251SiFiveP800IntArithllvm_sched_models
SpacemiT X10010.251SMTX100_IQllvm_sched_models
SpacemiT X60 (K1)10.51SMX60_IEUllvm_sched_models
Syntacore SCR7111BMUllvm_sched_models
Tenstorrent Ascalon-X111AscalonFXllvm_sched_models
XiangShan KunMingHu10.251XSPipeGroupALUllvm_sched_models
XiangShan NanHu10.251XS2ALUllvm_sched_models
SiFive 7-Series (U74)311PipeBllvm_sched_models

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0110000xxxxxxxxxx101xxxxx00110110xfe00707f / 0x6000501b

Operands

NameDescription
shamtbits [24:20]
xs1bits [19:15]
xdbits [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.