[llvm] AArch64: Fix undefined behavior in sme calling convention test (PR #165183)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 26 18:28:54 PDT 2025
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/165183
Mismatch of callsite and callee calling conventions
>From aa24c2af8cc04729938cd40335f7880bfd1f9bdb Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Sun, 26 Oct 2025 18:27:36 -0700
Subject: [PATCH] AArch64: Fix undefined behavior in sme calling convention
test
Mismatch of callsite and callee calling conventions
---
.../AArch64/sme-support-routines-calling-convention.ll | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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