xref: /llvm-project/llvm/test/CodeGen/X86/pr29022.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -mcpu=skx -mtriple x86_64-unknown-linux-gnu -verify-machineinstrs | FileCheck %s
2; RUN: llc < %s -mcpu=skx -mtriple=x86_64-linux-gnux32 -verify-machineinstrs | FileCheck %s --check-prefix=X32
3
4define i32 @A() {
5; CHECK: movq %rsp, %rdi
6; CHECK-NEXT: call
7
8; X32: movl %esp, %edi
9; X32-NEXT: call
10  %alloc = alloca i32, align 8
11  %call = call i32 @foo(ptr %alloc)
12  ret i32 %call
13}
14
15declare i32 @foo(ptr)
16