From patchwork Fri Jan 20 02:20:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 46092 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp656741wrn; Thu, 19 Jan 2023 18:21:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXv4p56++cn9Mv3CNkjZ/Ho9oHOP4doo13tERyz92z7Z4eqnUxxfZtQkO1ydwVq1ckghYdFj X-Received: by 2002:a17:907:a506:b0:873:901:4f23 with SMTP id vr6-20020a170907a50600b0087309014f23mr14595872ejc.24.1674181271662; Thu, 19 Jan 2023 18:21:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674181271; cv=none; d=google.com; s=arc-20160816; b=yjPJnIug3+q7mNAZLg3FMNjjYVWrdUzV7rxHp4nixNnt9mYP2Aa4e51eAO7FjjSBWV SWWf/zdsQYtY6UMTlTa6Tb/nq0TxFIFeKtGJHzrO2YWTvCmvQ6y0PHUBDKCzU4FVEBnH RgVnivY3SQ+fPPrN+4TXZNA81NTIV5eohvfUHvAzOO/TE6K2LUwB/wDl60n6O1zYksky dTE1MR+2PjgsgRhVZMjahhRQn2V9vvxV6KBrVbhNxEP5uwei46xXjYJRrlAqwmi31L8E qK8iAgeWaqvvifBbGCzwulI+o+tEJdwfgc/1hsJJzbA756hyHMcLHA12LCNEOXA9HqQa ziog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dmarc-filter:delivered-to; bh=GwKAkM360D/vOTdbU0PKFALTrBZ/9rRHOOGwm7aBT4c=; b=cQfpWYDb3p/usxg1y2Ia7iKtfwYab/1qFccKMA+6xVwOEZZDm5HIgqg5jAZPXNJB91 VadC/FdducK0DHexRs/CRYeAojY0M6ExGBFgBcM5Ht5XoBGMiCL66bW9RR6TaS3RZMrG rCRO9ZxRYf3KE8C+K8nOu8OqaHbE7Cz+3PXDDQ2yJFFkI/h+EFDOFwwdeKD0IIdMwe6F M/G/H5wHd5YlgRtkezJkPBV7hscxrgvFt8bqAQt52Zl6HYc5g0mjWooRx6V0fUnViN4p nsM+vaUrn9OQwcQ7PXk/UuttBV/wwIYmtu8zTxIFDmMWL6gsgthckJiLo/Ds0IA9A8o8 fAtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id n13-20020a05640205cd00b004841817039asi50647414edx.614.2023.01.19.18.21.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 18:21:11 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F3D073858C36 for ; Fri, 20 Jan 2023 02:21:09 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbguseast1.qq.com (smtpbguseast1.qq.com [54.204.34.129]) by sourceware.org (Postfix) with ESMTPS id 2F9773858CDA for ; Fri, 20 Jan 2023 02:20:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2F9773858CDA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp66t1674181231tejcdw1a Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 20 Jan 2023 10:20:30 +0800 (CST) X-QQ-SSF: 01400000000000E0L000000A0000000 X-QQ-FEAT: B8vEhG33zUSapghM0+eps73qL8M93ekeBXXVNFuW/GPeFkjQD02eH/0goeo6J r0JJ2GdgwhAc5ITlXQWIljTcz6zliINZNDeGH5cewLimC62DITa5Q7AzEad5+J0noaaVJiB ZhBLeA2CrwghLVQ+xN9BU90WUqaKOc93qC+UxK/DoxuYunh6G5rJ2MzFkrmnzmb14aSutkz NHQnnIX1sXixxax+R/Nf07cGsghafzH2+7IeaUs5ST/V3Sirsh0kHYTwLDMGJanjHDFi60/ fNVHNYG/1B+N/NBG8u/8O0ApRfU5kgeg75FASjBRM9rp+hErD+CJHpMKwbuneALaUtmgnlX ZuGQyLkuT9Im+GEOeCSRld/fTMoBbioSoig9lO+TMiDX1FJ2Y+ZgKhictx7FQ== X-QQ-GoodBg: 2 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com, Ju-Zhe Zhong Subject: [PATCH] RISC-V: Fix vop_m overloaded C++ API name. Date: Fri, 20 Jan 2023 10:20:29 +0800 Message-Id: <20230120022029.215012-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvr:qybglogicsvr7 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, 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: 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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755506301257412638?= X-GMAIL-MSGID: =?utf-8?q?1755506301257412638?= From: Ju-Zhe Zhong According to https://github.com/riscv-non-isa/rvv-intrinsic-doc/tree/master/ For "vop_m" intrinsics, C++ overloaded API does not have "_m" suffix. gcc/ChangeLog: * config/riscv/riscv-vector-builtins-shapes.cc (struct loadstore_def): Remove _m suffix for "vop_m" C++ overloaded API name. --- gcc/config/riscv/riscv-vector-builtins-shapes.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/riscv/riscv-vector-builtins-shapes.cc b/gcc/config/riscv/riscv-vector-builtins-shapes.cc index 76cf14a8cc4..56697f71cbd 100644 --- a/gcc/config/riscv/riscv-vector-builtins-shapes.cc +++ b/gcc/config/riscv/riscv-vector-builtins-shapes.cc @@ -128,6 +128,10 @@ struct loadstore_def : public build_base b.append_name (type_suffixes[instance.type.index].vector); } + /* According to rvv-intrinsic-doc, it does not add "_m" suffix + for vop_m C++ overloaded API. */ + if (overloaded_p && instance.pred == PRED_TYPE_m) + return b.finish_name (); b.append_name (predication_suffixes[instance.pred]); return b.finish_name (); }