mirror of
https://github.com/golang/go
synced 2025-05-23 05:58:00 +00:00
cmd/compile: add softfloat support to mips64{,le}
mips64 softfloat support is based on mips implementation and introduces new enviroment variable GOMIPS64. GOMIPS64 is a GOARCH=mips64{,le} specific option, for a choice between hard-float and soft-float. Valid values are 'hardfloat' (default) and 'softfloat'. It is passed to the assembler as 'GOMIPS64_{hardfloat,softfloat}'. Change-Id: I7f73078627f7cb37c588a38fb5c997fe09c56134 Reviewed-on: https://go-review.googlesource.com/108475 Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
committed by
Cherry Zhang
parent
62adf6fc2d
commit
2959128dc5
doc
src
cmd
compile
internal
mips64
dist
go
internal
objabi
runtime
test
@ -40,7 +40,8 @@ func sqrt(x float64) float64 {
|
||||
// 386/387:"FSQRT" 386/sse2:"SQRTSD"
|
||||
// arm64:"FSQRTD"
|
||||
// arm/7:"SQRTD"
|
||||
// mips/hardfloat:"SQRTD" mips64:"SQRTD"
|
||||
// mips/hardfloat:"SQRTD" mips/softfloat:-"SQRTD"
|
||||
// mips64/hardfloat:"SQRTD" mips64/softfloat:-"SQRTD"
|
||||
return math.Sqrt(x)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user