selftests: bpf: move sub-register zero extension checks into subreg.c
authorJiong Wang <jiong.wang@netronome.com>
Wed, 29 May 2019 09:57:08 +0000 (10:57 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 29 May 2019 11:31:05 +0000 (13:31 +0200)
commit9e084bb9805226a3e53e9e28dcd9f3a8d4af35c8
tree08d2ff6a3dc3dc9dc1fa2e8fa2d2b106982434ec
parentbd95e678e0f6e18351ecdc147ca819145db9ed7b
selftests: bpf: move sub-register zero extension checks into subreg.c

It is better to centralize all sub-register zero extension checks into an
independent file.

This patch takes the first step to move existing sub-register zero
extension checks into subreg.c.

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>
tools/testing/selftests/bpf/verifier/basic_instr.c
tools/testing/selftests/bpf/verifier/subreg.c [new file with mode: 0644]