bpf/tests: add tests for cpuv4 instructions
authorPuranjay Mohan <puranjay12@gmail.com>
Thu, 7 Sep 2023 23:05:49 +0000 (23:05 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 16 Sep 2023 00:16:57 +0000 (17:16 -0700)
commitdaabb2b098e04753fa3d1b1feed13e5a61bef61c
tree22c1b107d83835b03cf2c9f2f7a1539fb658c0f2
parent59ff6d63b7307be4dbfbecceea9aedca047c7ffe
bpf/tests: add tests for cpuv4 instructions

The BPF JITs now support cpuv4 instructions. Add tests for these new
instructions to the test suite:

1. Sign extended Load
2. Sign extended Mov
3. Unconditional byte swap
4. Unconditional jump with 32-bit offset
5. Signed division and modulo

Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Link: https://lore.kernel.org/r/20230907230550.1417590-9-puranjay12@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/filter.h
lib/test_bpf.c