Add a lea instruction selection test case.

llvm-svn: 28549
This commit is contained in:
Evan Cheng 2006-05-30 06:53:55 +00:00
parent 749138582e
commit 905e88caaa
1 changed files with 7 additions and 0 deletions

View File

@ -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
}