diff options
author | Vladimir Stefanovic <vladimir.stefanovic@imgtec.com> | 2017-05-22 18:23:31 +0200 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-11-30 16:57:08 +0000 |
commit | 12abacb5553d6aa2fc68dfba0b96ba7f3ec95c76 (patch) | |
tree | c0149cde89c5126f3cd4a50380d3b92fd7df3316 /doc/asm.html | |
parent | 4f5018594db1c08580420bf6431bc237abc41fc7 (diff) | |
download | go-12abacb5553d6aa2fc68dfba0b96ba7f3ec95c76.tar.gz go-12abacb5553d6aa2fc68dfba0b96ba7f3ec95c76.zip |
cmd/go, cmd/dist: introduce GOMIPS environment variable
GOMIPS is a GOARCH=mips{,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
'GOMIPS_{hardfloat,softfloat}'.
Note: GOMIPS will later also be used for a choice of MIPS instruction
set (mips32/mips32r2).
Updates #18162
Change-Id: I35417db8625695f09d6ccc3042431dd2eaa756a6
Reviewed-on: https://go-review.googlesource.com/37954
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'doc/asm.html')
-rw-r--r-- | doc/asm.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/asm.html b/doc/asm.html index 79dc7df322..e3e17f85f5 100644 --- a/doc/asm.html +++ b/doc/asm.html @@ -876,6 +876,12 @@ Addressing modes: </ul> +<p> +The value of <code>GOMIPS</code> environment variable (<code>hardfloat</code> or +<code>softfloat</code>) is made available to assembly code by predefining either +<code>GOMIPS_hardfloat</code> or <code>GOMIPS_softfloat</code>. +</p> + <h3 id="unsupported_opcodes">Unsupported opcodes</h3> <p> |