llvm.org GIT mirror llvm / 5b05711 test / CodeGen / X86 / epilogue.ll
5b05711

Tree @5b05711 (Download .tar.gz)

epilogue.ll @5b05711raw · history · blame

; RUN: llc < %s -mcpu=generic -march=x86 | FileCheck %s

; CHECK-NOT: lea{{.*}}(%esp)
; CHECK: {{(mov.* %ebp, %esp)|(lea.*\(%ebp\), %esp)}}

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
}