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 7 define void @foo(i32 %a) { 8 entry: 9 %tmp = load i32** @x ; <i32*> [#uses=1] 10 store i32 %a, i32* %tmp 11 ret void 12 } 13 14 define i32 @t1(i32 %a, i32 %b) { 15 ; A8: t1: 16 ; A8: poplt {r7, pc} 17 18 ; SWIFT: t1: 19 ; SWIFT: pop {r7, pc} 20 ; SWIFT: pop {r7, pc} 21 entry: 22 %tmp1 = icmp sgt i32 %a, 10 ; <i1> [#uses=1] 23 br i1 %tmp1, label %cond_true, label %UnifiedReturnBlock 24 25 cond_true: ; preds = %entry 26 tail call void @foo( i32 %b ) 27 ret i32 0 28 29 UnifiedReturnBlock: ; preds = %entry 30 ret i32 1 31 } 32