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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 45792
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45792&action=edit
gcc9-pr89438.patch

Untested fix.  In RTL CONST_INTs in modes with narrower bitsizes than DImode
must be sign-extended from the corresponding mode, so either trunc_int_for_mode
is needed, gen_int_mode, or we need to sign-extend it manually like this.

Reply via email to