[llvm] [TLI] Add basic support for fdim libcall (PR #108702)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 00:07:37 PDT 2024


================
@@ -333,3 +333,15 @@ define float @float_powsqrt(float %x) nounwind readnone {
     %1 = call ninf float @powf(float %x, float 0.5)
     ret float %1
 }
+
+define fp128 @fdim_fp128(fp128 %x, fp128 %y) nounwind readnone{
+; CHECK-LABEL: define fp128 @fdim_fp128(
+; MINGW32-NOT: fp128 @fdiml
+;
+  %1 = call fp128 @fdiml(fp128 %x, fp128 %y)
----------------
braw-lee wrote:

yh, unoptimizable call
tbh i thought windows will not generate `fdiml` and that would be enough
i will try to other 2 ways, but i think i will need some help, i am new to the codebase

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


More information about the llvm-commits mailing list