summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/umul-with-overflow.ll
blob: 9e69154f10f9db2c5fab99b5853a97eeb8d1af56 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | llc -march=x86 | grep "\\\\\\\<mul"

declare {i32, i1} @llvm.umul.with.overflow.i32(i32 %a, i32 %b)
define i1 @a(i32 %x) zeroext nounwind {
  %res = call {i32, i1} @llvm.umul.with.overflow.i32(i32 %x, i32 3)
  %obil = extractvalue {i32, i1} %res, 1
  ret i1 %obil
}