From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by sourceware.org (Postfix) with ESMTPS id 95FEE3858D35 for ; Sun, 25 Jun 2023 03:37:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 95FEE3858D35 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: bizesmtp67t1687664217tf4rwwa2 Received: from rios-cad5.localdomain ( [58.60.1.11]) by bizesmtp.qq.com (ESMTP) with id ; Sun, 25 Jun 2023 11:36:56 +0800 (CST) X-QQ-SSF: 01400000000000G0S000000A0000000 X-QQ-FEAT: 2i+QW+6os+1MQg7EaRRnxGY+FjBgmR5F5ZRsD9vo8XDvIE+x7oGxl6805PF/w pU7j3VH4d2Ywj9hPOrAlEVzTylCtyt8++ZBfxxYnKzOBtUnpvjyoxaGKNcJZewSJqIwgI5o WYhljfWISTXNV7A/7odaEFA8LZF85/5ULJf66RDBS2gMXfTUiMTQpnnEbMOYgN6Dj0KdQmD ySz4ReDB6MNsLGmX2s+9c7m4VYZs5OYKx7AmKyIIEoFktJNQaLuSEZx0ZDcNbEXDHupbwSF Dfimlr0Ibs1haPaotsIE4eGrKSwGFb0YlHJ0IrFmbFisx+OuIdm+QudBe1OzPtEvPVWCwtB qAdpQth0WKmwv+3GHndCJhOQ1JpeUlHTCXxtr/r+UfLZlBOGl5BAqNxjKoIh4xyniJKpCXP X-QQ-GoodBg: 2 X-BIZMAIL-ID: 13223156396070061701 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: richard.sandiford@arm.com, rguenther@suse.de, jeffreyalaw@gmail.com, Ju-Zhe Zhong Subject: [PATCH] internal-fn: Fix bug of BIAS argument index Date: Sun, 25 Jun 2023 11:36:54 +0800 Message-Id: <20230625033654.1150808-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,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 List-Id: From: Ju-Zhe Zhong When trying to enable LEN_MASK_{LOAD,STORE} in RISC-V port, I found I made a mistake in case of argument index of BIAS. This patch is an obvious fix, Ok for trunk ? gcc/ChangeLog: * internal-fn.cc (expand_partial_store_optab_fn): Fix bug of BIAS argument index. --- gcc/internal-fn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/internal-fn.cc b/gcc/internal-fn.cc index 1c2fd487e2a..9017176dc7a 100644 --- a/gcc/internal-fn.cc +++ b/gcc/internal-fn.cc @@ -2991,7 +2991,7 @@ expand_partial_store_optab_fn (internal_fn ifn, gcall *stmt, convert_optab optab maskt = gimple_call_arg (stmt, 3); mask = expand_normal (maskt); create_input_operand (&ops[3], mask, TYPE_MODE (TREE_TYPE (maskt))); - biast = gimple_call_arg (stmt, 4); + biast = gimple_call_arg (stmt, 5); bias = expand_normal (biast); create_input_operand (&ops[4], bias, QImode); icode = convert_optab_handler (optab, TYPE_MODE (type), GET_MODE (mask)); -- 2.36.3