summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/epilogue.ll
blob: 5a378e19c49a88b2847a4ee476a30e3f1c936239 (plain)
1
2
3
4
5
6
7
8
9
10
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
}
OpenPOWER on IntegriCloud