aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>2023-06-25 11:36:54 +0800
committerPan Li <pan2.li@intel.com>2023-06-25 21:49:16 +0800
commitdf80ca2d95a5f6c782b4648d375761833123203a (patch)
tree7b6696e047543c23323955833c6938bab8dce703
parentda7408f781c2eadd9c04b61dedb5869bb78dc200 (diff)
downloadgcc-df80ca2d95a5f6c782b4648d375761833123203a.zip
gcc-df80ca2d95a5f6c782b4648d375761833123203a.tar.gz
gcc-df80ca2d95a5f6c782b4648d375761833123203a.tar.bz2
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.
-rw-r--r--gcc/internal-fn.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/internal-fn.cc b/gcc/internal-fn.cc
index 1c2fd48..9017176 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));