Re: [PATCH 1/2] Match: Support IMM=1 for unsigned scalar .SAT_SUB IMM form 1

2024-10-21 Thread Richard Biener
On Mon, Oct 21, 2024 at 6:13 AM Li Xu wrote: > > From: xuli > > This patch would like to support .SAT_SUB when one of the op > is IMM = 1 of form1. > > Form 1: > #define DEF_SAT_U_SUB_IMM_FMT_1(T, IMM) \ > T __attribute__((noinline)) \ > sat_u_sub_imm##IMM##_##T##_fmt_1 (T y) \ >

[PATCH 1/2] Match: Support IMM=1 for unsigned scalar .SAT_SUB IMM form 1

2024-10-20 Thread Li Xu
From: xuli This patch would like to support .SAT_SUB when one of the op is IMM = 1 of form1. Form 1: #define DEF_SAT_U_SUB_IMM_FMT_1(T, IMM) \ T __attribute__((noinline)) \ sat_u_sub_imm##IMM##_##T##_fmt_1 (T y) \ { \ return IMM >= y ? IM