public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/103075] New: [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905
@ 2021-11-04 4:19 asolokha at gmx dot com
2021-11-04 7:16 ` [Bug rtl-optimization/103075] " pinskia at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2021-11-04 4:19 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/103075] [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905
2021-11-04 4:19 [Bug rtl-optimization/103075] New: [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905 asolokha at gmx dot com
@ 2021-11-04 7:16 ` pinskia at gcc dot gnu.org
2021-11-04 7:19 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-04 7:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103075
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug rtl-optimization/103075] [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905
2021-11-04 4:19 [Bug rtl-optimization/103075] New: [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905 asolokha at gmx dot com
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
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-04 7:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103075
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-11-04
Ever confirmed|0 |1
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=84407
Status|UNCONFIRMED |NEW
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Caused by r12-4767-g81342e95827f77 .
Confirmed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [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
2021-11-04 4:19 [Bug rtl-optimization/103075] New: [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905 asolokha at gmx dot com
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 ` 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
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-04 7:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103075
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine, but it's a latent issue.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [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
2021-11-04 4:19 [Bug rtl-optimization/103075] New: [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905 asolokha at gmx dot com
` (2 preceding siblings ...)
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
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-11-04 12:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103075
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:d13603501680fcdbb933cb086cd01fcc39be1908
commit r12-4898-gd13603501680fcdbb933cb086cd01fcc39be1908
Author: Richard Biener <rguenther@suse.de>
Date: Thu Nov 4 09:17:18 2021 +0100
rtl-optimization/103075 - avoid ICEing on unfolded int-to-float converts
The following avoids asserting in exact_int_to_float_conversion_p that
the argument is not constant which it in fact can be with
-frounding-math and inexact int-to-float conversions. Say so.
2021-11-04 Richard Biener <rguenther@suse.de>
PR rtl-optimization/103075
* simplify-rtx.c (exact_int_to_float_conversion_p): Return
false for a VOIDmode operand.
* gcc.dg/pr103075.c: New testcase.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [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
2021-11-04 4:19 [Bug rtl-optimization/103075] New: [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905 asolokha at gmx dot com
` (3 preceding siblings ...)
2021-11-04 12:33 ` cvs-commit at gcc dot gnu.org
@ 2021-11-04 12:33 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-04 12:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103075
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-11-04 12:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 4:19 [Bug rtl-optimization/103075] New: [12 Regression] ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:905 asolokha at gmx dot com
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
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).