From patchwork Mon May 15 12:22:34 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: 94109 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6878353vqo; Mon, 15 May 2023 05:23:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6wzyY11TMBcoHbr84hVuJgy4h7MzQgQvl+E+mvd8OcWeAwe3qDj+xHeymxWQVg+YHm1LIk X-Received: by 2002:a17:907:2681:b0:96a:30b5:cfb0 with SMTP id bn1-20020a170907268100b0096a30b5cfb0mr15231958ejc.22.1684153432285; Mon, 15 May 2023 05:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684153432; cv=none; d=google.com; s=arc-20160816; b=Opu+pRbxUJ25BSMJAk9wRpuzyI3LuZqhAVc0rzqqnHr94BWZzupVEr0B2FAcZDEb5h viw2/JD1kBjhffM9/ywGFX28PQTF1zJ7CYptal78Snninek1OqOZnApzhfP4nlQJHdUw t65swQXWY3Hz6OIeQcIOHFE1i5uIHUvI2SKkI5qQkpA0+EL33J44v4O6t90kGKStDODU yUf/JLkpzyp2vvlaPcydAmLDMiAfJfPt3dAOkkwe+UxDjE+AE4Lr5dsRC8rzZd1F8nIi GQEh/NnQFzDVwLc83lYdE+f4AZupNDYBtHceHVaeCg/F7P/NN3B9aeOHh8UwU+YKfHDf Qeig== 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=2dyrQQ7qmhaseOAwIkqMTWm8thPfUaJrXYa58YXvMU0=; b=p7eFHVRo5tblm9lRWFVzBneI+4/zldlBZKY1dEkukdFmpEPfZthac86qPHVe8C9vhs ZprneXF0p3pQKDkEt4nv/BcSgs6KjStZ2mtgimg8CrwtCyblMy5k197imTlQKNcGbJoO hO1vP1UKaFo31D8zGnkRBGRlDbWjxdst5q8G7pWfwsUtaiiCUn/mdlrhqg2LxdoEZUsZ xZ4V2KXyqci7FyYd8o9m+bU1vFTrzpjLzU67CuwUUENrcQgwVQqoH4b2eJ7NEnot7PbH CIOeYpFaD3tN5uamIaEMpGaqPR5BSOeItkYkbwsnirX4QwwMeYocvm3Ofr1ouJCO2kSv cmJw== 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 v6-20020aa7d9c6000000b0050bbff1b6d6si10876452eds.13.2023.05.15.05.23.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 05:23:52 -0700 (PDT) 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 0D5413852910 for ; Mon, 15 May 2023 12:23:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbg154.qq.com (smtpbg154.qq.com [15.184.224.54]) by sourceware.org (Postfix) with ESMTPS id CD74E3856960 for ; Mon, 15 May 2023 12:22:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CD74E3856960 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: bizesmtp75t1684153358tiodlwf8 Received: from server1.localdomain ( [58.60.1.22]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 15 May 2023 20:22:37 +0800 (CST) X-QQ-SSF: 01400000000000F0R000000A0000000 X-QQ-FEAT: xQoAiglG4R76jJ86WW2Uc3ltae1dtlOdMJMrIsUySka2yohB/0yorLTEYKjO2 YfmIb25cct9XUH1AY0FuypzLT7+PxwNMzon9kMVTO2LrZsFTVJ35dxwvFOJnG0aYMF/hFyx wIwapojolvpDmPD8kO9i7VDiNked4IiRpy7TwuhcMEVBZSNBLMVWaLvQ9mVyPgKAj3yfuI2 x0+4OaZ5v1uEf//xUNbGsVA4wosVBFmEJd7iapu2d1CMDlgfNDLi4GGIkNGmsRHOybXmpH9 N0wyoaIox+k2e78IU9GIhe5goR+irELUUIzu5V+1FVzTNXfeaa0whMYpypyzFO1py1qTwuU nSPPngI1fwFxFRykz8hrED763H+EYW72r1/wR2DsjqCGv70yAApKBbJvVQRGPeG86HLcoww HeVQwJnvLhk= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 1543599532407285187 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: richard.guenther@gmail.com, rguenther@suse.de, Juzhe-Zhong Subject: [PATCH] OPTABS: Extend the number of expanding instructions pattern. Date: Mon, 15 May 2023 20:22:34 +0800 Message-Id: <20230515122235.293830-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, 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 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?1765962869243858370?= X-GMAIL-MSGID: =?utf-8?q?1765962869243858370?= From: Juzhe-Zhong Hi, Richi. We (RVV) is going to add a rounding mode operand into floating-point instructions which have 11 operands. Since we are going have intrinsic that is adding rounding mode argument: https://github.com/riscv-non-isa/rvv-intrinsic-doc/pull/226 This is the patch that is adding rounding mode operand in RISC-V port: https://gcc.gnu.org/pipermail/gcc-patches/2023-May/618573.html You can see there are 11 operands in these patterns. Is it Ok for trunk ? Thanks gcc/ChangeLog: * optabs.cc (maybe_gen_insn): Add case to generate instruction that has 11 operands. --- gcc/optabs.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/optabs.cc b/gcc/optabs.cc index c8e39c82d57..a12333c7169 100644 --- a/gcc/optabs.cc +++ b/gcc/optabs.cc @@ -8139,6 +8139,11 @@ maybe_gen_insn (enum insn_code icode, unsigned int nops, ops[3].value, ops[4].value, ops[5].value, ops[6].value, ops[7].value, ops[8].value, ops[9].value); + case 11: + return GEN_FCN (icode) (ops[0].value, ops[1].value, ops[2].value, + ops[3].value, ops[4].value, ops[5].value, + ops[6].value, ops[7].value, ops[8].value, + ops[9].value, ops[10].value); } gcc_unreachable (); }