summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/cconv/arguments-varargs-small-structs-byte.ll
diff options
context:
space:
mode:
authorSimon Dardis <simon.dardis@imgtec.com>2017-01-26 10:19:02 +0000
committerSimon Dardis <simon.dardis@imgtec.com>2017-01-26 10:19:02 +0000
commit09e65efd09b862f7410c7ea80b977bd4b87f8275 (patch)
treed3744d646176f213471d621c417559e26ee794d2 /llvm/test/CodeGen/Mips/cconv/arguments-varargs-small-structs-byte.ll
parent278c722e6d01c3737785aa625e622eb430d27845 (diff)
downloadbcm5719-llvm-09e65efd09b862f7410c7ea80b977bd4b87f8275.tar.gz
bcm5719-llvm-09e65efd09b862f7410c7ea80b977bd4b87f8275.zip
[mips] 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! Reviewers: dsanders, seanbruno, zoran.jovanovic, vkalintiris Differential Revision: https://reviews.llvm.org/D23652 llvm-svn: 293164
Diffstat (limited to 'llvm/test/CodeGen/Mips/cconv/arguments-varargs-small-structs-byte.ll')
-rw-r--r--llvm/test/CodeGen/Mips/cconv/arguments-varargs-small-structs-byte.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/cconv/arguments-varargs-small-structs-byte.ll b/llvm/test/CodeGen/Mips/cconv/arguments-varargs-small-structs-byte.ll
index ba3aeb598f5..b41b5b7597c 100644
--- a/llvm/test/CodeGen/Mips/cconv/arguments-varargs-small-structs-byte.ll
+++ b/llvm/test/CodeGen/Mips/cconv/arguments-varargs-small-structs-byte.ll
@@ -259,7 +259,9 @@ entry:
call void (i8*, ...) @varArgF_SmallStruct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i32 0, i32 0), i64 inreg %3)
ret void
; CHECK-LABEL: smallStruct_8b:
+ ; Check that the structure is not shifted before the pointer to str is loaded.
; CHECK-NOT: dsll
+ ; CHECK: lui
}
define void @smallStruct_9b(%struct.SmallStruct_9b* %ss) #0 {
OpenPOWER on IntegriCloud