]> gcc.gnu.org Git - gcc.git/commit
[PATCH v1 1/1] RISC-V: Nan-box the result of movbf on soft-bf16
authorXiao Zeng <zengxiao@eswincomputing.com>
Wed, 8 May 2024 20:00:58 +0000 (14:00 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 27 May 2024 00:00:08 +0000 (18:00 -0600)
commit6c5e2178e97baaba8ca156bc705222eae9a52f17
treeef2551a1b10ac94f1efac733518add080e06db7e
parentb30496ab6f0706b373ca68cea832fe13dd0c0e59
[PATCH v1 1/1] RISC-V: Nan-box the result of movbf on soft-bf16

1 This patch implements the Nan-box of bf16.

2 Please refer to the Nan-box implementation of hf16 in:
<https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=057dc349021660c40699fb5c98fd9cac8e168653>

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
        * The riscv fully regression test.

gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_legitimize_move): Expand movbf
with Nan-boxing value.
* config/riscv/riscv.md (*movbf_softfloat_boxing): New pattern.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/_Bfloat16-nanboxing.c: New test.

(cherry picked from commit ce51e6727c9d69bbab0e766c449e60fd41f5f2f9)
gcc/config/riscv/riscv.cc
gcc/config/riscv/riscv.md
gcc/testsuite/gcc.target/riscv/_Bfloat16-nanboxing.c [new file with mode: 0644]
This page took 0.069881 seconds and 6 git commands to generate.