qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit fd33b2ef25ff55217e229666c4d2f0877aac2515
parent 5e0ba156116036ba42d7ce8e361004ea20fb2d6b
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 26 Mar 2021 14:39:55 +0100

arm64: Add LR to list of registers to save

Tested-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
Fixes: https://todo.sr.ht/~sircmpwn/hare/312

Diffstat:
Marm64/all.h | 2+-
Marm64/targ.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arm64/all.h b/arm64/all.h @@ -14,7 +14,7 @@ enum Arm64Reg { NFPR = V30 - V0 + 1, NGPR = SP - R0 + 1, - NGPS = R18 - R0 + 1, + NGPS = R18 - R0 + 1 /* LR */ + 1, NFPS = (V7 - V0 + 1) + (V30 - V16 + 1), NCLR = (R28 - R19 + 1) + (V15 - V8 + 1), }; diff --git a/arm64/targ.c b/arm64/targ.c @@ -3,7 +3,7 @@ int arm64_rsave[] = { R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R14, R15, - IP0, IP1, R18, + IP0, IP1, R18, LR, V0, V1, V2, V3, V4, V5, V6, V7, V16, V17, V18, V19, V20, V21, V22, V23, V24, V25, V26, V27, V28, V29, V30,