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

6g: fix registerization of temporaries

Use correct range in allocated register test.

R=rsc, ken2
CC=golang-dev
https://golang.org/cl/4073049
This commit is contained in:
Eoghan Sherry 2011-02-01 12:12:42 -05:00 committed by Russ Cox
parent e71d8a2fe4
commit e6a934a1d9

View File

@ -246,7 +246,7 @@ anyregalloc(void)
{
int i, j;
for(i=D_AL; i<=D_DI; i++) {
for(i=D_AX; i<=D_R15; i++) {
if(reg[i] == 0)
goto ok;
for(j=0; j<nelem(resvd); j++)