projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
07cb1805e83fe2e58ee579ee60a55b9aef13255f
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
lea.ll
1
; RUN: llvm-as < %s | llc -march=x86 | grep lea
2
3
%G = weak global int 0
4
int %test1(int* %P, int %X) {
5
%tmp.1 = getelementptr int* %P, int %X
6
%tmp.2 = load int* %tmp.1
7
store int %tmp.2, int* %G
8
%tmp.3 = sub int %tmp.2, 9
9
ret int %tmp.3
10
}