New test.

llvm-svn: 40020
This commit is contained in:
Evan Cheng 2007-07-18 21:39:16 +00:00
parent 8941071ae1
commit dcc3451f8a
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
; RUN: llvm-as < %s | llc -march=x86 | not grep lea
; RUN: llvm-as < %s | llc -march=x86 | grep {movl %ebp}
declare void @bar(<2 x i64>* %n)
define void @foo(i64 %h) {
%k = trunc i64 %h to i32
%p = alloca <2 x i64>, i32 %k
call void @bar(<2 x i64>* %p)
ret void
}