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

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