Re: [PATCH] Expand __builtin_memcmp_eq with ptest for OI/TImode.

2022-05-05 Thread Uros Bizjak via Gcc-patches
On Thu, May 5, 2022 at 10:23 AM Hongtao Liu wrote: > > On Thu, May 5, 2022 at 4:09 PM Uros Bizjak via Gcc-patches > wrote: > > > > On Thu, May 5, 2022 at 9:50 AM Richard Biener via Gcc-patches > > wrote: > > > > > > On Thu, May 5, 2022 at 9:37 AM liuhongt via Gcc-patches > > > wrote: > > > > >

Re: [PATCH] Expand __builtin_memcmp_eq with ptest for OI/TImode.

2022-05-05 Thread Hongtao Liu via Gcc-patches
On Thu, May 5, 2022 at 4:09 PM Uros Bizjak via Gcc-patches wrote: > > On Thu, May 5, 2022 at 9:50 AM Richard Biener via Gcc-patches > wrote: > > > > On Thu, May 5, 2022 at 9:37 AM liuhongt via Gcc-patches > > wrote: > > > > > > Enable optimization for TImode only under 32-bit target, for 64-bit

Re: [PATCH] Expand __builtin_memcmp_eq with ptest for OI/TImode.

2022-05-05 Thread Uros Bizjak via Gcc-patches
On Thu, May 5, 2022 at 10:08 AM Uros Bizjak wrote: > > On Thu, May 5, 2022 at 9:50 AM Richard Biener via Gcc-patches > wrote: > > > > On Thu, May 5, 2022 at 9:37 AM liuhongt via Gcc-patches > > wrote: > > > > > > Enable optimization for TImode only under 32-bit target, for 64-bit > > > target th

Re: [PATCH] Expand __builtin_memcmp_eq with ptest for OI/TImode.

2022-05-05 Thread Uros Bizjak via Gcc-patches
On Thu, May 5, 2022 at 9:50 AM Richard Biener via Gcc-patches wrote: > > On Thu, May 5, 2022 at 9:37 AM liuhongt via Gcc-patches > wrote: > > > > Enable optimization for TImode only under 32-bit target, for 64-bit > > target there could be extra ineteger <-> sse move regarding psABI, > > not effi

Re: [PATCH] Expand __builtin_memcmp_eq with ptest for OI/TImode.

2022-05-05 Thread Richard Biener via Gcc-patches
On Thu, May 5, 2022 at 9:37 AM liuhongt via Gcc-patches wrote: > > Enable optimization for TImode only under 32-bit target, for 64-bit > target there could be extra ineteger <-> sse move regarding psABI, > not efficient. > > Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,} > Ok for trunk?

Re: [PATCH] Expand __builtin_memcmp_eq with ptest for OI/TImode.

2022-05-05 Thread Hongtao Liu via Gcc-patches
On Thu, May 5, 2022 at 3:37 PM liuhongt wrote: > > Enable optimization for TImode only under 32-bit target, for 64-bit > target there could be extra ineteger <-> sse move regarding psABI, > not efficient. > > Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,} > Ok for trunk? > > gcc/ChangeLo

[PATCH] Expand __builtin_memcmp_eq with ptest for OI/TImode.

2022-05-05 Thread liuhongt via Gcc-patches
Enable optimization for TImode only under 32-bit target, for 64-bit target there could be extra ineteger <-> sse move regarding psABI, not efficient. Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,} Ok for trunk? gcc/ChangeLog: PR target/104610 * config/i386/i386-expand.c