]> Cypherpunks repositories - gostls13.git/commit
cmd/6g: fix float32/64->uint64 conversion
authorShenghou Ma <minux.ma@gmail.com>
Thu, 23 Aug 2012 06:35:26 +0000 (14:35 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Thu, 23 Aug 2012 06:35:26 +0000 (14:35 +0800)
commite80f6a4de1a35cab03e7e4d29e26015895ffe04f
tree8d6630af6868d5010e28966692f63da2417ef1de
parent1cf27acfed67a25bb1e53115739a7d88efd9997d
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]