[PATCH 2/2] opcodes: LoongArch: add "ret" instruction to reduce typing
WANG Xuerui
i.swmail@xen0n.name
Fri Jul 29 10:09:22 GMT 2022
On 2022/7/27 21:26, Xi Ruoyao wrote:
> 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`" :(.
Yeah I plan to do so after finishing the insn format spec [1]. (I'll
need the formal syntax defined to allow for concise and precise
description of both insn encoding and asm syntax). The pseudo-insns are
to be included in the assembly syntax conventions doc.
[1]: https://github.com/loongson/LoongArch-Documentation/pull/56
More information about the Binutils
mailing list