[PATCH] D159186: [AArch64][SME] Enable TPIDR2 lazy-save for za_preserved

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 08:24:34 PDT 2023


sdesmalen added inline comments.


================
Comment at: llvm/test/CodeGen/AArch64/sme-lazy-save-call.ll:172
+; Test lazy-save mechanism for a single callee with aarch64_pstate_za_preserved.
+define void @foo() nounwind "aarch64_pstate_za_shared" {
+; CHECK-LABEL: foo:
----------------
Could you also add the `"aarch64_pstate_sm_compatible"` attribute so that the compiler must call `__arm_sme_state()` as part of the call-sequence and test that we don't set up the lazy-save mechanism for that `__arm_sme_state()` call?

nit: Could you maybe also give this test a better name than `foo`? :) 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159186/new/

https://reviews.llvm.org/D159186



More information about the llvm-commits mailing list