https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104453
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:070bb453f1c0fa47a62a7b0cdeed397e889600f6 commit r11-9659-g070bb453f1c0fa47a62a7b0cdeed397e889600f6 Author: Richard Biener <[email protected]> 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 <[email protected]> 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)
