Home | History | Annotate | Download | only in OrcMCJIT
      1 ; RUN: %lli -jit-kind=orc-mcjit %s > /dev/null
      2 
      3 @A = global i32 0		; <i32*> [#uses=1]
      4 
      5 define i32 @main() {
      6 	%Ret = call i32 @test( i1 true, i32 0 )		; <i32> [#uses=1]
      7 	ret i32 %Ret
      8 }
      9 
     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]
     14 	ret i32 0
     15 NotTaken:		; preds = %0
     16 	br label %Cont
     17 Taken1:		; preds = %0
     18 	%B = icmp eq i32 %A, 0		; <i1> [#uses=1]
     19 	br i1 %B, label %Cont, label %ExitError
     20 ExitError:		; preds = %Taken1
     21 	ret i32 12
     22 }
     23 
     24