mirror of
https://github.com/golang/go.git
synced 2024-09-30 06:47:04 +00: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:
parent
40b310706b
commit
8f8640a057
@ -164,7 +164,7 @@ regopt(Prog *firstp)
|
|||||||
|
|
||||||
if(first) {
|
if(first) {
|
||||||
fmtinstall('Q', Qconv);
|
fmtinstall('Q', Qconv);
|
||||||
exregoffset = D_R13; // R14,R15 are external
|
exregoffset = D_R15;
|
||||||
first = 0;
|
first = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1577,7 +1577,7 @@ RtoB(int r)
|
|||||||
int
|
int
|
||||||
BtoR(int32 b)
|
BtoR(int32 b)
|
||||||
{
|
{
|
||||||
b &= 0x3fffL; // no R14 or R15
|
b &= 0xffffL;
|
||||||
if(b == 0)
|
if(b == 0)
|
||||||
return 0;
|
return 0;
|
||||||
return bitno(b) + D_AX;
|
return bitno(b) + D_AX;
|
||||||
|
Loading…
Reference in New Issue
Block a user