Re: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-27 Thread Georg-Johann Lay
Am 27.02.24 um 12:15 schrieb Tamar Christina: Am 19.02.24 um 08:36 schrieb Richard Biener: On Sat, Feb 17, 2024 at 11:30 AM wrote: From: Pan Li This patch would like to add the middle-end presentation for the unsigned saturation add. Aka set the result of add to the max when overflow.

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-27 Thread Tamar Christina
> Am 19.02.24 um 08:36 schrieb Richard Biener: > > On Sat, Feb 17, 2024 at 11:30 AM wrote: > >> > >> From: Pan Li > >> > >> This patch would like to add the middle-end presentation for the > >> unsigned saturation add. Aka set the result of add to the max > >> when overflow. It will take the pa

Re: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-27 Thread Georg-Johann Lay
Am 19.02.24 um 08:36 schrieb Richard Biener: On Sat, Feb 17, 2024 at 11:30 AM wrote: From: Pan Li This patch would like to add the middle-end presentation for the unsigned saturation add. Aka set the result of add to the max when overflow. It will take the pattern similar as below. SAT

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-24 Thread Li, Pan2
: Tamar Christina Sent: Monday, February 19, 2024 9:05 PM To: Li, Pan2 ; Richard Biener Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; Wang, Yanzhang ; kito.ch...@gmail.com Subject: RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU > -Original Message- > From: Li

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-19 Thread Tamar Christina
> -Original Message- > From: Li, Pan2 > Sent: Monday, February 19, 2024 12:59 PM > To: Tamar Christina ; Richard Biener > > Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; Wang, Yanzhang > ; kito.ch...@gmail.com > Subject: RE: [PATCH v1] Internal-fn: Add new in

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-19 Thread Li, Pan2
fter try DEF_INTERNAL_SIGNED_OPTAB_FN, will keep you posted. Pan -Original Message- From: Tamar Christina Sent: Monday, February 19, 2024 4:55 PM To: Li, Pan2 ; Richard Biener Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; Wang, Yanzhang ; kito.ch...@gmail.com Subject: RE: [PATCH v1]

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-19 Thread Tamar Christina
as vector integer. For example, RVVM1SI in vector- > iterators.md. Kito > and Juzhe can help to correct me if any misunderstandings. > > Pan > > -Original Message- > From: Richard Biener > Sent: Monday, February 19, 2024 3:36 PM > To: Li, Pan2 > Cc: gcc-

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-19 Thread Li, Pan2
: Re: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU On Sun, Feb 18, 2024 at 11:37 PM Richard Biener wrote: > > On Sat, Feb 17, 2024 at 11:30 AM wrote: > > > > From: Pan Li > > > > This patch would like to add the middle-end presentation for the > &

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-19 Thread Li, Pan2
@rivai.ai; Wang, Yanzhang ; kito.ch...@gmail.com; tamar.christ...@arm.com Subject: Re: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU On Sat, Feb 17, 2024 at 11:30 AM wrote: > > From: Pan Li > > This patch would like to add the middle-end presentation for the > unsi

Re: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-19 Thread Andrew Pinski
On Sun, Feb 18, 2024 at 11:37 PM Richard Biener wrote: > > On Sat, Feb 17, 2024 at 11:30 AM wrote: > > > > From: Pan Li > > > > This patch would like to add the middle-end presentation for the > > unsigned saturation add. Aka set the result of add to the max > > when overflow. It will take the

Re: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-18 Thread Richard Biener
On Sat, Feb 17, 2024 at 11:30 AM wrote: > > From: Pan Li > > This patch would like to add the middle-end presentation for the > unsigned saturation add. Aka set the result of add to the max > when overflow. It will take the pattern similar as below. > > SAT_ADDU (x, y) => (x + y) | (-(TYPE)((TY

[PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-17 Thread pan2 . li
From: Pan Li This patch would like to add the middle-end presentation for the unsigned saturation add. Aka set the result of add to the max when overflow. It will take the pattern similar as below. SAT_ADDU (x, y) => (x + y) | (-(TYPE)((TYPE)(x + y) < x)) Take uint8_t as example, we will have