2003-09-08 17:43:36 +00:00
|
|
|
|
|
|
|
; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | dis | grep sub
|
|
|
|
|
|
|
|
int %test(int* %P) {
|
2003-09-08 17:45:18 +00:00
|
|
|
%X = volatile load int* %P
|
|
|
|
%Y = volatile load int* %P
|
2003-09-08 17:43:36 +00:00
|
|
|
%Z = sub int %X, %Y
|
|
|
|
ret int %Z
|
|
|
|
}
|