https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69886
--- Comment #3 from ktkachov at gcc dot gnu.org --- Author: ktkachov Date: Wed Feb 24 13:00:10 2016 New Revision: 233662 URL: https://gcc.gnu.org/viewcvs?rev=233662&root=gcc&view=rev Log: [gcse] PR rtl-optimization/69886: Check target mode in can_assign_to_reg_without_clobbers_p PR rtl-optimization/69886 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode argument. Use it when checking validity of set instructions. (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p. (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p callsite. * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype. * store-motion.c (find_moveable_store): Update can_assign_to_reg_without_clobbers_p callsite. * gcc.dg/torture/pr69886.c: New test. Added: trunk/gcc/testsuite/gcc.dg/torture/pr69886.c Modified: trunk/gcc/ChangeLog trunk/gcc/gcse.c trunk/gcc/rtl.h trunk/gcc/store-motion.c trunk/gcc/testsuite/ChangeLog