]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: fix encoding error for SYS instruction
authoreric fang <eric.fang@arm.com>
Thu, 31 Mar 2022 07:34:01 +0000 (07:34 +0000)
committerEric Fang <eric.fang@arm.com>
Fri, 1 Apr 2022 01:23:42 +0000 (01:23 +0000)
commitecee4a32918c5e575303530abb9a504a235a1c71
tree76b0e9bcc74f08fb35840481b1dca722089e715b
parentbe8ee5a58f8c30e95e425779fb31b2ae4e35cb8c
cmd/internal/obj/arm64: fix encoding error for SYS instruction

Currently using the SYS instruction will report the "illegal combination"
error. This is because the assembler parser treats the register operand
as p.To, while optab defines it as p.Reg. This CL fixes this bug.

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