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

c.andi

T1 riscv bitmanip insn
And 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

And an immediate to the value in xd, and store the result in xd. The xd register index should be used as xd+8 (registers x8-x15). C.ANDI expands into andi xd, xd, imm.

Syntax / Encoding

c.andi xd, imm | 100x10xxxxxxxx01 (mask=0xec03 match=0x8801)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV100x10xxxxxxxx010xec03 / 0x8801

Operands

NameDescription
immbits [12,6:2], sign-extended
xdbits [9:7]