brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · c68dd29 Raw
50 lines · plain
1; RUN: llc -O0 -mtriple=x86_64-unknown-linux-gnu -stop-before="regallocfast" -o - %s | FileCheck %s2;3; We check that all the instructions in bb4 now have a debug-location4; annotation, and that the annotation is identical to the one on e.g.,5; the jmp to bb4.6;7; CHECK: JMP{{.*}}%bb.4, debug-location ![[JUMPLOC:[0-9]+]]8; CHECK: bb.4.entry:9; CHECK: successors:10; CHECK: JCC{{.*}}debug-location ![[JUMPLOC]]11; CHECK: JMP{{.*}}debug-location ![[JUMPLOC]]12 13define i32 @main() !dbg !12 {14entry:15  %add = add nsw i32 undef, 1, !dbg !1616  switch i32 %add, label %sw.epilog [17    i32 1, label %sw.bb18    i32 2, label %sw.bb219  ], !dbg !1720 21sw.bb:                                            ; preds = %entry22  br label %sw.epilog, !dbg !2023 24sw.bb2:                                           ; preds = %entry25  br label %sw.epilog, !dbg !2226 27sw.epilog:                                        ; preds = %sw.bb2, %sw.bb, %entry28  ret i32 4711, !dbg !2329}30!llvm.dbg.cu = !{!2}31!llvm.module.flags = !{!8, !9}32!llvm.ident = !{!11}33 34!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, emissionKind: FullDebug, enums: !4)35!3 = !DIFile(filename: "foo.c", directory: ".")36!4 = !{}37!7 = !DIBasicType(name: "int", size: 16, encoding: DW_ATE_signed)38!8 = !{i32 2, !"Dwarf Version", i32 4}39!9 = !{i32 2, !"Debug Info Version", i32 3}40!11 = !{!"clang"}41!12 = distinct !DISubprogram(name: "main", scope: !3, file: !3, line: 4, type: !13, isLocal: false, isDefinition: true, scopeLine: 5, flags: DIFlagPrototyped, isOptimized: false, unit: !2, retainedNodes: !4)42!13 = !DISubroutineType(types: !14)43!14 = !{!7}44!16 = !DILocation(line: 6, column: 13, scope: !12)45!17 = !DILocation(line: 6, column: 3, scope: !12)46!19 = distinct !DILexicalBlock(scope: !12, file: !3, line: 7, column: 5)47!20 = !DILocation(line: 10, column: 7, scope: !19)48!22 = !DILocation(line: 13, column: 7, scope: !19)49!23 = !DILocation(line: 24, column: 1, scope: !12)50