RE: [PATCH v1] Match: Support form 11 for the unsigned scalar .SAT_SUB

2024-06-18 Thread Li, Pan2
; jeffreya...@gmail.com; rdapp@gmail.com Subject: Re: [PATCH v1] Match: Support form 11 for the unsigned scalar .SAT_SUB On Mon, Jun 17, 2024 at 9:07 AM wrote: > > From: Pan Li > > We missed one match pattern for the unsigned scalar .SAT_SUB, aka > form 11. > > Form 11: >

Re: [PATCH v1] Match: Support form 11 for the unsigned scalar .SAT_SUB

2024-06-18 Thread Richard Biener
On Mon, Jun 17, 2024 at 9:07 AM wrote: > > From: Pan Li > > We missed one match pattern for the unsigned scalar .SAT_SUB, aka > form 11. > > Form 11: > #define SAT_SUB_U_11(T) \ > T sat_sub_u_11_##T (T x, T y) \ > { \ > T ret; \ > bool overflow = __builtin_sub_overflow (x, y, &ret)

[PATCH v1] Match: Support form 11 for the unsigned scalar .SAT_SUB

2024-06-17 Thread pan2 . li
From: Pan Li We missed one match pattern for the unsigned scalar .SAT_SUB, aka form 11. Form 11: #define SAT_SUB_U_11(T) \ T sat_sub_u_11_##T (T x, T y) \ { \ T ret; \ bool overflow = __builtin_sub_overflow (x, y, &ret); \ return overflow ? 0 : ret; \ } Thus, add above for