blob: e982e437d6871b77c2b568844bdb12e88294986b [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=bfin -verify-machineinstrs > %t
Jakob Stoklund Olesend9509412009-08-02 17:32:10 +00002
3 type { i24, i1 } ; type %0
4
5define i1 @func2(i24 zeroext %v1, i24 zeroext %v2) nounwind {
6entry:
7 %t = call %0 @llvm.uadd.with.overflow.i24(i24 %v1, i24 %v2) ; <%0> [#uses=1]
8 %obit = extractvalue %0 %t, 1 ; <i1> [#uses=1]
9 br i1 %obit, label %carry, label %normal
10
11normal: ; preds = %entry
12 ret i1 true
13
14carry: ; preds = %entry
15 ret i1 false
16}
17
18declare %0 @llvm.uadd.with.overflow.i24(i24, i24) nounwind