Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/BPF/reloc-btf.ll
; RUN: llc -march=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s | ; RUN: llc -march=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s | ||||
; Function Attrs: norecurse nounwind readnone | ; Function Attrs: norecurse nounwind readnone | ||||
define dso_local i32 @test() local_unnamed_addr #0 !dbg !7 { | define dso_local i32 @test() local_unnamed_addr #0 !dbg !7 { | ||||
entry: | entry: | ||||
ret i32 0, !dbg !11 | ret i32 0, !dbg !11 | ||||
} | } | ||||
; CHECK-RELOC: file format elf64-bpf | ; CHECK-RELOC: file format elf64-bpf | ||||
; CHECK-RELOC: RELOCATION RECORDS FOR [.debug_info]: | ; CHECK-RELOC: RELOCATION RECORDS FOR [.debug_info]: | ||||
; CHECK-RELOC: R_BPF_64_32 .debug_abbrev | ; CHECK-RELOC: R_BPF_64_D32 .debug_abbrev | ||||
; CHECK-RELOC: R_BPF_64_64 .text | ; CHECK-RELOC: R_BPF_64_D64 .text | ||||
; CHECK-RELOC: RELOCATION RECORDS FOR [.BTF.ext]: | ; CHECK-RELOC: RELOCATION RECORDS FOR [.BTF.ext]: | ||||
; CHECK-RELOC: R_BPF_NONE .text | ; CHECK-RELOC: R_BPF_64_ALLOC32 .text | ||||
attributes #0 = { norecurse nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } | attributes #0 = { norecurse nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } | ||||
!llvm.dbg.cu = !{!0} | !llvm.dbg.cu = !{!0} | ||||
!llvm.module.flags = !{!3, !4, !5} | !llvm.module.flags = !{!3, !4, !5} | ||||
!llvm.ident = !{!6} | !llvm.ident = !{!6} | ||||
!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) | !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) | ||||
Show All 11 Lines |