llvm-6502/test/Analysis/LoadVN/RLE-Preserve-Volatile.ll
2006-12-02 04:23:10 +00:00

10 lines
205 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | 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
}