[Lldb-commits] [PATCH] D154823: [lldb][AArch64] Add test predicate for systems with SME enabled

David Spickett via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 10 02:28:56 PDT 2023


DavidSpickett created this revision.
Herald added a subscriber: kristof.beyls.
Herald added a project: All.
DavidSpickett requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

"sme" is just one of many cpuinfo features for SME but it's the
only one we need for testing.

The rest are related to the use of certain instructions and
don't change the register state available.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154823

Files:
  lldb/packages/Python/lldbsuite/test/lldbtest.py


Index: lldb/packages/Python/lldbsuite/test/lldbtest.py
===================================================================
--- lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1271,6 +1271,9 @@
     def isAArch64SVE(self):
         return self.isAArch64() and "sve" in self.getCPUInfo()
 
+    def isAArch64SME(self):
+        return self.isAArch64() and "sme" in self.getCPUInfo()
+
     def isAArch64MTE(self):
         return self.isAArch64() and "mte" in self.getCPUInfo()
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154823.538551.patch
Type: text/x-patch
Size: 534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230710/99c199d5/attachment.bin>


More information about the lldb-commits mailing list