1
0
mirror of https://github.com/golang/go synced 2024-11-12 04:40:22 -07:00

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
This commit is contained in:
Russ Cox 2012-05-21 12:59:26 -04:00
parent 40b310706b
commit 8f8640a057

View File

@ -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;