summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-10-26 18:52:01 +0000
committerNadav Rotem <nrotem@apple.com>2012-10-26 18:52:01 +0000
commitf56380114493ea501860aaff3c3b3b461c40233a (patch)
treebb07adf57e3ca93914b528cd3204b65f055a1dea /test
parente5551ed9cec1ae777c4e4b8852a1d7842c2e1c3d (diff)
downloadllvm-f56380114493ea501860aaff3c3b3b461c40233a.tar.gz
llvm-f56380114493ea501860aaff3c3b3b461c40233a.tar.bz2
llvm-f56380114493ea501860aaff3c3b3b461c40233a.tar.xz
Move the target-specific tests, which require specific backends, to dirs that only run if the target is present.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/LoopVectorize/2012-10-22-isconsec.ll2
-rw-r--r--test/Transforms/LoopVectorize/X86/cost-model.ll (renamed from test/Transforms/LoopVectorize/cost-model.ll)0
-rw-r--r--test/Transforms/LoopVectorize/X86/lit.local.cfg6
3 files changed, 7 insertions, 1 deletions
diff --git a/test/Transforms/LoopVectorize/2012-10-22-isconsec.ll b/test/Transforms/LoopVectorize/2012-10-22-isconsec.ll
index 12e8e55983..2516e248bc 100644
--- a/test/Transforms/LoopVectorize/2012-10-22-isconsec.ll
+++ b/test/Transforms/LoopVectorize/2012-10-22-isconsec.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-vectorize -dce
+; RUN: opt < %s -loop-vectorize -dce -force-vector-width=4
; Check that we don't crash.
diff --git a/test/Transforms/LoopVectorize/cost-model.ll b/test/Transforms/LoopVectorize/X86/cost-model.ll
index 628f9912c8..628f9912c8 100644
--- a/test/Transforms/LoopVectorize/cost-model.ll
+++ b/test/Transforms/LoopVectorize/X86/cost-model.ll
diff --git a/test/Transforms/LoopVectorize/X86/lit.local.cfg b/test/Transforms/LoopVectorize/X86/lit.local.cfg
new file mode 100644
index 0000000000..a8ad0f1a28
--- /dev/null
+++ b/test/Transforms/LoopVectorize/X86/lit.local.cfg
@@ -0,0 +1,6 @@
+config.suffixes = ['.ll', '.c', '.cpp']
+
+targets = set(config.root.targets_to_build.split())
+if not 'X86' in targets:
+ config.unsupported = True
+