18 lines · plain
1; Test that, for a 64 bit signed div, a libcall to alldiv is made on Windows2; unless we have libgcc.3 4; RUN: llc < %s -mtriple i386-pc-win32 | FileCheck %s5; RUN: llc < %s -mtriple i386-pc-cygwin | FileCheck %s -check-prefix USEDIVDI6; RUN: llc < %s -mtriple i386-pc-mingw32 | FileCheck %s -check-prefix USEDIVDI7 8define i32 @main(i32 %argc, ptr nocapture %argv) nounwind readonly {9entry:10 %conv4 = sext i32 %argc to i6411 %div = sdiv i64 84, %conv412 %conv7 = trunc i64 %div to i3213 ret i32 %conv714}15 16; CHECK: alldiv17; USEDIVDI: divdi318