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

            Bug ID: 103075
           Summary: [12 Regression] ICE in
                    exact_int_to_float_conversion_p, at simplify-rtx.c:905
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-12.0.0-alpha20211031 snapshot (g:ca84f39399fda80c770306465276ffd66d3766ed)
ICEs when compiling the following testcase w/ -O1 -frounding-math:

float
foo (void)
{
  return (float) 0x1699925 * 1.1;
}

% gcc-12.0.0 -O1 -frounding-math -c bohjhgb9.c
during RTL pass: combine
bohjhgb9.c: In function 'foo':
bohjhgb9.c:5:1: internal compiler error: in exact_int_to_float_conversion_p, at
simplify-rtx.c:905
    5 | }
      | ^
0x70c80e exact_int_to_float_conversion_p
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/simplify-rtx.c:905
0xe75fc9 simplify_context::simplify_unary_operation_1(rtx_code, machine_mode,
rtx_def*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/simplify-rtx.c:1348
0x1b438b6 simplify_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/rtl.h:3459
0x1b438b6 combine_simplify_rtx
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/combine.c:5605
0x1b45f26 subst
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/combine.c:5545
0x1b45e54 subst
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/combine.c:5478
0x1b48ffe try_combine
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/combine.c:3272
0x1b4fa89 combine_instructions
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/combine.c:1411
0x1b4fa89 rest_of_handle_combine
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/combine.c:14904
0x1b4fa89 execute
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20211031/work/gcc-12-20211031/gcc/combine.c:14949

Reply via email to