blob: d522bd80acfd9f40fd5e892ab5392efe0ef79d75 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 | grep "\\\\\\\<mul"
Eli Friedmandb3c1692009-06-16 06:58:29 +00002
3declare {i32, i1} @llvm.umul.with.overflow.i32(i32 %a, i32 %b)
4define i1 @a(i32 %x) zeroext nounwind {
5 %res = call {i32, i1} @llvm.umul.with.overflow.i32(i32 %x, i32 3)
6 %obil = extractvalue {i32, i1} %res, 1
7 ret i1 %obil
8}