aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/fast-isel-x32.ll
blob: d49a108010650730e30ed488b491865def9e5950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; 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
}