]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: adjust rule for VMOVQ instruction
authoreric fang <eric.fang@arm.com>
Wed, 5 Jan 2022 09:20:06 +0000 (09:20 +0000)
committerEric Fang <eric.fang@arm.com>
Mon, 17 Jan 2022 09:23:25 +0000 (09:23 +0000)
commit897b3da2e079b9b940b309747305a5379fffa6ec
treeca48cbb2f1e03c0803243e1bda717c08e35db6cb
parent3b5eec937018be98549dea7067964018f0e5824c
cmd/internal/obj/arm64: adjust rule for VMOVQ instruction

The VMOVQ instruction stores a 128-bit number into a V register, for
example:
    VMOVQ $0x1122334455667788, $0x99aabbccddeeff00, V2
From a documentation (https://pkg.go.dev/cmd/internal/obj/arm64) point
of view, the value in V2 should be 0x112233445566778899aabbccddeeff00,
however the value is actually 0x99aabbccddeeff001122334455667788. The
reason is that we misplaced the high 64-bit and the low 64-bit in the
literal pool. To maintain backward compatibility, this CL adjusts the
rule of VMOVQ instruction to make the documentation consistent with the
code.

Fixes #50528

Change-Id: Ib51f59e97c55252ab2a50bbc6ba4d430732a7a04
Reviewed-on: https://go-review.googlesource.com/c/go/+/377055
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Eric Fang <eric.fang@arm.com>
Run-TryBot: Eric Fang <eric.fang@arm.com>
Trust: Eric Fang <eric.fang@arm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/internal/obj/arm64/asm7.go
src/cmd/internal/obj/arm64/doc.go