selftests: bpf: Add tests for signed loads from arena
authorPuranjay Mohan <puranjay@kernel.org>
Tue, 23 Sep 2025 11:01:51 +0000 (11:01 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Sep 2025 19:00:23 +0000 (12:00 -0700)
commitf61654912404155e9097aaf88aa2445edf80f8d3
tree21afeead93666ca9e3986627cea82b4498b16d9f
parenteab2a71f3a6a5c5f4d4acaffb962cb39c199421c
selftests: bpf: Add tests for signed loads from arena

Add tests for loading 8, 16, and 32 bits with sign extension from arena,
also verify that exception handling is working correctly and correct
assembly is being generated by the x86 and arm64 JITs.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20250923110157.18326-4-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_ldsx.c