Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/BPF/reloc-btf-2.ll
Show All 17 Lines | define dso_local i32 @test() local_unnamed_addr #0 !dbg !14 { | ||||
%1 = load i32, i32* @g, align 4, !dbg !17, !tbaa !18 | %1 = load i32, i32* @g, align 4, !dbg !17, !tbaa !18 | ||||
%2 = load volatile i32, i32* @s, align 4, !dbg !22, !tbaa !18 | %2 = load volatile i32, i32* @s, align 4, !dbg !22, !tbaa !18 | ||||
%3 = add nsw i32 %2, %1, !dbg !23 | %3 = add nsw i32 %2, %1, !dbg !23 | ||||
ret i32 %3, !dbg !24 | ret i32 %3, !dbg !24 | ||||
} | } | ||||
; CHECK-RELOC: file format elf64-bpf | ; CHECK-RELOC: file format elf64-bpf | ||||
; CHECK-RELOC: RELOCATION RECORDS FOR [.BTF]: | ; CHECK-RELOC: RELOCATION RECORDS FOR [.BTF]: | ||||
; CHECK-RELOC: R_BPF_NONE .bss | ; CHECK-RELOC: R_BPF_64_ALLOC32 .bss | ||||
; CHECK-RELOC: R_BPF_NONE g | ; CHECK-RELOC: R_BPF_64_ALLOC32 g | ||||
; CHECK-RELOC: RELOCATION RECORDS FOR [.BTF.ext]: | ; CHECK-RELOC: RELOCATION RECORDS FOR [.BTF.ext]: | ||||
attributes #0 = { norecurse nounwind "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 "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 = !{!2} | !llvm.dbg.cu = !{!2} | ||||
!llvm.module.flags = !{!10, !11, !12} | !llvm.module.flags = !{!10, !11, !12} | ||||
!llvm.ident = !{!13} | !llvm.ident = !{!13} | ||||
Show All 25 Lines |