xchg.S: Maintain correct sp alignment in ARM64 `call_example'.
[xchg-rax-rax] / xchg.S
diff --git a/xchg.S b/xchg.S
index 0d836c7..8e0bf66 100644 (file)
--- a/xchg.S
+++ b/xchg.S
@@ -380,7 +380,7 @@ proc        call_example
 
 #elif defined(__aarch64__)
 
-       stp     x29, x30, [sp, #-13*8]!
+       stp     x29, x30, [sp, #-14*8]!
        mov     x29, sp
        stp     x19, x20, [sp,  #16]
        stp     x21, x22, [sp,  #32]
@@ -421,7 +421,7 @@ proc        call_example
        ldp     x23, x24, [sp,  #48]
        ldp     x25, x26, [sp,  #64]
        ldp     x27, x28, [sp,  #80]
-       ldp     x29, x30, [sp], #13*8
+       ldp     x29, x30, [sp], #14*8
 
        ret