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
Open Zcb in the explorerDependencies
Requires
Required by
Instructions (12)
| Mnemonic | Name | Encoding | Match | Mask |
|---|---|---|---|---|
C.LBU | Load unsigned byte, 16-bit encoding | ----------------100000--------00 | 0x8000 | 0xfc03 |
C.LH | Load signed halfword, 16-bit encoding | ----------------100001---1----00 | 0x8440 | 0xfc43 |
C.LHU | Load unsigned halfword, 16-bit encoding | ----------------100001---0----00 | 0x8400 | 0xfc43 |
C.MUL | Multiply, 16-bit encoding | ----------------100111---10---01 | 0x9c41 | 0xfc63 |
C.NOT | Bitwise not, 16-bit encoding | ----------------100111---1110101 | 0x9c75 | 0xfc7f |
C.SB | Store unsigned byte, 16-bit encoding | ----------------100010--------00 | 0x8800 | 0xfc03 |
C.SEXT.B | Sign-extend byte, 16-bit encoding | ----------------100111---1100101 | 0x9c65 | 0xfc7f |
C.SEXT.H | Sign-extend halfword, 16-bit encoding | ----------------100111---1101101 | 0x9c6d | 0xfc7f |
C.SH | Store unsigned halfword, 16-bit encoding | ----------------100011---0----00 | 0x8c00 | 0xfc43 |
C.ZEXT.B | Zero-extend byte, 16-bit encoding | ----------------100111---1100001 | 0x9c61 | 0xfc7f |
C.ZEXT.H | Zero-extend halfword, 16-bit encoding | ----------------100111---1101001 | 0x9c69 | 0xfc7f |
C.ZEXT.W | Zero-extend word, 16-bit encoding | ----------------100111---1110001 | 0x9c71 | 0xfc7f |