; RUN: llc < %s -mtriple=x86_64-linux-gnux32 -fast-isel -fast-isel-abort -regalloc=fast | FileCheck %s
; RUN: llc < %s -mtriple=x86_64-nacl -fast-isel -fast-isel-abort -regalloc=fast | FileCheck %s

; Test that alloca addresses are materialized with the right size instruction.

declare void @bar(i32* %arg)

; CHECK-LABEL: @foo
define void @foo() {
  %a = alloca i32
; CHECK: leal {{.*}}, %edi
  call void @bar(i32* %a)
  ret void
}

; RUN: llc < %s -mtriple=x86_64-linux-gnux32 -fast-isel -fast-isel-abort | FileCheck %s
; RUN: llc < %s -mtriple=x86_64-nacl -fast-isel -fast-isel-abort | FileCheck %s

; Test that alloca addresses are materialized with the right size instruction.

declare void @bar(i32* %arg)

; CHECK-LABEL: @foo
define void @foo() {
  %a = alloca i32
; CHECK: leal {{.*}}, %edi
  call void @bar(i32* %a)
  ret void
}

Fix test breakage from r221386
Fix test breakage from r221386

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@221389 91177308-0d34-0410-b5e6-96231b3b80d8
