diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2025-01-20 19:24:36 +0800 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2025-02-11 14:44:19 +0800 |
commit | 83c30fcc4d10fa3783199379e358a884a64f8688 (patch) | |
tree | 1da365ee4847224e686e98b23c093e442ef70600 /gas/doc | |
parent | 3f61a38b5e81569357bd15fbcf7fcb1dab3ee2db (diff) | |
download | binutils-83c30fcc4d10fa3783199379e358a884a64f8688.zip binutils-83c30fcc4d10fa3783199379e358a884a64f8688.tar.gz binutils-83c30fcc4d10fa3783199379e358a884a64f8688.tar.bz2 |
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.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/c-riscv.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/doc/c-riscv.texi b/gas/doc/c-riscv.texi index 10cb772..314e28c 100644 --- a/gas/doc/c-riscv.texi +++ b/gas/doc/c-riscv.texi @@ -256,6 +256,16 @@ The @var{tag} is either an attribute number, or one of the following: @code{Tag_RISCV_unaligned_access}, @code{Tag_RISCV_priv_spec}, @code{Tag_RISCV_priv_spec_minor}, @code{Tag_RISCV_priv_spec_revision}. +@cindex @code{.bfloat16} directive, RISC-V +@item .bfloat16 @var{value} +Floating point constructors for the bfloat16 type, example usage: + +@smallexample + .bfloat16 12.0 + .bfloat16 NaN + .bfloat16 0b:ffc1 +@end smallexample + @end table @node RISC-V-Modifiers |