1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[tests] Cleanup initialization of test suffixes.

- Instead of setting the suffixes in a bunch of places, just set one master
   list in the top-level config. We now only modify the suffix list in a few
   suites that have one particular unique suffix (.ml, .mc, .yaml, .td, .py).

 - Aside from removing the need for a bunch of lit.local.cfg files, this enables
   4 tests that were inadvertently being skipped (one in
   Transforms/BranchFolding, a .s file each in DebugInfo/AArch64 and
   CodeGen/PowerPC, and one in CodeGen/SI which is now failing and has been
   XFAILED).

 - This commit also fixes a bunch of config files to use config.root instead of
   older copy-pasted code.

llvm-svn: 188513
This commit is contained in:
Daniel Dunbar 2013-08-16 00:37:11 +00:00
parent 72387340f5
commit a496d61c01
157 changed files with 16 additions and 275 deletions

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'ARM' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'PowerPC' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1,11 +1,2 @@
config.suffixes = ['.ll', '.c', '.cpp']
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
if 'hexagon' in root.target_triple:
if 'hexagon' in config.root.target_triple:
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1,4 +1,4 @@
config.suffixes = ['.ll', '.c', '.cpp', '.ml']
config.suffixes = ['.ml']
bindings = set([s.strip() for s in config.root.llvm_bindings.split(',')])
if not 'ocaml' in bindings:

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'AArch64' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.test']
targets = set(config.root.targets_to_build.split())
if not 'ARM' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'CppBackend' in targets:
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'Hexagon' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.test']
targets = set(config.root.targets_to_build.split())
if not 'MSP430' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.test']
targets = set(config.root.targets_to_build.split())
if not 'Mips' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'NVPTX' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.test']
targets = set(config.root.targets_to_build.split())
if not 'PowerPC' in targets:
config.unsupported = True

View File

@ -1,13 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
targets = set(root.targets_to_build.split())
targets = set(config.root.targets_to_build.split())
if not 'R600' in targets:
config.unsupported = True

View File

@ -0,0 +1,3 @@
targets = set(config.root.targets_to_build.split())
if not 'R600' in targets:
config.unsupported = True

View File

@ -1,4 +1,5 @@
;RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s
;XFAIL: *
; CHECK: S_ENDPGM

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.test']
targets = set(config.root.targets_to_build.split())
if not 'Sparc' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'SystemZ' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.test']
targets = set(config.root.targets_to_build.split())
if not 'ARM' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'ARM' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.test']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.test']
targets = set(config.root.targets_to_build.split())
if not 'XCore' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'AArch64' in targets:
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = []

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.s']
targets = set(config.root.targets_to_build.split())
if not 'PowerPC' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.s']
targets = set(config.root.targets_to_build.split())
if not 'SystemZ' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.s']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp', '.test']

View File

@ -1,12 +1,4 @@
config.suffixes = ['.ll', '.c', '.cpp']
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
root = config.root
targets = set(root.targets_to_build.split())
if ('X86' in targets) | ('AArch64' in targets) | ('ARM' in targets) | \
('Mips' in targets) | ('PowerPC' in targets) | ('SystemZ' in targets):

View File

@ -1,11 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
if 'armv4' in root.target_triple or 'armv5' in root.target_triple:
if 'armv4' in config.root.target_triple or \
'armv5' in config.root.target_triple:
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = ['.test']

View File

@ -1,14 +1,5 @@
config.suffixes = ['.ll', '.c', '.cpp']
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
if root.host_arch in ['PowerPC', 'AArch64', 'SystemZ']:
if config.root.host_arch in ['PowerPC', 'AArch64', 'SystemZ']:
config.unsupported = True
if 'hexagon' in root.target_triple:
if 'hexagon' in config.root.target_triple:
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.txt']

View File

@ -1,13 +1,4 @@
config.suffixes = ['.ll', '.c', '.cpp']
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
targets = set(root.targets_to_build.split())
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1,11 +1,3 @@
config.suffixes = ['.ll']
def getRoot(config):
if not config.parent:
return config
return getRoot(config.parent)
root = getRoot(config)
if not root.llvm_use_intel_jitevents == "ON":
if not config.root.llvm_use_intel_jitevents == "ON":
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.s']
targets = set(config.root.targets_to_build.split())
if not 'AArch64' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.s']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.s']
targets = set(config.root.targets_to_build.split())
if not 'ARM' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.s']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.s', '.ll']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.txt']
targets = set(config.root.targets_to_build.split())
if not 'AArch64' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.txt']
targets = set(config.root.targets_to_build.split())
if not 'ARM' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.txt']
targets = set(config.root.targets_to_build.split())
if not 'Mips' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.txt']
targets = set(config.root.targets_to_build.split())
if not 'SystemZ' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.txt']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.txt']
targets = set(config.root.targets_to_build.split())
if not 'XCore' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.s']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.s', '.ll']
targets = set(config.root.targets_to_build.split())
if not 'ARM' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.s', '.ll']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.s']
targets = set(config.root.targets_to_build.split())
if not 'Mips' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.s']
targets = set(config.root.targets_to_build.split())
if not 'PowerPC' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.s']
targets = set(config.root.targets_to_build.split())
if not 'SystemZ' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.s']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp', '.s']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.test']
targets = set(config.root.targets_to_build.split())
if not 'Mips' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.test']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp', '.txt', '.test']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1,5 +1,3 @@
config.suffixes = ['.ll', '.c', '.cpp']
targets = set(config.root.targets_to_build.split())
if not 'X86' in targets:
config.unsupported = True

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

View File

@ -1 +0,0 @@
config.suffixes = ['.ll', '.c', '.cpp']

Some files were not shown because too many files have changed in this diff Show More