From patchwork Tue Oct 4 13:56:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 1681 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp140198wrs; Tue, 4 Oct 2022 06:56:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6smRo1HyzSv5p+M8iWs5FkkXMmfXpOnIhK+r7kwrnZ83LoHqwHYJjWbdD+jXAej34lzBw6 X-Received: by 2002:a50:fc0a:0:b0:458:73c0:7e04 with SMTP id i10-20020a50fc0a000000b0045873c07e04mr18919431edr.270.1664891815814; Tue, 04 Oct 2022 06:56:55 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id n12-20020a05640205cc00b00453d55cb36csi12877361edx.365.2022.10.04.06.56.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 06:56:55 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=qUK56dpb; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6FC823858428 for ; Tue, 4 Oct 2022 13:56:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6FC823858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664891814; bh=DbJrp1K6bIKa/AIIOi7s8liGRv/btNLbQQr+xGrUNV0=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=qUK56dpbRVAIUAmXMG2njY0nsdrv7JqCkk53OhChYlXbIvBDQ9KJFBBRNU2WPhICp e25KQ7YhA9A+MFvHJy4JoYiFjTMIT+5BdDNahU47kSlu+csT+xq0SpnmfntnOhWMiq qTDuKo368FEZjzp6y/mYluBUE7C/cTCr0kEJ7/Jg= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2064.outbound.protection.outlook.com [40.107.22.64]) by sourceware.org (Postfix) with ESMTPS id 688923858D37 for ; Tue, 4 Oct 2022 13:56:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 688923858D37 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zr8lVcN1eCWe4/BygFHjTSVadvCJVpBXedEq5aGH9DWTpYKrA7p4bmUpu//auBXa0sG1fIpBASdyErVGwuteHEpvXESbKm/za57+2ponUIBRtxH7Wv+/YOKG/NX1FhKiDQnCBARVarQruTOjZPMsVrS0+m+ozNaDqbJPFhN97Ec0Nd85IsKqOtack4JZqp576bFCtaZLjOnuMa4p3l/Hnwpfeblahks5RklM1WbImFTx8n+C8+95XARhtmUa65eklbMcQ0qNn3oEJ66Nk5ZYXblYLFXAvvCjo4wV8N18AJ7bluAi/2yoEc//IYNItVk31N4WU/g/Ce8MZ0G9BO4ezA== 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=DbJrp1K6bIKa/AIIOi7s8liGRv/btNLbQQr+xGrUNV0=; b=EZhD5Jq/GKhjIeTr6WW0s2cS+W/Npw9LffY5Pb/teFZkLHdzbPj2iDg7ZkKjstB2KvBQZcAgtgM/FHcg1ixaVKxl9E3nYmWoeX3XmsHz/CT57laygt9u02uTNRrExJAcGndUPPNUiYsnWI8WWv9Glq7rN2dVJc3X/boMdDvpJWfhPjyBomnG2DC6TzaO8QeWJ73fbidaYH++VzhJBfB7ZioTzllFTY3s2cyARysp7uApjdBE9+tTvLES3rNBYsoaGYTjxUlsYK00b072vmKKUBSkddPyYgB96LvWPHPYX2WyewWE0le8y0QCcvMI2BehgiPxQx2MNxByGHwpPXkY4A== 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 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) by DB9PR04MB8108.eurprd04.prod.outlook.com (2603:10a6:10:25e::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.28; Tue, 4 Oct 2022 13:56:29 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::2459:15ae:e6cb:218a]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::2459:15ae:e6cb:218a%7]) with mapi id 15.20.5676.031; Tue, 4 Oct 2022 13:56:29 +0000 Message-ID: Date: Tue, 4 Oct 2022 15:56:27 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: [PATCH] RISC-V: Zicbo{m,p,z} adjustments to riscv_multi_subset_supports_ext() To: Binutils Content-Language: en-US X-ClientProxiedBy: FR3P281CA0056.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4b::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_|DB9PR04MB8108:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c5640d1-8c43-4ba8-ba57-08daa6103c57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 31Bhd/0Ws/l3YpPnTmvgxzyVdPD1l5WLAmVPw5IppDTgsT1lplTrFJ62ajUw8E3hHB51r3iLh1FzWCNDMsp6bNnUVzGSdVDBeoarteIzov2eYTRHFjYf0/qwh65TJSF0Giwi/z1sQb8GMRouHlDfz9qgJaor1Z1Mh/zyz1NZ2qeEI60ig3VRY6yh8HUzv/j/LQ8jcIqdWWu03K3PE4x4+6SBUAH5h9S4dx3klzJdVOyWPVvI3nham8xf26ApwPNqkTlPEuD2AwsSi0W9kbDxJqIKGfIpKW6mS2mxJ4yZW1nIrbCNiDYEfZuXQxweQyQWD+sjkHVKZkvFcH/Ikiuxg81EZbVVNWtkaMvkXy2E/apjfrhcXsB7VbzB4htFoGEErVmNSC51SZsYaR/RiBUj/hkj0FpzrbKlwzSna3qg710/wbJwryHlggSPxSlx55wJddQeyiU9PUciqJ3urkMsADMj5uurinfrXsHGMgnXrjOuLs6QtPFx+88qNJQSnfe7NUmTwS4r7iU+Bcf8urD7D/3DYUdBiyA191b/MmTdX1CIjCEH6yma/7r62pOEljrFqzFjZ1btIEDomq8ILbMCCVdmvc4FV7pZSkMkX4bsvyjWNVyb1OotRozg9TrlWtjJ5V8wSt59Rp9SG0lOWC6iawOroAnPWbVFLZiofEbsLM/OAig583z7it6cuIa9ei9j5XoEpj+qXa7wW7qUdvXpwlJvNn3H3bE5bGgEdP1JpDmrjhHcZRwF2CJiuEmVTZRjq6mLdK4MYM+NMRO/ctM1N3M/lABRVVT2TNyLItezuaE= 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)(136003)(39860400002)(396003)(376002)(366004)(346002)(451199015)(41300700001)(66556008)(66946007)(8676002)(4326008)(38100700002)(186003)(66476007)(2616005)(2906002)(6512007)(83380400001)(36756003)(6506007)(4744005)(31696002)(8936002)(26005)(86362001)(5660300002)(54906003)(316002)(31686004)(6916009)(6486002)(478600001)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?N9OGHak53vuax935YZHfwTRnyyhh?= =?utf-8?q?YZf/XbnBK0IktaqpSqNvK6wOKFB7O65GLUHvhaN429hPxOaaJvnn1YwV1CL0i7M2c?= =?utf-8?q?MwNOVNo63LTa9mEkxUCL3HQE8PcNsJHS2pdk4sQyHSo3hmV4iF8E55JXiyxCVBGSC?= =?utf-8?q?bfVsZlZUEPntYQERJRZMaIPWsY98JWMwd5z0SdQjYhrPkC1DDHh8h48r5cZG7eo3o?= =?utf-8?q?GnpOP4XVAEKld6mt+hpGmFrPeZItx8nLpYbO4W5k4JWT6P9Y1LIFp0YNNPEubQF31?= =?utf-8?q?FMIqobQsqbb1AIFY26ABE0iOilSzyF3oco2egeU4FnlUYkTboYu2uJJqVUPL51T39?= =?utf-8?q?7gVz8aD9Kacj3a5r63biB5CzN8sFH+QHqcQaPyHJXru9xRkNKyKN/C1zUSP+yvTSj?= =?utf-8?q?DVVeQrR3VVDMGeguKcCF16w1SDT+pW1Bau284zM1ZOFgNkFJC/vtZbEr0ZZkpwhrx?= =?utf-8?q?KjS6ZXP05fR9fxjIj5z33Hb4sdQ/KoP3OGay0b2A0Iyfxhdd2kDNQ0kjMfbXaQKry?= =?utf-8?q?f2Q2gdIE4q0lhQ9sG2+hGoVg4/GXIp9kYHic1VfIdb3tuzD/EHq3gc0K5uLmwBYrV?= =?utf-8?q?yn0rrIbFlMTOOJU8BtafE5FcVAerf3XV1LsOMIvaFHjwhPC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cXHrwSJGLxxtdyX?= =?utf-8?q?WKvhfLq3KEfy?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c5640d1-8c43-4ba8-ba57-08daa6103c57 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2022 13:56:29.1228 (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: EZF/YR7PB6/HprBv2Wlcgk/ABgbheTc9rsOQQNhFnEfMpJbaIg7MO2oHgsipo5mhQfGpYRwSpHwv8gulLUgkiQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8108 X-Spam-Status: No, score=-3029.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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 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-Patchwork-Original-From: Jan Beulich via Binutils From: Jan Beulich Reply-To: Jan Beulich Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745765600734619003?= X-GMAIL-MSGID: =?utf-8?q?1745765600734619003?= The lack thereof did caused gas to issue "internal: unreachable INSN_CLASS_*" errors when trying to assemble respective insns without the feature(s) enabled via e.g. ".option arch, ...". Of course a proper hint towards the missing extension then wasn't given either. --- a/bfd/elfxx-riscv.c +++ b/bfd/elfxx-riscv.c @@ -2440,6 +2440,12 @@ riscv_multi_subset_supports_ext (riscv_p { case INSN_CLASS_I: return "i"; + case INSN_CLASS_ZICBOM: + return "zicbom"; + case INSN_CLASS_ZICBOP: + return "zicbop"; + case INSN_CLASS_ZICBOZ: + return "zicboz"; case INSN_CLASS_ZICSR: return "zicsr"; case INSN_CLASS_ZIFENCEI: