xref: /llvm-project/llvm/test/ExecutionEngine/MCJIT/2003-06-05-PHIBug.ll (revision c42c67ad60449fe19949f2664c2a5878b3f72b7e)
1; RUN: %lli -jit-kind=mcjit %s > /dev/null
2; RUN: %lli %s > /dev/null
3
4; Testcase distilled from 256.bzip2.
5
6define i32 @main() {
7entry:
8	%X = add i32 1, -1		; <i32> [#uses=3]
9	br label %Next
10Next:		; preds = %entry
11	%A = phi i32 [ %X, %entry ]		; <i32> [#uses=0]
12	%B = phi i32 [ %X, %entry ]		; <i32> [#uses=0]
13	%C = phi i32 [ %X, %entry ]		; <i32> [#uses=1]
14	ret i32 %C
15}
16
17