[Lldb-commits] [lldb] 3ebd6f6 - [lldb][AArch64] Add test predicate for systems with SME enabled

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 17 01:27:17 PDT 2023


Author: David Spickett
Date: 2023-07-17T09:27:12+01:00
New Revision: 3ebd6f65cb87af5227ad64f53e1a5a59022f61a0

URL: https://github.com/llvm/llvm-project/commit/3ebd6f65cb87af5227ad64f53e1a5a59022f61a0
DIFF: https://github.com/llvm/llvm-project/commit/3ebd6f65cb87af5227ad64f53e1a5a59022f61a0.diff

LOG: [lldb][AArch64] Add test predicate for systems with SME enabled

"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.

Reviewed By: omjavaid

Differential Revision: https://reviews.llvm.org/D154823

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 02255712a8dd11..376d4ac90e6587 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1271,6 +1271,9 @@ def isAArch64(self):
     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()
 


        


More information about the lldb-commits mailing list