Re: [PATCH] bpf: add define_insn for bswap

2022-12-08 Thread Jose E. Marchesi via Gcc-patches
Hi David. > The eBPF architecture provides 'end[be,le]' instructions for endianness > swapping. Add a define_insn for bswap2 to use them instaed of > falling back on a libcall. > > Tested on bpf-unknown-none, no known regressions. > > OK to commit? > Thanks OK for master. Thanks! > gcc/ > >

[PATCH] bpf: add define_insn for bswap

2022-12-08 Thread David Faust via Gcc-patches
The eBPF architecture provides 'end[be,le]' instructions for endianness swapping. Add a define_insn for bswap2 to use them instaed of falling back on a libcall. Tested on bpf-unknown-none, no known regressions. OK to commit? Thanks gcc/ * config/bpf/bpf.md (bswap2): New define_insn. gc