1 ; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
5 @sES_closure = external global [0 x i64]
6 declare ghccc void @sEH_info(ptr noalias nocapture, ptr noalias nocapture, ptr noalias nocapture, i64, i64, i64) align 8
8 define ghccc void @rBM_info(ptr noalias nocapture %Base_Arg, ptr noalias nocapture %Sp_Arg, ptr noalias nocapture %Hp_Arg, i64 %R1_Arg, i64 %R2_Arg, i64 %R3_Arg) nounwind align 8 {
10 %ln265 = getelementptr inbounds i64, ptr %Sp_Arg, i64 -2
11 %ln266 = ptrtoint ptr %ln265 to i64
12 %ln268 = icmp ult i64 %ln266, %R3_Arg
13 br i1 %ln268, label %c26a, label %n26p
16 %and = and i64 ptrtoint (ptr @sES_closure to i64), 7
17 %cmp = icmp ne i64 %and, 0
18 br i1 %cmp, label %c1ZP.i, label %n1ZQ.i
20 n1ZQ.i: ; preds = %n26p
21 %ln1ZT.i = load i64, ptr @sES_closure, align 8
22 %ln1ZU.i = inttoptr i64 %ln1ZT.i to ptr
23 tail call ghccc void %ln1ZU.i(ptr %Base_Arg, ptr %Sp_Arg, ptr %Hp_Arg, i64 ptrtoint (ptr @sES_closure to i64), i64 ptrtoint (ptr @sES_closure to i64), i64 %R3_Arg) nounwind
24 br label %rBL_info.exit
26 c1ZP.i: ; preds = %n26p
27 tail call ghccc void @sEH_info(ptr %Base_Arg, ptr %Sp_Arg, ptr %Hp_Arg, i64 ptrtoint (ptr @sES_closure to i64), i64 ptrtoint (ptr @sES_closure to i64), i64 %R3_Arg) nounwind
28 br label %rBL_info.exit
30 rBL_info.exit: ; preds = %c1ZP.i, %n1ZQ.i
34 %ln27h = getelementptr inbounds i64, ptr %Base_Arg, i64 -2
35 %ln27j = load i64, ptr %ln27h, align 8
36 %ln27k = inttoptr i64 %ln27j to ptr
37 tail call ghccc void %ln27k(ptr %Base_Arg, ptr %Sp_Arg, ptr %Hp_Arg, i64 %R1_Arg, i64 %R2_Arg, i64 %R3_Arg) nounwind