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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:aef1aaff41190d2f82cf49d8907682b6dff71c3c

commit r14-5681-gaef1aaff41190d2f82cf49d8907682b6dff71c3c
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Nov 21 14:46:31 2023 +0100

    tree-optimization/112623 - forwprop VEC_PACK_TRUNC generation

    For vec_pack_trunc patterns there can be an ambiguity for the
    source mode for BFmode vs HFmode.  The vectorizer checks
    the insns operand mode for this, the following makes forwprop
    do the same.  That of course doesn't help if the target supports
    both conversions.

            PR tree-optimization/112623
            * tree-ssa-forwprop.cc (simplify_vector_constructor):
            Check the source mode of the insn for vector pack/unpacks.

            * gcc.target/i386/pr112623.c: New testcase.

Reply via email to