Index: test/tools/llvm-exegesis/X86/lit.local.cfg =================================================================== --- test/tools/llvm-exegesis/X86/lit.local.cfg +++ test/tools/llvm-exegesis/X86/lit.local.cfg @@ -20,10 +20,14 @@ else: try: with open(os.devnull, 'w') as quiet: - check_llvm_exegesis_result = subprocess.call( + check_llvm_exegesis_uops_result = subprocess.call( [llvm_exegesis_exe, '-mode', 'uops', '-snippets-file', '/dev/null'], stdout=quiet, stderr=quiet) + check_llvm_exegesis_latency_result = subprocess.call( + [llvm_exegesis_exe, '-mode', 'latency', '-snippets-file', '/dev/null'], stdout=quiet, stderr=quiet) except OSError: print('could not exec llvm-exegesis') config.unsupported = True - if not check_llvm_exegesis_result == 0: + if not check_llvm_exegesis_uops_result == 0: + config.unsupported = True + if not check_llvm_exegesis_latency_result == 0: config.unsupported = True