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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-06-07

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
2023-06-07  Jakub Jelinek  <ja...@redhat.com>

        PR target/110152
        * config/i386/i386-expand.cc (ix86_expand_vector_init_general): For
        n_words == 2 recurse with mmx_ok as first argument rather than false.

--- gcc/config/i386/i386-expand.cc.jj   2023-06-03 15:32:04.489410367 +0200
+++ gcc/config/i386/i386-expand.cc      2023-06-07 10:31:34.715981752 +0200
@@ -16371,7 +16371,7 @@ quarter:
          machine_mode concat_mode = tmp_mode == DImode ? V2DImode : V2SImode;
          rtx tmp = gen_reg_rtx (concat_mode);
          vals = gen_rtx_PARALLEL (concat_mode, gen_rtvec_v (2, words));
-         ix86_expand_vector_init_general (false, concat_mode, tmp, vals);
+         ix86_expand_vector_init_general (mmx_ok, concat_mode, tmp, vals);
          emit_move_insn (target, gen_lowpart (mode, tmp));
        }
       else if (n_words == 4)

seems to fix it.

Reply via email to