From f56380114493ea501860aaff3c3b3b461c40233a Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Fri, 26 Oct 2012 18:52:01 +0000 Subject: [PATCH] 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 --- test/Transforms/LoopVectorize/2012-10-22-isconsec.ll | 2 +- test/Transforms/LoopVectorize/{ => X86}/cost-model.ll | 0 test/Transforms/LoopVectorize/X86/lit.local.cfg | 6 ++++++ 3 files changed, 7 insertions(+), 1 deletion(-) rename test/Transforms/LoopVectorize/{ => X86}/cost-model.ll (100%) create mode 100644 test/Transforms/LoopVectorize/X86/lit.local.cfg diff --git a/test/Transforms/LoopVectorize/2012-10-22-isconsec.ll b/test/Transforms/LoopVectorize/2012-10-22-isconsec.ll index 12e8e55983e..2516e248bc9 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 similarity index 100% rename from test/Transforms/LoopVectorize/cost-model.ll rename to 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 00000000000..a8ad0f1a28b --- /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 + -- 2.34.1