[llvm] 6d85926 - [lit] Define keyword used by MCJIT test

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 25 09:24:41 PDT 2022


Author: Paul Robinson
Date: 2022-10-25T09:24:32-07:00
New Revision: 6d859266803e2a9060c4e8770f92cc2c7bd05a3b

URL: https://github.com/llvm/llvm-project/commit/6d859266803e2a9060c4e8770f92cc2c7bd05a3b
DIFF: https://github.com/llvm/llvm-project/commit/6d859266803e2a9060c4e8770f92cc2c7bd05a3b.diff

LOG: [lit] Define keyword used by MCJIT test

test/ExecutionEngine/MCJIT/2005-12-02-TailCallBug.ll has
'XFAIL: mcjit-ia32' but that feature isn't defined anywhere, so
the XFAIL can't have any effect.  This has not been a problem
because apparently there are no 32-bit x86 bots out there.

I found this as part of other work to clean up lit keywords, so
I figured I would go ahead and fix it.  Verified by hacking my
lit.site.cfg.py so host_triple = target_triple = "i686-pc-windows-msvc"
and the test correctly reported XFAIL.

Added: 
    

Modified: 
    llvm/test/lit.cfg.py

Removed: 
    


################################################################################
diff  --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index 500cbd68b494..5cbf4616f7c3 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -100,6 +100,8 @@ def get_asan_rtlib():
 # 
diff icult to obtain on Windows.
 if re.search(r'cygwin|windows-gnu|windows-msvc', config.host_triple):
     lli_args = ['-mtriple=' + config.host_triple + '-elf']
+if re.search(r'^i.86', config.host_triple):
+    config.available_features.add('mcjit-ia32')
 
 llc_args = []
 


        


More information about the llvm-commits mailing list