blob: eef5fa83c96db7e0d6cc86ba6123365c5e3c5554 [file] [log] [blame]
Reid Spencerc6b9efa2007-04-13 22:33:10 +00001; RUN: llvm-as < %s | opt -ipsccp | llvm-dis -o /dev/null -f &&
2; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | not grep global
3
4@G = internal global i66 undef
5
6
7
8define void @foo() {
9 %X = load i66* @G
10 store i66 %X, i66* @G
11 ret void
12}
13
14define i66 @bar() {
15 %V = load i66* @G
16 %C = icmp eq i66 %V, 17
17 br i1 %C, label %T, label %F
18T:
19 store i66 17, i66* @G
20 ret i66 %V
21F:
22 store i66 123, i66* @G
23 ret i66 0
24}