summaryrefslogtreecommitdiff
path: root/test/Analysis/LoadVN/RLE-Preserve-Volatile.ll
blob: c320bc3eeaca08656292f3385f37634bcce03a93 (plain)
1
2
3
4
5
6
7
8
9

; 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
}