diff options
author | Ju-Zhe Zhong <juzhe.zhong@rivai.ai> | 2023-06-25 11:36:54 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2023-06-25 21:49:16 +0800 |
commit | df80ca2d95a5f6c782b4648d375761833123203a (patch) | |
tree | 7b6696e047543c23323955833c6938bab8dce703 /gcc | |
parent | da7408f781c2eadd9c04b61dedb5869bb78dc200 (diff) | |
download | gcc-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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/internal-fn.cc | 2 |
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)); |