Lgtm
juzhe.zh...@rivai.ai <juzhe.zh...@rivai.ai>於 2023年7月3日 週一,19:11寫道: > LGTM > > > > juzhe.zh...@rivai.ai > > From: pan2.li > Date: 2023-07-03 18:57 > To: gcc-patches > CC: juzhe.zhong; jeffreyalaw; pan2.li; yanzhang.wang; kito.cheng > Subject: [PATCH v1] RISC-V: Fix one typo for emit_mode_set. > From: Pan Li <pan2...@intel.com> > > This patch would like to fix one typo for scaler[should be scalar] in > emit_mode_set, as well as minor change for mov emit. > > Signed-off-by: Pan Li <pan2...@intel.com> > > gcc/ChangeLog: > > * config/riscv/riscv.cc (riscv_emit_mode_set): Fix typo. > --- > gcc/config/riscv/riscv.cc | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc > index e4dc8115e69..7761e946761 100644 > --- a/gcc/config/riscv/riscv.cc > +++ b/gcc/config/riscv/riscv.cc > @@ -7672,11 +7672,11 @@ riscv_emit_mode_set (int entity, int mode, int > prev_mode, > case RISCV_FRM: > if (mode != FRM_MODE_NONE && mode != prev_mode) > { > - rtx scaler = gen_reg_rtx (SImode); > + rtx scalar = gen_reg_rtx (SImode); > rtx imm = gen_int_mode (mode, SImode); > - emit_insn (gen_movsi (scaler, imm)); > - emit_insn (gen_fsrm (scaler, scaler)); > + emit_move_insn (scalar, imm); > + emit_insn (gen_fsrm (scalar, scalar)); > } > break; > default: > -- > 2.34.1 > > >