]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Add .bfloat16 directive
authorKito Cheng <kito.cheng@sifive.com>
Mon, 20 Jan 2025 11:24:36 +0000 (19:24 +0800)
committerNelson Chu <nelson@rivosinc.com>
Tue, 11 Feb 2025 06:44:19 +0000 (14:44 +0800)
commit83c30fcc4d10fa3783199379e358a884a64f8688
tree1da365ee4847224e686e98b23c093e442ef70600
parent3f61a38b5e81569357bd15fbcf7fcb1dab3ee2db
RISC-V: Add .bfloat16 directive

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.
gas/config/tc-riscv.c
gas/doc/c-riscv.texi
gas/testsuite/gas/riscv/bfloat16-be.d [new file with mode: 0644]
gas/testsuite/gas/riscv/bfloat16-le.d [new file with mode: 0644]
gas/testsuite/gas/riscv/bfloat16.s [new file with mode: 0644]