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

c.srli

T1 riscv alu insn
Shift right logical immediate
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zca, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZca, Zkt-DIT

Summary

Shift the value in xd right by shamt, and store the result back in xd. The xd register index should be used as xd+8 (registers x8-x15). C.SRLI expands into srli xd, xd, shamt.

Syntax / Encoding

c.srli xd, shamt | 100000xxxxxxxx01 (mask=0xfc03 match=0x8001)

Binary Encodings (2)

WidthFormatBit PatternMask / Match
16RV32100000xxxxxxxx010xfc03 / 0x8001
16RV64100x00xxxxxxxx010xec03 / 0x8001

Operands

NameDescription
shamtbits [6:2], not 0
xdbits [9:7]