RE: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB

2024-06-27 Thread Li, Pan2
drew > > Pan > > -Original Message- > From: Richard Biener > Sent: Friday, June 14, 2024 4:05 PM > To: Li, Pan2 > Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; kito.ch...@gmail.com; > jeffreya...@gmail.com; rdapp@gmail.com > Subject: Re: [PATCH v1] Mat

Re: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB

2024-06-27 Thread Andrew Pinski
ichard Biener > Sent: Friday, June 14, 2024 4:05 PM > To: Li, Pan2 > Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; kito.ch...@gmail.com; > jeffreya...@gmail.com; rdapp@gmail.com > Subject: Re: [PATCH v1] Match: Support more forms for the scalar unsigned > .SAT_SUB >

RE: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB

2024-06-19 Thread Li, Pan2
iginal Message- > From: Richard Biener > Sent: Friday, June 14, 2024 4:05 PM > To: Li, Pan2 > Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; kito.ch...@gmail.com; > jeffreya...@gmail.com; rdapp@gmail.com > Subject: Re: [PATCH v1] Match: Support more forms for the sca

Re: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB

2024-06-19 Thread Richard Biener
> Sent: Friday, June 14, 2024 4:05 PM > To: Li, Pan2 > Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; kito.ch...@gmail.com; > jeffreya...@gmail.com; rdapp@gmail.com > Subject: Re: [PATCH v1] Match: Support more forms for the scalar unsigned > .SAT_SUB > > On Wed, Jun 12

RE: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB

2024-06-19 Thread Li, Pan2
com; jeffreya...@gmail.com; rdapp@gmail.com Subject: Re: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB On Wed, Jun 12, 2024 at 2:38 PM wrote: > > From: Pan Li > > After we support the scalar unsigned form 1 and 2, we would like > to introduce more

RE: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB

2024-06-14 Thread Li, Pan2
From: Richard Biener Sent: Friday, June 14, 2024 4:05 PM To: Li, Pan2 Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; kito.ch...@gmail.com; jeffreya...@gmail.com; rdapp@gmail.com Subject: Re: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB On Wed, Jun 12, 2024 at

RE: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB

2024-06-14 Thread Li, Pan2
M To: Li, Pan2 Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; kito.ch...@gmail.com; jeffreya...@gmail.com; rdapp@gmail.com Subject: Re: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB On Wed, Jun 12, 2024 at 2:38 PM wrote: > > From: Pan Li > > After we s

Re: [PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB

2024-06-14 Thread Richard Biener
On Wed, Jun 12, 2024 at 2:38 PM wrote: > > From: Pan Li > > After we support the scalar unsigned form 1 and 2, we would like > to introduce more forms include the branch and branchless. There > are forms 3-10 list as below: > > Form 3: > #define SAT_SUB_U_3(T) \ > T sat_sub_u_3_##T (T x, T

[PATCH v1] Match: Support more forms for the scalar unsigned .SAT_SUB

2024-06-12 Thread pan2 . li
From: Pan Li After we support the scalar unsigned form 1 and 2, we would like to introduce more forms include the branch and branchless. There are forms 3-10 list as below: Form 3: #define SAT_SUB_U_3(T) \ T sat_sub_u_3_##T (T x, T y) \ { \ return x > y ? x - y : 0; \ } Form 4: