brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · a9d1dd4 Raw
40 lines · plain
1# RUN: llc -start-before=livedebugvalues -filetype=obj -o - %s | \2# RUN:     llvm-dwarfdump -debug-info - | FileCheck %s3#4# In this test the first DBG_VALUE is 32 bits large and sits in 128-bit register Q8,5# which has to be decomposed into two 64-bit register D16, D17.6# This test ensures that the unused D17 is suppressed in the output.7#8# CHECK: .debug_info contents:9# CHECK: DW_TAG_formal_parameter10# CHECK-NEXT: DW_AT_location11# CHECK-NEXT: DW_OP_regx D16, DW_OP_piece 0x4, DW_OP_regx D15, DW_OP_bit_piece 0x20 0x2012# CHECK-NEXT: DW_AT_name {{.*}}"boundingRect"13--- |14  target triple = "thumbv7k-apple-watchos"15  define swiftcc void @f() !dbg !5 {16       ret void17  }18  !llvm.module.flags = !{!0}19  !llvm.dbg.cu = !{!2}20  !0 = !{i32 2, !"Debug Info Version", i32 3}21  !2 = distinct !DICompileUnit(language: DW_LANG_Swift, file: !3,22  isOptimized: true, runtimeVersion: 5, emissionKind: FullDebug, enums: !4, globals: !4, imports: !4)23  !3 = !DIFile(filename: "t.swift", directory: "/")24  !4 = !{}25  !5 = distinct !DISubprogram(name: "f", scope: !3, file: !3, line: 388, type: !9, scopeLine: 388, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !4)26  !9 = !DISubroutineType(types: !4)27  !10 = !DILocation(line: 0, scope: !5)28  !12 = !DILocalVariable(name: "boundingRect", arg: 1, scope: !5, file: !3, line: 388, type: !13)29  !13 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !14)30  !14 = !DICompositeType(tag: DW_TAG_structure_type, name: "CGRect", scope: !5, file: !3, line: 46, size: 128, elements: !4, runtimeLang: DW_LANG_Swift, identifier: "$sSo6CGRectVD")31name:            'f'32tracksRegLiveness: true33body:             |34  bb.0:35    liveins: $r636 37    DBG_VALUE $s31, $noreg, !12, !DIExpression(DW_OP_LLVM_fragment, 32, 32), debug-location !1038    DBG_VALUE $q8, $noreg, !12, !DIExpression(DW_OP_LLVM_fragment, 0, 32), debug-location !1039    renamable $r0 = t2ADDri $r6, 144, 14, $noreg, $noreg, debug-location !1040