Re: [PATCH bpf-next v2 2/2] bpf, mips: Add support for BPF_SDIV and BPF_SMOD
Johan Almbladh <[email protected]> Sat, 1 Aug 2026 11:44:45 +0200
| Newsgroups | org.kernel.vger.linux-mips,org.kernel.vger.bpf,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAM1=_QQ7XiJEozaetLt_+kVn91YAXWpJK_pyfT9=paXseW=wwA@mail.gmail.com> |
Hi Nicholas, Thanks for putting in the work on this. > I'm working on separate MOVSX and MEMSX patches. Would you be willing to > take BSWAP and JMP32_JA? Yes. I think BSWAP and JMP32_JA will be independent of the SDIV/SMOD and MOVSX/MEMSX handling, so we can work in parallel on this. > I'll pass the raw s16 off value through immediate validation and > register emission, and interpret off == 1 only in DIV/MOD-specific paths. > That leaves MOVSX free to interpret off as its source width. Great. > I will validate each series boundary on MIPS32r2, MIPS64r2, MIPS32r6, and > MIPS64r6, and build the complete v3 together with the MOVSX and MEMSX > candidates before posting it. Good. I also have a QEMU test setup that I will use for verification: mips32, mips32r2, mips32r6 and mips64 (pre-R6), both big and little endian. > Does that sound ok? Yes, sounds like a good plan. Thanks, Johan