1 ; RUN: llc < %s -mtriple=arm64-apple-ios7.0 | FileCheck %s
2 ; Test case related to <rdar://problem/15633429>.
5 define i64 @small(i64 %encodedBase) {
7 %lnot.i.i = icmp eq i64 %encodedBase, 0
8 br i1 %lnot.i.i, label %if, label %else
10 %tmp1 = call ptr @llvm.returnaddress(i32 0)
13 %tmp3 = call ptr @llvm.returnaddress(i32 0)
14 %ptr = getelementptr inbounds i8, ptr %tmp3, i64 -16
15 %ld = load i8, ptr %ptr, align 4
16 %tmp2 = inttoptr i8 %ld to ptr
19 %tmp = phi ptr [ %tmp1, %if ], [ %tmp2, %else ]
20 %coerce.val.pi56 = ptrtoint ptr %tmp to i64
21 ret i64 %coerce.val.pi56
24 declare ptr @llvm.returnaddress(i32)