aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorPhoebe Wang <phoebe.wang@intel.com>2024-09-18 21:23:10 +0800
committerGitHub <noreply@github.com>2024-09-18 21:23:10 +0800
commit76eda76f9f36646b8b393f2369359d02e24e20c8 (patch)
tree9c05b5b73580b6ee5f884b6abe4f76fd0f8b459a /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent5ac97d397c2088c3ac0a113506e57ab9b1e69ac8 (diff)
downloadllvm-76eda76f9f36646b8b393f2369359d02e24e20c8.zip
llvm-76eda76f9f36646b8b393f2369359d02e24e20c8.tar.gz
llvm-76eda76f9f36646b8b393f2369359d02e24e20c8.tar.bz2
[X86][BF16] Add libcall for F80 -> BF16 (#109116)
This fixes #108936, but the calling convention doesn't match with GCC. I doubt we have such a lib function for now, so leave the calling convention as is.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index eb3190c..9fdde45 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -169,6 +169,8 @@ RTLIB::Libcall RTLIB::getFPROUND(EVT OpVT, EVT RetVT) {
return FPROUND_F32_BF16;
if (OpVT == MVT::f64)
return FPROUND_F64_BF16;
+ if (OpVT == MVT::f80)
+ return FPROUND_F80_BF16;
} else if (RetVT == MVT::f32) {
if (OpVT == MVT::f64)
return FPROUND_F64_F32;