1 ; RUN: llc < %s -march=bpfel | FileCheck %s
3 ; int test(int (*f)(void)) { return f(); }
5 ; Function Attrs: nounwind
6 define dso_local i32 @test(ptr nocapture %f) local_unnamed_addr #0 {
8 %call = tail call i32 %f() #1
9 ; CHECK: callx r{{[0-9]+}}
13 attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "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" }
14 attributes #1 = { nounwind }
16 !llvm.module.flags = !{!0}
19 !0 = !{i32 1, !"wchar_size", i32 4}
20 !1 = !{!"clang version 10.0.0 (https://github.com/llvm/llvm-project.git 7015a5c54b53d8d2297a3aa38bc32aab167bdcfc)"}