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

            Bug ID: 92401
           Summary: [10 Regression] ICE in fold_ternary_loc, at
                    fold-const.c:11698
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: x86_64-unknown-linux-gnu

g++-10.0.0-alpha20191103 snapshot (r277758) ICEs when compiling the following
testcase reduced from testsuite/gcc.target/x86_64/abi/test_passing_unions.c w/
-O2:

typedef float vu __attribute__ ((__vector_size__ (16)));

vu gk;

void
sb ()
{
  int ot;

  for (ot = 0; ot < 11; ++ot)
    gk = vu { 0.0f, 0.0f, (float) ot, 0.0f, };
}

% x86_64-unknown-linux-gnu-g++-10.0.0-alpha20191103 -O2 -c wvedubqx.cc
during GIMPLE pass: pre
wvedubqx.cc: In function 'void sb()':
wvedubqx.cc:6:1: internal compiler error: in fold_ternary_loc, at
fold-const.c:11698
    6 | sb ()
      | ^~
0x6ae31a fold_ternary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*, tree_node*)
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/fold-const.c:11698
0x11ac698 gimple_resimplify3
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/gimple-match-head.c:328
0xff5e8c vn_nary_build_or_lookup_1
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-ssa-sccvn.c:1990
0xff614d vn_nary_simplify(vn_nary_op_s*)
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-ssa-sccvn.c:2096
0xfd3b75 fully_constant_expression
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-ssa-pre.c:1115
0xfd3b75 phi_translate_1
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-ssa-pre.c:1379
0xfd3f78 phi_translate
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-ssa-pre.c:1686
0xfd4050 phi_translate_set
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-ssa-pre.c:1724
0xfd477b compute_antic_aux
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-ssa-pre.c:2062
0xfd50f6 compute_antic
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-ssa-pre.c:2408
0xfd50f6 execute
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/tree-ssa-pre.c:4215

Reply via email to