@@ -45,6 +45,7 @@ static uint64_t sve_cntw() {
4545
4646#if defined(__ARM_FEATURE_SME ) && defined(__ARM_FEATURE_LOCALLY_STREAMING ) && defined(__clang__ ) && __clang_major__ >= 16
4747
48+ #if defined(UPPER )
4849__arm_new ("za" ) __arm_locally_streaming
4950static void ssymm_direct_sme1_preprocessLU (uint64_t nbr , uint64_t nbc ,
5051 const float * restrict a , float * restrict a_mod )
@@ -54,7 +55,7 @@ static void ssymm_direct_sme1_preprocessLU(uint64_t nbr, uint64_t nbc,
5455 const uint64_t svl = svcntw ();
5556 uint64_t row_batch = svl ;
5657
57- float * restrict pSrc ;
58+ const float * restrict pSrc ;
5859 float * restrict pDst ;
5960 for (uint64_t row_idx = 0 ; row_idx < nbr ; row_idx += row_batch )
6061 {
@@ -122,8 +123,10 @@ static void ssymm_direct_sme1_preprocessLU(uint64_t nbr, uint64_t nbc,
122123 }
123124 }
124125}
126+ #endif
125127
126128//
129+ #if defined(LOWER )
127130__arm_new ("za" ) __arm_locally_streaming
128131static void ssymm_direct_sme1_preprocessLL (uint64_t nbr , uint64_t nbc ,
129132 const float * restrict a , float * restrict a_mod )
@@ -132,7 +135,7 @@ static void ssymm_direct_sme1_preprocessLL(uint64_t nbr, uint64_t nbc,
132135 const uint64_t svl = svcntw ();
133136 uint64_t row_batch = svl ;
134137
135- float * restrict pSrc ;
138+ const float * restrict pSrc ;
136139 float * restrict pDst ;
137140 for (uint64_t row_idx = 0 ; row_idx < nbr ; row_idx += row_batch )
138141 {
@@ -200,12 +203,17 @@ static void ssymm_direct_sme1_preprocessLL(uint64_t nbr, uint64_t nbc,
200203 }
201204 }
202205}
206+ #endif
203207#else
208+ #if defined(UPPER )
204209static void ssymm_direct_sme1_preprocessLU (uint64_t nbr , uint64_t nbc ,
205210 const float * restrict a , float * restrict a_mod ){}
211+ #endif
212+ #if defined(LOWER )
206213static void ssymm_direct_sme1_preprocessLL (uint64_t nbr , uint64_t nbc ,
207214 const float * restrict a , float * restrict a_mod ){}
208215#endif
216+ #endif
209217
210218//
211219void CNAME (BLASLONG M , BLASLONG N , float alpha , float * __restrict A ,
0 commit comments