diff options
author | Phoebe Wang <phoebe.wang@intel.com> | 2024-09-19 15:39:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 15:39:07 +0800 |
commit | c18be32185ca10e55bdef0f2d43629ccfb7e89eb (patch) | |
tree | 559ed2f34bbf159b88d8abaf7e45df4b7b3b6b4c /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
parent | dc6876fc9890f556ed1692141643c73b1542ee5b (diff) | |
download | llvm-c18be32185ca10e55bdef0f2d43629ccfb7e89eb.zip llvm-c18be32185ca10e55bdef0f2d43629ccfb7e89eb.tar.gz llvm-c18be32185ca10e55bdef0f2d43629ccfb7e89eb.tar.bz2 |
Reland "[X86][BF16] Add libcall for F80 -> BF16 (#109116)" (#109143)
This reverts commit ababfee78714313a0cad87591b819f0944b90d09.
Add X86 FP80 check.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 2 |
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; |