Robin Dapp
Sent: Monday, July 24, 2023 6:29 PM
To: Li, Pan2 ; gcc-patches@gcc.gnu.org
Cc: rdapp@gmail.com; juzhe.zh...@rivai.ai; kito.ch...@sifive.com; Wang,
Yanzhang
Subject: Re: [PATCH v6] RISC-V: Support CALL for RVV floating-point dynamic
rounding
Hi Pan,
> + for (insn = PREV_INSN (
ay, July 24, 2023 6:29 PM
To: Li, Pan2 ; gcc-patches@gcc.gnu.org
Cc: rdapp@gmail.com; juzhe.zh...@rivai.ai; kito.ch...@sifive.com; Wang,
Yanzhang
Subject: Re: [PATCH v6] RISC-V: Support CALL for RVV floating-point dynamic
rounding
Hi Pan,
> + for (insn = PREV_INSN (cur_in
Hi Pan,
> + for (insn = PREV_INSN (cur_insn); insn; insn = PREV_INSN (insn))
> +{
> + if (INSN_P (insn))
> + {
> + if (CALL_P (insn))
> + mode = FRM_MODE_DYN;
> + break;
> + }
> +
> + if (insn == BB_HEAD (bb))
> + break;
> +}
> +
> + return mode;
From: Pan Li
In basic dynamic rounding mode, we simply ignore call instructions and
we would like to take care of call in this PATCH.
During the call, the frm may be updated or keep as is. Thus, we must
make sure at least 2 things.
1. The static frm before call should not pollute the frm value