summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-04-18 14:54:46 +0000
committerTim Northover <tnorthover@apple.com>2014-04-18 14:54:46 +0000
commitf34a512a68aecdc5c6a70dffac64223abfa233fa (patch)
tree9782e019b759a6f482f07ad868ced0ca6407eb9f /test
parent9cfd368302666f38a317df64c68e33abdd6ecdee (diff)
downloadllvm-f34a512a68aecdc5c6a70dffac64223abfa233fa.tar.gz
llvm-f34a512a68aecdc5c6a70dffac64223abfa233fa.tar.bz2
llvm-f34a512a68aecdc5c6a70dffac64223abfa233fa.tar.xz
ARM64: disable generation of .loh directives outside MachO.
Part of PR19455. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM64/collect-loh.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/ARM64/collect-loh.ll b/test/CodeGen/ARM64/collect-loh.ll
index 08ab0620b8..e92690b04f 100644
--- a/test/CodeGen/ARM64/collect-loh.ll
+++ b/test/CodeGen/ARM64/collect-loh.ll
@@ -1,4 +1,10 @@
; RUN: llc -mtriple=arm64-apple-ios -O2 -arm64-collect-loh -arm64-collect-loh-bb-only=false < %s -o - | FileCheck %s
+; RUN: llc -mtriple=arm64-linux-gnu -O2 -arm64-collect-loh -arm64-collect-loh-bb-only=false < %s -o - | FileCheck %s --check-prefix=CHECK-ELF
+
+; CHECK-ELF-NOT: .loh
+; CHECK-ELF-NOT: AdrpAdrp
+; CHECK-ELF-NOT: AdrpAdd
+; CHECK-ELF-NOT: AdrpLdrGot
@a = internal unnamed_addr global i32 0, align 4
@b = external global i32