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

            Bug ID: 97487
           Summary: [10/11 Regression] ICE in expand_simple_binop, at
                    optabs.c:939
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-11.0.0-alpha20201018 snapshot (g:1e70b1a358b6ce3b894f284d88fbb90518d45cc0)
ICEs when compiling the following testcase w/ -O3 --param
max-rtl-if-conversion-unpredictable-cost=0:

long int __attribute__ ((simd))
i1 (long int kt, long int sg)
{
  return kt < 0 ? sg : 0;
}

% gcc-11.0.0 -O3 --param max-rtl-if-conversion-unpredictable-cost=0 -c
xaw8sf5n.c
during RTL pass: ce1
xaw8sf5n.c: In function 'i1.simdclone.0':
xaw8sf5n.c:5:1: internal compiler error: in expand_simple_binop, at
optabs.c:939
    5 | }
      | ^
0x69936d expand_simple_binop(machine_mode, rtx_code, rtx_def*, rtx_def*,
rtx_def*, int, optab_methods)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/optabs.c:939
0x69936d expand_simple_binop(machine_mode, rtx_code, rtx_def*, rtx_def*,
rtx_def*, int, optab_methods)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/optabs.c:934
0xa65578 force_operand(rtx_def*, rtx_def*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/expr.c:7720
0xa3baea copy_to_mode_reg(machine_mode, rtx_def*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/explow.c:629
0xca49bb maybe_legitimize_operand
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/optabs.c:7199
0xca49bb maybe_legitimize_operands(insn_code, unsigned int, unsigned int,
expand_operand*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/optabs.c:7331
0xca1c09 maybe_gen_insn(insn_code, unsigned int, expand_operand*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/optabs.c:7350
0xca74ad expand_binop_directly
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/optabs.c:1122
0xca5b2f expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/optabs.c:1209
0x17a9183 noce_try_sign_mask
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/ifcvt.c:2780
0x17a9183 noce_process_if_block
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/ifcvt.c:3610
0x17a9183 noce_find_if_block
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/ifcvt.c:4075
0x17a9183 find_if_header
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/ifcvt.c:4280
0x17a9183 if_convert
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/ifcvt.c:5413
0x17a92b1 rest_of_handle_if_conversion
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/ifcvt.c:5478
0x17a92b1 execute
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201018/work/gcc-11-20201018/gcc/ifcvt.c:5518

Reply via email to