Page MenuHomePhabricator

[RISCV] Add new lga pseudoinstruction

Authored by jrtc27 on Aug 2 2021, 7:43 AM.



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.

Diff Detail

Event Timeline

jrtc27 created this revision.Aug 2 2021, 7:43 AM
jrtc27 requested review of this revision.Aug 2 2021, 7:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2021, 7:43 AM
MaskRay accepted this revision.Aug 2 2021, 9:30 AM

Looks great!


This test may be redundant.

Having a5 with addend (users should do it, but the assembler currently accepts the form ) below is sufficient.

This revision is now accepted and ready to land.Aug 2 2021, 9:30 AM