Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/compile: Fix float32 constant generation
Fixes golang#13 math.Float32bits returns a uint32, and then a cast to int64 used to convert it into a 64bit immediate which overflowed the signed int32 bounds. Casting it into a signed int32 first forces the compiler to sign extend the value returned by math.Float32bits which correctly generates the 32bit signed immediate for the MOV instruction. Change-Id: Ia531a26eeb4e344aff490ab73a35b8cf31c9e6dc
- Loading branch information