[PATCH] D107640: [Orc] Enable debug object tests only for 64-bit processes on x86_64 hosts

Stefan Gränitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 6 05:47:15 PDT 2021


sgraenitz created this revision.
sgraenitz added a reviewer: mgorny.
Herald added a subscriber: pengfei.
sgraenitz requested review of this revision.
Herald added a project: LLVM.

These tests rely on running IR code with an explicit x86_64 target triple. They won't work on other architectures and additionally they won't work for 32-bit processes on x86_64 hosts either.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107640

Files:
  llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll
  llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll
  llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg


Index: llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg
===================================================================
--- llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg
+++ llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg
@@ -6,3 +6,7 @@
 # FIXME: These tests don't pass with the COFF rtld.
 if sys.platform == 'win32':
     config.unsupported = True
+
+# Some tests only work for 64-bit processes on 64-bit hosts.
+if sys.int_info.sizeof_digit == 8:
+    config.available_features.add('64bit-process')
Index: llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll
===================================================================
--- llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll
+++ llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll
@@ -1,3 +1,6 @@
+# REQUIRES: x86-registered-target
+# REQUIRES: 64bit-process
+
 ; In-memory debug-object contains some basic DWARF
 ;
 ; RUN: lli --jit-kind=orc-lazy --per-module-lazy --jit-linker=rtdyld \
Index: llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll
===================================================================
--- llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll
+++ llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll
@@ -1,3 +1,6 @@
+# REQUIRES: x86-registered-target
+# REQUIRES: 64bit-process
+
 ; RUN: lli --jit-kind=orc-lazy --per-module-lazy --jit-linker=rtdyld \
 ; RUN:     --generate=__dump_jit_debug_descriptor %s | FileCheck %s
 ;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107640.364761.patch
Type: text/x-patch
Size: 1492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210806/ff25286d/attachment.bin>


More information about the llvm-commits mailing list