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

            Bug ID: 92225
           Summary: ice in gen_smaxv2di3, at config/i386/sse.md:12225
           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 47111
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47111&action=edit
gzipped C++ source code

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

during RTL pass: expand
/home/dcb30/rpmbuild/BUILD/qfaxreader-0.3.2/src/qfrpostscript.cpp: In member
function ‘bool QfrPostscript::drawLevel2Image(int, int, int, int, QfrTiffIO&)’:
/home/dcb30/rpmbuild/BUILD/qfaxreader-0.3.2/src/qfrpostscript.cpp:362:6:
internal compiler error: in gen_smaxv2di3, at config/i386/sse.md:12225
  362 | bool QfrPostscript::drawLevel2Image(int x, int y, int w, int h,
QfrTiffIO &tif)
      |      ^~~~~~~~~~~~~
0x888ac6 gen_smaxv2di3(rtx_def*, rtx_def*, rtx_def*)
        ../../trunk/gcc/config/i386/sse.md:12225
0x14b481b ix86_expand_reduc(rtx_def* (*)(rtx_def*, rtx_def*, rtx_def*),
rtx_def*, rtx_def*)
        ../../trunk/gcc/config/i386/i386-expand.c:15062
0x1804e3c gen_reduc_smax_scal_v2di(rtx_def*, rtx_def*)
        ../../trunk/gcc/config/i386/sse.md:2784
0xfbac48 insn_gen_fn::operator()(rtx_def*, rtx_def*) const
        ../../trunk/gcc/recog.h:318

Reply via email to