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(
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
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
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
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 {
; 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
; 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 \
; 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
; 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.