1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:04:43 -07:00

[dev.cc] 9g: correct bad proginfo for ADUFFZERO and ADUFFCOPY

LGTM=rsc
R=rsc, dave
CC=golang-codereviews
https://golang.org/cl/176130044
This commit is contained in:
Austin Clements 2014-11-21 15:58:01 -05:00
parent 2f28916f02
commit ee853dacf5

View File

@ -134,11 +134,12 @@ proginfo(ProgInfo *info, Prog *p)
}
if(p->as == ADUFFZERO) {
info->reguse |= RtoB(0) | RtoB(2);
info->regset |= RtoB(2);
info->reguse |= (1<<D_R0) | RtoB(3);
info->regset |= RtoB(3);
}
if(p->as == ADUFFCOPY) {
info->reguse |= RtoB(0) | RtoB(2) | RtoB(3);
info->regset |= RtoB(2) | RtoB(3);
// TODO(austin) Revisit when duffcopy is implemented
info->reguse |= RtoB(3) | RtoB(4) | RtoB(5);
info->regset |= RtoB(3) | RtoB(4);
}
}