llvm-project/llvm/test/CodeGen/Mips/llvm-ir
Simon Dardis ca74dd79e9 [mips] Recommit: "N64 static relocation model support"
This patch makes one change to GOT handling and two changes to N64's
relocation model handling. Furthermore, the jumptable encodings have
been corrected for static N64.

Big GOT handling is now done via a new SDNode MipsGotHi - this node is
unconditionally lowered to an lui instruction.

The first change to N64's relocation handling is the lifting of the
restriction that N64 always uses PIC. Now it is possible to target static
environments.

The second change adds support for 64 bit symbols and enables them by
default. Previously N64 had patterns for sym32 mode only. In this mode all
symbols are assumed to have 32 bit addresses. sym32 mode support
is selectable with attribute 'sym32'. A follow on patch for clang will
add the necessary frontend parameter.

This partially resolves PR/23485.

Thanks to Brooks Davis for reporting the issue!

This version corrects a "Conditional jump or move depends on uninitialised
value(s)" error detected by valgrind present in the original commit.

Reviewers: dsanders, seanbruno, zoran.jovanovic, vkalintiris

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

llvm-svn: 293279
2017-01-27 11:36:52 +00:00
..
add.ll [DAG] optimize negation of bool 2016-10-19 16:58:59 +00:00
addrspacecast.ll
and.ll [mips] interAptiv based generic schedule model 2016-09-01 14:53:53 +00:00
ashr.ll Revert "CodeGen: Allow small copyable blocks to "break" the CFG." 2017-01-11 19:55:19 +00:00
atomicrmx.ll
call.ll [mips] Recommit: "N64 static relocation model support" 2017-01-27 11:36:52 +00:00
extractelement.ll DAG: Avoid OOB when legalizing vector indexing 2017-01-10 22:02:30 +00:00
indirectbr.ll [mips] Correct label prefixes for N32 and N64. 2016-07-19 10:49:03 +00:00
lh_lhu.ll [mips] Don't derive the default ABI from the CPU in the backend. 2016-06-23 12:42:53 +00:00
load-atomic.ll [mips] Use --check-prefixes where appropriate. NFC. 2016-06-24 12:23:17 +00:00
lshr.ll [mips] Disable the TImode shift libcalls for 32-bit targets. 2016-09-07 10:01:18 +00:00
mul.ll [DAG] optimize negation of bool 2016-10-19 16:58:59 +00:00
not.ll [mips] interAptiv based generic schedule model 2016-09-01 14:53:53 +00:00
or.ll [mips] interAptiv based generic schedule model 2016-09-01 14:53:53 +00:00
ret.ll [mips] Optimize materialization of i64 constants 2016-07-25 09:57:28 +00:00
sdiv.ll [DAG] optimize negation of bool 2016-10-19 16:58:59 +00:00
select-dbl.ll [mips] Correct label prefixes for N32 and N64. 2016-07-19 10:49:03 +00:00
select-flt.ll [mips] interAptiv based generic schedule model 2016-09-01 14:53:53 +00:00
select-int.ll [mips] interAptiv based generic schedule model 2016-09-01 14:53:53 +00:00
shl.ll [mips] Disable the TImode shift libcalls for 32-bit targets. 2016-09-07 10:01:18 +00:00
sqrt.ll
srem.ll [DAG] optimize negation of bool 2016-10-19 16:58:59 +00:00
store-atomic.ll [mips] Use --check-prefixes where appropriate. NFC. 2016-06-24 12:23:17 +00:00
sub.ll [DAG] optimize negation of bool 2016-10-19 16:58:59 +00:00
udiv.ll [mips] Preparatory work for a generic scheduler 2016-08-24 13:00:47 +00:00
urem.ll [DAG] optimize negation of bool 2016-10-19 16:58:59 +00:00
xor.ll [mips] interAptiv based generic schedule model 2016-09-01 14:53:53 +00:00