https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95854
--- Comment #2 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:35cf3c55165efe8226cb9e5397ab0620130396ea commit r11-1704-g35cf3c55165efe8226cb9e5397ab0620130396ea Author: Kaipeng Zhou <zhoukaipe...@huawei.com> Date: Wed Jun 24 22:48:45 2020 +0800 store-merging: ICE in find_bswap_or_nop_1 PR95854. The patch add a judgement in find_bswap_or_nop_1 to make sure both operand1 and operand2 cannot be converted to unsigned HOST_WIDE_INT. If not, return NULL. gcc/ChangeLog: 2020-06-24 Kaipeng Zhou <zhoukaipe...@huawei.com> PR tree-optimization/95854 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Return NULL if operand 1 or 2 of a BIT_FIELD_REF cannot be converted to unsigned HOST_WIDE_INT. gcc/testsuite/ChangeLog: 2020-06-24 Kaipeng Zhou <zhoukaipe...@huawei.com> PR tree-optimization/95854 * gcc.dg/pr95854.c: New test.