bgtz
RISC-V bgtz Pseudo-Instruction Details
Assembler pseudo-instructionbgtz expands to blt x0, rs, offset. It branches when rs is greater than zero under signed comparison.
What You Write
bgtz rs, offset
Typical Real Expansion
blt x0, rs, offset
What This Pseudo Instruction Is Saving You From Writing
A BLT spelling with x0 as the first operand.
How To Read The Expansion
Step 1
blt x0, rs, offset
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 is the official bgtz expansion?
blt x0, rs, offset