Skip to content

Commit 9481cb2

Browse files
author
Nick Knight
authored
Document (c)lui immediate (#66)
1 parent 904ed50 commit 9481cb2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

riscv-asm.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,12 @@ Which, for RV32I, generates the following assembler output, as seen by `objdump`
306306
4: eef50513 addi a0,a0,-273 # deadbeef <CONSTANT+0x0>
307307
```
308308

309+
Load Upper Immediate's Immediate
310+
-----------------------------------
311+
312+
The immediate argument to `lui` is an integer in the interval [0x0, 0xfffff].
313+
Its compressed form, `c.lui`, accepts only those in the subintervals [0x1, 0x1f] and [0xfffe0, 0xfffff].
314+
309315
Load Address
310316
-----------------
311317

0 commit comments

Comments
 (0)