From 60743079122d7a9ae7eb7dc6f8d9c040809018ae Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sat, 19 Jan 2019 23:56:31 +0000 Subject: [PATCH] Note there is a way to do negative offsets. --- src/compiler/machines/aarch64/rules3.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/machines/aarch64/rules3.scm b/src/compiler/machines/aarch64/rules3.scm index ff7b39705..37f7fd8d7 100644 --- a/src/compiler/machines/aarch64/rules3.scm +++ b/src/compiler/machines/aarch64/rules3.scm @@ -92,6 +92,8 @@ USA. (define (entry->pc pc entry) ;; XXX Would be nice to skip the SUB, but LDR doesn't have a signed ;; offset without pre/post-increment. + ;; + ;; XXX Oops -- yes we can: LDUR. (LAP (SUB X ,pc ,entry (&U 8)) (LDR X ,pc ,pc) (ADD X ,pc ,pc ,entry))) -- 2.25.1