From patchwork Thu Jan 7 09:55:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kito Cheng X-Patchwork-Id: 1423211 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.a=rsa-sha256 header.s=google header.b=HzMkUHAH; dkim-atps=neutral Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DBM7T3LJRz9sRR for ; Thu, 7 Jan 2021 20:56:02 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 555EB396D83F; Thu, 7 Jan 2021 09:55:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 37B40386EC68 for ; Thu, 7 Jan 2021 09:55:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 37B40386EC68 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kito.cheng@sifive.com Received: by mail-pl1-x636.google.com with SMTP id j1so3230267pld.3 for ; Thu, 07 Jan 2021 01:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=4rtoOYSEa55eKbgS85UPCrl0Q/kcZChRg1wybNEjNWM=; b=HzMkUHAHoVTZRjqDZrUEDU+hCYpHaOM7UD7Y5D5PJUSIXFFgMqfhGCJq03EOrVL7hq 0XySsqWnyXHG0iVdUL4E8aOFR4E2zEJUlmQtjbAo/zdrHQ9wM0Og2GyjuhBZR7FGHQs0 9DjVS7N6eOw313dziJr4Fk88m3obT9vDpAxjXBZ0cq1CQcgMMpfEffb2QkgclM1c0Gjj Uaoy0TkXAhH+2zvPi0uL3VITvTdZhFGIvd/DPxF6YZdiG0vg4pTYcBUzH6qiGYfFlGD7 otU2VbUIFlRY2r9+fn4mie6DWIxs/VkOgkZAWQA8RR2OVj+uCjZ82WVRqHUWXrvBUmQz WZMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=4rtoOYSEa55eKbgS85UPCrl0Q/kcZChRg1wybNEjNWM=; b=PmrmpU3u8rVttje6CEQGolgELBfn62C2BPr33DFzU3YEtu6wCaDNhXpgEOFwXUihLM hAugNKzzPxJRV/ZcnKddVtwL2EK4t3nd2PHQe35JegjGrWjrRcpvIqVrnlDsFlVnHnmB Jo/UgK5k3wJWc94OusNGo/bbPGGHddcniheLh8RWP18/HoB6vTya5gkmIsDVXwKOCPFU RMk1Zq1CMBizyDQvqrF+EDFY3o/oDRIA3fu94phcU5TkBeYlVx+tfuoKuoW5T7zyXZ30 dZq3OnrXX6ixxYsCzTmM79uSffU+xo6fzJtBoGVxZ8dg4+HAq2tIcANsvgCsgCFF0HfU +JkA== X-Gm-Message-State: AOAM532pdpR4i/DVZCqpzjla7ougvIjhcXD6IFFwoxMdVaDHshWQ3i4d 7/SPKyyVoNjVoYND1X7nvKjFubyEtUz/MzgX X-Google-Smtp-Source: ABdhPJzf4VBsjuBh1UNKFtvXjWBJOKwLOnTEBbSI/NsdaTsNm+jSMLuEF94RjZj5r6RWKSBoe1petg== X-Received: by 2002:a17:902:fe02:b029:db:c7fd:3c2c with SMTP id g2-20020a170902fe02b02900dbc7fd3c2cmr8364951plj.31.1610013350945; Thu, 07 Jan 2021 01:55:50 -0800 (PST) Received: from hsinchu02.internal.sifive.com (114-34-229-221.HINET-IP.hinet.net. [114.34.229.221]) by smtp.gmail.com with ESMTPSA id 19sm5105212pfn.133.2021.01.07.01.55.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 01:55:50 -0800 (PST) From: Kito Cheng To: gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, jimw@sifive.com Subject: [PATCH v2 0/2] RISC-V: Introduce new architecture extension test macros Date: Thu, 7 Jan 2021 17:55:42 +0800 Message-Id: <20210107095544.20845-1-kito.cheng@sifive.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" This patch set introduce new set of architecture extension test macros which is accept on riscv-c-api-doc[1] recently. The motivation of this scheme is have an unify naming scheme for extension macro and add the capability to checking version. V2 Changes: - Fix MacOS build issue. - Create new header file: riscv-subset.h [1] https://github.com/riscv/riscv-c-api-doc/blob/master/riscv-c-api.md#architecture-extension-test-macro