Re: [PATCH] RTL: Bugfix for wrong code with v16hi compare & mask

2023-04-02 Thread Jeff Law via Gcc-patches
On 3/26/23 19:36, Hongtao Liu wrote: On Sun, Mar 26, 2023 at 3:01 AM Jeff Law via Gcc-patches wrote: On 3/24/23 08:11, pan2.li--- via Gcc-patches wrote: From: Pan Li Fix the bug of the incorrect code generation for the below code sample. typedef unsigned short __attribute__((__vector_

Re: [Ping][PATCH] RTL: Bugfix for wrong code with v16hi compare & mask

2023-04-02 Thread Jeff Law via Gcc-patches
On 4/2/23 19:52, Li, Pan2 wrote: Hi Jeff, Do you have any suggestion about this case? Sorry for late response due to not receive the mail-thread (Copy the latest one from hongtao for reference). https://gcc.gnu.org/pipermail/gcc-patches/2023-March/614644.html

[Ping][PATCH] RTL: Bugfix for wrong code with v16hi compare & mask

2023-04-02 Thread Li, Pan2 via Gcc-patches
Hi Jeff, Do you have any suggestion about this case? Sorry for late response due to not receive the mail-thread (Copy the latest one from hongtao for reference). https://gcc.gnu.org/pipermail/gcc-patches/2023-March/614644.html Pan On Sun, Mar 26, 2023 at 3:01 AM Jeff Law via Gcc-pat

Re: [PATCH] RTL: Bugfix for wrong code with v16hi compare & mask

2023-03-26 Thread Hongtao Liu via Gcc-patches
On Sun, Mar 26, 2023 at 3:01 AM Jeff Law via Gcc-patches wrote: > > > > On 3/24/23 08:11, pan2.li--- via Gcc-patches wrote: > > From: Pan Li > > > > Fix the bug of the incorrect code generation for the > > below code sample. > > > > typedef unsigned short __attribute__((__vector_size__ (32))) V;

Re: [PATCH] RTL: Bugfix for wrong code with v16hi compare & mask

2023-03-25 Thread Jeff Law via Gcc-patches
On 3/24/23 08:11, pan2.li--- via Gcc-patches wrote: From: Pan Li Fix the bug of the incorrect code generation for the below code sample. typedef unsigned short __attribute__((__vector_size__ (32))) V; typedef unsigned short u16; void foo (V m, u16 *ret) { V v = 6 > ((V) { 2049, 8 } & m)

[PATCH] RTL: Bugfix for wrong code with v16hi compare & mask

2023-03-24 Thread pan2.li--- via Gcc-patches
From: Pan Li Fix the bug of the incorrect code generation for the below code sample. typedef unsigned short __attribute__((__vector_size__ (32))) V; typedef unsigned short u16; void foo (V m, u16 *ret) { V v = 6 > ((V) { 2049, 8 } & m); *ret = v[0]; // + a + b + c + d; } Before this patch.