summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-03-07 15:07:55 +0000
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-03-07 15:07:55 +0000
commita5ecceed1fbf512fbde09b30dc59f793547c4981 (patch)
treec52da6d64c798565ebc9dffcd779a8fcd275d759
parent7eb66ba14a3ae4d16482c1b3581662a1d4d90697 (diff)
downloadbcm5719-llvm-a5ecceed1fbf512fbde09b30dc59f793547c4981.tar.gz
bcm5719-llvm-a5ecceed1fbf512fbde09b30dc59f793547c4981.zip
[LLD][COFF] Restrict the failifmismatch test to x86_64-windows-msvc because the ELF container doesn't support llvm.linker.options meta-data with only one operand.
llvm-svn: 355602
-rw-r--r--lld/test/COFF/failifmismatch.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/lld/test/COFF/failifmismatch.test b/lld/test/COFF/failifmismatch.test
index 10634ffe7ca..1cf77e47b03 100644
--- a/lld/test/COFF/failifmismatch.test
+++ b/lld/test/COFF/failifmismatch.test
@@ -1,3 +1,5 @@
+REQUIRES: x86
+
RUN: lld-link /entry:main /subsystem:console /out:%t.exe \
RUN: %p/Inputs/ret42.obj
@@ -10,8 +12,8 @@ RUN: %p/Inputs/ret42.obj /failifmismatch:k1=v1 /failifmismatch:k1=v1
RUN: not lld-link /entry:main /subsystem:console /out:%t.exe \
RUN: %p/Inputs/ret42.obj /failifmismatch:k1=v1 /failifmismatch:k1=v2 2>&1 | FileCheck %s
-RUN: llc < %p/Inputs/failmismatch1.ll -filetype obj -o %t1.obj
-RUN: llc < %p/Inputs/failmismatch2.ll -filetype obj -o %t2.obj
+RUN: llc < %p/Inputs/failmismatch1.ll -mtriple x86_64-windows-msvc -filetype obj -o %t1.obj
+RUN: llc < %p/Inputs/failmismatch2.ll -mtriple x86_64-windows-msvc -filetype obj -o %t2.obj
RUN: not lld-link %t1.obj %t2.obj 2>&1 | FileCheck %s -check-prefix OBJ
RUN: llvm-lib %t1.obj /out:%t.lib
OpenPOWER on IntegriCloud