42 lines · plain
1# This checks that .debug_aranges is always generated for the SCE debugger2# tuning.3 4RUN: rm -rf %t && split-file %s %t && cd %t5RUN: llc -debugger-tune=sce -filetype=obj foo.ll -o foo.o6RUN: llvm-dwarfdump -debug-aranges foo.o | FileCheck %s7 8CHECK: .debug_aranges contents:9CHECK-NEXT: Address Range Header:10CHECK-SAME: length = 0x0000002c,11 12#--- foo.c13int foo;14 15#--- gen16clang --target=x86_64-linux-gnu -g -S -emit-llvm foo.c -o -17 18#--- foo.ll19; ModuleID = 'foo.c'20source_filename = "foo.c"21target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"22target triple = "x86_64-unknown-linux-gnu"23 24@foo = dso_local global i32 0, align 4, !dbg !025 26!llvm.dbg.cu = !{!2}27!llvm.module.flags = !{!6, !7, !8, !9, !10, !11, !12}28 29!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())30!1 = distinct !DIGlobalVariable(name: "foo", scope: !2, file: !3, line: 1, type: !5, isLocal: false, isDefinition: true)31!2 = distinct !DICompileUnit(language: DW_LANG_C11, file: !3, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4, splitDebugInlining: false, nameTableKind: None)32!3 = !DIFile(filename: "foo.c", directory: "/proc/self/cwd", checksumkind: CSK_MD5, checksum: "e0f2c326d820c28d30f9b0ea95178f64")33!4 = !{!0}34!5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)35!6 = !{i32 7, !"Dwarf Version", i32 5}36!7 = !{i32 2, !"Debug Info Version", i32 3}37!8 = !{i32 1, !"wchar_size", i32 4}38!9 = !{i32 8, !"PIC Level", i32 2}39!10 = !{i32 7, !"PIE Level", i32 2}40!11 = !{i32 7, !"uwtable", i32 2}41!12 = !{i32 7, !"frame-pointer", i32 2}42