Stefan Schulze Frielinghaus 86b2ffc0b8 rtl-optimization/110939 Really fix narrow comparison of memory and constant
In the former fix in commit 41ef5a3416 I
completely missed the fact that the normal form of a CONST_INT for a
mode with fewer bits than in HOST_WIDE_INT is a sign extended version of
the actual constant.  This even holds true for unsigned constants.

Fixed by masking out the upper bits for the incoming constant and sign
extending the resulting unsigned constant.

gcc/ChangeLog:

	* combine.cc (simplify_compare_const): Properly handle unsigned
	constants while narrowing comparison of memory and constants.
2023-10-01 16:11:32 +02:00
2023-09-16 00:17:55 +00:00
2023-09-30 00:17:24 +00:00
2023-08-18 00:16:52 +00:00
2023-08-23 00:17:59 +00:00
2023-08-08 00:17:37 +00:00
2023-08-08 00:17:37 +00:00
2023-08-08 00:17:37 +00:00
2023-08-08 00:17:37 +00:00
2023-08-12 00:17:36 +00:00
2023-09-21 00:17:49 +00:00
2023-08-24 00:18:18 +00:00
2023-09-28 09:50:12 +00:00
2023-09-29 00:17:28 +00:00
2023-09-30 00:17:24 +00:00
2023-09-21 00:17:49 +00:00
2023-08-23 00:17:59 +00:00
2023-08-08 00:17:37 +00:00
2023-08-08 00:17:37 +00:00
2023-09-24 00:16:58 +00:00
2023-08-08 00:17:37 +00:00
2023-08-08 00:17:37 +00:00
2023-08-08 00:17:37 +00:00
2023-09-30 00:17:24 +00:00
2023-08-08 00:17:37 +00:00
2023-08-08 00:17:37 +00:00
2023-08-08 00:17:37 +00:00
2023-09-19 00:17:49 +00:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 4.2 GiB
Languages
C++ 30.7%
C 30.2%
Ada 14.4%
D 6.1%
Go 5.7%
Other 12.4%