[llvm] [llvm-debuginfo-analyzer][lit] Fix tests failing when X86 isn't available (PR #155678)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 27 12:02:08 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-debuginfo

Author: Nick Sarnie (sarnex)

<details>
<summary>Changes</summary>

Need to require the target.

Fixes: https://github.com/llvm/llvm-project/pull/153318

---
Full diff: https://github.com/llvm/llvm-project/pull/155678.diff


2 Files Affected:

- (modified) llvm/test/tools/llvm-debuginfo-analyzer/DWARF/DW_AT_ranges.s (+2) 
- (modified) llvm/test/tools/llvm-debuginfo-analyzer/DWARF/high_pc_exclusive.s (+2) 


``````````diff
diff --git a/llvm/test/tools/llvm-debuginfo-analyzer/DWARF/DW_AT_ranges.s b/llvm/test/tools/llvm-debuginfo-analyzer/DWARF/DW_AT_ranges.s
index 58d7b28b8d65e..daeda00f55644 100644
--- a/llvm/test/tools/llvm-debuginfo-analyzer/DWARF/DW_AT_ranges.s
+++ b/llvm/test/tools/llvm-debuginfo-analyzer/DWARF/DW_AT_ranges.s
@@ -16,6 +16,8 @@
 # 12   return (int)my_var;
 # 13 }
 
+# REQUIRES: x86-registered-target        
+
 # RUN: llvm-mc %s -triple=i686-pc-linux -filetype=obj -o - | \
 # RUN: llvm-debuginfo-analyzer --attribute=all \
 # RUN:                         --print=all \
diff --git a/llvm/test/tools/llvm-debuginfo-analyzer/DWARF/high_pc_exclusive.s b/llvm/test/tools/llvm-debuginfo-analyzer/DWARF/high_pc_exclusive.s
index efba25c46ae67..a9a90163667f6 100644
--- a/llvm/test/tools/llvm-debuginfo-analyzer/DWARF/high_pc_exclusive.s
+++ b/llvm/test/tools/llvm-debuginfo-analyzer/DWARF/high_pc_exclusive.s
@@ -12,6 +12,8 @@
 # 8 }
 # 9
 
+# REQUIRES: x86-registered-target
+
 # RUN: llvm-mc %s -triple=i686-pc-linux -filetype=obj -o - | \
 # RUN: llvm-debuginfo-analyzer --attribute=all \
 # RUN:                         --print=all \

``````````

</details>


https://github.com/llvm/llvm-project/pull/155678


More information about the llvm-commits mailing list