From 2960be9a98d8971983b8ea53e38ccfba63508411 Mon Sep 17 00:00:00 2001 From: yeti0904 Date: Sun, 18 Aug 2024 14:27:09 +0100 Subject: [PATCH] fix ARM backend --- source/backends/arm64.d | 4 +++- std | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/backends/arm64.d b/source/backends/arm64.d index e6ad6f1..c504a37 100644 --- a/source/backends/arm64.d +++ b/source/backends/arm64.d @@ -563,7 +563,9 @@ class BackendARM64 : CompilerBackend { } // copy data to parameters - output ~= format("sub x9, x19, #%d\n", paramSize); + output ~= format("sub x19, x19, #%d\n", paramSize); + //output ~= format("sub x9, x19, #%d\n", paramSize); + output ~= "mov x9, x19\n"; output ~= "mov x10, x20\n"; output ~= format("mov x11, #%d\n", paramSize); output ~= "1:\n"; diff --git a/std b/std index 83b046e..48759a7 160000 --- a/std +++ b/std @@ -1 +1 @@ -Subproject commit 83b046e2092d85250a704717e7925ddc90a31558 +Subproject commit 48759a7ef32d2874ed65651f6d06520150447909