RE: [PATCH v1] RISC-V: Support IMM for operand 0 of ussub pattern

2024-08-03 Thread Li, Pan2
Thanks Jeff for comments, let me refine the comments in v2. Pan -Original Message- From: Jeff Law Sent: Sunday, August 4, 2024 6:25 AM To: Li, Pan2 ; gcc-patches@gcc.gnu.org Cc: juzhe.zh...@rivai.ai; kito.ch...@gmail.com; rdapp@gmail.com Subject: Re: [PATCH v1] RISC-V: Support IMM

Re: [PATCH v1] RISC-V: Support IMM for operand 0 of ussub pattern

2024-08-03 Thread Jeff Law
On 8/3/24 3:33 AM, pan2...@intel.com wrote: From: Pan Li This patch would like to allow IMM for the operand 0 of ussub pattern. Aka .SAT_SUB(1023, y) as the below example. Form 1: #define DEF_SAT_U_SUB_IMM_FMT_1(T, IMM) \ T __attribute__((noinline)) \ sat_u_sub_imm##IMM

[PATCH v1] RISC-V: Support IMM for operand 0 of ussub pattern

2024-08-03 Thread pan2 . li
From: Pan Li This patch would like to allow IMM for the operand 0 of ussub pattern. Aka .SAT_SUB(1023, y) as the below example. 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) \ {