Debug Info Testing: use null instead of an empty string in context field.
[oota-llvm.git] / test / CodeGen / ARM / ifcvt5.ll
index 13c1603c90bdaadff3e1c652ab74cd0e9ccae76e..31e3e00c468e6e57e690ec5ce11db278077d16fc 100644 (file)
@@ -1,4 +1,6 @@
-; RUN: llc < %s -march=arm | FileCheck %s
+; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=cortex-a8 | FileCheck %s -check-prefix=A8
+; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=swift     | FileCheck %s -check-prefix=SWIFT
+; rdar://8402126
 
 @x = external global i32*              ; <i32**> [#uses=1]
 
@@ -9,17 +11,21 @@ entry:
        ret void
 }
 
-define void @t1(i32 %a, i32 %b) {
-; CHECK: t1:
-; CHECK: ldmltfd sp!, {r7, pc}
+define i32 @t1(i32 %a, i32 %b) {
+; A8-LABEL: t1:
+; A8: poplt {r7, pc}
+
+; SWIFT-LABEL: t1:
+; SWIFT: pop {r7, pc}
+; SWIFT: pop {r7, pc}
 entry:
        %tmp1 = icmp sgt i32 %a, 10             ; <i1> [#uses=1]
        br i1 %tmp1, label %cond_true, label %UnifiedReturnBlock
 
 cond_true:             ; preds = %entry
        tail call void @foo( i32 %b )
-       ret void
+       ret i32 0
 
 UnifiedReturnBlock:            ; preds = %entry
-       ret void
+       ret i32 1
 }