go/src/cmd
Alberto Donizetti 9ee78af806 cmd/compile: intrinsify math.Sqrt on 386
It seems like all the pieces were already there, it only needed the
final plumbing.

Before:

	0x001b 00027 (test.go:9)	MOVSD	X0, (SP)
	0x0020 00032 (test.go:9)	CALL	math.Sqrt(SB)
	0x0025 00037 (test.go:9)	MOVSD	8(SP), X0

After:

	0x0018 00024 (test.go:9)	SQRTSD	X0, X0

name    old time/op  new time/op  delta
Sqrt-4  4.60ns ± 2%  0.45ns ± 1%  -90.33%  (p=0.000 n=10+10)

Change-Id: I0f623958e19e726840140bf9b495d3f3a9184b9d
Reviewed-on: https://go-review.googlesource.com/96615
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2018-02-23 13:49:55 +00:00
..
addr2line
api cmd/api: don’t rely on hardcoded go versions 2017-12-11 22:28:37 +00:00
asm cmd/asm: add arm64 instructions for math optimization 2018-02-22 03:55:53 +00:00
buildid cmd/buildid: fix rewrite algorithm 2018-01-04 16:56:51 +00:00
cgo cmd/cgo: delete double space in comment 2018-02-15 19:00:36 +00:00
compile cmd/compile: intrinsify math.Sqrt on 386 2018-02-23 13:49:55 +00:00
cover cmd/cover: do not report coverage for assembly functions 2017-11-16 01:41:51 +00:00
dist cmd/go: accept only limited compiler and linker flags in #cgo directives 2018-02-07 15:35:57 +00:00
doc cmd/doc: suppress the error message for *package.ident embedded in struct type 2017-12-20 19:05:19 +00:00
fix all: restore changes from faulty merge/revert 2018-02-12 20:13:59 +00:00
go all: remove "the" duplications 2018-02-18 17:54:20 +00:00
gofmt
internal cmd/asm: add arm64 instructions for math optimization 2018-02-22 03:55:53 +00:00
link all: fix misspellings 2018-02-20 21:02:58 +00:00
nm cmd/internal/goobj: accept int64 in readInt 2017-11-01 18:23:58 +00:00
objdump cmd/objdump: pass the correct execution mode to x86asm.Decode in disasm_x86 on 386 2017-11-10 20:11:20 +00:00
pack cmd/pack: fix export data truncation bug 2017-09-09 14:13:33 +00:00
pprof cmd/pprof: restore printing descriptive errors from net/http/pprof endpoints 2017-06-15 02:14:24 +00:00
test2json cmd/test2json: fix processing of --- BENCH: output 2018-01-05 22:27:17 +00:00
trace cmd/trace: add memory usage reporting 2018-02-21 21:23:08 +00:00
vendor cmd/vendor/github.com/google/pprof: refresh from upstream 2018-02-15 16:25:43 +00:00
vet cmd/vet: warn on unkeyed struct pointer literals 2018-02-21 16:31:04 +00:00