http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61060
Uroš Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at ucw dot cz --- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> --- The code in ix86_expand_set_or_movmem assumes that !count implies non-const_int count_exp: unsigned HOST_WIDE_INT count = 0; ... if (CONST_INT_P (count_exp)) min_size = max_size = probable_max_size = count = expected_size = INTVAL (count_exp); ... if (!count) count_exp = copy_to_mode_reg (GET_MODE (count_exp), count_exp); However, when count_exp is (const_int 0), the assumption breaks, and the code tries to determine the mode of modeless (const_int 0) count_exp RTX. CC author of the code.