]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: truncate when converting floats to ints
authorTodd Neal <todd@tneal.org>
Wed, 2 Sep 2015 00:05:44 +0000 (19:05 -0500)
committerTodd Neal <todd@tneal.org>
Wed, 2 Sep 2015 01:11:29 +0000 (01:11 +0000)
commit634b50c6e138669d5518c0c02d3bfba79e1278ab
tree0cfeed7df6b21278bcc8f24bd9bc9582acc34a15
parent4219aba5dbbc94d82a4b80c1f6ecc97d7eb3a62d
[dev.ssa] cmd/compile: truncate when converting floats to ints

Modified to use the truncating conversion.

Fixes reflect.

Change-Id: I47bf3200abc2d2c662939a2a2351e2ff84168f4a
Reviewed-on: https://go-review.googlesource.com/14167
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/testdata/fp_ssa.go
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteAMD64.go