mirror of
https://github.com/golang/go
synced 2024-11-17 07:45:09 -07:00
cmd/compile: clean up arm64 32bit pointer in Reverse
Change-Id: I0751270c0f656a501b389f2e2bb0e959d6f5a0e6 Reviewed-on: https://go-review.googlesource.com/c/go/+/396054 Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Trust: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
913ecf492d
commit
40504892c1
@ -4496,9 +4496,6 @@ func InitTables() {
|
||||
sys.ARM64)
|
||||
addF("math/bits", "Reverse",
|
||||
func(s *state, n *ir.CallExpr, args []*ssa.Value) *ssa.Value {
|
||||
if s.config.PtrSize == 4 {
|
||||
return s.newValue1(ssa.OpBitRev32, types.Types[types.TINT], args[0])
|
||||
}
|
||||
return s.newValue1(ssa.OpBitRev64, types.Types[types.TINT], args[0])
|
||||
},
|
||||
sys.ARM64)
|
||||
|
Loading…
Reference in New Issue
Block a user