nop
RISC-V nop Pseudo-Instruction Details
Assembler pseudo-instructionThe RISC-V nop pseudo-instruction has the nop expansion ADDI x0, x0, 0, the canonical NOP encoding. It does not change architecturally visible state apart from PC advance and applicable counters.
What You Write
nop
Typical Real Expansion
addi x0, x0, 0
What This Pseudo Instruction Is Saving You From Writing
Assembly Manual lists this pseudo-instruction form.
How To Read The Expansion
Step 1
Assembly Manual expands nop to addi x0, x0, 0.
Assembly Forms And Real Instructions
The RISC-V Assembly Programmer's Manual lists nop as ADDI x0, x0, 0.
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.
FAQ
What does nop expand to?
the RISC-V Assembly Programmer's Manual gives nop as addi x0, x0, 0.