2015-02-28 02:32:11 +08:00
|
|
|
; 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
|
2014-11-06 03:27:21 +08:00
|
|
|
|
|
|
|
; 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
|
|
|
|
}
|