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

c.addw

T1 riscv alu insn
Add word
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

Add the 32-bit values in xs2 from xd, and store the result in xd. The xd and xs2 register indexes should be used as xd+8 and xs2+8 (registers x8-x15). C.ADDW expands into addw xd, xd, xs2.

Syntax / Encoding

c.addw xd, xs2 | 100111xxx01xxx01 (mask=0xfc63 match=0x9c21)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV100111xxx01xxx010xfc63 / 0x9c21

Operands

NameDescription
xs2bits [4:2]
xdbits [9:7]