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

Evan Cheng evan.cheng at apple.com
Tue Feb 28 15:57:58 PST 2006



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

shift-one.ll added (r1.1)
---
Log message:

Add a test case for left shift by 1. We should not be using lea for this.


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

 shift-one.ll |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/test/Regression/CodeGen/X86/shift-one.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/shift-one.ll:1.1
*** /dev/null	Tue Feb 28 17:57:55 2006
--- llvm/test/Regression/CodeGen/X86/shift-one.ll	Tue Feb 28 17:57:45 2006
***************
*** 0 ****
--- 1,9 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | not grep 'leal'
+ 
+ %x = external global int
+ 
+ int %test() {
+ 	%tmp.0 = load int* %x
+ 	%tmp.1 = shl int %tmp.0, ubyte 1
+ 	ret int %tmp.1
+ }






More information about the llvm-commits mailing list