diff options
author | Pan Li <pan2.li@intel.com> | 2024-06-17 14:56:42 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2024-06-18 21:44:04 +0800 |
commit | 9b109826e0b0473572395f5837b455d57fa5a93c (patch) | |
tree | 9489aeaf3767b0a76c623d4ff91aeec73c31a6dc /gcc/diagnostic-format-json.cc | |
parent | 7f9be55a4630134a237219af9cc8143e02080380 (diff) | |
download | gcc-9b109826e0b0473572395f5837b455d57fa5a93c.zip gcc-9b109826e0b0473572395f5837b455d57fa5a93c.tar.gz gcc-9b109826e0b0473572395f5837b455d57fa5a93c.tar.bz2 |
Match: Support form 11 for the unsigned scalar .SAT_SUB
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 form 11 to the match pattern gimple_unsigned_integer_sat_sub.
The below test suites are passed for this patch:
1. The rv64gcv fully regression test with newlib.
2. The rv64gcv build with glibc.
3. The x86 bootstrap test.
4. The x86 fully regression test.
gcc/ChangeLog:
* match.pd: Add form 11 match pattern for .SAT_SUB.
Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'gcc/diagnostic-format-json.cc')
0 files changed, 0 insertions, 0 deletions