aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/mips64
diff options
context:
space:
mode:
authorMilan Knezevic <milan.knezevic@mips.com>2018-04-26 15:37:27 +0200
committerCherry Zhang <cherryyz@google.com>2018-04-27 14:50:17 +0000
commit2959128dc57618d7d5773411403ef0a255a9f72f (patch)
tree8f626d6af629fe6db769edcff712ff19a8342b24 /src/cmd/compile/internal/mips64
parent62adf6fc2d70d9270b4213218e622c15504966be (diff)
downloadgo-2959128dc57618d7d5773411403ef0a255a9f72f.tar.gz
go-2959128dc57618d7d5773411403ef0a255a9f72f.zip
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>
Diffstat (limited to 'src/cmd/compile/internal/mips64')
-rw-r--r--src/cmd/compile/internal/mips64/galign.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/mips64/galign.go b/src/cmd/compile/internal/mips64/galign.go
index 910230f4f4..5252719e8e 100644
--- a/src/cmd/compile/internal/mips64/galign.go
+++ b/src/cmd/compile/internal/mips64/galign.go
@@ -18,7 +18,7 @@ func Init(arch *gc.Arch) {
}
arch.REGSP = mips.REGSP
arch.MAXWIDTH = 1 << 50
-
+ arch.SoftFloat = objabi.GOMIPS64 == "softfloat"
arch.ZeroRange = zerorange
arch.ZeroAuto = zeroAuto
arch.Ginsnop = ginsnop