[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/lea.ll
Evan Cheng
evan.cheng at apple.com
Wed Feb 22 16:12:24 PST 2006
Changes in directory llvm/test/Regression/CodeGen/X86:
lea.ll added (r1.1)
---
Log message:
Add a test case for 'lea'.
---
Diffs of the changes: (+10 -0)
lea.ll | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/test/Regression/CodeGen/X86/lea.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/lea.ll:1.1
*** /dev/null Wed Feb 22 18:12:22 2006
--- llvm/test/Regression/CodeGen/X86/lea.ll Wed Feb 22 18:12:12 2006
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | grep lea
+
+ %G = weak global int 0
+ int %test1(int* %P, int %X) {
+ %tmp.1 = getelementptr int* %P, int %X
+ %tmp.2 = load int* %tmp.1
+ store int %tmp.2, int* %G
+ %tmp.3 = sub int %tmp.2, 9
+ ret int %tmp.3
+ }
More information about the llvm-commits
mailing list