https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89945
Uroš Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com --- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> --- Created attachment 46093 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46093&action=edit Proposed patch We allow SYMBOL_REF and LABEL_REF RTXes in x86_64_zext_immediate_operand for certain code models. gen_lowpart doesn't know what to do with these references, so we have to convert them from DImode to SImode by hand.