]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: invert SP check
authorJoel Sing <joel@sing.id.au>
Sat, 7 Jan 2023 15:03:30 +0000 (02:03 +1100)
committerJoel Sing <joel@sing.id.au>
Thu, 23 Feb 2023 06:09:10 +0000 (06:09 +0000)
commitecff9c9335584a58ff6c45e71876ba60d982676c
treeec0484734bf1108f7a9d171bd0ee8fef5dcd20db
parent8f3a13de9ac8c207b5bf1258179924dc09df53f2
cmd/internal/obj/arm64: invert SP check

Check for REGSP use before checking for invalid instructions. This simplifies
the code and avoids duplicated op generation.

Change-Id: I302e3b54a29742f2c48024b25162200f5966cfaa
Reviewed-on: https://go-review.googlesource.com/c/go/+/461138
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Eric Fang <eric.fang@arm.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/arm64/asm7.go