RISC-V ISA Explorer · Compressed (Zc*)

Zcb: Extra Compressed Integer

Ratified 2023-04 · version 1.0.0

Short 16-bit encodings for common byte, halfword, sign-extend, and multiply operations to shrink code.

Typical use: More 16-bit ALU/control ops

Specification

Open Zcb in the explorer

Dependencies

Requires

Required by

Instructions (12)

MnemonicNameEncodingMatchMask
C.LBULoad unsigned byte, 16-bit encoding----------------100000--------000x80000xfc03
C.LHLoad signed halfword, 16-bit encoding----------------100001---1----000x84400xfc43
C.LHULoad unsigned halfword, 16-bit encoding----------------100001---0----000x84000xfc43
C.MULMultiply, 16-bit encoding----------------100111---10---010x9c410xfc63
C.NOTBitwise not, 16-bit encoding----------------100111---11101010x9c750xfc7f
C.SBStore unsigned byte, 16-bit encoding----------------100010--------000x88000xfc03
C.SEXT.BSign-extend byte, 16-bit encoding----------------100111---11001010x9c650xfc7f
C.SEXT.HSign-extend halfword, 16-bit encoding----------------100111---11011010x9c6d0xfc7f
C.SHStore unsigned halfword, 16-bit encoding----------------100011---0----000x8c000xfc43
C.ZEXT.BZero-extend byte, 16-bit encoding----------------100111---11000010x9c610xfc7f
C.ZEXT.HZero-extend halfword, 16-bit encoding----------------100111---11010010x9c690xfc7f
C.ZEXT.WZero-extend word, 16-bit encoding----------------100111---11100010x9c710xfc7f