23 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 test(int arg) { return arg; }6; Compilation flag:7; clang -target bpf -O2 -S -emit-llvm t.c8 9; Function Attrs: norecurse nounwind readnone10define dso_local i32 @test(i32 returned) local_unnamed_addr #0 {11 ret i32 %012}13 14; CHECK-NOT: BTF15 16attributes #0 = { norecurse nounwind readnone }17 18!llvm.module.flags = !{!0}19!llvm.ident = !{!1}20 21!0 = !{i32 1, !"wchar_size", i32 4}22!1 = !{!"clang version 8.0.20181009 "}23