We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dad3dd commit f809b84Copy full SHA for f809b84
riscv-elf.md
@@ -470,7 +470,7 @@ is followed by an I-Type instruction (add immediate or load) with an
470
calculated like this:
471
472
- `hi20 = ((symbol_address + 0x800) >> 12);`
473
- - `lo12 = symbol_address - hi20;`
+ - `lo12 = symbol_address - (hi20 << 12);`
474
475
The following assembly and relocations show loading an absolute address:
476
0 commit comments