[llvm] r335136 - [LIT] Enable testing of LLVM gold plugin on Mac OS X

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 08:32:47 PDT 2018


Author: evgeny777
Date: Wed Jun 20 08:32:47 2018
New Revision: 335136

URL: http://llvm.org/viewvc/llvm-project?rev=335136&view=rev
Log:
[LIT] Enable testing of LLVM gold plugin on Mac OS X

Differential revision: https://reviews.llvm.org/D48350

Modified:
    llvm/trunk/test/lit.cfg.py
    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/drop-linkage.ll
    llvm/trunk/test/tools/gold/X86/common.ll
    llvm/trunk/test/tools/gold/X86/drop-linkage.ll
    llvm/trunk/test/tools/gold/X86/thinlto_archive.ll

Modified: llvm/trunk/test/lit.cfg.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg.py?rev=335136&r1=335135&r2=335136&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg.py (original)
+++ llvm/trunk/test/lit.cfg.py Wed Jun 20 08:32:47 2018
@@ -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(

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=335136&r1=335135&r2=335136&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/common.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/common.ll Wed Jun 20 08:32:47 2018
@@ -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

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=335136&r1=335135&r2=335136&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/common2.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/common2.ll Wed Jun 20 08:32:47 2018
@@ -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

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=335136&r1=335135&r2=335136&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/common3.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/common3.ll Wed Jun 20 08:32:47 2018
@@ -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

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=335136&r1=335135&r2=335136&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/Inputs/drop-linkage.ll (original)
+++ llvm/trunk/test/tools/gold/X86/Inputs/drop-linkage.ll Wed Jun 20 08:32:47 2018
@@ -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 {

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=335136&r1=335135&r2=335136&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/common.ll (original)
+++ llvm/trunk/test/tools/gold/X86/common.ll Wed Jun 20 08:32:47 2018
@@ -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
 

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=335136&r1=335135&r2=335136&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/drop-linkage.ll (original)
+++ llvm/trunk/test/tools/gold/X86/drop-linkage.ll Wed Jun 20 08:32:47 2018
@@ -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

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=335136&r1=335135&r2=335136&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/thinlto_archive.ll (original)
+++ llvm/trunk/test/tools/gold/X86/thinlto_archive.ll Wed Jun 20 08:32:47 2018
@@ -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.




More information about the llvm-commits mailing list