]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: intrinsify math/bits/ReverseBytes{32|64} for 386
authorWayne Zuo <wdvxdr@golangcn.org>
Mon, 6 Feb 2023 13:21:52 +0000 (21:21 +0800)
committerWayne Zuo <wdvxdr@golangcn.org>
Wed, 8 Feb 2023 03:43:23 +0000 (03:43 +0000)
commitd7ac5d148039822159601ebbf3512431d81e204f
treeee1a0104884bb4fd611642f06b20ad4b066cbe28
parentabd55d84832b1ca4129bfa0fbc13dba64d2164d2
cmd/compile: intrinsify math/bits/ReverseBytes{32|64} for 386

The BSWAPL instruction is supported in i486 and newer.
https://github.com/golang/go/wiki/MinimumRequirements#386 says we
support "All Pentium MMX or later". The Pentium is also referred to as
i586, so that we are safe with these instructions.

Change-Id: I6dea1f9d864a45bb07c8f8f35a81cfe16cca216c
Reviewed-on: https://go-review.googlesource.com/c/go/+/465515
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/ssagen/ssa.go
test/codegen/mathbits.go