[AArch64][v8.3a] Don't emit LDRA '[xN]!' alias in disassembly.
authorSimon Tatham <simon.tatham@arm.com>
Thu, 28 Nov 2019 15:31:41 +0000 (15:31 +0000)
committerSimon Tatham <simon.tatham@arm.com>
Thu, 28 Nov 2019 15:31:59 +0000 (15:31 +0000)
commitacd7fe8636ab1d892a935ca747ed9bb6420e2253
tree82e77cee38d390027eb518fffbbbb559675c9fd1
parented864745c97ece86e29957cb94b5a3e8dee86859
[AArch64][v8.3a] Don't emit LDRA '[xN]!' alias in disassembly.

Summary:
In rG643ac6c0420b, the syntax `ldraa x1, [x0]!` was added as an alias
for `ldraa x1, [x0, #0]!`. That syntax is less obvious in meaning, and
also will not be accepted by assemblers that haven't been updated yet.
So it would be better not to emit it as the preferred disassembly for
that instruction.

This change lowers the EmitPriority of the new alias so that the more
explicit syntax `[x0, #0]!` is preferred by the disassembler. The new
syntax is still accepted by the assembler.

Reviewers: ab, ostannard

Reviewed By: ostannard

Subscribers: kristof.beyls, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70813
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/test/MC/AArch64/armv8.3a-signed-pointer.s
llvm/test/MC/Disassembler/AArch64/armv8.3a-signed-pointer.txt