[PATCH] D98012: [RFC][doc] Document that RISC-V's __fp16 has different behavior

Sjoerd Meijer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 5 03:47:11 PST 2021


SjoerdMeijer added a comment.

> However we would like have slight different behavior for __fp16 other

than ACLE: The evaluation format of __fp16 set same as _Float16,
which means no promotion are performed if there is no hardware half-precision
supported.

Well, this is really problematic, because you're giving `__fp16` semantics, you're defining it to behave as `_Float16`.
Redefining an existing type, let it differentiate from other targets can never be a good thing.
I don't see how this is going to help anyone.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98012/new/

https://reviews.llvm.org/D98012



More information about the cfe-commits mailing list