xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/x86-64-call.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: llc < %s -mcpu=generic -mtriple=x86_64-pc-linux -verify-machineinstrs | FileCheck %s
2; RUN: llc < %s -mcpu=generic -mtriple=x86_64-pc-linux-gnux32 -verify-machineinstrs | FileCheck %s
3; RUN: llc < %s -mcpu=generic -mtriple=i686-pc-linux -verify-machineinstrs | FileCheck %s -check-prefix=IA32
4
5; trivial test for correct call suffix
6
7define i32 @far() nounwind uwtable {
8entry:
9; CHECK: callq foo
10; IA32: calll foo
11  tail call void @foo() nounwind
12  ret i32 0
13}
14
15declare void @foo()
16