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

via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 26 18:30:29 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-aarch64

Author: Matt Arsenault (arsenm)

<details>
<summary>Changes</summary>

Mismatch of callsite and callee calling conventions

---
Full diff: https://github.com/llvm/llvm-project/pull/165183.diff


1 Files Affected:

- (modified) llvm/test/CodeGen/AArch64/sme-support-routines-calling-convention.ll (+3-3) 


``````````diff
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()

``````````

</details>


https://github.com/llvm/llvm-project/pull/165183


More information about the llvm-commits mailing list