mirror of
https://github.com/golang/go
synced 2024-11-13 18:00:30 -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:
parent
f842dc160b
commit
a7b83f2287
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user