From 8f8640a057f813e0238b6d3a77643ac07b52f56b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 21 May 2012 12:59:26 -0400 Subject: [PATCH] cmd/6g: allow use of R14, R15 now We stopped reserving them in 2009 or so. R=ken CC=golang-dev https://golang.org/cl/6215061 --- src/cmd/6g/reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/6g/reg.c b/src/cmd/6g/reg.c index e8259c476d..d68625bfff 100644 --- a/src/cmd/6g/reg.c +++ b/src/cmd/6g/reg.c @@ -164,7 +164,7 @@ regopt(Prog *firstp) if(first) { fmtinstall('Q', Qconv); - exregoffset = D_R13; // R14,R15 are external + exregoffset = D_R15; first = 0; } @@ -1577,7 +1577,7 @@ RtoB(int r) int BtoR(int32 b) { - b &= 0x3fffL; // no R14 or R15 + b &= 0xffffL; if(b == 0) return 0; return bitno(b) + D_AX;