diff options
author | Eugene Leviant <eleviant@accesssoftek.com> | 2018-06-20 15:32:47 +0000 |
---|---|---|
committer | Eugene Leviant <eleviant@accesssoftek.com> | 2018-06-20 15:32:47 +0000 |
commit | da873b5e2ed165caeb117175b3618c1be60aae3b (patch) | |
tree | e24e88fcc401be0b1e015025de16d9ec2959eeb8 /llvm/test | |
parent | 52564675c470d3527392afdaaa2857aa6c154e85 (diff) | |
download | bcm5719-llvm-da873b5e2ed165caeb117175b3618c1be60aae3b.tar.gz bcm5719-llvm-da873b5e2ed165caeb117175b3618c1be60aae3b.zip |
[LIT] Enable testing of LLVM gold plugin on Mac OS X
Differential revision: https://reviews.llvm.org/D48350
llvm-svn: 335136
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/lit.cfg.py | 2 | ||||
-rw-r--r-- | llvm/test/tools/gold/X86/Inputs/common.ll | 1 | ||||
-rw-r--r-- | llvm/test/tools/gold/X86/Inputs/common2.ll | 1 | ||||
-rw-r--r-- | llvm/test/tools/gold/X86/Inputs/common3.ll | 1 | ||||
-rw-r--r-- | llvm/test/tools/gold/X86/Inputs/drop-linkage.ll | 1 | ||||
-rw-r--r-- | llvm/test/tools/gold/X86/common.ll | 1 | ||||
-rw-r--r-- | llvm/test/tools/gold/X86/drop-linkage.ll | 3 | ||||
-rw-r--r-- | llvm/test/tools/gold/X86/thinlto_archive.ll | 2 |
8 files changed, 9 insertions, 3 deletions
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py index 46cd0ea5e77..44e3afb7cb3 100644 --- a/llvm/test/lit.cfg.py +++ b/llvm/test/lit.cfg.py @@ -239,7 +239,7 @@ import subprocess def have_ld_plugin_support(): - if not os.path.exists(os.path.join(config.llvm_shlib_dir, 'LLVMgold.so')): + if not os.path.exists(os.path.join(config.llvm_shlib_dir, 'LLVMgold' + config.llvm_shlib_ext)): return False ld_cmd = subprocess.Popen( diff --git a/llvm/test/tools/gold/X86/Inputs/common.ll b/llvm/test/tools/gold/X86/Inputs/common.ll index 8743e417144..2b3c18acf7b 100644 --- a/llvm/test/tools/gold/X86/Inputs/common.ll +++ b/llvm/test/tools/gold/X86/Inputs/common.ll @@ -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" @a = common global i32 0, align 4 diff --git a/llvm/test/tools/gold/X86/Inputs/common2.ll b/llvm/test/tools/gold/X86/Inputs/common2.ll index a378063178f..b94c3472b20 100644 --- a/llvm/test/tools/gold/X86/Inputs/common2.ll +++ b/llvm/test/tools/gold/X86/Inputs/common2.ll @@ -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" @a = common global i8 0, align 16 diff --git a/llvm/test/tools/gold/X86/Inputs/common3.ll b/llvm/test/tools/gold/X86/Inputs/common3.ll index aba9dc80ee5..150c19756db 100644 --- a/llvm/test/tools/gold/X86/Inputs/common3.ll +++ b/llvm/test/tools/gold/X86/Inputs/common3.ll @@ -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" @a = common global i8 0, align 1 diff --git a/llvm/test/tools/gold/X86/Inputs/drop-linkage.ll b/llvm/test/tools/gold/X86/Inputs/drop-linkage.ll index 0799e11d32d..4ea004e11d2 100644 --- a/llvm/test/tools/gold/X86/Inputs/drop-linkage.ll +++ b/llvm/test/tools/gold/X86/Inputs/drop-linkage.ll @@ -1,4 +1,5 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-unknown-linux-gnu" $foo = comdat any define linkonce void @foo() comdat { diff --git a/llvm/test/tools/gold/X86/common.ll b/llvm/test/tools/gold/X86/common.ll index c3eddefcf07..1debe787547 100644 --- a/llvm/test/tools/gold/X86/common.ll +++ b/llvm/test/tools/gold/X86/common.ll @@ -4,6 +4,7 @@ ; RUN: llvm-as %p/Inputs/common3.ll -o %t2c.o target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-unknown-linux-gnu" @a = common global i16 0, align 8 diff --git a/llvm/test/tools/gold/X86/drop-linkage.ll b/llvm/test/tools/gold/X86/drop-linkage.ll index 566e55d2765..5baf3958ff2 100644 --- a/llvm/test/tools/gold/X86/drop-linkage.ll +++ b/llvm/test/tools/gold/X86/drop-linkage.ll @@ -1,5 +1,5 @@ ; RUN: llc %s -o %t.s -; RUN: llvm-mc %t.s -o %t.o -filetype=obj +; RUN: llvm-mc %t.s -o %t.o -filetype=obj -triple=x86_64-unknown-linux-gnu ; RUN: llvm-as %p/Inputs/drop-linkage.ll -o %t2.o ; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ @@ -8,6 +8,7 @@ ; 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" define void @foo() { ret void diff --git a/llvm/test/tools/gold/X86/thinlto_archive.ll b/llvm/test/tools/gold/X86/thinlto_archive.ll index f369308053c..789b963a6da 100644 --- a/llvm/test/tools/gold/X86/thinlto_archive.ll +++ b/llvm/test/tools/gold/X86/thinlto_archive.ll @@ -4,7 +4,7 @@ ; RUN: opt -module-summary %p/Inputs/thinlto_archive2.ll -o %t3.o ; Generate the static library -; RUN: llvm-ar r %t.a %t2.o %t3.o +; RUN: llvm-ar -format=gnu r %t.a %t2.o %t3.o ; Test importing from archive library via gold, using jobs=1 to ensure ; output messages are not interleaved. |