1
0
mirror of https://github.com/golang/go synced 2024-11-12 06:30:21 -07:00

5g: fix out of registers bug

Same fix as 6g, tripped by the 6g test case.

R=ken2
CC=golang-dev
https://golang.org/cl/5651074
This commit is contained in:
Russ Cox 2012-02-11 00:04:37 -05:00
parent f842dc160b
commit a7b83f2287

View File

@ -402,9 +402,9 @@ abop: // asymmetric binary
regalloc(&n2, nr->type, N);
cgen(nr, &n2);
} else {
regalloc(&n2, nr->type, N);
regalloc(&n2, nr->type, res);
cgen(nr, &n2);
regalloc(&n1, nl->type, res);
regalloc(&n1, nl->type, N);
cgen(nl, &n1);
}
gins(a, &n2, &n1);