We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12e1815 commit 88e7dc4Copy full SHA for 88e7dc4
compiler-rt/lib/builtins/aarch64/sme-abi.S
@@ -210,14 +210,16 @@ DEFINE_COMPILERRT_FUNCTION(__arm_sme_state_size)
210
.variant_pcs __arm_sme_state_size
211
BTI_C
212
213
- // Test if SME is available and PSTATE = 1.
+ // Test if SME is available and ZA state is 'active'.
214
adrp x16, CPU_FEATS_SYMBOL
215
ldr x16, [x16, CPU_FEATS_SYMBOL_OFFSET]
216
tbz x16, #FEAT_SME_BIT, 0f
217
mrs x16, SVCR
218
tbz x16, #1, 0f
219
+ mrs x16, TPIDR2_EL0
220
+ cbnz x16, 0f
221
- // Size = HAS_FEAT_SME2 ? 32 : 96
222
+ // Size = HAS_FEAT_SME2 ? 96 : 32
223
224
225
tst x16, #FEAT_SME2_MASK
0 commit comments