X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Flit.cfg;h=128bbe927a3fe8dde4fcc2a1778383610888ff3f;hb=6b8d2026ba0b60a317fa239eacbcaeff5f2270f0;hp=348ac8f622c7b8605ebca6990f9991aee8473273;hpb=7bbd6e366b39157445cc921024a987e61ea68c00;p=oota-llvm.git diff --git a/test/lit.cfg b/test/lit.cfg index 348ac8f622c..128bbe927a3 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -5,6 +5,7 @@ import os import sys import re +import platform # name: The name of this test suite. config.name = 'LLVM' @@ -139,20 +140,25 @@ if config.test_exec_root is None: ### -# Provide a target triple for mcjit tests -mcjit_triple = config.target_triple -# Force ELF format on Windows -if 'win32' in mcjit_triple.lower(): - mcjit_triple += "-elf" -config.substitutions.append( ('%mcjit_triple', mcjit_triple) ) - -# When running under valgrind, we mangle '-vg' or '-vg_leak' onto the end of the -# triple so we can check it with XFAIL and XTARGET. -config.target_triple += lit.valgrindTriple +# Provide a command line for mcjit tests +lli_mcjit = 'lli -use-mcjit' +# The target triple used by default by lli is the process target triple (some +# triple appropriate for generating code for the current process) but because +# we don't support COFF in MCJIT well enough for the tests, force ELF format on +# Windows. FIXME: the process target triple should be used here, but this is +# difficult to obtain on Windows. +if re.search(r'cygwin|mingw32|win32', config.host_triple): + lli_mcjit += ' -mtriple='+config.host_triple+'-elf' +config.substitutions.append( ('%lli_mcjit', lli_mcjit) ) # Provide a substition for those tests that need to run the jit to obtain data # but simply want use the currently considered most reliable jit for platform -defaultIsMCJIT='true' if 'arm' in config.target_triple else 'false' +# FIXME: ppc32 is not ready for mcjit. +if 'arm' in config.target_triple \ + or 'powerpc64' in config.target_triple: + defaultIsMCJIT = 'true' +else: + defaultIsMCJIT = 'false' config.substitutions.append( ('%defaultjit', '-use-mcjit='+defaultIsMCJIT) ) # Process jit implementation option @@ -195,7 +201,7 @@ for pattern in [r"\bbugpoint\b(?!-)", r"(?