Skip to content

LUI

32-bit Base **Group:** Immediate  |  Ch 12   ALU — Arithmetic Logic Unit  |  **Length:** 32  |  **Decode:**

Assembly Syntax

  • lui simm, ->{t, u, Rd}

Encoding

LUI encoding
Bitfield encoding diagram. MSB is on the left, LSB on the right.

Description

Load upper immediate. Materializes a 20-bit constant in the upper bits of the destination.

Pseudocode (informative)

rd = ZeroExtend(imm20) << 12;

Encoding Notes

No additional encoding notes.

Full Catalog Forms

Assembly Length Decode
lui simm, ->{t, u, Rd} 32
← [Immediate](../groups/immediate.md)    [Index](../index.md)    [All instructions](index.md) →