/riscv.cc (riscv_legitimize_move): Expand movhf
with Nan-boxing value.
* config/riscv/riscv.md (*movhf_softfloat_boxing): New pattern.
*gcc/testsuite/ChangeLog:*
gcc.target/riscv/_Float16-nanboxing.c: New test.
0001-RISC-V-Nan-box-the-result-of-movhf-on-soft-fp16.patch
Description: Binary data
/riscv.cc (riscv_legitimize_move): Expand movfh
with Nan-boxing value.
* config/riscv/riscv.md (*movhf_softfloat_unspec): New pattern.
*gcc/testsuite/ChangeLog:*
* gcc.target/riscv/_Float16-nanboxing.c: New test.
0001-RISC-V-Nan-box-the-result-of-movhf-on-soft-fp16.patch
Description: Binary
/riscv.cc (riscv_legitimize_move): Expand movfh
with Nan-boxing value.
* config/riscv/riscv.md (*movhf_softfloat_unspec): New pattern.
*gcc/testsuite/ChangeLog:*
gcc.target/riscv/_Float16-nanboxing.c: New test.
0001-RISC-V-Nan-box-the-result-of-movhf-on-soft-fp16.patch
Description: Binary
/riscv.cc (riscv_legitimize_move): Expand movfh
with Nan-boxing value.
* config/riscv/riscv.md (*movhf_softfloat_unspec): New pattern.
*gcc/testsuite/ChangeLog:*
gcc.target/riscv/_Float16-nanboxing.c: New test.
0001-RISC-V-Nan-box-the-result-of-movhf-on-soft-fp16.patch
Description: Binary data
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 opera
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/risc
ebsite:
<https://www.mail-archive.com/search?q=Nan-box+the+result+of+movhf+on+soft-fp16&l=gcc-patches%40gcc.gnu.org>
4 Below test are passed for this patch
* The riscv fully regression test.
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_legitimize_move): Expand movbf
c40699fb5c98fd9cac8e168653>
>>
>> 3 The discussion about Nan-box can be found on the website:
>> <https://www.mail-archive.com/search?q=Nan-box+the+result+of+movhf+on+soft-fp16&l=gcc-patches%40gcc.gnu.org>
>>
>> 4 Below test are passed for this patch
>&g
rd. The bits are not modified in the
transfer, and in particular, the payloads of non-canonical NaNs are
preserved."
2 When (!TARGET_ZFHMIN == true && TARGET_HARD_FLOAT == true), instruction needs
to be added to complete the Nan-box, as done in
"RISC-V: Nan-box the result of mo
ZFHMIN == true && TARGET_HARD_FLOAT == true), instruction
>> needs
>> to be added to complete the Nan-box, as done in
>> "RISC-V: Nan-box the result of movhf on soft-fp16":
>> <https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=057dc3490216
nd in particular, the payloads of non-canonical NaNs are
preserved."
2 When (!TARGET_ZFHMIN == true && TARGET_HARD_FLOAT == true), instruction needs
to be added to complete the Nan-box, as done in
"RISC-V: Nan-box the result of movhf on soft-fp16":
&l
rch?q=Nan-box+the+result+of+movhf+on+soft-fp16&l=gcc-patches%40gcc.gnu.org>
4 Below test are passed for this patch
* The riscv fully regression test.
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_legitimize_move): Expand movbf
with Nan-boxing value.
* confi
rch?q=Nan-box+the+result+of+movhf+on+soft-fp16&l=gcc-patches%40gcc.gnu.org>
4 Below test are passed for this patch
* The riscv fully regression test.
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_legitimize_move): Expand movbf
with Nan-boxing value.
* confi
13 matches
Mail list logo