49 lines · plain
1# RUN: llc -mtriple=hexagon -run-pass hexagon-packetizer %s -o - | FileCheck %s2 3# CHECK-LABEL: name: factorial4 5# The first bundle in bb.0 should have debug-location !19 (line 9),6# not !18 (line 0) from the DBG_VALUE instructions.7# CHECK: bb.0:8# CHECK: BUNDLE {{.*}}line: 99 10--- |11 define void @factorial() { ret void }12 13 !llvm.dbg.cu = !{!2}14 !llvm.module.flags = !{!6, !7}15 16 !2 = distinct !DICompileUnit(language: DW_LANG_C11, file: !3, producer: "test", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug)17 !3 = !DIFile(filename: "fact.c", directory: "/test")18 !5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)19 !6 = !{i32 2, !"Debug Info Version", i32 3}20 !7 = !{i32 1, !"wchar_size", i32 4}21 !12 = distinct !DISubprogram(name: "factorial", scope: !3, file: !3, line: 6, type: !13, scopeLine: 7, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2)22 !13 = !DISubroutineType(types: !14)23 !14 = !{!5, !5}24 !16 = !DILocalVariable(name: "i", arg: 1, scope: !12, file: !3, line: 6, type: !5)25 !18 = !DILocation(line: 0, scope: !12)26 !19 = !DILocation(line: 9, column: 9, scope: !12)27 !21 = !DILocation(line: 9, column: 7, scope: !12)28 29...30---31name: factorial32alignment: 1633tracksRegLiveness: true34body: |35 bb.0:36 liveins: $r037 38 DBG_VALUE $r0, $noreg, !16, !DIExpression(), debug-location !1839 $r2 = A2_tfr $r040 DBG_VALUE $r2, $noreg, !16, !DIExpression(), debug-location !1841 renamable $p0 = C2_cmpeqi killed $r0, 1, debug-location !1942 renamable $r0 = A2_tfrsi 143 J2_jumpt killed $p0, %bb.1, implicit-def $pc, debug-location !2144 45 bb.1:46 PS_jmpret $r31, implicit-def dead $pc47 48...49