Re: [PATCH] x86: Add cmpmemsi for -mgeneral-regs-only

2020-05-19 Thread Uros Bizjak via Gcc-patches
On Sun, May 17, 2020 at 7:06 PM H.J. Lu wrote: > > Duplicate the cmpstrn pattern for cmpmem. The only difference is that > the length argument of cmpmem is guaranteed to be less than or equal to > lengths of 2 memory areas. Since "repz cmpsb" can be much slower than > memcmp function

[PATCH] x86: Add cmpmemsi for -mgeneral-regs-only

2020-05-17 Thread H.J. Lu via Gcc-patches
Duplicate the cmpstrn pattern for cmpmem. The only difference is that the length argument of cmpmem is guaranteed to be less than or equal to lengths of 2 memory areas. Since "repz cmpsb" can be much slower than memcmp function implemented with vector instruction, see