brintos

brintos / llvm-project-archived public Read only

0
0
Text · 629 B · cc04f53 Raw
25 lines · plain
1; RUN: %lli -jit-kind=mcjit %s > /dev/null2; RUN: %lli %s > /dev/null3 4@A = global i32 0		; <ptr> [#uses=1]5 6define i32 @main() {7	%Ret = call i32 @test( i1 true, i32 0 )		; <i32> [#uses=1]8	ret i32 %Ret9}10 11define i32 @test(i1 %c, i32 %A) {12	br i1 %c, label %Taken1, label %NotTaken13Cont:		; preds = %Taken1, %NotTaken14	%V = phi i32 [ 0, %NotTaken ], [ sub (i32 ptrtoint (ptr @A to i32), i32 1234), %Taken1 ]		; <i32> [#uses=0]15	ret i32 016NotTaken:		; preds = %017	br label %Cont18Taken1:		; preds = %019	%B = icmp eq i32 %A, 0		; <i1> [#uses=1]20	br i1 %B, label %Cont, label %ExitError21ExitError:		; preds = %Taken122	ret i32 1223}24 25