diff options
author | Pan Li <pan2.li@intel.com> | 2025-08-13 13:55:27 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2025-08-22 21:16:40 +0800 |
commit | f2794c206f112547907ed010b541146dc005d37e (patch) | |
tree | d34b8731e622e0d76bb17ded63b82edde189af17 /libjava/gnu/xml/dom/ls/DomLSOutput.h | |
parent | e12208722dabdad25cc13bb580991b5bf511a104 (diff) | |
download | gcc-f2794c206f112547907ed010b541146dc005d37e.zip gcc-f2794c206f112547907ed010b541146dc005d37e.tar.gz gcc-f2794c206f112547907ed010b541146dc005d37e.tar.bz2 |
Match: Add form 3 for unsigned SAT_MUL
This patch would like to try to match the the unsigned
SAT_MUL form 3, aka below:
#define DEF_SAT_U_MUL_FMT_3(NT, WT) \
NT __attribute__((noinline)) \
sat_u_mul_##NT##_from_##WT##_fmt_3 (NT a, NT b) \
{ \
WT x = (WT)a * (WT)b; \
if ((x >> sizeof(a) * 8) == 0) \
return (NT)x; \
else \
return (NT)-1; \
}
While WT is T is uint16_t, uint32_t, uint64_t and uint128_t,
and NT is is uint8_t, uint16_t, uint32_t and uint64_t.
gcc/ChangeLog:
* match.pd: Add form 3 for unsigned SAT_MUL.
Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'libjava/gnu/xml/dom/ls/DomLSOutput.h')
0 files changed, 0 insertions, 0 deletions