From c08784cd5141b978e61ef70c6c6a2275463ea5b6 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Mon, 21 Jan 2019 22:39:29 +0000 Subject: [PATCH] Fix indexing in MOVE-FRAME-UP code: objects, not bytes, here. And with this, the cold load completes on aarch64! --- src/compiler/machines/aarch64/rules3.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/machines/aarch64/rules3.scm b/src/compiler/machines/aarch64/rules3.scm index 29feed26c..5517b0934 100644 --- a/src/compiler/machines/aarch64/rules3.scm +++ b/src/compiler/machines/aarch64/rules3.scm @@ -322,7 +322,7 @@ USA. (LAP)) ,@(load-unsigned-immediate index loop-count) (LABEL ,label) - (SUB X ,index ,index (&U #x10)) + (SUB X ,index ,index (&U 2)) (LDP X ,temp1 ,temp2 (PRE+ ,regnum:stack-pointer (& (* 8 -2)))) (STP X ,temp1 ,temp2 (PRE+ ,address (& (* 8 -2)))) (CBNZ X ,index (@PCR ,label ,regnum:scratch-0)) -- 2.25.1