[llvm-commits] [llvm] r116177 - in /llvm/trunk: lib/Target/X86/X86ISelLowering.cpp test/CodeGen/X86/alldiv-divdi3.ll
Michael J. Spencer
bigcheesegs at gmail.com
Sun Oct 10 16:11:06 PDT 2010
Author: mspencer
Date: Sun Oct 10 18:11:06 2010
New Revision: 116177
URL: http://llvm.org/viewvc/llvm-project?rev=116177&view=rev
Log:
X86: MinGW should always use libgcc on Windows.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
llvm/trunk/test/CodeGen/X86/alldiv-divdi3.ll
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=116177&r1=116176&r2=116177&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Oct 10 18:11:06 2010
@@ -96,7 +96,7 @@
setSchedulingPreference(Sched::RegPressure);
setStackPointerRegisterToSaveRestore(X86StackPtr);
- if (Subtarget->isTargetWindows() && !Subtarget->isTargetCygwin()) {
+ if (Subtarget->isTargetWindows() && !Subtarget->isTargetCygMing()) {
// Setup Windows compiler runtime calls.
setLibcallName(RTLIB::SDIV_I64, "_alldiv");
setLibcallCallingConv(RTLIB::SDIV_I64, CallingConv::X86_StdCall);
Modified: llvm/trunk/test/CodeGen/X86/alldiv-divdi3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/alldiv-divdi3.ll?rev=116177&r1=116176&r2=116177&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/alldiv-divdi3.ll (original)
+++ llvm/trunk/test/CodeGen/X86/alldiv-divdi3.ll Sun Oct 10 18:11:06 2010
@@ -1,8 +1,9 @@
; Test that, for a 64 bit signed div, a libcall to alldiv is made on Windows
-; except for cygwin.
+; unless we have libgcc.
; RUN: llc < %s -mtriple i386-pc-win32 | FileCheck %s
-; RUN: llc < %s -mtriple i386-pc-cygwin | FileCheck %s -check-prefix CYGWIN
+; RUN: llc < %s -mtriple i386-pc-cygwin | FileCheck %s -check-prefix USEDIVDI
+; RUN: llc < %s -mtriple i386-pc-mingw32 | FileCheck %s -check-prefix USEDIVDI
define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly {
entry:
@@ -13,4 +14,4 @@
}
; CHECK: alldiv
-; CYGWIN: divdi3
+; USEDIVDI: divdi3
More information about the llvm-commits
mailing list