package p
import "encoding/binary"
func f(b []byte, x *[8]byte) {
_ = b[8]
t := binary.LittleEndian.Uint64(x[:])
binary.LittleEndian.PutUint64(b, t)
}
This should compile down to two MOVQs on amd64, one to load from x and one to write to b.
Instead, it compiles to a series of smaller MOVxs. The coalescing rules may need more cases added.
cc @randall77 @dr2chase @martisch @mundaym
This should compile down to two MOVQs on amd64, one to load from x and one to write to b.
Instead, it compiles to a series of smaller MOVxs. The coalescing rules may need more cases added.
cc @randall77 @dr2chase @martisch @mundaym