From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7924) id 93F493858D35; Sun, 25 Jun 2023 13:49:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 93F493858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687700981; bh=pURB+2/ZfMJWlwaVh5xQLoyMPYI4XpGhHsfle11UJdY=; h=From:To:Subject:Date:From; b=QAGNkmLIs+DYJAoEoOqouH6mZdBrtWxRgnhnsPIypaIT0H71nh5e2EbquWDKgR1X5 aCGE9N+omCcXlJIdVoR2kxMKKEP8ywH8dqVcBv77250BQ6YN4cvuKujdnJhVuwIv+Z sCTW+KofPUTH7peBaRtdYyU6DrbDDOZk6x4flHgU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pan Li To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-2076] internal-fn: Fix bug of BIAS argument index X-Act-Checkin: gcc X-Git-Author: Ju-Zhe Zhong X-Git-Refname: refs/heads/master X-Git-Oldrev: da7408f781c2eadd9c04b61dedb5869bb78dc200 X-Git-Newrev: df80ca2d95a5f6c782b4648d375761833123203a Message-Id: <20230625134941.93F493858D35@sourceware.org> Date: Sun, 25 Jun 2023 13:49:41 +0000 (GMT) List-Id: https://gcc.gnu.org/g:df80ca2d95a5f6c782b4648d375761833123203a commit r14-2076-gdf80ca2d95a5f6c782b4648d375761833123203a Author: Ju-Zhe Zhong Date: Sun Jun 25 11:36:54 2023 +0800 internal-fn: Fix bug of BIAS argument index 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. gcc/ChangeLog: * internal-fn.cc (expand_partial_store_optab_fn): Fix bug of BIAS argument index. Diff: --- 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));