From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id 21A9B385624D for ; Mon, 15 May 2023 12:51:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 21A9B385624D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 1CE1C1FD64; Mon, 15 May 2023 12:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1684155096; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M/IL4u9YYD5WZt10M1OQdJ0gfYw/+rc1W1oCMdFf3DY=; b=G3gih/OvPrO9UlzhT8vRd+10K0l11wgNkMpWRY4wJEkfeaBIEA7dN16DXpgF2XPv3B39Nm /TVNYJKHX9JFdCg9IXbbSRYV3bUK4nrJzA7NZTYRkWolAD/LGd0Immm/MFFd/MlErnzEpS g1HAO22JRmQPBgY3731w5eiLQtx7r4s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1684155096; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M/IL4u9YYD5WZt10M1OQdJ0gfYw/+rc1W1oCMdFf3DY=; b=UbiR3Y0hgrM1PU0rrPFX2Rbl2NNGeUeWiIRRXIsH1LMH2T+/Gz2unsbHlqkvZx5j6QwNHk 9C8MS4Hx1bvAPpCw== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 0B6022C141; Mon, 15 May 2023 12:51:36 +0000 (UTC) Date: Mon, 15 May 2023 12:51:35 +0000 (UTC) From: Richard Biener To: Juzhe-Zhong cc: gcc-patches@gcc.gnu.org, richard.guenther@gmail.com Subject: Re: [PATCH] OPTABS: Extend the number of expanding instructions pattern. In-Reply-To: <20230515122235.293830-1-juzhe.zhong@rivai.ai> Message-ID: References: <20230515122235.293830-1-juzhe.zhong@rivai.ai> User-Agent: Alpine 2.22 (LSU 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_SHORT,SPF_HELO_NONE,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 List-Id: On Mon, 15 May 2023, juzhe.zhong@rivai.ai wrote: > 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 ? OK. Richard. > 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 (); > } > -- Richard Biener SUSE Software Solutions Germany GmbH, Frankenstrasse 146, 90461 Nuernberg, Germany; GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman; HRB 36809 (AG Nuernberg)