From: Russ Cox Date: Thu, 14 Aug 2014 18:34:14 +0000 (-0400) Subject: [dev.power64] cmd/9c: fix constant truncation in optimizer X-Git-Tag: go1.5beta1~2684^2~25^2~31 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=25bde37af4042d430274895abb9751cb3c786730;p=gostls13.git [dev.power64] cmd/9c: fix constant truncation in optimizer This is what broke getpopcount, but that code had it coming. LGTM=minux R=minux CC=golang-codereviews https://golang.org/cl/130000044 --- diff --git a/src/cmd/9c/reg.c b/src/cmd/9c/reg.c index 658fa3211e..38bb2e9def 100644 --- a/src/cmd/9c/reg.c +++ b/src/cmd/9c/reg.c @@ -558,7 +558,7 @@ mkvar(Addr *a, int docon) { Var *v; int i, t, n, et, z; - int32 o; + int64 o; Bits bit; LSym *s; @@ -617,6 +617,8 @@ out: for(z=0; zetype = TVLONG; if(s == nil) { for(z=0; z