[Lldb-commits] [lldb] [lldb] Support arm64e in TestClearSBValueNonAddressableBits.py (PR #194748)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 28 16:11:47 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Alex Langford (bulbazord)
<details>
<summary>Changes</summary>
These values are expected to be different on arm64e where the raw pointer value should have all the tagged bits and the stripped pointer shouldn't.
---
Full diff: https://github.com/llvm/llvm-project/pull/194748.diff
1 Files Affected:
- (modified) lldb/test/API/clear-sbvalue-nonaddressable-bits/TestClearSBValueNonAddressableBits.py (+11-3)
``````````diff
diff --git a/lldb/test/API/clear-sbvalue-nonaddressable-bits/TestClearSBValueNonAddressableBits.py b/lldb/test/API/clear-sbvalue-nonaddressable-bits/TestClearSBValueNonAddressableBits.py
index 382b0e7a81d23..67f1b62d2a49b 100644
--- a/lldb/test/API/clear-sbvalue-nonaddressable-bits/TestClearSBValueNonAddressableBits.py
+++ b/lldb/test/API/clear-sbvalue-nonaddressable-bits/TestClearSBValueNonAddressableBits.py
@@ -54,6 +54,14 @@ def test(self):
main_p = frame.FindVariable("main_p")
main_invalid_p = frame.FindVariable("main_invalid_p")
- self.assertEqual(
- main_p.GetValueAsUnsigned(), main_invalid_p.GetValueAsAddress()
- )
+ if self.getArchitecture() in ["arm64e"]:
+ # On arm64e, main_p.GetValueAsUnsigned() will have all the pointer
+ # metadata in it whereas main_invalid_p will have all the metadata
+ # stripped.
+ self.assertNotEqual(
+ main_p.GetValueAsUnsigned(), main_invalid_p.GetValueAsAddress()
+ )
+ else:
+ self.assertEqual(
+ main_p.GetValueAsUnsigned(), main_invalid_p.GetValueAsAddress()
+ )
``````````
</details>
https://github.com/llvm/llvm-project/pull/194748
More information about the lldb-commits
mailing list