================
@@ -488,6 +508,12 @@ bool RegisterInfoPOSIX_arm64::IsSMERegZA(unsigned reg) 
const {
   return reg == m_sme_regnum_collection[2];
 }
 
+bool RegisterInfoPOSIX_arm64::IsSMERegZT(unsigned reg) const {
+  // ZT0 is part of the SME register set only if SME2 is present.
+  return m_sme_regnum_collection.size() == 4 &&
+         reg == m_sme_regnum_collection.back();
----------------
jasonmolenda wrote:

Do you think it might be better to check if the register number is contained in 
`m_sme_rengum_collection` instead of expecting there to be 4 registers and this 
is the last one?  It seems like this is could be a bug when we get another 
register in the next SME update in the future.

https://github.com/llvm/llvm-project/pull/70205
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to