[llvm-commits] [llvm] r116188 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Sun Oct 10 22:29:15 PDT 2010
Author: mspencer
Date: Mon Oct 11 00:29:15 2010
New Revision: 116188
URL: http://llvm.org/viewvc/llvm-project?rev=116188&view=rev
Log:
X86: Call ulldiv and ftol2 on Windows instead of their libgcc eqivilents.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=116188&r1=116187&r2=116188&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Mon Oct 11 00:29:15 2010
@@ -99,7 +99,11 @@
if (Subtarget->isTargetWindows() && !Subtarget->isTargetCygMing()) {
// Setup Windows compiler runtime calls.
setLibcallName(RTLIB::SDIV_I64, "_alldiv");
+ setLibcallName(RTLIB::UDIV_I64, "_aulldiv");
+ setLibcallName(RTLIB::FPTOUINT_F64_I64, "_ftol2");
setLibcallCallingConv(RTLIB::SDIV_I64, CallingConv::X86_StdCall);
+ setLibcallCallingConv(RTLIB::UDIV_I64, CallingConv::X86_StdCall);
+ setLibcallCallingConv(RTLIB::FPTOUINT_F64_I64, CallingConv::X86_StdCall);
}
if (Subtarget->isTargetDarwin()) {
More information about the llvm-commits
mailing list