summaryrefslogtreecommitdiff
path: root/riscv_new/compiler/riscv/cgrv.pas
diff options
context:
space:
mode:
Diffstat (limited to 'riscv_new/compiler/riscv/cgrv.pas')
-rw-r--r--riscv_new/compiler/riscv/cgrv.pas6
1 files changed, 4 insertions, 2 deletions
diff --git a/riscv_new/compiler/riscv/cgrv.pas b/riscv_new/compiler/riscv/cgrv.pas
index 0d5075f987..0cbfd753c0 100644
--- a/riscv_new/compiler/riscv/cgrv.pas
+++ b/riscv_new/compiler/riscv/cgrv.pas
@@ -545,7 +545,10 @@ unit cgrv;
begin
if fromsize<>tosize then
- list.concat(taicpu.op_reg_reg(convOp[fromsize,tosize],reg2,reg1))
+ begin
+ list.concat(taicpu.op_reg_reg(convOp[fromsize,tosize],reg2,reg1));
+ g_check_for_fpu_exception(list);
+ end
else
begin
if tosize=OS_F32 then
@@ -557,7 +560,6 @@ unit cgrv;
list.concat(ai);
rg[R_FPUREGISTER].add_move_instruction(ai);
end;
- g_check_for_fpu_exception(list);
end;