blob: c99ae5820b2df548c05f4757f121d8ed4cc192a9 [file] [log] [blame]
Dan Gohman0f3ef7be2009-09-11 18:17:12 +00001; RUN: opt < %s -ipsccp -S | not grep global
Reid Spencer9f9fe702007-04-13 22:33:10 +00002
3@G = internal global i66 undef
4
5
6
7define void @foo() {
David Blaikiea79ac142015-02-27 21:17:42 +00008 %X = load i66, i66* @G
Reid Spencer9f9fe702007-04-13 22:33:10 +00009 store i66 %X, i66* @G
10 ret void
11}
12
13define i66 @bar() {
David Blaikiea79ac142015-02-27 21:17:42 +000014 %V = load i66, i66* @G
Reid Spencer9f9fe702007-04-13 22:33:10 +000015 %C = icmp eq i66 %V, 17
16 br i1 %C, label %T, label %F
17T:
18 store i66 17, i66* @G
19 ret i66 %V
20F:
21 store i66 123, i66* @G
22 ret i66 0
23}