RFC: AArch64/ARM64 canonical assembler syntax

Owen Anderson resistor at mac.com
Tue Apr 29 12:18:11 PDT 2014


On Apr 29, 2014, at 8:21 AM, Tim Northover <t.p.northover at gmail.com> wrote:

> 4. Hex in almost all cases (certainly for logical insts, probably
> arithmetic, my one uncertainty is loads & stores: "ldr x0, [x1,
> #0x123]" looks odd somehow, but that could be me). The exception is
> probably immediates in the 0-31 or 0-63 range (e.g. I like "lsl x0,
> x1, #55")

I think this one can be decided on a case-by-case basis.  We should *accept* all reasonable forms, but print them in the form that’s most reasonable for the instruction.  That would generally be decimal for arithmetic and shifts, hex for logical operations, floating point where reasonable (falling back to hex for NaN’s, maybe?).

—Owen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140429/ffb2a5bc/attachment.html>


More information about the llvm-commits mailing list