]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] cmd/6g: fix float32/64->uint64 conversion
authorShenghou Ma <minux.ma@gmail.com>
Fri, 21 Sep 2012 19:54:45 +0000 (05:54 +1000)
committerShenghou Ma <minux.ma@gmail.com>
Fri, 21 Sep 2012 19:54:45 +0000 (05:54 +1000)
commit7feabb4b94c90add05d6f1e13712e379430921a0
treeb12e2e342d52a87f87ee6e8a4c87cfe2e9e8784a
parentf35d7ff9321df64ccd72ebf2d6931e14250eed3b
[release-branch.go1] cmd/6g: fix float32/64->uint64 conversion

««« backport 5972fe3f4418
cmd/6g: fix float32/64->uint64 conversion
    CVTSS2SQ's rounding mode is controlled by the RC field of MXCSR;
as we specifically need truncate semantic, we should use CVTTSS2SQ.

    Fixes #3804.

R=rsc, r
CC=golang-dev
https://golang.org/cl/6352079

»»»
src/cmd/6g/gsubr.c
test/fixedbugs/bug447.go [new file with mode: 0644]