X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FVerifier%2FPhiGrouping.ll;h=dc529dced3657cd172d811ad82b8a3de2742d46d;hb=d5520987d146487733e2453c8f0cf6ddd0f6ceba;hp=71fbb1c4e5d2347b94ca5d96511f0df3cdfdbc4f;hpb=23e07e73a8d05902278d506eba34b321e2302bb6;p=oota-llvm.git diff --git a/test/Verifier/PhiGrouping.ll b/test/Verifier/PhiGrouping.ll index 71fbb1c4e5d..dc529dced36 100644 --- a/test/Verifier/PhiGrouping.ll +++ b/test/Verifier/PhiGrouping.ll @@ -1,15 +1,17 @@ +; RUN: not llvm-as < %s |& grep {PHI nodes not grouped at top} -int "test"(int %i, int %j, bool %c) { - br bool %c, label %A, label %B + +define i32 @test(i32 %i, i32 %j, i1 %c) { + br i1 %c, label %A, label %B A: br label %C B: br label %C C: - %a = phi int [%i, %A], [%j, %B] - %x = add int %a, 0 ; Error, PHI's should be grouped! - %b = phi int [%i, %A], [%j, %B] - ret int %x + %a = phi i32 [%i, %A], [%j, %B] + %x = add i32 %a, 0 ; Error, PHI's should be grouped! + %b = phi i32 [%i, %A], [%j, %B] + ret i32 %x }