aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorAlex Bradbury <asb@igalia.com>2023-06-23 14:17:57 +0100
committerAlex Bradbury <asb@igalia.com>2023-06-23 14:18:59 +0100
commit690b1c847f0b188202a86dc25a0a76fd8c4618f4 (patch)
tree161d4c3f8de7c5f1580eba9797b1c972ebdf5ac2 /llvm/lib/Object/ObjectFile.cpp
parentd7feba74b649cb8aabc0cb09b9bef5d79659e31c (diff)
downloadllvm-690b1c847f0b188202a86dc25a0a76fd8c4618f4.zip
llvm-690b1c847f0b188202a86dc25a0a76fd8c4618f4.tar.gz
llvm-690b1c847f0b188202a86dc25a0a76fd8c4618f4.tar.bz2
[RISCV] Implement support for bf16 truncate/extend on hard FP targets
For the same reasons as D151284, this requires custom lowering of the truncate libcall on hard float ABIs (the normal libcall code path is used on soft ABIs). The extend operation is implemented by a shift just as in the standard legalisation, but needs to be custom lowered because i32 isn't a legal type on RV64. This patch aims to make the minimal changes that result in correct codegen for the bfloat.ll tests. Differential Revision: https://reviews.llvm.org/D151663
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions