[llvm] [AArch64][SME2] Add ZT0 attributes to SMEAttrs (PR #77607)
Kerry McLaughlin via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 04:13:01 PST 2024
================
@@ -82,19 +102,86 @@ TEST(SMEAttributes, Basics) {
// Test PSTATE.ZA interfaces.
ASSERT_FALSE(SA(SA::ZA_Shared).hasPrivateZAInterface());
ASSERT_TRUE(SA(SA::ZA_Shared).hasSharedZAInterface());
+ ASSERT_TRUE(SA(SA::ZA_Shared).sharesZA());
ASSERT_TRUE(SA(SA::ZA_Shared).hasZAState());
ASSERT_FALSE(SA(SA::ZA_Shared).preservesZA());
ASSERT_TRUE(SA(SA::ZA_Shared | SA::ZA_Preserved).preservesZA());
ASSERT_TRUE(SA(SA::ZA_New).hasPrivateZAInterface());
+ ASSERT_FALSE(SA(SA::ZA_New).hasSharedZAInterface());
----------------
kmclaughlin-arm wrote:
There is already a `sharesZA()` test for `SA::ZA_Shared` on line 105, did you mean:
`ASSERT_FALSE(SA(SA::ZA_Shared).sharesZT0())`?
I've added `sharesZT0()` cases for `SA::ZA_Shared` & `SA::ZA_New` in the latest commit.
https://github.com/llvm/llvm-project/pull/77607
More information about the llvm-commits
mailing list