blob: d76b4810cb057a98376e2b168021e63c1ad37953 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -ipsccp | llvm-dis | not grep global
2
3%G = internal global int undef
4
5implementation
6
7void %foo() {
8 %X = load int* %G
9 store int %X, int* %G
10 ret void
11}
12
13int %bar() {
14 %V = load int* %G
15 %C = seteq int %V, 17
16 br bool %C, label %T, label %F
17T:
18 store int 17, int* %G
19 ret int %V
20F:
21 store int 123, int* %G
22 ret int 0
23}