public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/103075] New: [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905
Date: Thu, 04 Nov 2021 04:19:25 +0000	[thread overview]
Message-ID: <bug-103075-4@http.gcc.gnu.org/bugzilla/> (raw)

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	other threads:[~2021-11-04  4:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-04  4:19 asolokha at gmx dot com [this message]
2021-11-04  7:16 ` [Bug rtl-optimization/103075] " pinskia at gcc dot gnu.org
2021-11-04  7:19 ` pinskia at gcc dot gnu.org
2021-11-04  7:54 ` [Bug rtl-optimization/103075] [12 Regression] ICE in exact_int_to_float_conversion_p with -O1 -frounding-math and int to float conversion with multiply rguenth at gcc dot gnu.org
2021-11-04 12:33 ` cvs-commit at gcc dot gnu.org
2021-11-04 12:33 ` rguenth at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-103075-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).