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

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=123521
          Component|target                      |middle-end

--- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Regressed since r15-10678 (PR 123521 fix) but I don't think it's the root
cause.

It looks like when expand_binop() calls expand_vector_broadcast() the
precondition of expand_vector_broadcast() is violated:

(gdb) fr 10
#10 0x000000000166541b in expand_vector_broadcast (vmode=E_V2DImode, 
    op=0x7ffff56c1d50) at ../../gcc-backport/gcc/optabs.cc:465
465       emit_insn (GEN_FCN (icode) (ret, gen_rtx_PARALLEL (vmode, vec)));
(gdb) fr 11
#11 0x00000000016690a9 in expand_binop (mode=E_V2DImode, binoptab=ashr_optab, 
    op0=0x7ffff56c1d08, op1=0x7ffff56c1d50, target=0x0, unsignedp=0, 
    methods=OPTAB_DIRECT) at ../../gcc-backport/gcc/optabs.cc:1635
1635              rtx vop1 = expand_vector_broadcast (mode, op1);
(gdb) call debug_rtx(op1)
(reg:SI 180 [ Offset_110 ])
(gdb) p mode
$1 = E_V2DImode

But we have a comment above expand_vector_broadcast stating the mode of op must
be the element mode of vmode.

Reply via email to