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

            Bug ID: 92260
           Summary: ice in exact_div, at poly-int.h:2162
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 47122
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47122&action=edit
C++ source code

For the attached C++ code, recent gcc trunk does this with compiler
flag -O3:

/home/dcb/pkgsrc/pkgsrc/multimedia/x265/work/x265_3.2/source/common/pixel.cpp:718:5:
internal compiler error: in exact_div, at poly-int.h:2162
  718 | int psyCost_pp(const pixel* source, intptr_t sstride, const pixel*
recon, intptr_t rstride)
      |     ^~~~~~~~~~
0x7eacd1 poly_int<1u, poly_result<unsigned long, if_nonpoly<unsigned long,
unsigned long, poly_int_traits<unsigned long>::is_poly>::type,
poly_coeff_pair_traits<unsigned long, if_nonpoly<unsigned long, unsigned long,
poly_int_traits<unsigned long>::is_poly>::type>::result_kind>::type>
exact_div<1u, unsigned long, unsigned long>(poly_int_pod<1u, unsigned long>
const&, unsigned long)
        ../../trunk/gcc/poly-int.h:2162
0x7eacd1 poly_int<1u, poly_result<unsigned long, unsigned long,
poly_coeff_pair_traits<unsigned long, unsigned long>::result_kind>::type>
exact_div<1u, unsigned long, unsigned long>(poly_int_pod<1u, unsigned long>
const&, poly_int_pod<1u, unsigned long> const&)
        ../../trunk/gcc/poly-int.h:2175
0x7eacd1 vect_get_num_vectors
        ../../trunk/gcc/tree-vectorizer.h:1462
0x7eacd1 vect_get_constant_vectors
        ../../trunk/gcc/tree-vect-slp.c:3395

Reply via email to