37 lines · plain
1; RUN: llc -mtriple=armv7-none-linux-gnueabihf < %s -o - | FileCheck %s2 3; Function Attrs: nounwind4define void @need_cfi_def_cfa_offset() #0 !dbg !3 {5; CHECK-LABEL: need_cfi_def_cfa_offset:6; CHECK: sub sp, sp, #47; CHECK: .cfi_def_cfa_offset 48entry:9 %Depth = alloca i32, align 410 call void @llvm.dbg.declare(metadata ptr %Depth, metadata !9, metadata !10), !dbg !1111 store i32 2, ptr %Depth, align 4, !dbg !1112 ret void, !dbg !1213}14 15; Function Attrs: nounwind readnone16declare void @llvm.dbg.declare(metadata, metadata, metadata) #117 18attributes #0 = { nounwind }19attributes #1 = { nounwind readnone }20 21!llvm.dbg.cu = !{!0}22!llvm.module.flags = !{!7, !8}23 24!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "", isOptimized: false, emissionKind: FullDebug)25!1 = !DIFile(filename: "file.c", directory: "/dir")26!2 = !{}27!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, retainedNodes: !2)28!4 = !DISubroutineType(types: !5)29!5 = !{null}30!6 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)31!7 = !{i32 2, !"Dwarf Version", i32 4}32!8 = !{i32 2, !"Debug Info Version", i32 3}33!9 = !DILocalVariable(name: "Depth", scope: !3, file: !1, line: 3, type: !6)34!10 = !DIExpression()35!11 = !DILocation(line: 3, column: 9, scope: !3)36!12 = !DILocation(line: 7, column: 5, scope: !3)37