Re: [PATCH v1 2/3] RISC-V: Implement scalar SAT_SUB for signed integer

2024-09-29 Thread Jeff Law
On 9/24/24 8:55 PM, pan2...@intel.com wrote: From: Pan Li This patch would like to implement the sssub form 1. Aka: Form 1: #define DEF_SAT_S_SUB_FMT_1(T, UT, MIN, MAX) \ T __attribute__((noinline)) \ sat_s_sub_##T##_fmt_1 (T x, T y) \ {

[PATCH v1 2/3] RISC-V: Implement scalar SAT_SUB for signed integer

2024-09-24 Thread pan2 . li
From: Pan Li This patch would like to implement the sssub form 1. Aka: Form 1: #define DEF_SAT_S_SUB_FMT_1(T, UT, MIN, MAX) \ T __attribute__((noinline)) \ sat_s_sub_##T##_fmt_1 (T x, T y) \ {\ T minus = (UT)x