aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/exceptions.c
diff options
context:
space:
mode:
authorPu Lehui <pulehui@huawei.com>2024-01-15 13:12:32 +0000
committerDaniel Borkmann <daniel@iogearbox.net>2024-01-29 16:25:33 +0100
commit361db44c3c59cde05e9926647f16255e274a37f4 (patch)
tree5a95a54d3a7fbc93b9d4dbf3205b4f854f562ace /tools/testing/selftests/bpf/prog_tests/exceptions.c
parent914c7a5ff18a225f7df254ae3433574f3d47b711 (diff)
riscv, bpf: Simplify sext and zext logics in branch instructions
There are many extension helpers in the current branch instructions, and the implementation is a bit complicated. We simplify this logic through two simple extension helpers with alternate register. Signed-off-by: Pu Lehui <pulehui@huawei.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Tested-by: Björn Töpel <bjorn@rivosinc.com> Acked-by: Björn Töpel <bjorn@kernel.org> Link: https://lore.kernel.org/bpf/20240115131235.2914289-4-pulehui@huaweicloud.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/exceptions.c')
0 files changed, 0 insertions, 0 deletions