Webcentive RISC-V Reference

RISC-V A to Z: C

Instructions starting with C (105)

MnemonicNameExtension
c.addAddC
c.addiAdd a sign-extended non-zero immediateC
c.addi4spnAdd a zero-extended non-zero immediate, scaled by 4, to the stack pointerC
c.addi16spAdd a sign-extended non-zero immediateC
c.addiwAdd a sign-extended non-zero immediateC
c.addwAdd wordC
c.andAndC
c.andiAnd immediateC
c.beqzBranch if Equal ZeroC
c.bnezBranch if NOT Equal ZeroC
c.ebreakBreakpoint exceptionC
c.fldLoad double-precisionD, C
c.fldspLoad doubleword into floating-point register from stackD, C
c.flwLoad single-precisionF, C
c.flwspLoad word into floating-point register from stackF, C
c.fsdStore double-precisionD, C
c.fsdspStore double-precision value to stackD, C
c.fswStore single-precisionF, C
c.fswspStore single-precision value to stackF, C
c.jJumpC
c.jalJump and LinkC
c.jalrJump and Link RegisterC
c.jrJump RegisterC
c.lbuLoad unsigned byte, 16-bit encodingZcb
c.ldLoad doubleC, Zclsd
c.ldspLoad doubleword from stack pointerC, Zclsd
c.lhLoad signed halfword, 16-bit encodingZcb
c.lhuLoad unsigned halfword, 16-bit encodingZcb
c.liLoad the sign-extended 6-bit immediateC
c.luiLoad Upper ImmediateC
c.lwLoad wordC
c.lwspLoad word from stack pointerC
c.mop.1Compressed May-Be-Operation 1Zcmop
c.mop.3Compressed May-Be-Operation 3Zcmop
c.mop.5Compressed May-Be-Operation 5Zcmop
c.mop.7Compressed May-Be-Operation 7Zcmop
c.mop.9Compressed May-Be-Operation 9Zcmop
c.mop.11Compressed May-Be-Operation 11Zcmop
c.mop.13Compressed May-Be-Operation 13Zcmop
c.mop.15Compressed May-Be-Operation 15Zcmop
c.mop.NZcmop
c.mulMultiply, 16-bit encodingZcb
c.mvMove RegisterC
c.nopNon-operationC
c.notBitwise not, 16-bit encodingZcb
c.ntl.allCompressed non-temporal locality hint, allC, Zihintntl
c.ntl.p1Compressed non-temporal locality hint, innermost privateC, Zihintntl
c.ntl.pallCompressed non-temporal locality hint, all privateC, Zihintntl
c.ntl.s1Compressed non-temporal locality hint, innermost sharedC, Zihintntl
c.orOrC
c.sbStore unsigned byte, 16-bit encodingZcb
c.sdStore doubleC, Zclsd
c.sdspStore doubleword to stackC, Zclsd
c.sext.bSign-extend byte, 16-bit encodingZcb
c.sext.hSign-extend halfword, 16-bit encodingZcb
c.sext.wpseudo-opZcb
c.shStore unsigned halfword, 16-bit encodingZcb
c.slliShift left logical immediateC
c.sraiShift right arithmetical immediateC
c.srliShift right logical immediateC
c.sspopchk.x5pseudo-opC, Zicfiss
c.sspush.x1pseudo-opC, Zicfiss
c.subSubtractC
c.subwSubtract wordC
c.swStore wordC
c.swspStore word to stackC
c.xorExclusive OrC
c.zext.bZero-extend byte, 16-bit encodingZcb
c.zext.hZero-extend halfword, 16-bit encodingZcb
c.zext.wZero-extend word, 16-bit encodingZcb
cbo.cleanCache Block CleanZicbom/Zicbop/Zicboz
cbo.flushCache Block FlushZicbom/Zicbop/Zicboz
cbo.invalCache Block InvalidateZicbom/Zicbop/Zicboz
cbo.zeroCache Block ZeroZicbom/Zicbop/Zicboz
clmulCarry-less multiply (low-part)Zbc, Zbkc, Zk, Zkn, Zks
clmulhCarry-less multiply (high-part)Zbc, Zbkc, Zk, Zkn, Zks
clmulrCarry-less multiply (reversed)Zbc
clzCount leading zero bitsZbb
clzwCount leading zero bits in wordZbb
cm.jaltJump Via Table with Optional LinkZcmt
cm.mva01sMove two s0-s7 registers into a0-a1Zcmp
cm.mvsa01Move a0-a1 into two registers of s0-s7Zcmp
cm.popDestroy function call stack frameZcmp
cm.popretDestroy function call stack frame and return to `ra`Zcmp
cm.popretzDestroy function call stack frame, move zero to `a0` and return to `ra`Zcmp
cm.pushCreate function call stack frameZcmp
cpopCount set bitsZbb
cpopwCount set bits in wordZbb
csrcpseudo-opZicsr
csrcipseudo-opZicsr
csrrpseudo-opZicsr
csrrcAtomic Read and Clear Bits in CSRZicsr
csrrciAtomic Read and Clear Bits in CSR with ImmediateZicsr
csrrsAtomic Read and Set Bits in CSRZicsr
csrrsiAtomic Read and Set Bits in CSR with ImmediateZicsr
csrrwAtomic Read/Write CSRZicsr
csrrwiAtomic Read/Write CSR ImmediateZicsr
csrspseudo-opZicsr
csrsipseudo-opZicsr
csrwpseudo-opZicsr
csrwipseudo-opZicsr
ctzCount trailing zero bitsZbb
ctzwCount trailing zero bits in wordZbb
czero.eqzConditional zero, if condition is equal to zeroZicond
czero.nezConditional zero, if condition is nonzeroZicond

CSRs starting with C (2)

NameAddressDescription
cycle0xC00Cycle counter for rdcycle instruction
cycleh0xC80Upper 32 bits of cycle, RV32 only