xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/debug-info-no-frame.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=armv7-none-linux-gnueabihf < %s -o - | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind
4*9880d681SAndroid Build Coastguard Workerdefine void @need_cfi_def_cfa_offset() #0 !dbg !3 {
5*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: need_cfi_def_cfa_offset:
6*9880d681SAndroid Build Coastguard Worker; CHECK: sub	sp, sp, #4
7*9880d681SAndroid Build Coastguard Worker; CHECK: .cfi_def_cfa_offset 4
8*9880d681SAndroid Build Coastguard Workerentry:
9*9880d681SAndroid Build Coastguard Worker  %Depth = alloca i32, align 4
10*9880d681SAndroid Build Coastguard Worker  call void @llvm.dbg.declare(metadata i32* %Depth, metadata !9, metadata !10), !dbg !11
11*9880d681SAndroid Build Coastguard Worker  store i32 2, i32* %Depth, align 4, !dbg !11
12*9880d681SAndroid Build Coastguard Worker  ret void, !dbg !12
13*9880d681SAndroid Build Coastguard Worker}
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind readnone
16*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.declare(metadata, metadata, metadata) #1
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind }
19*9880d681SAndroid Build Coastguard Workerattributes #1 = { nounwind readnone }
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!0}
22*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!7, !8}
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Worker!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "", isOptimized: false, emissionKind: FullDebug)
25*9880d681SAndroid Build Coastguard Worker!1 = !DIFile(filename: "file.c", directory: "/dir")
26*9880d681SAndroid Build Coastguard Worker!2 = !{}
27*9880d681SAndroid Build Coastguard Worker!3 = distinct !DISubprogram(name: "need_cfi_def_cfa_offset", scope: !1, file: !1, line: 1, type: !4, isLocal: false, isDefinition: true, scopeLine: 2, isOptimized: false, unit: !0, variables: !2)
28*9880d681SAndroid Build Coastguard Worker!4 = !DISubroutineType(types: !5)
29*9880d681SAndroid Build Coastguard Worker!5 = !{null}
30*9880d681SAndroid Build Coastguard Worker!6 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
31*9880d681SAndroid Build Coastguard Worker!7 = !{i32 2, !"Dwarf Version", i32 4}
32*9880d681SAndroid Build Coastguard Worker!8 = !{i32 2, !"Debug Info Version", i32 3}
33*9880d681SAndroid Build Coastguard Worker!9 = !DILocalVariable(name: "Depth", scope: !3, file: !1, line: 3, type: !6)
34*9880d681SAndroid Build Coastguard Worker!10 = !DIExpression()
35*9880d681SAndroid Build Coastguard Worker!11 = !DILocation(line: 3, column: 9, scope: !3)
36*9880d681SAndroid Build Coastguard Worker!12 = !DILocation(line: 7, column: 5, scope: !3)
37