summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/tls-ld-obj.ll
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2012-12-14 20:28:38 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2012-12-14 20:28:38 +0000
commitd3eb4f46f011f5880e09862559c17f03e38bef39 (patch)
tree4392d6217be880889afd7cf6f7f5ada9a0c64e92 /test/CodeGen/PowerPC/tls-ld-obj.ll
parent99cbdde6198623ff014c776743caec2cf48f4840 (diff)
downloadllvm-d3eb4f46f011f5880e09862559c17f03e38bef39.tar.gz
llvm-d3eb4f46f011f5880e09862559c17f03e38bef39.tar.bz2
llvm-d3eb4f46f011f5880e09862559c17f03e38bef39.tar.xz
This patch removes some nondeterminism from direct object file output
for TLS dynamic models on 64-bit PowerPC ELF. The default sort routine for relocations only sorts on the r_offset field; but with TLS, there can be two relocations with the same r_offset. For PowerPC, this patch sorts secondarily on descending r_type, which matches the behavior expected by the linker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/tls-ld-obj.ll')
-rw-r--r--test/CodeGen/PowerPC/tls-ld-obj.ll4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/CodeGen/PowerPC/tls-ld-obj.ll b/test/CodeGen/PowerPC/tls-ld-obj.ll
index 9f33fee8ad..c521ae405f 100644
--- a/test/CodeGen/PowerPC/tls-ld-obj.ll
+++ b/test/CodeGen/PowerPC/tls-ld-obj.ll
@@ -4,10 +4,6 @@
; Test correct relocation generation for thread-local storage using
; the local dynamic model.
-; Relocations 2 and 3 seem to come out in unpredictable order on some
-; architectures, so restrict this for now.
-; REQUIRES: ppc64-registered-target
-
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
target triple = "powerpc64-unknown-linux-gnu"