[Libre-soc-bugs] [Bug 849] binutils: parse macros in SVP64 and refactor code

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Jul 13 06:24:37 BST 2022


https://bugs.libre-soc.org/show_bug.cgi?id=849

--- Comment #27 from Dmitry Selyutin <ghostmansd at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #26)
> total of 10, it's way too much.

...so those who feel uncomfortable can use the macro? :-)

> does 1<<%3 work?
> how about dropping the 1 and using one "<"? sm=<%3
> or "^"? sm=^r3 sm=^%3

These all break the principle of the least astonishment. The last one to the
lesser extent, perhaps. Again, in GNU lingo, it is sm=^%r3.

I like this option.

+ consists of the register and unary operand, as things like ~%r3;
+ really distinguishable;
+ follows the same principles as operands around;
+ short and sweet, easy to remember;
- I'm not sure whether anyone in PPC world has ever seen anything similar.

So I suggest we indeed use ^%r3 (^r3 with -mregnames).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list