diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-11 05:29:15 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-11 05:29:15 +0000 |
commit | 335b806c627bf04eb079009abcc41e5d36f2ef22 (patch) | |
tree | 94671b00403d71937297dce23329812bab8981a0 /lib | |
parent | 92bf38c956f60b99d1888b289755bcaa4ab945f5 (diff) | |
download | external_llvm-335b806c627bf04eb079009abcc41e5d36f2ef22.zip external_llvm-335b806c627bf04eb079009abcc41e5d36f2ef22.tar.gz external_llvm-335b806c627bf04eb079009abcc41e5d36f2ef22.tar.bz2 |
X86: Call ulldiv and ftol2 on Windows instead of their libgcc eqivilents.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 09785ea..adf6fff 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -99,7 +99,11 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM) 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()) { |