Re: [PATCH][V4] RISC-V: Nan-box the result of movhf on soft-fp16

2024-01-04 Thread Kito Cheng
Thanks, verified and pushed to the trunk! On Thu, Dec 28, 2023 at 10:12 AM KuanLin Chen wrote: > > According to spec, fmv.h checks if the input operands are correctly > NaN-boxed. If not, the input value is treated as an n-bit canonical NaN. > This patch fixs the issue that operands returned by

[PATCH][V4] RISC-V: Nan-box the result of movhf on soft-fp16

2023-12-27 Thread KuanLin Chen
According to spec, fmv.h checks if the input operands are correctly NaN-boxed. If not, the input value is treated as an n-bit canonical NaN. This patch fixs the issue that operands returned by soft-fp16 libgcc (i.e., __truncdfhf2) was not correctly NaN-boxed. *gcc/ChangeLog:* * config/riscv/ri