summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll2
-rw-r--r--llvm/test/ExecutionEngine/MCJIT/weak-function.ll5
-rw-r--r--llvm/test/ExecutionEngine/OrcMCJIT/Inputs/weak-function-2.ll2
-rw-r--r--llvm/test/ExecutionEngine/OrcMCJIT/weak-function.ll7
-rw-r--r--llvm/test/lit.cfg1
5 files changed, 12 insertions, 5 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll b/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
index a7ff83df039..73544a7f709 100644
--- a/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
+++ b/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
@@ -1,4 +1,4 @@
-define linkonce_odr i32 @baz() #0 {
+define weak i32 @baz() #0 {
entry:
ret i32 0
}
diff --git a/llvm/test/ExecutionEngine/MCJIT/weak-function.ll b/llvm/test/ExecutionEngine/MCJIT/weak-function.ll
index 562d6ade33b..843fb4ab3c1 100644
--- a/llvm/test/ExecutionEngine/MCJIT/weak-function.ll
+++ b/llvm/test/ExecutionEngine/MCJIT/weak-function.ll
@@ -1,9 +1,12 @@
; RUN: lli -jit-kind=mcjit -extra-module %p/Inputs/weak-function-2.ll %s
+; REQUIRES: not_COFF
;
; Check that functions in two different modules agree on the address of weak
; function 'baz'
+; Testing on COFF platforms is disabled as COFF has no representation of 'weak'
+; linkage.
-define linkonce_odr i32 @baz() {
+define weak i32 @baz() {
entry:
ret i32 0
}
diff --git a/llvm/test/ExecutionEngine/OrcMCJIT/Inputs/weak-function-2.ll b/llvm/test/ExecutionEngine/OrcMCJIT/Inputs/weak-function-2.ll
index a7ff83df039..73544a7f709 100644
--- a/llvm/test/ExecutionEngine/OrcMCJIT/Inputs/weak-function-2.ll
+++ b/llvm/test/ExecutionEngine/OrcMCJIT/Inputs/weak-function-2.ll
@@ -1,4 +1,4 @@
-define linkonce_odr i32 @baz() #0 {
+define weak i32 @baz() #0 {
entry:
ret i32 0
}
diff --git a/llvm/test/ExecutionEngine/OrcMCJIT/weak-function.ll b/llvm/test/ExecutionEngine/OrcMCJIT/weak-function.ll
index db255cdbb2c..a367ce6a6ba 100644
--- a/llvm/test/ExecutionEngine/OrcMCJIT/weak-function.ll
+++ b/llvm/test/ExecutionEngine/OrcMCJIT/weak-function.ll
@@ -1,9 +1,12 @@
; RUN: lli -jit-kind=orc-mcjit -extra-module %p/Inputs/weak-function-2.ll %s
+; REQUIRES: not_COFF
;
; Check that functions in two different modules agree on the address of weak
-; function 'baz'
+; function 'baz'.
+; Testing on COFF platforms is disabled as COFF has no representation of 'weak'
+; linkage.
-define linkonce_odr i32 @baz() {
+define weak i32 @baz() {
entry:
ret i32 0
}
diff --git a/llvm/test/lit.cfg b/llvm/test/lit.cfg
index 0c24b72cc27..daa757ef2ea 100644
--- a/llvm/test/lit.cfg
+++ b/llvm/test/lit.cfg
@@ -357,6 +357,7 @@ if execute_external:
# Others/can-execute.txt
if sys.platform not in ['win32']:
config.available_features.add('can-execute')
+ config.available_features.add('not_COFF')
# Loadable module
# FIXME: This should be supplied by Makefile or autoconf.
OpenPOWER on IntegriCloud