blob: 6831ef0bc1b91059808fd67458fd08c3793307d8 [file] [log] [blame]
Chris Lattner680f6a42003-09-08 17:43:36 +00001
2; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | dis | grep sub
3
4int %test(int* %P) {
5 %X = load volatile int* %P
6 %Y = load volatile int* %P
7 %Z = sub int %X, %Y
8 ret int %Z
9}