llvm-project/llvm/test/CodeGen/Mips/compactbranches
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
..
beqc-bnec-register-constraint.ll [mips] MIPS64R6 compact branch support 2016-07-26 10:25:07 +00:00
compact-branch-implicit-def.mir [mips] Fix compact branch hazard detection 2016-12-13 11:07:51 +00:00
compact-branch-policy.ll [mips] Compact branch policy control for MIPSR6 2016-05-17 10:21:43 +00:00
compact-branches-64.ll [mips] Recommit: "N64 static relocation model support" 2017-01-27 11:36:52 +00:00
compact-branches.ll [mips] Recommit: "N64 static relocation model support" 2017-01-27 11:36:52 +00:00
no-beqzc-bnezc.ll [mips] Enforce compact branch restrictions 2016-08-16 17:16:11 +00:00
unsafe-in-forbidden-slot.ll [mips] Fix compact branch hazard detection, part 2 2016-12-22 19:29:50 +00:00