summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/alias.ll
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-05-28 15:25:06 +0000
committerHal Finkel <hfinkel@anl.gov>2014-05-28 15:25:06 +0000
commitf5c07ada1d4026f49ff3f7721821a1a9e6070004 (patch)
tree9c6180b72b39e08ac4ecc1b39464ccd35a2dd30b /llvm/test/CodeGen/PowerPC/alias.ll
parent5864ac39ee2cc3dd2b8169f2c4f552dde2cab0b5 (diff)
downloadbcm5719-llvm-f5c07ada1d4026f49ff3f7721821a1a9e6070004.tar.gz
bcm5719-llvm-f5c07ada1d4026f49ff3f7721821a1a9e6070004.zip
Revert "[PPC] Use alias symbols in address computation."
This reverts commit r209638 because it broke self-hosting on ppc64/Linux. (the Clang-compiled TableGen would segfault because it jumped to an invalid address from within _ZNK4llvm17ManagedStaticBase21RegisterManagedStaticEPFPvvEPFvS1_E (which is within the command-line parameter registration process)). llvm-svn: 209745
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/alias.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/alias.ll31
1 files changed, 0 insertions, 31 deletions
diff --git a/llvm/test/CodeGen/PowerPC/alias.ll b/llvm/test/CodeGen/PowerPC/alias.ll
deleted file mode 100644
index 86e41148a0d..00000000000
--- a/llvm/test/CodeGen/PowerPC/alias.ll
+++ /dev/null
@@ -1,31 +0,0 @@
-; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -code-model=medium| FileCheck --check-prefix=CHECK --check-prefix=MEDIUM %s
-; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -code-model=large | FileCheck --check-prefix=CHECK --check-prefix=LARGE %s
-
-@foo = global i32 42
-@fooa = alias i32* @foo
-
-@foo2 = global i64 42
-@foo2a = alias i64* @foo2
-
-; CHECK-LABEL: bar:
-define i32 @bar() {
-; MEDIUM: addis 3, 2, fooa@toc@ha
-; LARGE: addis 3, 2, .LC1@toc@ha
- %a = load i32* @fooa
- ret i32 %a
-}
-
-; CHECK-LABEL: bar2:
-define i64 @bar2() {
-; MEDIUM: addis 3, 2, foo2a@toc@ha
-; MEDIUM: addi 3, 3, foo2a@toc@l
-; LARGE: addis 3, 2, .LC3@toc@ha
- %a = load i64* @foo2a
- ret i64 %a
-}
-
-; LARGE: .LC1:
-; LARGE-NEXT: .tc fooa[TC],fooa
-
-; LARGE: .LC3:
-; LARGE-NEXT: .tc foo2a[TC],foo2a
OpenPOWER on IntegriCloud