mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
a24653cdfc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12333 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
266 B
LLVM
15 lines
266 B
LLVM
; RUN: llvm-as < %s | opt -ds-aa -load-vn -gcse -instcombine | llvm-dis | grep sub
|
|
|
|
void %bar(int* %p) {
|
|
store int 15, int* %p
|
|
ret void
|
|
}
|
|
|
|
int %foo(int* %a) {
|
|
%b = load int* %a
|
|
call void %bar(int* %a)
|
|
%d = load int* %a
|
|
%e = sub int %b, %d
|
|
ret int %e
|
|
}
|