Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / GlobalOpt / load-store-global.llx
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt | llvm-dis | not grep G
2
3 %G = internal global int 17
4
5 void %foo() {
6         %V = load int* %G
7         store int %V, int* %G   ;; Doesn't change the value
8         ret void
9 }
10 int %bar() {
11         %X = load int* %G
12         ret int %X
13 }
14