lla

RISC-V lla Pseudo-Instruction Details

Assembler pseudoinstruction

RISC-V lla rd, symbol is an assembler pseudoinstruction for a local-symbol address. It uses AUIPC and a PC-relative low immediate, expanding to AUIPC plus ADDI.

What You Write
lla rd, symbol
Typical Real Expansion
auipc rd, symbol[31:12] addi rd, rd, symbol[11:0]

What This Pseudo Instruction Is Saving You From Writing

The assembly manual defines lla as a load-local-address pseudoinstruction with a PC-relative sequence.

How To Read The Expansion

Step 1
AUIPC forms the high part of the PC-relative address.
Step 2
ADDI uses the low immediate to complete the address calculation.

Assembly Forms And Real Instructions

Read this spelling through the AUIPC and ADDI sequence shown on this page.

Official References And Reading Order

This page treats pseudo-instructions as assembler-level aliases or macros: first read what real instructions they expand to, then use the official ISA manual for the behavior of those real instructions. ABI, relocation, and linker-relaxation details follow the psABI document.

When To Think Of It First

Read or write the lla rd, symbol local-address spelling.

Pitfalls / Common Confusions

The PC-relative high and low relocations are associated by psABI pairing rules.
The ISA defines AUIPC semantics; relocation is not hardware behavior.

FAQ

What is the standard lla expansion?

lla expands to AUIPC plus ADDI.