1
0
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:
Evan Cheng 2006-02-28 23:57:45 +00:00
parent e5ae39621b
commit b02cde9c1f

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