1 ; RUN: %lli -jit-kind=orc-mcjit %s > /dev/null
3 @A = global i32 0 ; <i32*> [#uses=1]
6 %Ret = call i32 @test( i1 true, i32 0 ) ; <i32> [#uses=1]
10 define i32 @test(i1 %c, i32 %A) {
11 br i1 %c, label %Taken1, label %NotTaken
12 Cont: ; preds = %Taken1, %NotTaken
13 %V = phi i32 [ 0, %NotTaken ], [ sub (i32 ptrtoint (i32* @A to i32), i32 1234), %Taken1 ] ; <i32> [#uses=0]
15 NotTaken: ; preds = %0
18 %B = icmp eq i32 %A, 0 ; <i1> [#uses=1]
19 br i1 %B, label %Cont, label %ExitError
20 ExitError: ; preds = %Taken1