[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/lea.ll

Evan Cheng evan.cheng at apple.com
Mon May 29 23:54:07 PDT 2006



Changes in directory llvm/test/Regression/CodeGen/X86:

lea.ll updated: 1.3 -> 1.4
---
Log message:

Add a lea instruction selection test case.

---
Diffs of the changes:  (+7 -0)

 lea.ll |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/test/Regression/CodeGen/X86/lea.ll
diff -u /dev/null llvm/test/Regression/CodeGen/X86/lea.ll:1.4
--- /dev/null	Tue May 30 01:54:05 2006
+++ llvm/test/Regression/CodeGen/X86/lea.ll	Tue May 30 01:53:55 2006
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86
+; RUN: llvm-as < %s | llc -march=x86 | not grep orl
+int %test(int %x) {
+	%tmp1 = shl int %x, ubyte 3
+	%tmp2 = add int %tmp1, 7
+	ret int %tmp2
+}






More information about the llvm-commits mailing list