[Bug target/94980] [8/9/10/11 Regression] ICE: verify_gimple failed: position plus size exceeds size of referenced object in 'bit_field_ref' with -mavx512vl

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 12 08:01:41 GMT 2020


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

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

https://gcc.gnu.org/g:14605b6bd8c37fffd8065c5c3fe6b1b9d7b2a294

commit r11-312-g14605b6bd8c37fffd8065c5c3fe6b1b9d7b2a294
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Tue May 12 09:01:12 2020 +0100

    tree-vect-generic: Tweak build_replicated_const [PR94980 2/3]

    This patch makes build_replicated_const take the number of bits
    in VALUE rather than calculating the width from the element type.
    The callers can then use vector_element_bits to calculate the
    correct element size from the vector type.

    2020-05-12  Richard Sandiford  <richard.sandiford@arm.com>

    gcc/
            PR tree-optimization/94980
            * tree-vect-generic.c (build_replicated_const): Take the number
            of bits as a parameter, instead of the type of the elements.
            (do_plus_minus): Update accordingly, using vector_element_bits
            to calculate the correct number of bits.
            (do_negate): Likewise.


More information about the Gcc-bugs mailing list