<div dir="ltr">Hi Tim,<div><br></div><div>I like my lawns mowed in a checkerboard pattern.</div><div><br></div><div>More concretely, my own biases go the same way as yours, pretty much.</div><div>2. I prefer UPPER_CASE for system registers personally, but I really do not care.</div>
<div>3. Definately with lsl/msl. Less magic is better.</div><div><br></div><div>Cheers,</div><div><br></div><div>James</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 April 2014 16:21, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
In case the paint on everyone's previous bike shed has thoroughly<br>
dried and they find themselves unaccountably without a lawn...<br>
<br>
There are a few areas where AArch64 and ARM64 have chosen different<br>
ways to print the same assembly (actually, even within a single<br>
backend it's happened), and I think it would be good to settle on one,<br>
preferably with as much self-consistency as we can muster.<br>
<br>
So, the main issues are:<br>
<br>
1. Floating-point immediates: 1.2500000e-01 or 0.12500000?<br>
2. System registers & kin: should they be UPPER_CASE or lower_case?<br>
3. Complex immediates: do we stick to the ARM ARM or print convenience<br>
syntax: "add x0, x1, #123, lsl #12" or "add x0, x1, x2, #503808".<br>
4. Integer immediates: hex or decimal<br>
5. Hashes with relocated exprs or not: "ldr x0, [x1, #:lo12:symbol]"<br>
or "ldr x0, [x1, :lo12:symbol]".<br>
<br>
My opinions are:<br>
1. 0.12500000 (I find scientific notation works intuitively in LaTeX,<br>
but not with the "e")<br>
2. lower_case (everything else is, switching to upper-case just for<br>
those few operands looks weird).<br>
3. Print it with the "lsl"/"msl"/etc (I prefer explicit notations).<br>
4. Hex in almost all cases (certainly for logical insts, probably<br>
arithmetic, my one uncertainty is loads & stores: "ldr x0, [x1,<br>
#0x123]" looks odd somehow, but that could be me). The exception is<br>
probably immediates in the 0-31 or 0-63 range (e.g. I like "lsl x0,<br>
x1, #55")<br>
5. I prefer with the hashes.<br>
<br>
What does everyone else think, before I run off and change everything?<br>
<br>
Cheers.<br>
<br>
Tim.<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>