Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LUI — load upper immediate

lui rd, imm20

Places the immediate into bits 31:12 and zeroes the low 12 bits; on RV64 the 32-bit result is sign-extended. Usually paired with ADDI, or generated by the li pseudoinstruction.

x86 connection: no close everyday equivalent; x86 commonly embeds a full-width immediate in one instruction.