Skip to content

Commit

Permalink
selftest, bpf: enable cpu v4 tests for arm32
Browse files Browse the repository at this point in the history
Now that all the cpuv4 instructions are supported by the arm32 JIT,
enable the selftests for arm32.

Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Link: https://lore.kernel.org/r/20230907230550.1417590-8-puranjay12@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
  • Loading branch information
puranjaymohan authored and Alexei Starovoitov committed Sep 16, 2023
1 parent 7108604 commit 59ff6d6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/verifier_bswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "bpf_misc.h"

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64)) && __clang_major__ >= 18
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || defined(__TARGET_ARCH_arm)) && \
__clang_major__ >= 18

SEC("socket")
__description("BSWAP, 16")
Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/verifier_gotol.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "bpf_misc.h"

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64)) && __clang_major__ >= 18
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || defined(__TARGET_ARCH_arm)) && \
__clang_major__ >= 18

SEC("socket")
__description("gotol, small_imm")
Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/verifier_ldsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "bpf_misc.h"

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64)) && __clang_major__ >= 18
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || defined(__TARGET_ARCH_arm)) && \
__clang_major__ >= 18

SEC("socket")
__description("LDSX, S8")
Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/verifier_movsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "bpf_misc.h"

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64)) && __clang_major__ >= 18
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || defined(__TARGET_ARCH_arm)) && \
__clang_major__ >= 18

SEC("socket")
__description("MOV32SX, S8")
Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/verifier_sdiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "bpf_misc.h"

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64)) && __clang_major__ >= 18
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || defined(__TARGET_ARCH_arm)) && \
__clang_major__ >= 18

SEC("socket")
__description("SDIV32, non-zero imm divisor, check 1")
Expand Down

0 comments on commit 59ff6d6

Please sign in to comment.