xref: /llvm-project/llvm/test/Assembler/disubprogram-targetfuncname.ll (revision 75a479221b72c8b4827470485949cebf67d1c967)
1; This test verifies that the targetFuncName attribute in a DISubprogram
2; is assembled/disassembled correctly.
3;
4; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
5;
6; CHECK: !DISubprogram(name: "sub1_.t0p", linkageName: "sub1_.t0p",{{.*}}, targetFuncName: "sub1_")
7;
8; ModuleID = 'main.f'
9source_filename = "main.f"
10target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
11target triple = "x86_64-unknown-linux-gnu"
12
13define internal void @sub1_.t0p(ptr %arg0) #0 !dbg !23 {
14wrap_start11:
15  call void (...) @sub1_(ptr %arg0), !dbg !25
16  ret void, !dbg !25
17}
18
19declare void @sub1_(...)
20
21attributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="all" "intel-lang"="fortran" "loopopt-pipeline"="light" "min-legal-vector-width"="0" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" }
22
23!llvm.module.flags = !{!12, !13}
24!llvm.dbg.cu = !{!7}
25!omp_offload.info = !{}
26
27!4 = !DIFile(filename: "main.f", directory: "/dir")
28!5 = !DISubroutineType(types: !6)
29!6 = !{null}
30!7 = distinct !DICompileUnit(language: DW_LANG_Fortran95, file: !4, producer: "Intel(R) Fortran 22.0-1483", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)
31!12 = !{i32 2, !"Debug Info Version", i32 3}
32!13 = !{i32 2, !"Dwarf Version", i32 4}
33!23 = distinct !DISubprogram(name: "sub1_.t0p", linkageName: "sub1_.t0p", scope: !4, file: !4, type: !5, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !7, retainedNodes: !24, targetFuncName: "sub1_")
34!24 = !{}
35!25 = !DILocation(line: 0, scope: !23)
36