From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 67D4D3858284 for ; Mon, 24 Oct 2022 15:04:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 67D4D3858284 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1032.google.com with SMTP id l22-20020a17090a3f1600b00212fbbcfb78so3667992pjc.3 for ; Mon, 24 Oct 2022 08:04:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=he5PKM66LRgBWhReYIxAogcVu1YSrt2B70RYoMjUhAk=; b=b7CSoKRV3BqSGZX4g1/WjiiJE+3nqgS9UOBdsnn/dpKYJ3N8mP20n06zhvJoxNdfec HtOsRzqvLrXGCpPJ/+9oph3LV+siPn1mcYRNxYF+yHccmBaG8Y7/9vs4MHhMQzLLOzhb Fh+sTBT6fRqcMS0PLHiYyFMUsCyon8Z9xDcvXBqVoqpgcD/rutuz1mXD/ofRxYdUI4sD e9Gl3Z9B8BEGKs9EFNvXzM4FJjUcYGuKaheEIXg9JPWs46zfKiRQU4uMF4UyMSfB4r+q /ElY9okO3Ef0nV3eGw5BKsNXCdDIsp96FH8pz99viz45DYg2TghgcTEG1BrXKygL4OlM AF4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=he5PKM66LRgBWhReYIxAogcVu1YSrt2B70RYoMjUhAk=; b=phyChF/SGBeqcRXajwU8i/0u+gz2UUSfzYy8e0ruDnMd2sb+3oxiWuq7MksIb61cR9 4yAVF/vJYUvcaqx6wrI2cxHIfTATplyOgEG+IkkKU98p7NIwY13+p6NgAfTMmZ7SKwBR Ak8oAJWapaLZvOWgFSddZvPauDSb7qV68b8SNETSDQEAToQDrqjnkCwqTW74tvd7Hoyh GgXwfK6OneU+9+lCoYrpWVCrDYXrbnB0DeHu46cezOOAYbUqPc3VGKNWD6qqZP6poD2r yoQqeRGIQiovkwgyaHRH2mVhtps4NMkSztMPgUIsGce3RDe9L0b5ANCO4RypfLI++ctW tj+Q== X-Gm-Message-State: ACrzQf2isa+Zpp47qLIkmTHMjYpQl8ZYyEkrz5UHojVKWImJz6bvRfoG 9P1z+13WHE3zQiUrxMJGCYKbeNYyCV8= X-Google-Smtp-Source: AMsMyM4D1lDLWKc6CbpGE6rtuDYfDnfElZEMv6oPTkIjlXtPnxtxN4zLsTtXohy1RHceHT8N0l/8/Q== X-Received: by 2002:a17:902:a612:b0:17e:539:c415 with SMTP id u18-20020a170902a61200b0017e0539c415mr32843234plq.173.1666623850095; Mon, 24 Oct 2022 08:04:10 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id i18-20020a056a00005200b00561b02e3118sm19907805pfk.106.2022.10.24.08.04.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Oct 2022 08:04:09 -0700 (PDT) Message-ID: <2be969b2-8188-2141-d8ed-b54d9af7c947@gmail.com> Date: Mon, 24 Oct 2022 09:04:07 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] RISC-V: Add h extension support Content-Language: en-US To: Kito Cheng , gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, jim.wilson.gcc@gmail.com, palmer@dabbelt.com, andrew@sifive.com, christoph.muellner@vrull.eu References: <20221024095530.16284-1-kito.cheng@sifive.com> From: Jeff Law In-Reply-To: <20221024095530.16284-1-kito.cheng@sifive.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_SHORT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 List-Id: On 10/24/22 03:55, Kito Cheng wrote: > `h` was the prefix of multi-letter extension name, but it become a > extension in later RISC-V isa spec. > > Fortunately we don't have any extension really defined is prefixed > with `h`, so we can just change that. > > gcc/ChangeLog: > > * common/config/riscv/riscv-common.cc (riscv_ext_version_table): > Add `h`. > (riscv_supported_std_ext): Ditto. > (multi_letter_subset_rank): Remove `h`. > (riscv_subset_list::parse_std_ext): Handle `h` as single letter > extension. > (riscv_subset_list::parse): Ditto. > > gcc/testsuite/ChangeLog: > > * testsuite/gcc.target/riscv/arch-18.c: New. > * testsuite/gcc.target/riscv/arch-5.c: Remove test for prefixed > with `h`. > * testsuite/gcc.target/riscv/predef-23.c: New. OK. Jeff