[llvm] [AArch64][SME2] Add ZT0 attributes to SMEAttrs (PR #77607)

Kerry McLaughlin via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 09:12:58 PST 2024


================
@@ -58,6 +78,39 @@ TEST(SMEAttributes, Constructors) {
   EXPECT_DEBUG_DEATH(SA(SA::ZA_New | SA::ZA_Preserved),
                      "ZA_New and ZA_Preserved are mutually exclusive");
 
+  EXPECT_DEBUG_DEATH(SA(SA::ZT0_New | SA::ZT0_In),
+                     "ZT0_New, ZT0_In, ZT0_Out, ZT0_InOut and ZT0_Preserved "
+                     "are all \" \"mutually exclusive");
+  EXPECT_DEBUG_DEATH(SA(SA::ZT0_New | SA::ZT0_Out),
----------------
kmclaughlin-arm wrote:

I've added some checks in the Verifier pass, for now these only check that incompatible attributes are not added to the same function.

https://github.com/llvm/llvm-project/pull/77607


More information about the llvm-commits mailing list