[PATCH 2/2] opcodes: LoongArch: add "ret" instruction to reduce typing

Xi Ruoyao xry111@xry111.site
Wed Jul 27 13:26:06 GMT 2022


On Wed, 2022-07-27 at 19:07 +0800, WANG Xuerui wrote:
> From: WANG Xuerui <git@xen0n.name>
> 
> This syntactic sugar is present in both classical and emerging
> architectures, like Alpha, SPARC and RISC-V, and assembler macros
> doing the same thing can already be found in the wild e.g. [1], proving
> the feature's popularity. It's better to provide support directly in the
> assembler so downstream users wouldn't have to re-invent this over and
> over again.

Maybe an off-topic question: should we document the syntactic sugars in
LoongArch-Documentation.git?  I've already seen at least 3 different
"re-invented `move`" :(.

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


More information about the Binutils mailing list