https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104453
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:807bfd4357609655c81d0a3282b699b10e7aeb5a commit r10-10501-g807bfd4357609655c81d0a3282b699b10e7aeb5a Author: Richard Biener <rguent...@suse.de> Date: Wed Feb 9 08:48:35 2022 +0100 target/104453 - guard call folding with NULL LHS This guards shift builtin folding to do nothing when there is no LHS, similar to what other foldings do. 2022-02-09 Richard Biener <rguent...@suse.de> PR target/104453 * config/i386/i386.c (ix86_gimple_fold_builtin): Guard shift folding for NULL LHS. * gcc.target/i386/pr104453.c: New testcase. (cherry picked from commit 1c827873ed283df282f2df11dfe0ff607e07dab3)