mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
15 lines
434 B
LLVM
15 lines
434 B
LLVM
|
; 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
|
||
|
}
|