aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorFeng Zou <feng.zou@intel.com>2024-11-12 15:54:09 +0800
committerGitHub <noreply@github.com>2024-11-12 15:54:09 +0800
commit28e4aad45a64ec893c02f21b9c2afe7efe5f4a2a (patch)
treede2623033da43b7a6138fad67fc70d5440be7953 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent956361ca080a689a96b6552d28681aaf0ad2f494 (diff)
downloadllvm-28e4aad45a64ec893c02f21b9c2afe7efe5f4a2a.zip
llvm-28e4aad45a64ec893c02f21b9c2afe7efe5f4a2a.tar.gz
llvm-28e4aad45a64ec893c02f21b9c2afe7efe5f4a2a.tar.bz2
[X86][BF16] Add libcall for FP128 -> BF16 (#115825)
This is to fix #115710.
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 231de6b..392cfbd 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -171,6 +171,8 @@ RTLIB::Libcall RTLIB::getFPROUND(EVT OpVT, EVT RetVT) {
return FPROUND_F64_BF16;
if (OpVT == MVT::f80)
return FPROUND_F80_BF16;
+ if (OpVT == MVT::f128)
+ return FPROUND_F128_BF16;
} else if (RetVT == MVT::f32) {
if (OpVT == MVT::f64)
return FPROUND_F64_F32;