public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Pan Li <panli@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-2076] internal-fn: Fix bug of BIAS argument index
Date: Sun, 25 Jun 2023 13:49:41 +0000 (GMT)	[thread overview]
Message-ID: <20230625134941.93F493858D35@sourceware.org> (raw)

https://gcc.gnu.org/g:df80ca2d95a5f6c782b4648d375761833123203a

commit r14-2076-gdf80ca2d95a5f6c782b4648d375761833123203a
Author: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
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));

                 reply	other threads:[~2023-06-25 13:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230625134941.93F493858D35@sourceware.org \
    --to=panli@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).