From f1404a385499d652b8496acf1caa881bb1e4da48 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Wed, 23 Jan 2019 05:33:39 +0000 Subject: [PATCH] Fix displaced byte load rule. The offset is not a machine register! Yikes. --- src/compiler/machines/aarch64/rules1.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/machines/aarch64/rules1.scm b/src/compiler/machines/aarch64/rules1.scm index 4574854fc..77367d6df 100644 --- a/src/compiler/machines/aarch64/rules1.scm +++ b/src/compiler/machines/aarch64/rules1.scm @@ -291,8 +291,8 @@ USA. (BYTE-OFFSET (REGISTER (? base)) (MACHINE-CONSTANT (? offset)))) (QUALIFIER (not (= offset rsp))) - (standard-binary target base offset - (lambda (target base offset) + (standard-unary target base + (lambda (target base) (LAP (LDR B ,target (+ ,base (&U ,offset))))))) ;;; Store byte with displacement -- 2.25.1