From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2053.outbound.protection.outlook.com [40.107.21.53]) by sourceware.org (Postfix) with ESMTPS id 9DB273858D28 for ; Thu, 26 Jan 2023 09:41:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9DB273858D28 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YY6XN9an1h1ovTWZFGWhxN0poQfMj3UuhVM4nQrHcHS7pv2wq2Lby2T3+Nq5Q/cRqRQLdX+3SxBYSzOGZSeOtCbaz1PaoEf3n3M+VUZ5Ark9wjSv5urJvy/hMVlayAzzujQ3RH37PHM8N5+xBn4+Qa2Yvs3MzWLdTjXiLu/NlXQbry2DuXgPZ64eGwqqbHrAvpf42r851Vqj7wYQVoJ/+uC2ONpK7+46eAe580aey92dIcXFZXuZnq9mUgNr7WYa8GQIPfxGjMIsfUK1CzQCK1X4DSqy6AMT/xhCCjPqgYs1I7ecEXIQt9N3VCabFNc7Vtpc7LTRAFvuYkupk9jeMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9frmS2wYmnbRaj+GX4MnghdwclhBX5CNamLM2/9Wi2s=; b=RVVElYBiqnt/PNb4UuGZJUd4aicKLAnMgAE4HOjpT1BBsvsb55fsZH+xEzLnA2cAo/yQvbqcucid/NVXOykeN2UVOUXFR0v8bPzWG9vmsUgqaV1prGJp57TWYURWa6b405j0y+hJFM4Leg7umHVKHR5kWmvQ/uT406ekoBBjUGgjJDrKnRlm0j2ttuurT6l6iz29wIJmLBP5BkGrj9Xm4461L8zpLhdzeXqjhu+gOQXuce1L2ERUxst5xCALDyAHwMoLW5KmrVXzDO6JJAb3JO4qLkbVtE8KkjX417T/DcYL7qGlDLWFUM+HGiiM2nHFnW1O867ziWg19b6mFeHjvw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9frmS2wYmnbRaj+GX4MnghdwclhBX5CNamLM2/9Wi2s=; b=1tB9pMY39kV07DQc/JiO5VZqQ9P9O4UbH6TLvtzsJRm8DOJXcP2bSCDetp4Z3/PuuCpi9ZeoUaXO4uDsrCHlmeaoyNmtM2bZPQevAAeLZLo9CUBFc6DIsYzD32whJK93Z/706CuhoCcIJNhns0F4jHubW32r0hdpMDqICepo57yivkVC4MUyD3e8FwyQS4/xdNUR9L77xDvCFUH7HnKrqyeum9OitelI+dzJtlUOQdp1RHQV3HFmaEOVsb90dAW2jpC+HSLCTuJjH/kQv9+teHfLTsOe22dSzsaCDbhn1juF9h5nSfjGk4QHkHPWkJ1+OQnujv2jG0AADi0fcrC53g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) by PAXPR04MB8367.eurprd04.prod.outlook.com (2603:10a6:102:1c7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.22; Thu, 26 Jan 2023 09:41:23 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::2991:58a4:e308:4389]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::2991:58a4:e308:4389%7]) with mapi id 15.20.6043.022; Thu, 26 Jan 2023 09:41:23 +0000 Message-ID: <9686b130-4ebe-cf3e-5108-55ecf18c2db9@suse.com> Date: Thu, 26 Jan 2023 10:41:21 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 1/3] RISC-V: prefer SLT{,U} aliases for SLTI{,U} Content-Language: en-US To: "Maciej W. Rozycki" Cc: Binutils , Palmer Dabbelt , Andrew Waterman , Jim Wilson , Nelson Chu References: <678b275f-1930-4a59-dfba-fe21cd548fca@suse.com> <95936261-d824-9128-1be9-ba7dfe12b042@suse.com> <54e213db-3268-e7b5-6f11-09dc14a1a49e@suse.com> From: Jan Beulich In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0037.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:92::6) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|PAXPR04MB8367:EE_ X-MS-Office365-Filtering-Correlation-Id: cfa15e1f-7905-4056-77ea-08daff817c5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bi46+IOrcVKNAx+DBvubT+OH6vJHW/sjPOVqsnnehVyJ2hDRYCnxtYbSycLiau6AiUSveOv6S1GTAYXVitJ3RYDIgMl2pguVPqdS6OY2qrVfWt0jApC1LUTSnv3iBT49vyV75ATztVo3FAj4cpz3Yz+1HaKaYgQcxhsVlEeT/IBs3SsRSuRhT0Kkk4ECqu7yqTN5Lw1aIY9ju7CD2KP6WfAdpKxi5QtGfcV01RMdtxUovQ82NA7FerGflwDgVdKIy8ShNnGwcT7CDZKaTbo0QU69v9pZn3AcMswu6qgrwC+lVeHd92NnpDiMpVyw/LnOsiDzRkQTc8vUb4stK0o3LAhri7QwDa4w3SMHflUfwzSbI+azpaHjzJIUhLHXSqa9XeyAf4y7hmMDBESHeHPi82nfdVcYcfxI1Zu1ph0rz7eNpJDWWPp9frkawbtKXNNVNVEOiwFA/IdQDVc9ILYZV3n1ouqh0RWRXY4XBkmTxqSip+hLZ+cegZPG64nDGSJaLzsNLaabSI0koeQu8dDOswKrMN+IfJDelmGBV0HXMtEsihD7jX3z6+Cvg/KyNm6JJZSzHRAwskb0Y+5e2PUa1xqmspANxzSk5Xs6EIvpHaQR9ztqOa+A7ResPmrj8QHeJYqEU1CrlqSx/X6WKlRnrLwtFtM79JN0DNgb86O2FP0GgPlUo0eUfr90EaZPlngW5TP5jF6WukCyHZFKGNNTuIAKCe5+B+JHaRXB3VSPOEI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6560.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(136003)(39860400002)(346002)(396003)(376002)(451199018)(66476007)(66946007)(66556008)(41300700001)(4326008)(8676002)(6916009)(86362001)(6512007)(31696002)(38100700002)(6486002)(54906003)(478600001)(316002)(2616005)(36756003)(53546011)(6506007)(186003)(26005)(2906002)(66899018)(31686004)(5660300002)(8936002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dTIxR3pOOEdiVmhBYkJsTG16cXptTGFNTyt4MU8zSnNVbDVmV2Ywd0FVUXRI?= =?utf-8?B?YWxMQnBzOWpMTG9Wa0FzMDNQMktDMEJOZDkyeHNaNDd5Q01DSHZrOFp4UXkr?= =?utf-8?B?dU5mN2hsVWRKSUIvMG0wWUtUMGRBN3hjZGdwSGM1OUw4ZEFDR0EwU2U0NXJy?= =?utf-8?B?aFNRbS83RTQ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I4WDFpSGZTUDZ6eW1VUzMr?= =?utf-8?B?ekJPRXBGS09OM3JJZHo2Y0xLVHpjMjUzaVAvQUNHdURXTi96aEcxTmwvVGt3?= =?utf-8?B?TDd2Y0V0YkI2aFZtbjVxLzljZzBQY01zVng4a3Z0YklWM0ZHVEJZdlUvSUFW?= =?utf-8?Q?xlJNqzMQTQgKuLQfQYv0CMsfQ?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: cfa15e1f-7905-4056-77ea-08daff817c5b X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2023 09:41:23.0454 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AOES3/CCejSPiiW6rfNrddXHg+zsNvfYPDjpl0FbBfdU5dY160kNCe6n0JkW2rRUQWTdocWrBJM1ABhoTmmFmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8367 X-Spam-Status: No, score=-3029.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 List-Id: On 25.01.2023 16:22, Maciej W. Rozycki wrote: > On Wed, 25 Jan 2023, Jan Beulich wrote: > >>> This is however what these instructions have been named in the ISA and >>> the assembly dialect. In the case of NOP, MOVE, etc. mnemonics they are >>> significant assembly idioms (usually mentioned in the ISA manual) and >>> there are sometimes thousands of alternative encodings that could be used >>> to effect the same operation, but only the chosen canonical encoding is >>> disassembled this way. >> >> Aren't you changing topics? Being able to use alternative encodings to >> achieve the same effect isn't what we were talking about. > > No, it just gives you background as to why some encodings are given > canonical aliases (used for disassembly) and why some are not. > >>> It's rather how the assembly language has been designed (FWIW the RISC-V >>> ISA and assembly dialect have been largely inspired by the MIPS approach). >> >> Well, such a design imo ought to include a clear statement on uses of >> aliases. Iirc at least the 32-bit Arm ARM is very precise about what >> aliases exist, and it effectively mandates for at least some of them >> that they should be use in disassembly. >> >> As said before, I'd be happy to see things move in about any direction, >> just as long as the result is consistent and hence observable behavior >> is predictable for users of the assembler and disassembler. > > It's been consistent so far AFAICT for the RISC-V assembly dialect (and > for that matter for the MIPS one as well). If you disagree, then you're > welcome to present your view, but I think the context of libopcodes and > the binutils mailing list is not the correct place to discuss the assembly > language syntax. You'd need to take it to the RISC-V ISA maintainters and > then we can implement whatever they've agreed to. This, I'm afraid, is again a biased view. ISA and assembly syntax aren't necessarily connected. See the (odd in my personal view) AT&T syntax which has been the favorite one in the Unix world for x86, yet is entirely disconnected from the ISA specifications coming from the relevant x86 vendors (all using so called Intel syntax, which really dates back to MASM / TASM). Of course an architecture is free to define a "preferred" assembly language, but I guess that's still distinct from the ISA spec, and I'm unaware of a specific assembly syntax spec for RISC-V (which Andrew's reply looks to support). Jan