[PATCH] D151313: [RISCV][BF16] Make backend type bf16 to follow the psABI

Jun Sha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 06:51:21 PDT 2023


joshua-arch1 added a comment.

In D151313#4367945 <https://reviews.llvm.org/D151313#4367945>, @asb wrote:

> Sorry to not have specifics on this - I'm working on a patch in this same area and as you've found as well, it's quite fiddly. Using the `__truncsfhf2` and `__extendhfsf2` libcalls isn't correct - they expect 16-bit floats in a different format to bfloat16.

Since we cannot directly use the `__truncsfhf2` and `__extendhfsf2` libcalls, how can we lower FP_TO_BF16 and BF16_TO_FP in absence of Zfbfmin?


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

https://reviews.llvm.org/D151313



More information about the llvm-commits mailing list