blob: 8dcf3f84e9629777a15fb92221f918a514772747 [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
Chris Lattnera53616d2011-06-19 00:03:46 +00003 %0 = type { i24, i1 } ; type %0
Jakob Stoklund Olesend9509412009-08-02 17:32:10 +00004
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