blob: 250d7d87ceeea3b038d95047741e1feedb5bbe8a [file] [log] [blame]
Michael J. Spencer1802a9f2010-10-10 22:04:34 +00001; Test that, for a 64 bit signed div, a libcall to alldiv is made on Windows
2; except for cygwin.
3
4; RUN: llc < %s -mtriple i386-pc-win32 | FileCheck %s
5; RUN: llc < %s -mtriple i386-pc-cygwin | FileCheck %s -check-prefix CYGWIN
6
7define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly {
8entry:
9 %conv4 = sext i32 %argc to i64
10 %div = sdiv i64 84, %conv4
11 %conv7 = trunc i64 %div to i32
12 ret i32 %conv7
13}
14
15; CHECK: alldiv
16; CYGWIN: divdi3