From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2057.outbound.protection.outlook.com [40.107.105.57]) by sourceware.org (Postfix) with ESMTPS id 1E1163858D1E for ; Mon, 17 Jul 2023 06:50:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1E1163858D1E 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=g0DR3dXagTdTfjz6kEHYIjQH58CtFCBDZr8IJhfAhdGMb+JHb1QzFuk/pGC1vlrUGUT5ZPJfA1pvuiR0aVpvVFDPaUggWqgT99M3fC0hA69/iNSzI+nJap1chw4hlGkfv4IZNc1lKDK9Lbl8weWKx2Mu3W9Cq5YZ6Kpiv8gvVj38iGoX6aUtLkWtT2CSpEG3jT+15oNzs9+yyAQgfP6vFQOkz4gc3vDXwhzjxcI3jvX0Egt5b6qP59wS7UU3RDqvSDeM5fHKChjphXUNGBDPGU9Rmnhb9Wvj//vkf9l6/im4UPQJjKwXbkpDOirGiN9IIGbVEKg2ym9rrhozJrEZtg== 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=H4xAEUG8Z1nmFn5zHsCiPjZEwmKgXFYNGXPreOUiGaM=; b=nxVpzfaVUAUCB2iXG0xk8XOvAgKJTzih1wuWUgzaw37MRNW1eqYdw9jpBaGuHCy/rLZ9gyQmGz43B2K3HWkhGcIBoihbirVU4d9moGsDyWg46SyJ98EH7ce52AEotxgRdzvOy7GCb3qgK0siGdVv+SQKFpp0ipG9mTX7RrGvpuU03QnLft3tthCVHhc/U1rUNMFrLM0LSS7a9SLBz+NovLp3CkKfc2Dp+1WeAJP9DmCzni0ZdVauQJzlwkFxPm1aOmXK9YDqlKD1AmdnP+Vj7p176hXxDpRseA1sB3LP9Ueb3ZLqT56YiwaqALmR1dRgmiAO/Tl5d3jRT5rorf+Xlw== 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=H4xAEUG8Z1nmFn5zHsCiPjZEwmKgXFYNGXPreOUiGaM=; b=rcjoTo2q8sKkpMFKdfovQjpNO0p8g7Vly0JqDi0393itwfJuDYd+p5nB2tF+St7kukSidUKzlfnWjuvky98zToQ+eyL/QeB9PJzii58VRGC2N0QziF5GkdRfdylZ3bZA54IvwXbOESDq1mhdCS3DeK0Nck1smU6Nc9fjDEVyAEu+cCHpPgdrXy27DM+ZP2MP+fzG0h7vc2eIuf+PpBjCwtCCvK22FOJm1boqBhYYOw/fJ97tDkSc88Mex4JVIN2m5ip2QzqPR8HabC63vEc0bYnxOYuO5u8LuxujlyullT/ABDTuFbuTLx/EJhRmEQq/XmtMHLqToyjQNgGmeGMMnA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from DU2PR04MB8790.eurprd04.prod.outlook.com (2603:10a6:10:2e1::23) by DB9PR04MB10065.eurprd04.prod.outlook.com (2603:10a6:10:4c4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 17 Jul 2023 06:50:00 +0000 Received: from DU2PR04MB8790.eurprd04.prod.outlook.com ([fe80::9bd3:48c9:ff58:9880]) by DU2PR04MB8790.eurprd04.prod.outlook.com ([fe80::9bd3:48c9:ff58:9880%4]) with mapi id 15.20.6588.031; Mon, 17 Jul 2023 06:50:00 +0000 Message-ID: <09d96f5d-a547-6c3b-f0f2-b40484fa5a9f@suse.com> Date: Mon, 17 Jul 2023 08:50:00 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/3] RISC-V: re-arrange opcode table for consistent alias handling Content-Language: en-US To: Stefan O'Rear , Fangrui Song Cc: Binutils , Nelson Chu , Jessica Clarke , "kito.cheng@sifive.com" References: <7cb92a0b-d1ef-e3db-4773-0b6cd5183272@suse.com> <40281e59-659c-044f-0c86-1db77fd17b5c@suse.com> <09666d48-99f0-ae25-ef84-f542da3628ce@suse.com> <18227b09-0d51-3e24-b782-5cf74e41e494@suse.com> <8c44aaa6-7dac-4b1b-9558-33d15ed9b9f8@app.fastmail.com> From: Jan Beulich In-Reply-To: <8c44aaa6-7dac-4b1b-9558-33d15ed9b9f8@app.fastmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR0P281CA0232.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b2::16) To DU2PR04MB8790.eurprd04.prod.outlook.com (2603:10a6:10:2e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8790:EE_|DB9PR04MB10065:EE_ X-MS-Office365-Filtering-Correlation-Id: 2defb795-0dfb-4e18-4bf8-08db86920a8f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H7dmJ59MZQ3nSalQozkc1MrYAV2AW6fwQgc6c/HG023MESSGKL2gDdyVGVBtFCrVTNow3N2bXq700XOgpaVV+JOKJdpuOCVvDIxKpRm+zMGe78moTvvM9Z6ytrQmFrJFv8tZOF55ESQIZgGccGM+nPLzJ+/h5t0fYBiTawLVOAoGD+Th1c7IOj+3DiWBL83K7u3nRvUM+tjco4VCZgwkE58EAivTTypXEl49USwn8Qn6R788y1yvfblHVNIpd0JVjqP/F8tk/AodKfx6UC+UDeKuQSsCNxH5owcavQXEBxgZ2agBdKJot557VWzCTLEpg66kVNxq2hRmrLeRER/ajlNmgAi3BcJHFMstderhTv6prAzZ15jwwRDi01IgapMoO8H3MBqsTNVibpvsCtCUIRtln/lprUtBAwKglThRvBRQTf7Izxqu9qP8m8Y6Hy5v8/kpy7dEp+FyzsgO9dHEqXz0UL+AjidoBYfqxlRS19GjoNz/v9AAhEf/CuII9V6x625MdRk8UwhvV8BKAgIADN13Y+CXxjf+h27GXpyPwNatmleaI7nRlIpH91lC3anjY8AAMVmHBSbjHTYFsIPWEGfvaeGpK6XYe697gtp84eAXwIYc0UuPywuhaBAPOqRzJp7X25bS52FF2rhNlLYVODzejhs32tt2W8KGoapXIBI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8790.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(39860400002)(346002)(396003)(366004)(376002)(451199021)(38100700002)(86362001)(31696002)(31686004)(316002)(36756003)(110136005)(54906003)(6506007)(6486002)(5660300002)(478600001)(6512007)(53546011)(26005)(2616005)(2906002)(66476007)(66556008)(8936002)(8676002)(66946007)(186003)(4326008)(41300700001)(781001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aHRvMXptM0hnYm1jMzUzNjhhdDRDQW9wdUdrTVJVcjk4NHVVTXAyYzl2M1dv?= =?utf-8?B?OUZpR08rclEzK0dlUGpLdnVKQjh0SFhjQzFrUlJUS25CY0dOTWUvT3Q4ZVpX?= =?utf-8?B?VXE3dW5IZTdnOWhRZU1Pa285RXJ5ME1R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TU1NaWFSL3hDbjBUNTFZYk1OdmwxR2ZZNUJDUUt2SUlmeHl6Nytlci9q?= =?utf-8?B?VWxDbStGdklBclVRRWRqT1VYcCtaRVdXaENBTStmbmVxc2ZDV044VUhqSlcy?= =?utf-8?B?MWc1dHdYWGR6OExSVG5lSFk4TVYxMjFnbUs4czVlOXVjb3BWOWRFS3VQcTlr?= =?utf-8?Q?5Le/9IY5Lh/cG3bCZy8h7zpGH?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2defb795-0dfb-4e18-4bf8-08db86920a8f X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8790.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2023 06:50:00.4647 (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: QhvCYanReJdnb+22ugOy8aPJqFPTfmTpYJ7ui2WMCTC35r+JW9PfNSsXGZZiLs/M/U5nAp7Wb+KyJQ0E2QNPOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB10065 X-Spam-Status: No, score=-3027.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,T_SCC_BODY_TEXT_LINE 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.07.2023 00:08, Stefan O'Rear wrote: > On Fri, Jul 14, 2023, at 5:25 PM, Fangrui Song wrote: >> On Wed, Jul 12, 2023 at 1:15 AM Jan Beulich wrote: >>> On 11.07.2023 23:02, Fangrui Song wrote: >>>> I apologize as I haven't read all prior discussions. For many >>>> instructions, the "i" form is written in the ISA manual and prevalent. >>> >>> Why "prevalent"? The "i"-less forms are mentioned there as well, aren't >>> they? Then why not use them ... >> >> I think aliases like "add rd,rs,imm" (without "i") should be treated >> as deprecated aliases that we keep just for compatibility. That's a matter of taste, I'm inclined to say. But see below. >> We should not endorse the use cases by making objdump -d "prefer" this form. >> >> When I brought up the topic in the #riscv channel on libera.chat, I >> got a lot of complaints about having these "deprecated" aliases from >> folks, including courmisch, jrtc27, muurkha, sorear. >> As I happen to know two folks' email addresses, I have CCed them in this thread. >> >>>> I wonder whether we can give these add/and/xor/etc without "i" lower >>>> priority so that objdump -d will not show them, even without using -M >>>> no-aliases. >>> >>> ... unless use of aliases was suppressed? In other arches' assembly >>> that I know (to some degree) and which knows the concept of aliases, >>> aliases are typically the preferred way of disassembling, for >>> typically producing easier to grok output. >> >> AIUI aliases for other architectures are indeeded preferred (use my >> understanding of llvm-objdump -d output). >> This RISC-V case is not, though. > > The aliases that are documented in [1] are preferred for use in disassembly. > The other aliases, which gas supports for compatibility with old versions of > itself but which were never part of any spec, are not preferred. This would be a fair policy, as long as there's a not overly troublesome way of getting further entries on that list (whenever obvious instances turn up). My main goal, after all, is consistency. What exact policy underlies this is secondary to me. Jan