llvm-project/llvm/test/CodeGen/BPF
Alexei Starovoitov e6ddac0def [bpf] add BPF disassembler
add BPF disassembler, so tools like llvm-objdump can be used:
$ llvm-objdump -d -no-show-raw-insn ./sockex1_kern.o

./sockex1_kern.o:	file format ELF64-BPF

Disassembly of section socket1:
bpf_prog1:
       0:	r6 = r1
       8:	r0 = *(u8 *)skb[23]
      10:	*(u32 *)(r10 - 4) = r0
      18:	r1 = *(u32 *)(r6 + 4)
      20:	if r1 != 4 goto 8
      28:	r2 = r10
      30:	r2 += -4

ld_imm64 (the only 16-byte insn) and special ld_abs/ld_ind instructions
had to be treated in a special way. The decoders for the rest of the insns
are automatically generated.

Add tests to cover new functionality.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
llvm-svn: 287477
2016-11-20 02:25:00 +00:00
..
alu8.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
atomics.ll [bpf] add BPF disassembler 2016-11-20 02:25:00 +00:00
basictest.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
byval.ll Revert "Change memcpy/memset/memmove to have dest and source alignments." 2015-11-19 05:56:52 +00:00
cc_args.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
cc_args_be.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
cc_ret.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
cmp.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
ex1.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
fi_ri.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
intrinsics.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
lit.local.cfg
load.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
loops.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
many_args1.ll [BPF] Remove exit-on-error flag in test (PR27766) 2016-05-23 14:57:19 +00:00
many_args2.ll [BPF] Remove exit-on-error flag in test (PR27767) 2016-05-26 15:23:50 +00:00
objdump_atomics.ll [bpf] add BPF disassembler 2016-11-20 02:25:00 +00:00
objdump_intrinsics.ll [bpf] add BPF disassembler 2016-11-20 02:25:00 +00:00
objdump_trivial.ll [bpf] add BPF disassembler 2016-11-20 02:25:00 +00:00
sanity.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
sdiv_error.ll BPF: emit an error message for unsupported signed division operation 2016-03-18 22:02:47 +00:00
setcc.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
shifts.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
sockex2.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
struct_ret1.ll [BPF] Remove exit-on-error from tests (PR27768, PR27769) 2016-05-30 08:28:34 +00:00
struct_ret2.ll [BPF] Remove exit-on-error from tests (PR27768, PR27769) 2016-05-30 08:28:34 +00:00
undef.ll convert bpf assembler to look like kernel verifier output 2016-11-18 02:32:35 +00:00
vararg1.ll