[llvm] 6a800f6 - Add a triple to test/ExecutionEngine/MCJIT/cet-code-model-lager.ll

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 05:23:41 PDT 2020


Author: Hans Wennborg
Date: 2020-04-06T14:19:59+02:00
New Revision: 6a800f6f622a7ade275fa6cb1ef07803460d8bb3

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

LOG: Add a triple to test/ExecutionEngine/MCJIT/cet-code-model-lager.ll

It was failing in 32-bit Windows builds with:

  $ ":" "RUN: at line 1"
  $ "c:\src\llvm_package_944db8a4\build32_stage0\bin\lli.exe" "-mtriple=i686-pc-windows-msvc-elf" "-code-model=large" "C:\src\llvm_package_944db8a4\llvm-project\llvm\test\ExecutionEngine\MCJIT\cet-code-model-lager.ll"
  # command stderr:
  Assertion failed: Is64Bit && "Large code model is only legal in 64-bit mode.", file C:\src\llvm_package_944db8a4\llvm-project\llvm\lib\Target\X86\X86ISelLowering.cpp, line 4212

Let's see if this helps.

Added: 
    

Modified: 
    llvm/test/ExecutionEngine/MCJIT/cet-code-model-lager.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/ExecutionEngine/MCJIT/cet-code-model-lager.ll b/llvm/test/ExecutionEngine/MCJIT/cet-code-model-lager.ll
index 478683b016d3..3fe14cfd5148 100644
--- a/llvm/test/ExecutionEngine/MCJIT/cet-code-model-lager.ll
+++ b/llvm/test/ExecutionEngine/MCJIT/cet-code-model-lager.ll
@@ -1,4 +1,4 @@
-; RUN: %lli -code-model=large %s > /dev/null
+; RUN: %lli -mtriple=x86_64-unknown-unknown -code-model=large %s > /dev/null
 
 @a = dso_local local_unnamed_addr global i32 1, align 4
 


        


More information about the llvm-commits mailing list