Skip to content

Commit 99f97a3

Browse files
committed
bpf, arm32: Add JIT support for EOR_SI insn
Support the ARM insn for register EOR with immediate shift, which will be used later for JIT bswap improvements. Signed-off-by: Tony Ambardar <[email protected]>
1 parent 21eb46c commit 99f97a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm/net/bpf_jit_32.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@
191191

192192
#define ARM_EOR_R(rd, rn, rm) _AL3_R(ARM_INST_EOR, rd, rn, rm)
193193
#define ARM_EOR_I(rd, rn, imm) _AL3_I(ARM_INST_EOR, rd, rn, imm)
194+
#define ARM_EOR_SI(rd, rn, rm, type, imm6) \
195+
(ARM_EOR_R(rd, rn, rm) | (type) << 5 | (imm6) << 7)
194196

195197
#define ARM_LDR_R(rt, rn, rm) (ARM_INST_LDR_R | ARM_INST_LDST__U \
196198
| (rt) << 12 | (rn) << 16 \

0 commit comments

Comments
 (0)