xref: /llvm-project/llvm/test/CodeGen/Generic/2005-04-09-GlobalInPHI.ll (revision 0e8bd5a44a1bd8034706189b49a7a816c59304cd)
1; RUN: llc < %s
2        %struct.TypHeader = type { i32, ptr, [3 x i8], i8 }
3@.str_67 = external global [4 x i8]             ; <ptr> [#uses=1]
4@.str_87 = external global [17 x i8]            ; <ptr> [#uses=1]
5
6define void @PrBinop() {
7entry:
8        br i1 false, label %cond_true, label %else.0
9
10cond_true:              ; preds = %entry
11        br label %else.0
12
13else.0:         ; preds = %cond_true, %entry
14        %tmp.167.1 = phi i32 [ ptrtoint (ptr @.str_87 to i32), %entry ], [ 0, %cond_true ]               ; <i32> [#uses=0]
15        call void @Pr( ptr @.str_67, i32 0, i32 0 )
16        ret void
17}
18
19declare void @Pr(ptr, i32, i32)
20
21