diff options
author | Pan Li <pan2.li@intel.com> | 2024-07-02 08:57:50 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2024-07-03 21:22:40 +0800 |
commit | 44c767c06b6882d05fe56f4a3e03195101402fb0 (patch) | |
tree | aa4e325e3d6fa88a29b8983deaf74ab5d8f58afd /MAINTAINERS | |
parent | 8d2c460e79aa013cc4eeb79bb45d18bd3d0aee58 (diff) | |
download | gcc-44c767c06b6882d05fe56f4a3e03195101402fb0.zip gcc-44c767c06b6882d05fe56f4a3e03195101402fb0.tar.gz gcc-44c767c06b6882d05fe56f4a3e03195101402fb0.tar.bz2 |
Match: Allow more types truncation for .SAT_TRUNC
The .SAT_TRUNC has the input and output types, aka cvt from
itype to otype and the sizeof (otype) < sizeof (itype). The
previous patch only allows the sizeof (otype) == sizeof (itype) / 2.
But actually we have 1/4 and 1/8 truncation.
This patch would like to support more types trunction when
sizeof (otype) < sizeof (itype). The below truncation will be
covered.
* uint64_t => uint8_t
* uint64_t => uint16_t
* uint64_t => uint32_t
* uint32_t => uint8_t
* uint32_t => uint16_t
* uint16_t => uint8_t
The below test suites are passed for this patch:
1. The rv64gcv fully regression tests.
2. The rv64gcv build with glibc.
3. The x86 bootstrap tests.
4. The x86 fully regression tests.
gcc/ChangeLog:
* match.pd: Allow any otype is less than itype truncation.
Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions