Commit Graph

3 Commits

Author SHA1 Message Date
Simon Atanasyan 263abc6761 [mips] Add tests to check `la / dla` expansion in XGOT cases. NFC 2019-10-23 17:36:33 +03:00
Simon Atanasyan 82b1b39b36 [mips] Reformat `la / dla` expansion test cases. NFC 2019-10-23 17:36:33 +03:00
Simon Dardis da96c43682 [MIPS] Handle PIC load address macro instructions in N64.
In particular, use CALL16 (similar to O32) for address loads into T9 for certain
cases.  Otherwise use a %got_disp relocation to load the address of a symbol.
Small offsets (small enough to fit in a 16-bit signed immediate) can be used and
are added to the symbol address after it is loaded from the GOT.  Larger offsets
are currently unsupported and result in an error from the assembler.

Reviewers: sdardis

Reviewed By: sdardis

Patch by: John Baldwin

Subscribers: llvm-commits, seanbruno, arichardson, emaste, dim

Differential Revision: https://reviews.llvm.org/D33948

llvm-svn: 306831
2017-06-30 15:44:27 +00:00