Commit 8f8640a0 authored by Russ Cox's avatar Russ Cox

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
parent 40b31070
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment