llvm-6502/test/Analysis/LoadVN/RLE-Preserve-Volatile.ll
2003-09-16 15:29:54 +00:00

10 lines
190 B
LLVM

; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | llvm-dis | grep sub
int %test(int* %P) {
%X = volatile load int* %P
%Y = volatile load int* %P
%Z = sub int %X, %Y
ret int %Z
}