From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by sourceware.org (Postfix) with ESMTPS id B99EB3858424 for ; Fri, 29 Jul 2022 10:09:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B99EB3858424 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=xen0n.name Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xen0n.name DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1659089363; bh=wb09ehV4FLjRJ7Um/U8nlcZS0s1WBMRsqoTyPHErEDA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OWiSNCLmm7oQBxmvEBQq2ZetS8zfYXmleeNd7BVPqzdiKgr676OnAZvK8oMoY2Gk7 tsaWLIFn+m1vbrMWwlYwVSvALL8+jmEo9SbeFUX+GFCP1+Qy9ko3y8HvJxgnb7Nuwp ly8bd4JoyvqIEgk+qnafkfMZ4illeCQjy5XLPJig= Received: from [100.100.57.219] (unknown [220.248.53.61]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 73A0960610; Fri, 29 Jul 2022 18:09:23 +0800 (CST) Message-ID: <9e50e9b3-c48b-0779-42d5-c86694ba8661@xen0n.name> Date: Fri, 29 Jul 2022 18:09:22 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Thunderbird/105.0a1 Subject: Re: [PATCH 2/2] opcodes: LoongArch: add "ret" instruction to reduce typing Content-Language: en-US To: Xi Ruoyao , WANG Xuerui , binutils@sourceware.org Cc: Chenghua Xu , Zhensong Liu , WANG Xuerui References: <20220727110757.2520234-1-i.swmail@xen0n.name> <20220727110757.2520234-3-i.swmail@xen0n.name> From: WANG Xuerui In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2022 10:09:28 -0000 On 2022/7/27 21:26, Xi Ruoyao wrote: > On Wed, 2022-07-27 at 19:07 +0800, WANG Xuerui wrote: >> From: WANG Xuerui >> >> 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