xref: /llvm-project/llvm/test/DebugInfo/M68k/calling-convention.ll (revision 42b707e5b438be538e3560429d0b4afcd7ca05be)
1; RUN: llc --mtriple=m68k -filetype=obj %s -o %t
2; RUN: llvm-dwarfdump -v %t | FileCheck %s
3
4; CHECK-LABEL: DW_TAG_subprogram
5; CHECK: DW_AT_calling_convention [DW_FORM_data1]        (DW_CC_LLVM_M68kRTD)
6define m68k_rtdcc void @foo() !dbg !3 {
7entry:
8  ret void
9}
10
11!llvm.dbg.cu = !{!0}
12!llvm.module.flags = !{!2}
13
14!0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang version 17.0.0 (https://github.com/llvm/llvm-project.git)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
15!1 = !DIFile(filename: "foo.c", directory: "/path/to/file")
16!2 = !{i32 2, !"Debug Info Version", i32 3}
17!3 = distinct !DISubprogram(name: "foo", scope: !4, file: !4, line: 4, type: !5, scopeLine: 4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !7)
18!4 = !DIFile(filename: "./foo.c", directory: "/path/to/file")
19!5 = !DISubroutineType(cc: DW_CC_LLVM_M68kRTD, types: !6)
20!6 = !{null}
21!7 = !{}
22