Move the target-specific tests, which require specific backends, to dirs that only...
authorNadav Rotem <nrotem@apple.com>
Fri, 26 Oct 2012 18:52:01 +0000 (18:52 +0000)
committerNadav Rotem <nrotem@apple.com>
Fri, 26 Oct 2012 18:52:01 +0000 (18:52 +0000)
llvm-svn: 166796

llvm/test/Transforms/LoopVectorize/2012-10-22-isconsec.ll
llvm/test/Transforms/LoopVectorize/X86/cost-model.ll [moved from llvm/test/Transforms/LoopVectorize/cost-model.ll with 100% similarity]
llvm/test/Transforms/LoopVectorize/X86/lit.local.cfg [new file with mode: 0644]

index 12e8e55..2516e24 100644 (file)
@@ -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/llvm/test/Transforms/LoopVectorize/X86/lit.local.cfg b/llvm/test/Transforms/LoopVectorize/X86/lit.local.cfg
new file mode 100644 (file)
index 0000000..a8ad0f1
--- /dev/null
@@ -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
+