powerpc/ebpf32: Rework 64 bits shifts to avoid tests and branches
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 12 Apr 2021 11:44:17 +0000 (11:44 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Apr 2021 12:52:33 +0000 (22:52 +1000)
commite7de0023e1232f42a10ef6af03352538cc27eaf6
tree1d64a3c35e86d7b7c89c4a4e6d92a7c81846ccc6
parentd228cc4969663623e6b5a749b02e4619352a0a8d
powerpc/ebpf32: Rework 64 bits shifts to avoid tests and branches

Re-implement BPF_ALU64 | BPF_{LSH/RSH/ARSH} | BPF_X with branchless
implementation copied from misc_32.S.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/03167350b05b2fe8b741e53363ee37709d0f878d.1618227846.git.christophe.leroy@csgroup.eu
arch/powerpc/net/bpf_jit_comp32.c