[llvm] [SDAG] Honor signed arguments in floating point libcalls (PR #109134)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 10:24:17 PDT 2024


================
@@ -2205,7 +2205,13 @@ void SelectionDAGLegalize::ExpandFPLibCall(SDNode* Node,
     Results.push_back(Tmp.first);
     Results.push_back(Tmp.second);
   } else {
-    SDValue Tmp = ExpandLibCall(LC, Node, false).first;
+    bool IsSignedArgument = false;
+    switch (Node->getOpcode()) {
+    case ISD::FLDEXP:
+      IsSignedArgument = true;
+      break;
+    }
----------------
arsenm wrote:

No need to make it complicated for one case; if you wanted a general thing it should be a separate helper function 

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


More information about the llvm-commits mailing list