ppc: bpf: implement jitting of BPF_ALU | BPF_ARSH | BPF_*
[sfrench/cifs-2.6.git] / arch / powerpc / net / bpf_jit.h
index 47fc6660845d3735545efc718ae013ee3c1609a8..c2d5192ed64faddf86dfaeba187d6ab81f85edaa 100644 (file)
                                     ___PPC_RS(a) | ___PPC_RB(s))
 #define PPC_SRW(d, a, s)       EMIT(PPC_INST_SRW | ___PPC_RA(d) |            \
                                     ___PPC_RS(a) | ___PPC_RB(s))
+#define PPC_SRAW(d, a, s)      EMIT(PPC_INST_SRAW | ___PPC_RA(d) |           \
+                                    ___PPC_RS(a) | ___PPC_RB(s))
+#define PPC_SRAWI(d, a, i)     EMIT(PPC_INST_SRAWI | ___PPC_RA(d) |          \
+                                    ___PPC_RS(a) | __PPC_SH(i))
 #define PPC_SRD(d, a, s)       EMIT(PPC_INST_SRD | ___PPC_RA(d) |            \
                                     ___PPC_RS(a) | ___PPC_RB(s))
 #define PPC_SRAD(d, a, s)      EMIT(PPC_INST_SRAD | ___PPC_RA(d) |           \