[PATCH v3] RISC-V: Add .bfloat16 directive

Nelson Chu nelson@rivosinc.com
Tue Feb 11 06:48:14 GMT 2025


Sorry for the late reply, committed.

Thanks
Nelson

On Tue, Feb 4, 2025 at 9:35 PM Kito Cheng <kito.cheng@sifive.com> wrote:

> ping
>
> On Mon, Jan 20, 2025 at 7:25 PM Kito Cheng <kito.cheng@sifive.com> wrote:
> >
> > RISC-V already support bfloat16 instruciton like Zfbfmin, Zvfbfmin and
> > Zvfbfwma, so I think it's reasonable to add .bfloat16 directive to
> > support bfloat16 data type.
> >
> > And the code logic mostly support by common code already.
> >
> > Changes from v2:
> > - Add 'B' to FLT_CHARS this time...
> > - Use 'B' in the testcase.
> >
> > Changes from v1:
> > - Add big endian and little endian testcase.
> > - Add 'B' to FLT_CHARS.
> > - Drop wrong comment in testcase.
> > ---
> >  gas/config/tc-riscv.c                 |  3 ++-
> >  gas/doc/c-riscv.texi                  | 10 ++++++++++
> >  gas/testsuite/gas/riscv/bfloat16-be.d | 10 ++++++++++
> >  gas/testsuite/gas/riscv/bfloat16-le.d | 10 ++++++++++
> >  gas/testsuite/gas/riscv/bfloat16.s    | 21 +++++++++++++++++++++
> >  5 files changed, 53 insertions(+), 1 deletion(-)
> >  create mode 100644 gas/testsuite/gas/riscv/bfloat16-be.d
> >  create mode 100644 gas/testsuite/gas/riscv/bfloat16-le.d
> >  create mode 100644 gas/testsuite/gas/riscv/bfloat16.s
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250211/874c72a2/attachment.htm>


More information about the Binutils mailing list