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).
15 lines
406 B
LLVM
15 lines
406 B
LLVM
; RUN: llc < %s -mtriple=x86_64-linux-gnux32 -fast-isel -fast-isel-abort=1 | FileCheck %s
|
|
; RUN: llc < %s -mtriple=x86_64-nacl -fast-isel -fast-isel-abort=1 | FileCheck %s
|
|
|
|
; Test that alloca addresses are materialized with the right size instruction.
|
|
|
|
declare void @bar(ptr %arg)
|
|
|
|
; CHECK-LABEL: @foo
|
|
define void @foo() {
|
|
%a = alloca i32
|
|
; CHECK: leal {{.*}}, %edi
|
|
call void @bar(ptr %a)
|
|
ret void
|
|
}
|