[SystemZ] Set up JIT/MCJIT test cases
[oota-llvm.git] / test / ExecutionEngine / MCJIT / lit.local.cfg
1 config.suffixes = ['.ll', '.c', '.cpp']
2
3 def getRoot(config):
4     if not config.parent:
5         return config
6     return getRoot(config.parent)
7
8 root = getRoot(config)
9
10 targets = set(root.targets_to_build.split())
11 if ('X86' in targets) | ('AArch64' in targets) | ('ARM' in targets) | \
12    ('Mips' in targets) | ('PowerPC' in targets) | ('SystemZ' in targets):
13     config.unsupported = False
14 else:
15     config.unsupported = True
16
17 if root.host_arch not in ['i386', 'x86', 'x86_64',
18                           'AArch64', 'ARM', 'Mips', 'PowerPC', 'SystemZ']:
19     config.unsupported = True
20
21 if 'i386-apple-darwin'  in root.target_triple:
22     config.unsupported = True
23
24 if 'powerpc' in root.target_triple and not 'powerpc64' in root.target_triple:
25     config.unsupported = True