brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · 80f34a9 Raw
81 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -start-after=livedebugvalues -filetype=obj -o - %s | \3# RUN:    llvm-dwarfdump - | FileCheck %s4#5# This tests the edge-case where a complex fragment has exactly6# the size of a subregister of the register the DBG_VALUE points to.7#8 9# CHECK: DW_TAG_compile_unit10# CHECK: DW_AT_producer	("")11# CHECK: DW_AT_language	(DW_LANG_C_plus_plus_14)12# CHECK: DW_AT_name	("t.cpp")13# CHECK: DW_AT_stmt_list	(0x00000000)14# CHECK: DW_AT_comp_dir	("/")15# CHECK: DW_AT_APPLE_optimized	(true)16# CHECK: DW_AT_low_pc	(0x00000000)17# CHECK: DW_AT_high_pc	(0x00000008)18 19# CHECK: DW_TAG_subprogram20# CHECK: DW_AT_low_pc	(0x00000000)21# CHECK: DW_AT_high_pc	(0x00000008)22# CHECK: DW_AT_APPLE_omit_frame_ptr	(true)23# CHECK: DW_AT_frame_base	(DW_OP_reg13 SP)24# CHECK: DW_AT_name	("f")25# CHECK: DW_AT_decl_file	("/t.cpp")26# CHECK: DW_AT_decl_line	(1)27# CHECK: DW_AT_external	(true)28# CHECK: DW_AT_APPLE_isa	(0x01)29 30# CHECK: DW_TAG_variable31# CHECK: DW_AT_location	(DW_OP_regx D16, DW_OP_piece 0x8)32# CHECK: DW_AT_name	("q8")33# CHECK: DW_AT_decl_file	("/t.cpp")34# CHECK: DW_AT_decl_line	(1)35# CHECK: DW_AT_type	(0x0000005b "uint8x8x2_t")36 37# CHECK: DW_TAG_variable38# CHECK: DW_AT_location	(DW_OP_regx D18, DW_OP_piece 0x7)39# CHECK: DW_AT_name	("q9")40# CHECK: DW_AT_decl_file	("/t.cpp")41# CHECK: DW_AT_decl_line	(1)42# CHECK: DW_AT_type	(0x0000005b "uint8x8x2_t")43 44# CHECK: DW_TAG_structure_type45# CHECK: DW_AT_calling_convention	(DW_CC_pass_by_value)46# CHECK: DW_AT_name	("uint8x8x2_t")47# CHECK: DW_AT_byte_size	(0x10)48# CHECK: DW_AT_decl_file	("/t.cpp")49# CHECK: DW_AT_decl_line	(113)50 51 52--- |53  target triple = "thumbv7s-apple-ios"54  define hidden void @f() !dbg !5 {55  for.body:56  ret void, !dbg !2057  }58  !llvm.module.flags = !{!1, !2}59  !llvm.dbg.cu = !{!3}60  !1 = !{i32 7, !"Dwarf Version", i32 4}61  !2 = !{i32 2, !"Debug Info Version", i32 3}62  !3 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !4, isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug)63  !4 = !DIFile(filename: "t.cpp", directory: "/")64  !5 = distinct !DISubprogram(name: "f",scope: !4, file: !4, line: 1, type: !6, scopeLine: 1, unit: !3)65  !6 = !DISubroutineType(types: !{})66  !7 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "uint8x8x2_t", file: !4, line: 113, size: 128, flags: DIFlagTypePassByValue, elements: !{})67  !8 = !DILocalVariable(name: "q8", scope: !5, file: !4, line: 1, type: !7)68  !9 = !DILocalVariable(name: "q9", scope: !5, file: !4, line: 1, type: !7)69  !20 = !DILocation(line: 0, scope: !5)70name:            f71tracksRegLiveness: true72body:             |73  bb.2.for.body:74    liveins: $r275 76    t2CMPri killed renamable $r2, 5, 14, $noreg, implicit-def $cpsr77    DBG_VALUE $q8, $noreg, !8, !DIExpression(DW_OP_LLVM_fragment, 0, 64), debug-location !2078    DBG_VALUE $q9, $noreg, !9, !DIExpression(DW_OP_LLVM_fragment, 0, 56), debug-location !2079    t2Bcc %bb.2.for.body, 0, killed $cpsr, debug-location !2080    tB %bb.2.for.body, 14, $noreg81