[Lldb-commits] [lldb] dddd0c2 - [lldb][AArch64] Simplify AArch64SMEFA64 check

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 25 03:20:46 PDT 2023


Author: David Spickett
Date: 2023-10-25T11:19:37+01:00
New Revision: dddd0c2501beeb372252826aab71da7691d17bc2

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

LOG: [lldb][AArch64] Simplify AArch64SMEFA64 check

So we only have to read cpuinfo once.

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 af8d24efc4f807e..fefe91401cb8e52 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1275,9 +1275,8 @@ def isAArch64SMEFA64(self):
         # smefa64 allows the use of the full A64 instruction set in streaming
         # mode. This is required by certain test programs to setup register
         # state.
-        return self.isAArch64SME() and set(["sme", "smefa64"]).issuperset(
-            set(self.getCPUInfo())
-        )
+        cpuinfo = self.getCPUInfo()
+        return self.isAArch64() and "sme" in cpuinfo and "smefa64" in cpuinfo
 
     def isAArch64MTE(self):
         return self.isAArch64() and "mte" in self.getCPUInfo()


        


More information about the lldb-commits mailing list