bpf: add selftests for lsh, rsh, arsh with reg operand
authorJie Meng <jmeng@fb.com>
Fri, 7 Oct 2022 20:23:49 +0000 (13:23 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Oct 2022 23:53:51 +0000 (16:53 -0700)
commit8662de2321496499a21841486660817f72ac9456
tree3de533d16556810b08caba926d43effd89c62a45
parent77d8f5d47bfbb5f0a8630102838ffb22cd70d6f5
bpf: add selftests for lsh, rsh, arsh with reg operand

Current tests cover only shifts with an immediate as the source
operand/shift counts; add a new test case to cover register operand.

Signed-off-by: Jie Meng <jmeng@fb.com>
Link: https://lore.kernel.org/r/20221007202348.1118830-4-jmeng@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/verifier/jit.c