brintos

brintos / llvm-project-archived public Read only

0
0
Text · 883 B · 1c2b1d1 Raw
30 lines · plain
1; RUN: llc -mtriple=bpfel -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s2; RUN: llc -mtriple=bpfeb -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s3 4; Source code:5;   int g __attribute__((section("maps"))) = 5;6;   int test() { return g; }7; Compilation flag:8;   clang -target bpf -O2 -S -emit-llvm t.c9 10@g = dso_local local_unnamed_addr global i32 5, section "maps", align 411 12; Function Attrs: norecurse nounwind readonly13define dso_local i32 @test() local_unnamed_addr {14  %1 = load i32, ptr @g, align 4, !tbaa !215  ret i32 %116}17 18; CHECK-NOT:         .section        .BTF19; CHECK-NOT:         .section        .BTF.ext20 21!llvm.module.flags = !{!0}22!llvm.ident = !{!1}23 24!0 = !{i32 1, !"wchar_size", i32 4}25!1 = !{!"clang version 8.0.20181009 "}26!2 = !{!3, !3, i64 0}27!3 = !{!"int", !4, i64 0}28!4 = !{!"omnipotent char", !5, i64 0}29!5 = !{!"Simple C/C++ TBAA"}30