forked from OSchip/llvm-project
Add a lea instruction selection test case.
llvm-svn: 28549
This commit is contained in:
parent
749138582e
commit
905e88caaa
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue