This mirrors lla and is always GOT-relative, allowing an explicit
request to use the GOT without having to expand the instruction. This
then means la is just defined in terms of lla and lga, based on whether
PIC is enabled.
Details
Details
- Reviewers
asb luismarques MaskRay
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks great!
llvm/test/MC/RISCV/rvi-pseudos.s | ||
---|---|---|
51 | This test may be redundant. Having a5 with addend (users should do it, but the assembler currently accepts the form ) below is sufficient. |
Comment Actions
Rebased, including new riscv_lga ISD node to match riscv_l(l)a (though I don't understand quite why we bother with these... it seems like extra indirection for no gain?)