[PATCH] RISC-V: Mark fgt.*/fge.* as instruction alias

Nelson Chu nelson@rivosinc.com
Tue Apr 29 07:28:25 GMT 2025


Umm I think it's similar to the
commit 839189bc932ea02c9647a3ad829dda72f8a9562c,
RISC-V: re-arrange opcode table for consistent alias handling

If we mark the instruction as the alias, then it should be moved to the
top, and then prioritize dump to the alias.  Otherwise should pass
-Mno-aliases to the dis-assembler.  So if fgt is the alias of flt, then we
probably should dump flt to fgt by default.

Nelson


On Tue, Apr 29, 2025 at 1:57 PM Jan Beulich <jbeulich@suse.com> wrote:

> On 29.04.2025 07:47, Kito Cheng wrote:
> > Those instructions could be used in assembly code, but just not able to
> > dump in that way, so I am not sure if we should reorder that to change
> the
> > disassemble result since those alias is unlike others alias, those alias
> > are just different operand order which means ...flt will always display
> as
> > fgt if we change the order.
>
> Only if you move it up too far. I expect Nelson meant for you to move it
> to immediately after flt, to match a pattern we follow elsewhere (I think).
>
> Jan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250429/f42fc9b6/attachment.htm>


More information about the Binutils mailing list