]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/6g: allow use of R14, R15 now
authorRuss Cox <rsc@golang.org>
Mon, 21 May 2012 16:59:26 +0000 (12:59 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 21 May 2012 16:59:26 +0000 (12:59 -0400)
We stopped reserving them in 2009 or so.

R=ken
CC=golang-dev
https://golang.org/cl/6215061

src/cmd/6g/reg.c

index e8259c476d97e4f383e28c10910ecac03fc0f837..d68625bfffa51a53260f58eecbd9137b0c50070d 100644 (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;