The test unconditionally assumes a particular cpu has a backend build in the target.
authorDavid Tweed <david.tweed@arm.com>
Fri, 7 Dec 2012 15:57:45 +0000 (15:57 +0000)
committerDavid Tweed <david.tweed@arm.com>
Fri, 7 Dec 2012 15:57:45 +0000 (15:57 +0000)
Buildbots for some hosts may choose to build only their own backend in order to
maximise testing-turnaround time. Move the test into a prefixed directory so
lit's standard "backend specific" suppression can be done.

llvm-svn: 169604

llvm/test/Transforms/LoopIdiom/X86/lit.local.cfg [new file with mode: 0644]
llvm/test/Transforms/LoopIdiom/X86/popcnt.ll [moved from llvm/test/Transforms/LoopIdiom/popcnt.ll with 100% similarity]

diff --git a/llvm/test/Transforms/LoopIdiom/X86/lit.local.cfg b/llvm/test/Transforms/LoopIdiom/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
+