If we can, lower the multiply part of a umulo/smulo call to a libcall
[oota-llvm.git] / test / CodeGen / ARM / umulo-32.ll
1 ; RUN: llc < %s -mtriple=thumbv6-apple-darwin | FileCheck %s
2
3 %umul.ty = type { i32, i1 }
4
5 define i32 @func(i32 %a) nounwind {
6 ; CHECK: func
7 ; CHECK: muldi3
8   %tmp0 = tail call %umul.ty @llvm.umul.with.overflow.i32(i32 %a, i32 37)
9   %tmp1 = extractvalue %umul.ty %tmp0, 0
10   %tmp2 = select i1 undef, i32 -1, i32 %tmp1
11   ret i32 %tmp2
12 }
13
14 declare %umul.ty @llvm.umul.with.overflow.i32(i32, i32) nounwind readnone