brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 875bfa1 Raw
32 lines · plain
1; RUN: llc -mtriple=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s2 3; Function Attrs: norecurse nounwind readnone4define dso_local i32 @test() local_unnamed_addr !dbg !7 {5entry:6  ret i32 0, !dbg !117}8 9; CHECK-RELOC: file format elf64-bpf10; CHECK-RELOC: RELOCATION RECORDS FOR [.debug_info]:11; CHECK-RELOC: R_BPF_64_ABS32 .debug_abbrev12; CHECK-RELOC: R_BPF_64_ABS64 .text13; CHECK-RELOC: RELOCATION RECORDS FOR [.BTF.ext]:14; CHECK-RELOC: R_BPF_64_NODYLD32 .text15 16!llvm.dbg.cu = !{!0}17!llvm.module.flags = !{!3, !4, !5}18!llvm.ident = !{!6}19 20!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 8.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)21!1 = !DIFile(filename: "tt.c", directory: "/home/yhs/tmp")22!2 = !{}23!3 = !{i32 2, !"Dwarf Version", i32 4}24!4 = !{i32 2, !"Debug Info Version", i32 3}25!5 = !{i32 1, !"wchar_size", i32 4}26!6 = !{!"clang version 8.0.0 (trunk 350573) (llvm/trunk 350569)"}27!7 = distinct !DISubprogram(name: "test", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, isDefinition: true, isOptimized: true, unit: !0, retainedNodes: !2)28!8 = !DISubroutineType(types: !9)29!9 = !{!10}30!10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)31!11 = !DILocation(line: 1, column: 14, scope: !7)32