[PATCH] D97916: [Driver][RISCV] Support parsing multi-lib config from GCC.
Kito Cheng via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 4 23:39:28 PST 2021
kito-cheng updated this revision to Diff 328406.
kito-cheng marked 2 inline comments as done.
kito-cheng added a comment.
- Fix build issue.
- Address Jim Lin's and Zakk's comment
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97916/new/
https://reviews.llvm.org/D97916
Files:
clang/docs/LanguageExtensions.rst
Index: clang/docs/LanguageExtensions.rst
===================================================================
--- clang/docs/LanguageExtensions.rst
+++ clang/docs/LanguageExtensions.rst
@@ -526,6 +526,7 @@
* 64-bit ARM (AArch64)
* AMDGPU
* SPIR
+* RISC-V
``_Float16`` will be supported on more targets as they define ABIs for it.
@@ -535,13 +536,18 @@
The ``__bf16`` type is only available when supported in hardware.
-``__fp16`` is a storage and interchange format only. This means that values of
+``__fp16`` is a storage and interchange format only on most targets. This means that values of
``__fp16`` are immediately promoted to (at least) ``float`` when used in arithmetic
operations, so that e.g. the result of adding two ``__fp16`` values has type ``float``.
The behavior of ``__fp16`` is specified by the ARM C Language Extensions (`ACLE <http://infocenter.arm.com/help/topic/com.arm.doc.ihi0053d/IHI0053D_acle_2_1.pdf>`_).
Clang uses the ``binary16`` format from IEEE 754-2008 for ``__fp16``, not the ARM
alternative format.
+On RISC-V, the evaluation format of ``__fp16`` will depend on the presence of
+the ``Zfh`` (half-precision) extension. ``__fp16`` will perform arithmetic
+without promotion when the Zfh extension is enabled, and promoted to float
+otherwise.
+
``_Float16`` is an interchange floating-point type. This means that, just like arithmetic on
``float`` or ``double``, arithmetic on ``_Float16`` operands is formally performed in the
``_Float16`` type, so that e.g. the result of adding two ``_Float16`` values has type
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97916.328406.patch
Type: text/x-patch
Size: 1574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210305/8a263356/attachment.bin>
More information about the cfe-commits
mailing list