[compiler-rt] [llvm] [X86][BF16] Add libcall for FP128 -> BF16 (PR #115825)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 17:48:43 PST 2024


================
@@ -1975,3 +1975,25 @@ define bfloat @PR108936(x86_fp80 %0) nounwind {
   %2 = fptrunc x86_fp80 %0 to bfloat
   ret bfloat %2
 }
+
+define bfloat @PR115710(fp128 %0) nounwind {
+; X86-LABEL: PR115710:
+; X86:       # %bb.0:
+; X86-NEXT:    subl $28, %esp
+; X86-NEXT:    vmovaps {{[0-9]+}}(%esp), %xmm0
+; X86-NEXT:    vmovups %xmm0, (%esp)
+; X86-NEXT:    calll __trunctfbf2
----------------
topperc wrote:

The result from __trunctfbf2 should be in xmm0 not eax right?

https://github.com/llvm/llvm-project/pull/115825


More information about the llvm-commits mailing list