• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: %lli -jit-kind=orc-mcjit %s > /dev/null
2
3; test phi node
4@Y = global i32 6		; <i32*> [#uses=1]
5
6define void @blah(i32* %X) {
7; <label>:0
8	br label %T
9T:		; preds = %Dead, %0
10	phi i32* [ %X, %0 ], [ @Y, %Dead ]		; <i32*>:1 [#uses=0]
11	ret void
12Dead:		; No predecessors!
13	br label %T
14}
15
16define i32 @test(i1 %C) {
17; <label>:0
18	br i1 %C, label %T, label %T
19T:		; preds = %0, %0
20	%X = phi i32 [ 123, %0 ], [ 123, %0 ]		; <i32> [#uses=1]
21	ret i32 %X
22}
23
24define i32 @main() {
25; <label>:0
26	br label %Test
27Test:		; preds = %Dead, %0
28	%X = phi i32 [ 0, %0 ], [ %Y, %Dead ]		; <i32> [#uses=1]
29	ret i32 %X
30Dead:		; No predecessors!
31	%Y = ashr i32 12, 4		; <i32> [#uses=1]
32	br label %Test
33}
34
35