You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
602 B
23 lines
602 B
; RUN: llc -march=bpfel -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
|
|
; RUN: llc -march=bpfeb -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
|
|
|
|
; Source code:
|
|
; int test(int arg) { return arg; }
|
|
; Compilation flag:
|
|
; clang -target bpf -O2 -S -emit-llvm t.c
|
|
|
|
; Function Attrs: norecurse nounwind readnone
|
|
define dso_local i32 @test(i32 returned) local_unnamed_addr #0 {
|
|
ret i32 %0
|
|
}
|
|
|
|
; CHECK-NOT: BTF
|
|
|
|
attributes #0 = { norecurse nounwind readnone }
|
|
|
|
!llvm.module.flags = !{!0}
|
|
!llvm.ident = !{!1}
|
|
|
|
!0 = !{i32 1, !"wchar_size", i32 4}
|
|
!1 = !{!"clang version 8.0.20181009 "}
|