https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101858
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:d7e91f4894f6a1a2daeec5cbe1e912bb896b9f7a commit r12-2850-gd7e91f4894f6a1a2daeec5cbe1e912bb896b9f7a Author: Richard Biener <rguent...@suse.de> Date: Wed Aug 11 10:26:18 2021 +0200 middle-end/101858 - avoid shift of pointer in folding This makes sure to not generate a shift of pointer types in simplification of X < (cast) (1 << Y). 2021-08-11 Richard Biener <rguent...@suse.de> PR middle-end/101858 * fold-const.c (fold_binary_loc): Guard simplification of X < (cast) (1 << Y) to integer types. * gcc.dg/pr101858.c: New testcase.