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