Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Analysis / LoadVN / RLE-Preserve-Volatile.ll
1
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse -instcombine | llvm-dis | grep sub
3
4 int %test(int* %P) {
5         %X = volatile load int* %P
6         %Y = volatile load int* %P
7         %Z = sub int %X, %Y
8         ret int %Z
9 }