llvm-project/llvm/test/CodeGen/X86/epilogue.ll

12 lines
254 B
LLVM
Raw Normal View History

; RUN: llc < %s -march=x86 | not grep lea
; RUN: llc < %s -march=x86 | grep {movl %ebp}
2007-07-19 05:39:16 +08:00
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
}