diff options
| author | fanzha02 <fannie.zhang@arm.com> | 2023-01-13 06:22:34 +0000 |
|---|---|---|
| committer | Joel Sing <joel@sing.id.au> | 2023-02-28 05:12:50 +0000 |
| commit | 41e8679611fdee738065b91588b7016880ffde61 (patch) | |
| tree | e2b054be3d5052e62ceff875ca2eac75b4fd008d /src/debug | |
| parent | af2bc6de6203608f26217d59db0d1a31549272e6 (diff) | |
| download | go-41e8679611fdee738065b91588b7016880ffde61.tar.xz | |
cmd/asm: remove the incorrect check of LDADDx-like instructions
According to the ARM Architecture Reference Manual, LDADDx-like
instructions can take rt as zr when the encode A bit is 0. They
are used by the alias STADDx-like instructions. The current
assembler adds incorrect constraints for them, which is rt can't
be zr when field.enc A is 0. This patch removes it.
Add test cases.
Reported by Matt Horsnell <matt.horsnell@arm.com>
The reference:
https://developer.arm.com/documentation/ddi0602/2022-12/Base-Instructions
Change-Id: Ia2487a5e3900e32994fc14edaf03deeb245e70c6
Reviewed-on: https://go-review.googlesource.com/c/go/+/462295
Reviewed-by: Matt Horsnell <matthew.horsnell@gmail.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/debug')
0 files changed, 0 insertions, 0 deletions
