https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117116

--- Comment #12 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 59348
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59348&action=edit
Proposed patch

Patch in testing.

Just leave CONST_VECTOR RTXes that won't simplify to integer in memory. The
follow-up code that handles (offsettable_memref_p (operand)) handles
CONST_VECTOR RTXes in memory just fine.

I tried to split V2SImode CONST_VECTOR to two SImode CONST elements, but there
were some further ICEs generated, and it is getting a bit late here...

Reply via email to