diff options
author | Alexei Starovoitov <alexei.starovoitov@gmail.com> | 2017-11-19 01:35:00 +0000 |
---|---|---|
committer | Alexei Starovoitov <alexei.starovoitov@gmail.com> | 2017-11-19 01:35:00 +0000 |
commit | 9a67245d881f4cf89fd8f897ae2cd0bccec49496 (patch) | |
tree | be1166344599d69ad93901682d2f9d9ecf0f5e76 /llvm/test/CodeGen/BPF/cc_args.ll | |
parent | 9a94dfc457443b263ded785722bdd085cb05ab22 (diff) | |
download | bcm5719-llvm-9a67245d881f4cf89fd8f897ae2cd0bccec49496.tar.gz bcm5719-llvm-9a67245d881f4cf89fd8f897ae2cd0bccec49496.zip |
[bpf] allow direct and indirect calls
kernel verifier is becoming smarter and soon will support
direct and indirect function calls.
Remove obsolete error from BPF backend.
Make call to use PCRel_4 fixup.
'bpf to bpf' calls are distinguished from 'bpf to kernel' calls
by insn->src_reg == BPF_PSEUDO_CALL == 1 which is used as relocation
indicator similar to ld_imm64->src_reg == BPF_PSEUDO_MAP_FD == 1
The actual 'call' instruction remains the same for both
'bpf to kernel' and 'bpf to bpf' calls.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
llvm-svn: 318614
Diffstat (limited to 'llvm/test/CodeGen/BPF/cc_args.ll')
-rw-r--r-- | llvm/test/CodeGen/BPF/cc_args.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/BPF/cc_args.ll b/llvm/test/CodeGen/BPF/cc_args.ll index 6a0a07ae8e8..020992a9fd5 100644 --- a/llvm/test/CodeGen/BPF/cc_args.ll +++ b/llvm/test/CodeGen/BPF/cc_args.ll @@ -1,4 +1,4 @@ -; RUN: not llc < %s -march=bpfel -show-mc-encoding | FileCheck %s +; RUN: llc < %s -march=bpfel -show-mc-encoding | FileCheck %s define void @test() #0 { entry: |