This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][v8.3a] Don't emit LDRA '[xN]!' alias in disassembly.
ClosedPublic

Authored by simon_tatham on Nov 28 2019, 4:07 AM.

Details

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.

Diff Detail

Event Timeline

simon_tatham created this revision.Nov 28 2019, 4:07 AM
This revision is now accepted and ready to land.Nov 28 2019, 5:57 AM
This revision was automatically updated to reflect the committed changes.