https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111362
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Pan Li <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:feb23a37e6142016c3463aa3be3e900d45bc3ea5 commit r14-3915-gfeb23a37e6142016c3463aa3be3e900d45bc3ea5 Author: Pan Li <pan2...@intel.com> Date: Wed Sep 13 11:34:42 2023 +0800 RISC-V: Bugfix PR111362 for incorrect frm emit When the mode switching from NONE to CALL, we will restore the frm but lack some check if we have static frm insn in cfun. This patch would like to fix this by adding static frm insn check. PR target/111362 gcc/ChangeLog: * config/riscv/riscv.cc (riscv_emit_frm_mode_set): Bugfix. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/no-honor-frm-1.c: New test. Signed-off-by: Pan Li <pan2...@intel.com>