Note there is a way to do negative offsets.
authorTaylor R Campbell <campbell@mumble.net>
Sat, 19 Jan 2019 23:56:31 +0000 (23:56 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Wed, 21 Aug 2019 21:34:03 +0000 (21:34 +0000)
src/compiler/machines/aarch64/rules3.scm

index ff7b3970564092c62a335619ac0b9a7167c3e18c..37f7fd8d70d24023d18a4fc09c098da2996801c5 100644 (file)
@@ -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)))