From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2055.outbound.protection.outlook.com [40.107.103.55]) by sourceware.org (Postfix) with ESMTPS id 2DC343858D32 for ; Mon, 16 Jan 2023 07:46:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2DC343858D32 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=frszXw++bOFYrHtoZzJhDBX2eeFe4rB9I6j6Q2rXTgOXPVObVq3KcXOJDEnzdGXAvlgarz3wU5FGIkE1Y1ucwRPpvitE9vIFVx0Z2FyE85BSUfcwyTJAJZpY4Ge2tDYBqduL3K67QO6U6+BlRFtlqMV62cZ9wQUlzCBB66xDSQnZyd2gidiytagqZ3leTL3nJozTUuuQ94AX5+bTZwS8BwMssPhNhpBR2RFp36KyUiDlpbpzSKS1YPBfOBggNzlHaP0LFFKlDzA57rfUc5D5C+f73C9Jj6n0WAUpqzPfFcsTUBDTl44kUYMSmBr1iQoYjMpufJbRxLgUisthpwvoow== 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=pYf5h8zQ17mo21CmdYD38cJJwRjgCB5jhIOF0Jf1bK8=; b=C6MY9TkMAMy/QWUFzjUCec8iI1ZwpyW7j4wrz1WDTv+864dGquX/6UwZcpp15QB3CdOmTxrAgCd1E6FwIp+Y4olkqFLD4H4Ga6NrvZvLPjAl4V9B3bOLDI6bDRPCCMP3dYyw3QxtnzEmc61A0Gt7fndRt1B2/I/yrzwktKZOWlEvbjfXBS8x9dN7xWwPucaWlQX3eI+QPa57XcYEdOe4iQrGIeWHw1tQh9lG4oQrSVjHUgTN8EZbZhbVK/+2dakXwBWjAK+lIpsQEwXRAeh25Vt1HUs8nrFs0i5reKS4IIz2gqfdZbv4rayWJ0KlbSg9duvko8EPDp7PoH8tEZueNA== 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=pYf5h8zQ17mo21CmdYD38cJJwRjgCB5jhIOF0Jf1bK8=; b=stYEu3k4qqL69+tntM614SfP6sL7jDoxcBXzgc5mS+MCOOY5sq7z792hcnp2JZEmQyzrwYJZlxiH0xZUygQ+7I8XASs0iZwDshujBmtpCrIB5Gaz4NPwTeuSy693tw7Ld6RD9snvSGfEHw9J9+huetvgs6vuG0rXK9Mcqaz03543e7J6c+KyNYKuh3WV1Mmldixd6PU5G6TFIkwSTFPCqPpgEF3h97OdDTa8j/oDrYEB3qXaj963/0nFvZh7P3MemyCpjlHUndMCIGGCGmC7QP0QC5/Nlears/AI1zviBsQ39t7F6F9/pErglTIvnjsmVt95YtZuyVUzhYwRx9G3gg== 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 DB9PR04MB8377.eurprd04.prod.outlook.com (2603:10a6:10:25c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Mon, 16 Jan 2023 07:46:05 +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.6002.012; Mon, 16 Jan 2023 07:46:04 +0000 Message-ID: Date: Mon, 16 Jan 2023 08:46:05 +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} 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> Content-Language: en-US From: Jan Beulich In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0039.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4a::11) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|DB9PR04MB8377:EE_ X-MS-Office365-Filtering-Correlation-Id: 0918a87b-9fdc-4bbe-1994-08daf795b8a7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BKzqPJ1Mwpkp/aSCF4xEAkZ9O2Rxljt2JShm+z0kGieWkbQSPGXUsxdMPSiPjaipYdO7/UnDtarDXpg0opanG4OqYEGyHdNBogll3L4v8JMrfQ5J811wLJtwI6xMULoUByYIJJxMIYN6lFE7joFQaylCjlWU0SvrmII6tPKXh7bo959SkP/Cwzu3JHO8Fehl1Vk7qytb+yxbOKfi2HXT/D6qo3y/HIWn7uhgTl1qeoowtpCi0yMbEsB4saFvXqdVuAIc+y3bSoLT5gi2c4fzoVYJCS8WPlr58b4c9b/MrllHLrHl5eCUw036Q3GhbK5Jc1ke52jjA5ylt6h0kwLmFJ5DjWkha3/jnoV2zIdYQx5z79rBknCpZujFQNmoV26nFdgDkyabBBDykUrtEMLKhy2RLfG/wlJr0F+3ghlSA+g8DDz43fvKtFdkJ5eF9ArW19UnHvrXYqxy/e8l3urWdVWajutXAnZ/h5TM8MJs/F5PBkYPYsODpME6Jx0wJ1N63EvcYSuQoVMCzkLHxoi1723Vqae4Rlv3m0Mgwa0pU38FffHJHJXzlpaEstjzsh8oOu0uplcK4TXSsstDvqFu+JTnO9BWB6HjEtg532BWU9brCeNe9UAw7LKYu/KcXAisHfBWOrIqb6MbL+wz3ofS4UY4nBzaRgf4YTSExAVemAYWuAiVc2b8+c9GJpaYdD+2aSJFI3Eb9HNsydPVvf5ql0aO+2umQ4wCHhQRc7zO/Og= 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:(13230022)(366004)(346002)(396003)(136003)(376002)(39860400002)(451199015)(31696002)(86362001)(36756003)(6512007)(26005)(186003)(4326008)(6916009)(8676002)(53546011)(66556008)(66946007)(41300700001)(2616005)(66476007)(6506007)(316002)(54906003)(478600001)(6486002)(2906002)(38100700002)(5660300002)(8936002)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eHQ5SHVhc21vb3I1Ulp0MmVMenQ4S0ZvNWhJb2Rkb2xRNy9BUGZBMWY4TVNN?= =?utf-8?B?MUVocFh5bGMxSVFFb1o0VkxpRXhialFpRDlKOUVRSFRYVnFRbnhKSW1hQXI0?= =?utf-8?B?aGk2a2pBeVl3QU1KSUhPQlgzM0NqaHVuaXNXM1prdll2OWFCMnFob2JmUGo3?= =?utf-8?B?Wk9nNmtzSFhRbjVYaCtjQjh0QUdaUldrSHovUWxwdXkxQTNkVVJUSHFZcklK?= =?utf-8?B?cktLZENLVUFjNkdndS85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8?B?aEE5c3pvZk1KeVNidGYyeUJQSThPU0l6WGpJSDZsUEsyVmpzVDlyV3UzYUlV?= =?utf-8?Q?2i8VEYpvT+RMz8q0NznbzeSOm?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0918a87b-9fdc-4bbe-1994-08daf795b8a7 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2023 07:46:04.8211 (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: 1/msGDX310RpvPiiEqeDajjP7QNt1oViIE7yj5WHM0cIVn/1d4BbtjWJvcqnn+tdpsU1VzLupuww3r0EJXiMyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8377 X-Spam-Status: No, score=-3028.7 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 15.01.2023 05:35, Maciej W. Rozycki wrote: > On Fri, 13 Jan 2023, Jan Beulich via Binutils wrote: > >> While not spelled out by the spec, gas has been supporting these aliases >> virtually forever. Yet they were unused by the disassembler because of >> sitting later in the table. Move the non-aliases down. > > I think this is going backwards. Aliases are used in disassembly to > improve readability, e.g. to show `nop', rather than `c.addi zero,0' which > would make anyone scratch their head, at least initially. > > In this case there's no improvement, but obfuscation, as you're losing > the clear distinction between the register and the immediate instructions > and one will have to examine the operands to spot the difference. I can see this as a way to look at things, but then there need to be changes in the other direction (after all patches 1 and 3 here merely follow existing practice). Plus, perhaps more importantly, if you don't strictly prefer aliases over "real" insns, then first of all it needs establishing (and writing down) where to draw the boundary. My view is that the "i" in the name is needlessly distinguishing the mnemonics from their non-immediate counterparts (i.e. I view "improvement" vs "obfuscation the other way around"). I'm surely biased from architectures like x86, IA-64, or Arm, where mnemonic names don't try to duplicate what's expressed by operands. Much like you ... > The alternative mnemonic forms for immediate machine instructions are > there (NB pinched from the MIPS assembly dialect) to make it easier for > people to write handcoded assembly, especially where macros are involved, > either GAS or C preprocessor ones, and not for disassembly. Conceptually > they're assembly macros that expand to a single instruction rather than > aliases. IOW it's not a bug that those are not considered aliases for > disassembly. ... may be biased by your MIPS experience. > Likewise with the remaining patches in this series. Perhaps patch 3, but patch 2 doesn't alter disassembly (and has a different purpose). Jan