summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/pr29022.ll
blob: 85bfc7f1118050d8b1791886f1d4e96e87b35ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc < %s -mcpu=skx -mtriple x86_64-unknown-linux-gnu -verify-machineinstrs | FileCheck %s
; RUN: llc < %s -mcpu=skx -mtriple=x86_64-linux-gnux32 -verify-machineinstrs | FileCheck %s --check-prefix=X32

define i32 @A() {
; CHECK: movq %rsp, %rdi
; CHECK-NEXT: call

; X32: movl %esp, %edi
; X32-NEXT: call
  %alloc = alloca i32, align 8
  %call = call i32 @foo(i32* %alloc)
  ret i32 %call
}

declare i32 @foo(i32*)
OpenPOWER on IntegriCloud