Commit e6a934a1 authored by Eoghan Sherry's avatar Eoghan Sherry Committed by Russ Cox

6g: fix registerization of temporaries

Use correct range in allocated register test.

R=rsc, ken2
CC=golang-dev
https://golang.org/cl/4073049
parent e71d8a2f
......@@ -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++)
......
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