mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Add a test case for left shift by 1. We should not be using lea for this.
llvm-svn: 26431
This commit is contained in:
parent
e5ae39621b
commit
b02cde9c1f
9
test/Regression/CodeGen/X86/shift-one.ll
Normal file
9
test/Regression/CodeGen/X86/shift-one.ll
Normal file
@ -0,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
|
||||
}
|
Loading…
Reference in New Issue
Block a user