Skip to content

Commit

Permalink
selftests: bpf: complete sub-register zero extension checks
Browse files Browse the repository at this point in the history
eBPF ISA specification requires high 32-bit cleared when only low 32-bit
sub-register is written. JIT back-ends must guarantee this semantics when
doing code-gen.

This patch complete unit tests for all of those insns that could be visible
to JIT back-ends and defining sub-registers, if JIT back-ends failed to
guarantee the mentioned semantics, these unit tests will fail.

Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
  • Loading branch information
Jiong Wang authored and Daniel Borkmann committed May 29, 2019
1 parent 9e084bb commit c25d60c
Showing 1 changed file with 505 additions and 11 deletions.
Loading

0 comments on commit c25d60c

Please sign in to comment.