Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only the test updates where the test passed without further modification (which is almost all of them, as the backend is largely pointer-type agnostic).
14 lines
297 B
LLVM
14 lines
297 B
LLVM
; RUN: llc < %s -mcpu=generic -mtriple=i686-- | FileCheck %s
|
|
|
|
; CHECK-NOT: lea{{.*}}(%esp)
|
|
; CHECK: {{(mov.* %ebp, %esp)|(lea.*\(%ebp\), %esp)}}
|
|
|
|
declare void @bar(ptr %n)
|
|
|
|
define void @foo(i64 %h) {
|
|
%k = trunc i64 %h to i32
|
|
%p = alloca <2 x i64>, i32 %k
|
|
call void @bar(ptr %p)
|
|
ret void
|
|
}
|