[llvm] r289719 - [LTO] Reject modules without datalayout.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 14 13:57:07 PST 2016
Author: davide
Date: Wed Dec 14 15:57:04 2016
New Revision: 289719
URL: http://llvm.org/viewvc/llvm-project?rev=289719&view=rev
Log:
[LTO] Reject modules without datalayout.
Also, udpate the ~60 failing tests in the tree which did
not contain a valid datalayout.
This fixes PR31123. lld will be updated in a following patch,
immediately after this is committed.
Differential Revision: https://reviews.llvm.org/D27082
Added:
llvm/trunk/test/tools/llvm-lto2/X86/nodatalayout.ll
Modified:
llvm/trunk/lib/LTO/LTO.cpp
llvm/trunk/lib/LTO/LTOBackend.cpp
llvm/trunk/lib/LTO/LTOModule.cpp
llvm/trunk/test/LTO/Resolution/X86/Inputs/common2.ll
llvm/trunk/test/LTO/Resolution/X86/Inputs/mixed_lto.ll
llvm/trunk/test/LTO/Resolution/X86/common2.ll
llvm/trunk/test/LTO/Resolution/X86/mixed_lto.ll
llvm/trunk/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll
llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll
llvm/trunk/test/LTO/X86/no-undefined-puts-when-implemented.ll
llvm/trunk/test/LTO/X86/triple-init.ll
llvm/trunk/test/ThinLTO/X86/Inputs/distributed_import.ll
llvm/trunk/test/ThinLTO/X86/distributed_import.ll
llvm/trunk/test/tools/gold/X86/Inputs/alias-1.ll
llvm/trunk/test/tools/gold/X86/Inputs/available-externally.ll
llvm/trunk/test/tools/gold/X86/Inputs/cache.ll
llvm/trunk/test/tools/gold/X86/Inputs/comdat.ll
llvm/trunk/test/tools/gold/X86/Inputs/comdat2.ll
llvm/trunk/test/tools/gold/X86/Inputs/common.ll
llvm/trunk/test/tools/gold/X86/Inputs/common2.ll
llvm/trunk/test/tools/gold/X86/Inputs/common3.ll
llvm/trunk/test/tools/gold/X86/Inputs/ctors2.ll
llvm/trunk/test/tools/gold/X86/Inputs/drop-linkage.ll
llvm/trunk/test/tools/gold/X86/Inputs/irmover-error.ll
llvm/trunk/test/tools/gold/X86/Inputs/linkonce-weak.ll
llvm/trunk/test/tools/gold/X86/Inputs/mixed_lto.ll
llvm/trunk/test/tools/gold/X86/Inputs/pr19901-1.ll
llvm/trunk/test/tools/gold/X86/Inputs/resolve-to-alias.ll
llvm/trunk/test/tools/gold/X86/Inputs/start-lib-common.ll
llvm/trunk/test/tools/gold/X86/Inputs/thinlto.ll
llvm/trunk/test/tools/gold/X86/Inputs/thinlto_alias.ll
llvm/trunk/test/tools/gold/X86/Inputs/thinlto_archive1.ll
llvm/trunk/test/tools/gold/X86/Inputs/thinlto_archive2.ll
llvm/trunk/test/tools/gold/X86/Inputs/thinlto_empty.ll
llvm/trunk/test/tools/gold/X86/Inputs/thinlto_internalize.ll
llvm/trunk/test/tools/gold/X86/Inputs/thinlto_linkonceresolution.ll
llvm/trunk/test/tools/gold/X86/Inputs/thinlto_weak_resolution.ll
llvm/trunk/test/tools/gold/X86/Inputs/type-merge.ll
llvm/trunk/test/tools/gold/X86/Inputs/type-merge2.ll
llvm/trunk/test/tools/gold/X86/Inputs/visibility.ll
llvm/trunk/test/tools/gold/X86/Inputs/weak.ll
llvm/trunk/test/tools/gold/X86/alias.ll
llvm/trunk/test/tools/gold/X86/alias2.ll
llvm/trunk/test/tools/gold/X86/available-externally.ll
llvm/trunk/test/tools/gold/X86/bad-alias.ll
llvm/trunk/test/tools/gold/X86/bcsection.ll
llvm/trunk/test/tools/gold/X86/cache.ll
llvm/trunk/test/tools/gold/X86/coff.ll
llvm/trunk/test/tools/gold/X86/comdat.ll
llvm/trunk/test/tools/gold/X86/comdat2.ll
llvm/trunk/test/tools/gold/X86/common.ll
llvm/trunk/test/tools/gold/X86/ctors.ll
llvm/trunk/test/tools/gold/X86/ctors2.ll
llvm/trunk/test/tools/gold/X86/disable-verify.ll
llvm/trunk/test/tools/gold/X86/drop-linkage.ll
llvm/trunk/test/tools/gold/X86/emit-llvm.ll
llvm/trunk/test/tools/gold/X86/irmover-error.ll
llvm/trunk/test/tools/gold/X86/linker-script.ll
llvm/trunk/test/tools/gold/X86/linkonce-weak.ll
llvm/trunk/test/tools/gold/X86/mixed_lto.ll
llvm/trunk/test/tools/gold/X86/no-map-whole-file.ll
llvm/trunk/test/tools/gold/X86/opt-level.ll
llvm/trunk/test/tools/gold/X86/parallel.ll
llvm/trunk/test/tools/gold/X86/pr19901.ll
llvm/trunk/test/tools/gold/X86/pr19901_thinlto.ll
llvm/trunk/test/tools/gold/X86/pr25907.ll
llvm/trunk/test/tools/gold/X86/pr25915.ll
llvm/trunk/test/tools/gold/X86/relax-relocs.ll
llvm/trunk/test/tools/gold/X86/resolve-to-alias.ll
llvm/trunk/test/tools/gold/X86/slp-vectorize.ll
llvm/trunk/test/tools/gold/X86/start-lib-common.ll
llvm/trunk/test/tools/gold/X86/strip_names.ll
llvm/trunk/test/tools/gold/X86/thinlto.ll
llvm/trunk/test/tools/gold/X86/thinlto_alias.ll
llvm/trunk/test/tools/gold/X86/thinlto_archive.ll
llvm/trunk/test/tools/gold/X86/thinlto_emit_imports.ll
llvm/trunk/test/tools/gold/X86/thinlto_internalize.ll
llvm/trunk/test/tools/gold/X86/thinlto_linkonceresolution.ll
llvm/trunk/test/tools/gold/X86/thinlto_prefix_replace.ll
llvm/trunk/test/tools/gold/X86/thinlto_weak_resolution.ll
llvm/trunk/test/tools/gold/X86/type-merge.ll
llvm/trunk/test/tools/gold/X86/type-merge2.ll
llvm/trunk/test/tools/gold/X86/unnamed-addr.ll
llvm/trunk/test/tools/gold/X86/visibility.ll
llvm/trunk/test/tools/gold/X86/weak.ll
llvm/trunk/test/tools/llvm-lto/Inputs/thinlto.ll
llvm/trunk/test/tools/llvm-lto/thinlto.ll
llvm/trunk/test/tools/llvm-lto2/X86/pipeline.ll
llvm/trunk/test/tools/llvm-lto2/errors.ll
Modified: llvm/trunk/lib/LTO/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTO.cpp?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTO.cpp (original)
+++ llvm/trunk/lib/LTO/LTO.cpp Wed Dec 14 15:57:04 2016
@@ -380,6 +380,11 @@ Error LTO::addModule(InputFile &Input, I
const SymbolResolution *ResE) {
// FIXME: move to backend
Module &M = *IM.Mod;
+
+ if (M.getDataLayoutStr().empty())
+ return make_error<StringError>("input module has no datalayout",
+ inconvertibleErrorCode());
+
if (!Conf.OverrideTriple.empty())
M.setTargetTriple(Conf.OverrideTriple);
else if (M.getTargetTriple().empty())
Modified: llvm/trunk/lib/LTO/LTOBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTOBackend.cpp?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTOBackend.cpp (original)
+++ llvm/trunk/lib/LTO/LTOBackend.cpp Wed Dec 14 15:57:04 2016
@@ -191,7 +191,6 @@ static void runOldPMPasses(Config &Conf,
bool opt(Config &Conf, TargetMachine *TM, unsigned Task, Module &Mod,
bool IsThinLTO) {
- Mod.setDataLayout(TM->createDataLayout());
if (Conf.OptPipeline.empty())
runOldPMPasses(Conf, Mod, TM, IsThinLTO);
else
Modified: llvm/trunk/lib/LTO/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTOModule.cpp?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTOModule.cpp (original)
+++ llvm/trunk/lib/LTO/LTOModule.cpp Wed Dec 14 15:57:04 2016
@@ -233,7 +233,6 @@ LTOModule::makeLTOModule(MemoryBufferRef
TargetMachine *target =
march->createTargetMachine(TripleStr, CPU, FeatureStr, options, None);
- M->setDataLayout(target->createDataLayout());
std::unique_ptr<LTOModule> Ret(new LTOModule(std::move(M), Buffer, target));
Ret->parseSymbols();
Modified: llvm/trunk/test/LTO/Resolution/X86/Inputs/common2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/Resolution/X86/Inputs/common2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/LTO/Resolution/X86/Inputs/common2.ll (original)
+++ llvm/trunk/test/LTO/Resolution/X86/Inputs/common2.ll Wed Dec 14 15:57:04 2016
@@ -1,7 +1,8 @@
-target triple = "x86_64-apple-macosx10.11.0"
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
@v = common global i16 0, align 4
define i16 *@bar() {
ret i16 *@v
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/LTO/Resolution/X86/Inputs/mixed_lto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/Resolution/X86/Inputs/mixed_lto.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/LTO/Resolution/X86/Inputs/mixed_lto.ll (original)
+++ llvm/trunk/test/LTO/Resolution/X86/Inputs/mixed_lto.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,4 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare i32 @g()
define i32 @main() {
Modified: llvm/trunk/test/LTO/Resolution/X86/common2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/Resolution/X86/common2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/LTO/Resolution/X86/common2.ll (original)
+++ llvm/trunk/test/LTO/Resolution/X86/common2.ll Wed Dec 14 15:57:04 2016
@@ -70,9 +70,8 @@
; RUN: -r %t2.bc,bar,px
; RUN: llvm-dis < %t.o.0.0.preopt.bc | FileCheck %s --check-prefix=BOTH-PREVAILED2
-
-
-target triple = "x86_64-apple-macosx10.11.0"
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
@v = common global i8 0, align 8
Modified: llvm/trunk/test/LTO/Resolution/X86/mixed_lto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/Resolution/X86/mixed_lto.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/LTO/Resolution/X86/mixed_lto.ll (original)
+++ llvm/trunk/test/LTO/Resolution/X86/mixed_lto.ll Wed Dec 14 15:57:04 2016
@@ -19,6 +19,7 @@
; RUN: llvm-nm %t5.o.0 | FileCheck %s --check-prefix=NM0
; RUN: llvm-nm %t5.o.1 | FileCheck %s --check-prefix=NM1
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define i32 @g() {
ret i32 0
Modified: llvm/trunk/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll (original)
+++ llvm/trunk/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll Wed Dec 14 15:57:04 2016
@@ -19,6 +19,7 @@
; YAML-NEXT: - Caller: main
; YAML-NEXT: ...
+target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-darwin"
declare i32 @bar()
Modified: llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll (original)
+++ llvm/trunk/test/LTO/X86/diagnostic-handler-remarks.ll Wed Dec 14 15:57:04 2016
@@ -54,6 +54,7 @@
; YAML-NEXT: - Caller: main
; YAML-NEXT: ...
+target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-darwin"
declare i32 @bar()
Modified: llvm/trunk/test/LTO/X86/no-undefined-puts-when-implemented.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/X86/no-undefined-puts-when-implemented.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/LTO/X86/no-undefined-puts-when-implemented.ll (original)
+++ llvm/trunk/test/LTO/X86/no-undefined-puts-when-implemented.ll Wed Dec 14 15:57:04 2016
@@ -5,6 +5,7 @@
; rdar://problem/16165191
; runtime library implementations should not be renamed
+target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-darwin11"
@str = private unnamed_addr constant [13 x i8] c"hello world\0A\00"
Modified: llvm/trunk/test/LTO/X86/triple-init.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/LTO/X86/triple-init.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/LTO/X86/triple-init.ll (original)
+++ llvm/trunk/test/LTO/X86/triple-init.ll Wed Dec 14 15:57:04 2016
@@ -2,8 +2,7 @@
; RUN: llvm-lto -exported-symbol=_main -o %t2 %t1
; RUN: llvm-nm %t2 | FileCheck %s
-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-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
-
+target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.9"
declare double @pow(double, double)
Modified: llvm/trunk/test/ThinLTO/X86/Inputs/distributed_import.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ThinLTO/X86/Inputs/distributed_import.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/ThinLTO/X86/Inputs/distributed_import.ll (original)
+++ llvm/trunk/test/ThinLTO/X86/Inputs/distributed_import.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@G = internal global i32 7
define i32 @g() {
entry:
Modified: llvm/trunk/test/ThinLTO/X86/distributed_import.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ThinLTO/X86/distributed_import.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/ThinLTO/X86/distributed_import.ll (original)
+++ llvm/trunk/test/ThinLTO/X86/distributed_import.ll Wed Dec 14 15:57:04 2016
@@ -11,6 +11,8 @@
; RUN: llvm-dis -o - %t2.out | FileCheck %s
; CHECK: @G.llvm.0
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
declare i32 @g(...)
define void @f() {
Modified: llvm/trunk/test/tools/gold/X86/Inputs/alias-1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/alias-1.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/alias-1.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/alias-1.ll Wed Dec 14 15:57:04 2016
@@ -1 +1,3 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@a = global i32 42
Modified: llvm/trunk/test/tools/gold/X86/Inputs/available-externally.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/available-externally.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/available-externally.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/available-externally.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @zed() {
ret void
}
Modified: llvm/trunk/test/tools/gold/X86/Inputs/cache.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/cache.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/cache.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/cache.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,4 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define i32 @main() {
Modified: llvm/trunk/test/tools/gold/X86/Inputs/comdat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/comdat.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/comdat.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/comdat.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
$c2 = comdat any
$c1 = comdat any
Modified: llvm/trunk/test/tools/gold/X86/Inputs/comdat2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/comdat2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/comdat2.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/comdat2.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
$foo = comdat any
@foo = global i8 1, comdat
define void @zed() {
Modified: llvm/trunk/test/tools/gold/X86/Inputs/common.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/common.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/common.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/common.ll Wed Dec 14 15:57:04 2016
@@ -1 +1,3 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@a = common global i32 0, align 4
Modified: llvm/trunk/test/tools/gold/X86/Inputs/common2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/common2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/common2.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/common2.ll Wed Dec 14 15:57:04 2016
@@ -1 +1,3 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@a = common global i8 0, align 16
Modified: llvm/trunk/test/tools/gold/X86/Inputs/common3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/common3.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/common3.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/common3.ll Wed Dec 14 15:57:04 2016
@@ -1 +1,3 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@a = common global i8 0, align 1
Modified: llvm/trunk/test/tools/gold/X86/Inputs/ctors2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/ctors2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/ctors2.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/ctors2.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @bar, i8* null }]
define void @bar() {
Modified: llvm/trunk/test/tools/gold/X86/Inputs/drop-linkage.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/drop-linkage.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/drop-linkage.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/drop-linkage.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
$foo = comdat any
define linkonce void @foo() comdat {
ret void
Modified: llvm/trunk/test/tools/gold/X86/Inputs/irmover-error.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/irmover-error.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/irmover-error.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/irmover-error.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
!0 = !{ i32 1, !"foo", i32 2 }
!llvm.module.flags = !{ !0 }
Modified: llvm/trunk/test/tools/gold/X86/Inputs/linkonce-weak.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/linkonce-weak.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/linkonce-weak.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/linkonce-weak.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define weak_odr void @f() !dbg !4 {
ret void, !dbg !10
}
Modified: llvm/trunk/test/tools/gold/X86/Inputs/mixed_lto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/mixed_lto.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/mixed_lto.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/mixed_lto.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,4 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare i32 @g()
define i32 @main() {
Modified: llvm/trunk/test/tools/gold/X86/Inputs/pr19901-1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/pr19901-1.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/pr19901-1.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/pr19901-1.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,4 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define linkonce_odr hidden void @f() {
ret void
Modified: llvm/trunk/test/tools/gold/X86/Inputs/resolve-to-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/resolve-to-alias.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/resolve-to-alias.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/resolve-to-alias.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@bar = alias void (), void ()* @zed
define void @zed() {
ret void
Modified: llvm/trunk/test/tools/gold/X86/Inputs/start-lib-common.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/start-lib-common.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/start-lib-common.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/start-lib-common.ll Wed Dec 14 15:57:04 2016
@@ -1 +1,3 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@x = common global i32 0, align 8
Modified: llvm/trunk/test/tools/gold/X86/Inputs/thinlto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/thinlto.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/thinlto.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/thinlto.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @g() {
entry:
ret void
Modified: llvm/trunk/test/tools/gold/X86/Inputs/thinlto_alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/thinlto_alias.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/thinlto_alias.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/thinlto_alias.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,4 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define weak void @weakfunc() {
entry:
Modified: llvm/trunk/test/tools/gold/X86/Inputs/thinlto_archive1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/thinlto_archive1.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/thinlto_archive1.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/thinlto_archive1.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @g() {
entry:
ret void
Modified: llvm/trunk/test/tools/gold/X86/Inputs/thinlto_archive2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/thinlto_archive2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/thinlto_archive2.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/thinlto_archive2.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @h() {
entry:
ret void
Modified: llvm/trunk/test/tools/gold/X86/Inputs/thinlto_empty.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/thinlto_empty.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/thinlto_empty.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/thinlto_empty.ll Wed Dec 14 15:57:04 2016
@@ -0,0 +1 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: llvm/trunk/test/tools/gold/X86/Inputs/thinlto_internalize.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/thinlto_internalize.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/thinlto_internalize.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/thinlto_internalize.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,4 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare i32 @g()
define i32 @main() {
Modified: llvm/trunk/test/tools/gold/X86/Inputs/thinlto_linkonceresolution.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/thinlto_linkonceresolution.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/thinlto_linkonceresolution.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/thinlto_linkonceresolution.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,4 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define linkonce_odr hidden void @f() {
ret void
Modified: llvm/trunk/test/tools/gold/X86/Inputs/thinlto_weak_resolution.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/thinlto_weak_resolution.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/thinlto_weak_resolution.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/thinlto_weak_resolution.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,4 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Alias are not optimized
Modified: llvm/trunk/test/tools/gold/X86/Inputs/type-merge.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/type-merge.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/type-merge.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/type-merge.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @zed() {
call void @bar()
ret void
Modified: llvm/trunk/test/tools/gold/X86/Inputs/type-merge2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/type-merge2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/type-merge2.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/type-merge2.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
%zed = type { i16 }
define void @bar(%zed* %this) {
store %zed* %this, %zed** null
Modified: llvm/trunk/test/tools/gold/X86/Inputs/visibility.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/visibility.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/visibility.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/visibility.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @foo() {
ret void
}
Modified: llvm/trunk/test/tools/gold/X86/Inputs/weak.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/Inputs/weak.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/weak.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/weak.ll Wed Dec 14 15:57:04 2016
@@ -1,2 +1,4 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@a = weak global i32 41
@c = global i32* @a
Modified: llvm/trunk/test/tools/gold/X86/alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/alias.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/alias.ll (original)
+++ llvm/trunk/test/tools/gold/X86/alias.ll Wed Dec 14 15:57:04 2016
@@ -9,5 +9,7 @@
; CHECK-NEXT: @b = global i32 1
; CHECK-NOT: alias
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@a = weak alias i32, i32* @b
@b = global i32 1
Modified: llvm/trunk/test/tools/gold/X86/alias2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/alias2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/alias2.ll (original)
+++ llvm/trunk/test/tools/gold/X86/alias2.ll Wed Dec 14 15:57:04 2016
@@ -2,6 +2,8 @@
; RUN: %gold -shared -o %t2.bc -plugin %llvmshlibdir/LLVMgold.so %t.o -plugin-opt=emit-llvm
; RUN: llvm-dis %t2.bc -o - | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@bar = alias void (), void ()* @zed
define void @foo() {
call void @bar()
Modified: llvm/trunk/test/tools/gold/X86/available-externally.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/available-externally.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/available-externally.ll (original)
+++ llvm/trunk/test/tools/gold/X86/available-externally.ll Wed Dec 14 15:57:04 2016
@@ -11,6 +11,8 @@
; RUN: -shared %t2.o %t.o -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"
+
define void @foo() {
call void @bar()
call void @zed()
Modified: llvm/trunk/test/tools/gold/X86/bad-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/bad-alias.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/bad-alias.ll (original)
+++ llvm/trunk/test/tools/gold/X86/bad-alias.ll Wed Dec 14 15:57:04 2016
@@ -6,6 +6,8 @@
; CHECK: Unable to determine comdat of alias!
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@g1 = global i32 1
@g2 = global i32 2
Modified: llvm/trunk/test/tools/gold/X86/bcsection.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/bcsection.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/bcsection.ll (original)
+++ llvm/trunk/test/tools/gold/X86/bcsection.ll Wed Dec 14 15:57:04 2016
@@ -5,6 +5,7 @@
; RUN: %gold -r -o %T/bcsection.o -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so %T/bcsection.bco
; RUN: llvm-nm -no-llvm-bc %T/bcsection.o | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-unknown"
; CHECK: main
Modified: llvm/trunk/test/tools/gold/X86/cache.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/cache.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/cache.ll (original)
+++ llvm/trunk/test/tools/gold/X86/cache.ll Wed Dec 14 15:57:04 2016
@@ -24,6 +24,7 @@
; RUN: ls %t.cache | count 2
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @globalfunc() #0 {
Modified: llvm/trunk/test/tools/gold/X86/coff.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/coff.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/coff.ll (original)
+++ llvm/trunk/test/tools/gold/X86/coff.ll Wed Dec 14 15:57:04 2016
@@ -3,7 +3,7 @@
; RUN: -shared %t.o -o %t2.o
; RUN: llvm-dis %t2.o -o - | FileCheck %s
-
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target datalayout = "m:w"
; CHECK: define void @f() {
Modified: llvm/trunk/test/tools/gold/X86/comdat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/comdat.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/comdat.ll (original)
+++ llvm/trunk/test/tools/gold/X86/comdat.ll Wed Dec 14 15:57:04 2016
@@ -5,6 +5,8 @@
; RUN: FileCheck --check-prefix=RES %s < %t3.o.resolution.txt
; RUN: llvm-readobj -t %t3.o | FileCheck --check-prefix=OBJ %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
$c1 = comdat any
@v1 = weak_odr global i32 42, comdat($c1)
Modified: llvm/trunk/test/tools/gold/X86/comdat2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/comdat2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/comdat2.ll (original)
+++ llvm/trunk/test/tools/gold/X86/comdat2.ll Wed Dec 14 15:57:04 2016
@@ -5,6 +5,7 @@
; RUN: -shared %t.bc %t2.bc -o %t3.bc
; RUN: llvm-dis %t3.bc -o - | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
$foo = comdat any
@foo = global i8 0, comdat
Modified: llvm/trunk/test/tools/gold/X86/common.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/common.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/common.ll (original)
+++ llvm/trunk/test/tools/gold/X86/common.ll Wed Dec 14 15:57:04 2016
@@ -3,6 +3,8 @@
; RUN: llvm-as %p/Inputs/common2.ll -o %t2b.o
; RUN: llvm-as %p/Inputs/common3.ll -o %t2c.o
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@a = common global i16 0, align 8
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
Modified: llvm/trunk/test/tools/gold/X86/ctors.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/ctors.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/ctors.ll (original)
+++ llvm/trunk/test/tools/gold/X86/ctors.ll Wed Dec 14 15:57:04 2016
@@ -4,6 +4,8 @@
; RUN: -shared %t.o -o %t2.o
; RUN: llvm-dis %t2.o -o - | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo, i8* null }]
define internal void @foo() {
Modified: llvm/trunk/test/tools/gold/X86/ctors2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/ctors2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/ctors2.ll (original)
+++ llvm/trunk/test/tools/gold/X86/ctors2.ll Wed Dec 14 15:57:04 2016
@@ -5,6 +5,8 @@
; RUN: -shared %t.o %t2.o -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"
+
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo, i8* null }]
define void @foo() {
Modified: llvm/trunk/test/tools/gold/X86/disable-verify.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/disable-verify.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/disable-verify.ll (original)
+++ llvm/trunk/test/tools/gold/X86/disable-verify.ll Wed Dec 14 15:57:04 2016
@@ -10,6 +10,7 @@
; RUN: --plugin-opt=-debug-pass=Arguments \
; RUN: -shared %t.o -o %t2.o 2>&1 | FileCheck %s -check-prefix=VERIFY
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; -disable-verify should disable output verification from the optimization
Modified: llvm/trunk/test/tools/gold/X86/drop-linkage.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/drop-linkage.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/drop-linkage.ll (original)
+++ llvm/trunk/test/tools/gold/X86/drop-linkage.ll Wed Dec 14 15:57:04 2016
@@ -7,6 +7,8 @@
; RUN: -shared %t.o %t2.o -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"
+
define void @foo() {
ret void
}
Modified: llvm/trunk/test/tools/gold/X86/emit-llvm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/emit-llvm.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/emit-llvm.ll (original)
+++ llvm/trunk/test/tools/gold/X86/emit-llvm.ll Wed Dec 14 15:57:04 2016
@@ -22,6 +22,7 @@
; NM: T f3
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; CHECK-DAG: @g1 = weak_odr constant i32 32
Modified: llvm/trunk/test/tools/gold/X86/irmover-error.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/irmover-error.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/irmover-error.ll (original)
+++ llvm/trunk/test/tools/gold/X86/irmover-error.ll Wed Dec 14 15:57:04 2016
@@ -4,6 +4,8 @@
; CHECK: fatal error: Failed to link module {{.*}}2.bc: linking module flags 'foo': IDs have conflicting values
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
!0 = !{ i32 1, !"foo", i32 1 }
!llvm.module.flags = !{ !0 }
Modified: llvm/trunk/test/tools/gold/X86/linker-script.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/linker-script.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/linker-script.ll (original)
+++ llvm/trunk/test/tools/gold/X86/linker-script.ll Wed Dec 14 15:57:04 2016
@@ -6,6 +6,8 @@
; RUN: -version-script=%p/Inputs/linker-script.export
; RUN: llvm-dis %t2.o -o - | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
; CHECK: define void @f()
define void @f() {
ret void
Modified: llvm/trunk/test/tools/gold/X86/linkonce-weak.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/linkonce-weak.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/linkonce-weak.ll (original)
+++ llvm/trunk/test/tools/gold/X86/linkonce-weak.ll Wed Dec 14 15:57:04 2016
@@ -11,6 +11,8 @@
; RUN: -shared %t2.o %t.o -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"
+
define linkonce_odr void @f() !dbg !4 {
ret void, !dbg !10
}
Modified: llvm/trunk/test/tools/gold/X86/mixed_lto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/mixed_lto.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/mixed_lto.ll (original)
+++ llvm/trunk/test/tools/gold/X86/mixed_lto.ll Wed Dec 14 15:57:04 2016
@@ -12,6 +12,7 @@
; CHECK-DAG: T main
; CHECK-DAG: T g
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define i32 @g() {
ret i32 0
Modified: llvm/trunk/test/tools/gold/X86/no-map-whole-file.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/no-map-whole-file.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/no-map-whole-file.ll (original)
+++ llvm/trunk/test/tools/gold/X86/no-map-whole-file.ll Wed Dec 14 15:57:04 2016
@@ -4,6 +4,9 @@
; RUN: llvm-dis < %t2.bc -o - | FileCheck %s
; CHECK: main
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define i32 @main() {
ret i32 0
}
Modified: llvm/trunk/test/tools/gold/X86/opt-level.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/opt-level.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/opt-level.ll (original)
+++ llvm/trunk/test/tools/gold/X86/opt-level.ll Wed Dec 14 15:57:04 2016
@@ -12,6 +12,9 @@
; CHECK-O0: define internal void @foo(
; CHECK-O1: define internal void @foo(
; CHECK-O2-NOT: define internal void @foo(
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define internal void @foo() {
ret void
}
Modified: llvm/trunk/test/tools/gold/X86/parallel.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/parallel.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/parallel.ll (original)
+++ llvm/trunk/test/tools/gold/X86/parallel.ll Wed Dec 14 15:57:04 2016
@@ -6,6 +6,7 @@
; RUN: llvm-nm %t.o0 | FileCheck --check-prefix=CHECK0 %s
; RUN: llvm-nm %t.o1 | FileCheck --check-prefix=CHECK1 %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; CHECK-BC0: define void @foo
Modified: llvm/trunk/test/tools/gold/X86/pr19901.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/pr19901.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/pr19901.ll (original)
+++ llvm/trunk/test/tools/gold/X86/pr19901.ll Wed Dec 14 15:57:04 2016
@@ -15,6 +15,7 @@
; CHECK: Section: .text
; CHECK-NEXT: }
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define i32 @g() {
call void @f()
Modified: llvm/trunk/test/tools/gold/X86/pr19901_thinlto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/pr19901_thinlto.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/pr19901_thinlto.ll (original)
+++ llvm/trunk/test/tools/gold/X86/pr19901_thinlto.ll Wed Dec 14 15:57:04 2016
@@ -16,6 +16,7 @@
; CHECK: Section: .text
; CHECK-NEXT: }
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define i32 @g() {
call void @f()
Modified: llvm/trunk/test/tools/gold/X86/pr25907.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/pr25907.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/pr25907.ll (original)
+++ llvm/trunk/test/tools/gold/X86/pr25907.ll Wed Dec 14 15:57:04 2016
@@ -4,6 +4,8 @@
; RUN: llvm-nm %t2 | FileCheck %s
; CHECK: T main
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@main.L = internal unnamed_addr constant [3 x i8*] [i8* blockaddress(@main, %L1), i8* blockaddress(@main, %L2), i8* null], align 16
define i32 @main() #0 {
Modified: llvm/trunk/test/tools/gold/X86/pr25915.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/pr25915.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/pr25915.ll (original)
+++ llvm/trunk/test/tools/gold/X86/pr25915.ll Wed Dec 14 15:57:04 2016
@@ -5,6 +5,8 @@
; RUN: llvm-dis %t2 -o - | FileCheck %s
; CHECK-NOT: subprograms
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4}
!llvm.ident = !{!5}
Modified: llvm/trunk/test/tools/gold/X86/relax-relocs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/relax-relocs.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/relax-relocs.ll (original)
+++ llvm/trunk/test/tools/gold/X86/relax-relocs.ll Wed Dec 14 15:57:04 2016
@@ -7,6 +7,7 @@
; Test that we produce R_X86_64_GOTPCREL instead of R_X86_64_GOTPCRELX
; CHECK: R_X86_64_GOTPCREL foo
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@foo = external global i32
Modified: llvm/trunk/test/tools/gold/X86/resolve-to-alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/resolve-to-alias.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/resolve-to-alias.ll (original)
+++ llvm/trunk/test/tools/gold/X86/resolve-to-alias.ll Wed Dec 14 15:57:04 2016
@@ -15,6 +15,8 @@
; RUN: FileCheck --check-prefix=PASS1 %s < %t.ll
; RUN: FileCheck --check-prefix=PASS2 %s < %t.ll
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @foo() {
call void @bar()
ret void
Modified: llvm/trunk/test/tools/gold/X86/slp-vectorize.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/slp-vectorize.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/slp-vectorize.ll (original)
+++ llvm/trunk/test/tools/gold/X86/slp-vectorize.ll Wed Dec 14 15:57:04 2016
@@ -8,6 +8,7 @@
; test that the vectorizer is run.
; CHECK: fadd <4 x float>
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @f(float* nocapture %x) {
Modified: llvm/trunk/test/tools/gold/X86/start-lib-common.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/start-lib-common.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/start-lib-common.ll (original)
+++ llvm/trunk/test/tools/gold/X86/start-lib-common.ll Wed Dec 14 15:57:04 2016
@@ -9,6 +9,7 @@
; 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"
@x = common global i32 0, align 4
; ToT gold (as of 03/2016) honors --start-lib/--end-lib, drops %t2.o and ends up
Modified: llvm/trunk/test/tools/gold/X86/strip_names.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/strip_names.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/strip_names.ll (original)
+++ llvm/trunk/test/tools/gold/X86/strip_names.ll Wed Dec 14 15:57:04 2016
@@ -24,6 +24,8 @@
; NONAME: %3 = add i32 %0, %2
; NONAME: ret i32 %3
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@GlobalValueName = global i32 0
define i32 @foo(i32 %in) {
Modified: llvm/trunk/test/tools/gold/X86/thinlto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/thinlto.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/thinlto.ll (original)
+++ llvm/trunk/test/tools/gold/X86/thinlto.ll Wed Dec 14 15:57:04 2016
@@ -115,6 +115,8 @@
; COMBINED-NEXT: <COMBINED_ENTRY abbrevid={{[0-9]+}} op0={{1|2}} op1={{-3706093650706652785|-5300342847281564238}}
; COMBINED-NEXT: </VALUE_SYMTAB
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
declare void @g(...)
define void @f() {
Modified: llvm/trunk/test/tools/gold/X86/thinlto_alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/thinlto_alias.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/thinlto_alias.ll (original)
+++ llvm/trunk/test/tools/gold/X86/thinlto_alias.ll Wed Dec 14 15:57:04 2016
@@ -27,6 +27,7 @@
; OPT: define hidden void @weakfunc.llvm.0()
; OPT2: define weak void @weakfunc()
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@weakfuncAlias = alias void (...), bitcast (void ()* @weakfunc to void (...)*)
Modified: llvm/trunk/test/tools/gold/X86/thinlto_archive.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/thinlto_archive.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/thinlto_archive.ll (original)
+++ llvm/trunk/test/tools/gold/X86/thinlto_archive.ll Wed Dec 14 15:57:04 2016
@@ -15,6 +15,8 @@
; RUN: -shared %t.o %t.a -o %t4 2>&1 | FileCheck %s
; RUN: llvm-nm %t4 | FileCheck %s --check-prefix=NM
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
; CHECK-DAG: Import g
declare void @g(...)
; CHECK-DAG: Import h
Modified: llvm/trunk/test/tools/gold/X86/thinlto_emit_imports.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/thinlto_emit_imports.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/thinlto_emit_imports.ll (original)
+++ llvm/trunk/test/tools/gold/X86/thinlto_emit_imports.ll Wed Dec 14 15:57:04 2016
@@ -28,6 +28,8 @@
; The index file should be created even for the input with an empty summary.
; RUN: ls %t3.o.thinlto.bc
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
declare void @g(...)
define void @f() {
Modified: llvm/trunk/test/tools/gold/X86/thinlto_internalize.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/thinlto_internalize.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/thinlto_internalize.ll (original)
+++ llvm/trunk/test/tools/gold/X86/thinlto_internalize.ll Wed Dec 14 15:57:04 2016
@@ -14,6 +14,7 @@
; h() should be internalized after promotion, and eliminated after inlining
; CHECK-NOT: @h.llvm.
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define i32 @g() {
call void @f()
Modified: llvm/trunk/test/tools/gold/X86/thinlto_linkonceresolution.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/thinlto_linkonceresolution.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/thinlto_linkonceresolution.ll (original)
+++ llvm/trunk/test/tools/gold/X86/thinlto_linkonceresolution.ll Wed Dec 14 15:57:04 2016
@@ -23,6 +23,7 @@
; OPT-NOT: @f()
; OPT2: define weak_odr hidden void @f()
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define i32 @g() {
call void @f()
Modified: llvm/trunk/test/tools/gold/X86/thinlto_prefix_replace.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/thinlto_prefix_replace.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/thinlto_prefix_replace.ll (original)
+++ llvm/trunk/test/tools/gold/X86/thinlto_prefix_replace.ll Wed Dec 14 15:57:04 2016
@@ -11,6 +11,8 @@
; RUN: -shared %T/oldpath/thinlto_prefix_replace.o -o %T/thinlto_prefix_replace
; RUN: ls %T/newpath/thinlto_prefix_replace.o.thinlto.bc
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @f() {
entry:
ret void
Modified: llvm/trunk/test/tools/gold/X86/thinlto_weak_resolution.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/thinlto_weak_resolution.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/thinlto_weak_resolution.ll (original)
+++ llvm/trunk/test/tools/gold/X86/thinlto_weak_resolution.ll Wed Dec 14 15:57:04 2016
@@ -26,6 +26,7 @@
; RUN: llvm-dis %t.o.3.import.bc -o - | FileCheck --check-prefix=IMPORT %s
; RUN llvm-dis %t2.o.3.import.bc -o - | FileCheck --check-prefix=IMPORT2 %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
Modified: llvm/trunk/test/tools/gold/X86/type-merge.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/type-merge.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/type-merge.ll (original)
+++ llvm/trunk/test/tools/gold/X86/type-merge.ll Wed Dec 14 15:57:04 2016
@@ -5,6 +5,8 @@
; RUN: -shared %t.o %t2.o -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"
+
define void @foo() {
call void @bar(i8* null)
ret void
Modified: llvm/trunk/test/tools/gold/X86/type-merge2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/type-merge2.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/type-merge2.ll (original)
+++ llvm/trunk/test/tools/gold/X86/type-merge2.ll Wed Dec 14 15:57:04 2016
@@ -5,6 +5,8 @@
; RUN: -shared %t.o %t2.o -o %t3.o
; RUN: llvm-dis %t3.o.0.2.internalize.bc -o - | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
%zed = type { i8 }
define void @foo() {
call void @bar(%zed* null)
Modified: llvm/trunk/test/tools/gold/X86/unnamed-addr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/unnamed-addr.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/unnamed-addr.ll (original)
+++ llvm/trunk/test/tools/gold/X86/unnamed-addr.ll Wed Dec 14 15:57:04 2016
@@ -5,6 +5,8 @@
; RUN: -shared %t.o -o %t2.o
; RUN: llvm-dis %t2.o -o - | FileCheck %s
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@a = internal unnamed_addr constant i8 42
define i8* @f() {
Modified: llvm/trunk/test/tools/gold/X86/visibility.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/visibility.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/visibility.ll (original)
+++ llvm/trunk/test/tools/gold/X86/visibility.ll Wed Dec 14 15:57:04 2016
@@ -18,6 +18,8 @@
; IR: define void @foo
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define weak protected void @foo() {
ret void
}
Modified: llvm/trunk/test/tools/gold/X86/weak.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/weak.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/weak.ll (original)
+++ llvm/trunk/test/tools/gold/X86/weak.ll Wed Dec 14 15:57:04 2016
@@ -6,6 +6,8 @@
; RUN: -shared %t.o %t2.o -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"
+
@a = weak global i32 42
@b = global i32* @a
Modified: llvm/trunk/test/tools/llvm-lto/Inputs/thinlto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-lto/Inputs/thinlto.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-lto/Inputs/thinlto.ll (original)
+++ llvm/trunk/test/tools/llvm-lto/Inputs/thinlto.ll Wed Dec 14 15:57:04 2016
@@ -1,3 +1,5 @@
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @g() {
entry:
ret void
Modified: llvm/trunk/test/tools/llvm-lto/thinlto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-lto/thinlto.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-lto/thinlto.ll (original)
+++ llvm/trunk/test/tools/llvm-lto/thinlto.ll Wed Dec 14 15:57:04 2016
@@ -21,6 +21,8 @@
; COMBINED-NEXT: <COMBINED_ENTRY abbrevid={{[0-9]+}} op0={{1|2}} op1={{-3706093650706652785|-5300342847281564238}}
; COMBINED-NEXT: </VALUE_SYMTAB
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @f() {
entry:
ret void
Added: llvm/trunk/test/tools/llvm-lto2/X86/nodatalayout.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-lto2/X86/nodatalayout.ll?rev=289719&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-lto2/X86/nodatalayout.ll (added)
+++ llvm/trunk/test/tools/llvm-lto2/X86/nodatalayout.ll Wed Dec 14 15:57:04 2016
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s > %t1.bc
+
+; Reject input modules without a datalayout.
+; RUN: not llvm-lto2 %t1.bc -o %t.o \
+; RUN: -r %t1.bc,patatino,px 2>&1 | FileCheck %s
+
+; CHECK: input module has no datalayout
+
+target triple = "x86_64-unknown-linux-gnu"
+
+define void @patatino() {
+ ret void
+}
Modified: llvm/trunk/test/tools/llvm-lto2/X86/pipeline.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-lto2/X86/pipeline.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-lto2/X86/pipeline.ll (original)
+++ llvm/trunk/test/tools/llvm-lto2/X86/pipeline.ll Wed Dec 14 15:57:04 2016
@@ -6,6 +6,7 @@
; RUN: -aa-pipeline basic-aa
; RUN: llvm-dis < %t.o.0.4.opt.bc | FileCheck %s --check-prefix=CUSTOM
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @patatino() {
Modified: llvm/trunk/test/tools/llvm-lto2/errors.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-lto2/errors.ll?rev=289719&r1=289718&r2=289719&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-lto2/errors.ll (original)
+++ llvm/trunk/test/tools/llvm-lto2/errors.ll Wed Dec 14 15:57:04 2016
@@ -8,4 +8,7 @@
; ERR2: unused symbol resolution for {{.*}}.bc,bar
; ERR3: invalid character q in resolution: {{.*}}.bc,foo
; ERR4: invalid resolution: foo
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
@foo = global i32 0
More information about the llvm-commits
mailing list