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

2023-12-06 Thread KuanLin Chen
/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

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

2023-12-27 Thread KuanLin Chen
/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

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

2023-11-07 Thread KuanLin Chen
/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

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

2023-11-28 Thread KuanLin Chen
/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

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 opera

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

2023-11-07 Thread Kito Cheng
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

Re: [PATCH v1 1/1] RISC-V: Nan-box the result of movbf on soft-bf16

2024-05-08 Thread Jeff Law
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

Re: Re: [PATCH v1 1/1] RISC-V: Nan-box the result of movbf on soft-bf16

2024-05-12 Thread Xiao Zeng
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

Re: [PATCH] RISC-V: Fix "Nan-box the result of movbf on soft-bf16"

2024-05-17 Thread Jeff Law
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

[COMMITTED] RISC-V: Fix "Nan-box the result of movbf on soft-bf16"

2024-05-17 Thread Xiao Zeng
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

[PATCH] RISC-V: Fix "Nan-box the result of movbf on soft-bf16"

2024-05-15 Thread Xiao Zeng
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

[PATCH] RISC-V: Nan-box the result of movbf on soft-bf16

2024-05-06 Thread Xiao Zeng
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

[PATCH v1 1/1] RISC-V: Nan-box the result of movbf on soft-bf16

2024-05-07 Thread Xiao Zeng
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