summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-12-15 21:42:56 +0000
committerTeresa Johnson <tejohnson@google.com>2016-12-15 21:42:56 +0000
commit68e58b4b60eb41f91c1ae0dd92647f91c130436d (patch)
treec1c2169be6d85cdcda34f523db74634802f4f857 /llvm/test
parenteb0ac241722172150c76c9ac60aa8af0ec0e59a6 (diff)
downloadbcm5719-llvm-68e58b4b60eb41f91c1ae0dd92647f91c130436d.tar.gz
bcm5719-llvm-68e58b4b60eb41f91c1ae0dd92647f91c130436d.zip
[gold] Add datalayout to test where it was missing
Needed due to change to require datalayout (r289719). Found this in my own testing, maybe there aren't any bots using a v1.12 gold yet. llvm-svn: 289876
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/gold/X86/v1.12/Inputs/start-lib-common.ll3
-rw-r--r--llvm/test/tools/gold/X86/v1.12/start-lib-common.ll3
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/gold/X86/v1.12/Inputs/start-lib-common.ll b/llvm/test/tools/gold/X86/v1.12/Inputs/start-lib-common.ll
index e8e53b8726d..09ef285449a 100644
--- a/llvm/test/tools/gold/X86/v1.12/Inputs/start-lib-common.ll
+++ b/llvm/test/tools/gold/X86/v1.12/Inputs/start-lib-common.ll
@@ -1 +1,4 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
@x = common global i32 0, align 8
diff --git a/llvm/test/tools/gold/X86/v1.12/start-lib-common.ll b/llvm/test/tools/gold/X86/v1.12/start-lib-common.ll
index 877570a0f6e..8810d255a3f 100644
--- a/llvm/test/tools/gold/X86/v1.12/start-lib-common.ll
+++ b/llvm/test/tools/gold/X86/v1.12/start-lib-common.ll
@@ -9,6 +9,9 @@
; RUN: -shared %t1.o --start-lib %t2.o --end-lib -o %t3.o
; RUN: llvm-dis %t3.o -o - | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
@x = common global i32 0, align 4
; v1.12 gold honors --start-lib/--end-lib, drops %t2.o and ends up
OpenPOWER on IntegriCloud