| 1 |
; RUN: llc -filetype=obj -function-sections -generate-arange-section < %s | \ |
| 2 |
; RUN: llvm-objdump -dr - | FileCheck %s |
| 3 |
|
| 4 |
; Make sure that enabling debug_arange does not corrupt branches. |
| 5 |
|
| 6 |
target triple = "powerpc64-ibm-aix" |
| 7 |
|
| 8 |
define i64 @fn1() { |
| 9 |
; CHECK-LABEL: <.fn1>: |
| 10 |
; CHECK: bl {{.*}} <.fn2> |
| 11 |
; CHECK-NEXT: R_RBR .fn2 |
| 12 |
%1 = call i64 @fn2() |
| 13 |
ret i64 %1 |
| 14 |
} |
| 15 |
|
| 16 |
define i64 @fn2() !dbg !4 { |
| 17 |
ret i64 0 |
| 18 |
} |
| 19 |
|
| 20 |
!llvm.module.flags = !{!0} |
| 21 |
!llvm.dbg.cu = !{!1} |
| 22 |
|
| 23 |
!0 = !{i32 2, !"Debug Info Version", i32 3} |
| 24 |
!1 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !2, producer: "clang LLVM (rustc version 1.95.0-dev)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !3, globals: !3, splitDebugInlining: false, nameTableKind: None) |
| 25 |
!2 = !DIFile(filename: "foo", directory: "") |
| 26 |
!3 = !{} |
| 27 |
!4 = distinct !DISubprogram(name: "fn2", file: !2, line: 277, type: !5, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !1, templateParams: !3, retainedNodes: !3) |
| 28 |
!5 = !DISubroutineType(types: !3) |