Skip to content

Commit

Permalink
[dev.cc] 9g: correct bad proginfo for ADUFFZERO and ADUFFCOPY
Browse files Browse the repository at this point in the history
LGTM=rsc
R=rsc, dave
CC=golang-codereviews
https://golang.org/cl/176130044
  • Loading branch information
aclements committed Nov 21, 2014
1 parent 2f28916 commit ee853da
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cmd/9g/prog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit ee853da

Please sign in to comment.