[llvm] 1fae9db - AArch64: Fix undefined behavior in sme calling convention test (#165183)

via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 26 19:08:46 PDT 2025


Author: Matt Arsenault
Date: 2025-10-27T02:08:42Z
New Revision: 1fae9db3d5932f693c7430dbbe1b95f16288c101

URL: https://github.com/llvm/llvm-project/commit/1fae9db3d5932f693c7430dbbe1b95f16288c101
DIFF: https://github.com/llvm/llvm-project/commit/1fae9db3d5932f693c7430dbbe1b95f16288c101.diff

LOG: AArch64: Fix undefined behavior in sme calling convention test (#165183)

Mismatch of callsite and callee calling conventions

Added: 
    

Modified: 
    llvm/test/CodeGen/AArch64/sme-support-routines-calling-convention.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AArch64/sme-support-routines-calling-convention.ll b/llvm/test/CodeGen/AArch64/sme-support-routines-calling-convention.ll
index 63c65334afe11..a5b761253a807 100644
--- a/llvm/test/CodeGen/AArch64/sme-support-routines-calling-convention.ll
+++ b/llvm/test/CodeGen/AArch64/sme-support-routines-calling-convention.ll
@@ -64,6 +64,6 @@ define i64 @test_sme_calling_convention_x2() nounwind {
   ret i64 %pstate.sm
 }
 
-declare void @__arm_tpidr2_save()
-declare i64 @__arm_get_current_vg()
-declare {i64, i64} @__arm_sme_state()
+declare aarch64_sme_preservemost_from_x0 void @__arm_tpidr2_save()
+declare aarch64_sme_preservemost_from_x1 i64 @__arm_get_current_vg()
+declare aarch64_sme_preservemost_from_x2 {i64, i64} @__arm_sme_state()


        


More information about the llvm-commits mailing list