projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add a test case for left shift by 1. We should not be using lea for this.
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
shift-one.ll
1
; RUN: llvm-as < %s | llc -march=x86 | not grep 'leal'
2
3
%x = external global int
4
5
int %test() {
6
%tmp.0 = load int* %x
7
%tmp.1 = shl int %tmp.0, ubyte 1
8
ret int %tmp.1
9
}