1; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=cortex-a8 | FileCheck %s -check-prefix=A8
2; RUN: llc < %s -mtriple=armv7-apple-ios -mcpu=swift     | FileCheck %s -check-prefix=SWIFT
3; rdar://8402126
4
5@x = external global i32*		; <i32**> [#uses=1]
6
7define void @foo(i32 %a) {
8entry:
9	%tmp = load i32*, i32** @x		; <i32*> [#uses=1]
10	store i32 %a, i32* %tmp
11	ret void
12}
13
14define i32 @t1(i32 %a, i32 %b) {
15; A8-LABEL: t1:
16; A8: bxlt lr
17
18; SWIFT-LABEL: t1:
19; SWIFT: bxlt lr
20; SWIFT: pop {r7, pc}
21entry:
22	%tmp1 = icmp sgt i32 %a, 10		; <i1> [#uses=1]
23	br i1 %tmp1, label %cond_true, label %UnifiedReturnBlock
24
25cond_true:		; preds = %entry
26	tail call void @foo( i32 %b )
27	ret i32 0
28
29UnifiedReturnBlock:		; preds = %entry
30	ret i32 1
31}
32