public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/102302] New: [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57
@ 2021-09-13 8:41 burnus at gcc dot gnu.org
2021-09-13 8:49 ` [Bug bootstrap/102302] " tschwinge at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu.org @ 2021-09-13 8:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102302
Bug ID: 102302
Summary: [12 Regression] ICE during RTL pass: expand: in
gen_lowpart_general, at rtlhooks.c:57
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
Target Milestone: ---
That's on x86-64-gnu-linux. I have still to understand why it fails for this
build while others do not ICE.
obj/gcc-2021.06-999999-x86_64-none-linux-gnu-x86_64-linux-gnu/./gcc/xgcc -B...
--sysroot=.../libc -g -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W
... -msse2 -o truncsfhf2_s.o -MT truncsfhf2_s.o -MD -MP -MF truncsfhf2_s.dep
-DSHARED -c ../src/gcc-mainline/libgcc/soft-fp/truncsfhf2.c
during RTL pass: expand
In file included from
/net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/soft-fp.h:317,
from
/net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/trunctfhf2.c:29:
/net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/trunctfhf2.c:
In function '__trunctfhf2':
/net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/op-1.h:131:13:
internal compiler error: in gen_lowpart_general, at rtlhooks.c:57
131 | (val) = _FP_PACK_RAW_1_flo.flt; \
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/half.h:146:7:
note: in expansion of macro '_FP_PACK_RAW_1'
146 | _FP_PACK_RAW_1 (H, (val), X); \
| ^~~~~~~~~~~~~~
/net/build5-trusty-cs.sje.mentorg.com/scratch/tburnus/openacc.x86_64-linux-gnu-openacc-mainline/src/gcc-mainline/libgcc/soft-fp/trunctfhf2.c:48:3:
note: in expansion of macro 'FP_PACK_SEMIRAW_H'
48 | FP_PACK_SEMIRAW_H (r, R);
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/102302] [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57
2021-09-13 8:41 [Bug bootstrap/102302] New: [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57 burnus at gcc dot gnu.org
@ 2021-09-13 8:49 ` tschwinge at gcc dot gnu.org
2021-09-13 9:44 ` burnus at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2021-09-13 8:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102302
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |liuhongt at gcc dot gnu.org,
| |tschwinge at gcc dot gnu.org
Last reconfirmed| |2021-09-13
Status|UNCONFIRMED |NEW
--- Comment #1 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
I've ran into this, too, and found that it's due to recent commit
r12-3457-g57b7c432cce893e1ba60d9b94a9606df6b419379 'Revert "Get rid of all
float-int special cases in validate_subreg."'.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/102302] [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57
2021-09-13 8:41 [Bug bootstrap/102302] New: [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57 burnus at gcc dot gnu.org
2021-09-13 8:49 ` [Bug bootstrap/102302] " tschwinge at gcc dot gnu.org
@ 2021-09-13 9:44 ` burnus at gcc dot gnu.org
2021-09-13 10:30 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu.org @ 2021-09-13 9:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102302
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Reduced testcase:
-----------
typedef float HFtype __attribute__ ((mode (HF)));
union _FP_UNION_H {
HFtype flt;
struct { unsigned frac }
};
typedef float SFtype __attribute__ ((mode (SF)));
__truncsfhf2 (SFtype a)
{
HFtype r;
union _FP_UNION_H _FP_PACK_RAW_1_flo;
((r)) = _FP_PACK_RAW_1_flo.flt;
return r;
}
-----------
$ gdb --args .../x86_64-pc-linux-gnu/12.0.0/cc1 -fpreprocessed truncsfhf10.i
-O1
Breakpoint 1, gen_lowpart_general (mode=E_SImode, x=0x7ffff7103ae0) at
../../repos/gcc/gcc/rtlhooks.c:57
57 result = gen_lowpart_common (mode, copy_to_reg (x));
58 gcc_assert (result != 0);
(gdb) p mode
$3 = E_SImode
(gdb) p debug_rtx(x)
(reg:HF 86)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/102302] [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57
2021-09-13 8:41 [Bug bootstrap/102302] New: [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57 burnus at gcc dot gnu.org
2021-09-13 8:49 ` [Bug bootstrap/102302] " tschwinge at gcc dot gnu.org
2021-09-13 9:44 ` burnus at gcc dot gnu.org
@ 2021-09-13 10:30 ` rguenth at gcc dot gnu.org
2021-09-13 10:34 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-09-13 10:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102302
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
Target| |x86_64-*-*
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/102302] [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57
2021-09-13 8:41 [Bug bootstrap/102302] New: [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57 burnus at gcc dot gnu.org
` (2 preceding siblings ...)
2021-09-13 10:30 ` rguenth at gcc dot gnu.org
@ 2021-09-13 10:34 ` rguenth at gcc dot gnu.org
2021-09-13 11:22 ` marxin at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-09-13 10:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102302
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |juergen.reuter at desy dot de
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 102304 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/102302] [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57
2021-09-13 8:41 [Bug bootstrap/102302] New: [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57 burnus at gcc dot gnu.org
` (3 preceding siblings ...)
2021-09-13 10:34 ` rguenth at gcc dot gnu.org
@ 2021-09-13 11:22 ` marxin at gcc dot gnu.org
2021-09-13 11:52 ` cvs-commit at gcc dot gnu.org
2021-09-18 20:02 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-13 11:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102302
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
I can confirm that, unfortunately, it breaks bootstrap right now..
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/102302] [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57
2021-09-13 8:41 [Bug bootstrap/102302] New: [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57 burnus at gcc dot gnu.org
` (4 preceding siblings ...)
2021-09-13 11:22 ` marxin at gcc dot gnu.org
@ 2021-09-13 11:52 ` cvs-commit at gcc dot gnu.org
2021-09-18 20:02 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-13 11:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102302
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:
https://gcc.gnu.org/g:c8e4cb8adf68730357888adf186ab2e686a220ad
commit r12-3484-gc8e4cb8adf68730357888adf186ab2e686a220ad
Author: liuhongt <hongtao.liu@intel.com>
Date: Mon Sep 13 18:54:05 2021 +0800
Use gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
gcc/ChangeLog:
PR bootstrap/102302
* expmed.c (extract_bit_field_using_extv): Use
gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/102302] [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57
2021-09-13 8:41 [Bug bootstrap/102302] New: [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57 burnus at gcc dot gnu.org
` (5 preceding siblings ...)
2021-09-13 11:52 ` cvs-commit at gcc dot gnu.org
@ 2021-09-18 20:02 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-18 20:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102302
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-09-18 20:02 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13 8:41 [Bug bootstrap/102302] New: [12 Regression] ICE during RTL pass: expand: in gen_lowpart_general, at rtlhooks.c:57 burnus at gcc dot gnu.org
2021-09-13 8:49 ` [Bug bootstrap/102302] " tschwinge at gcc dot gnu.org
2021-09-13 9:44 ` burnus at gcc dot gnu.org
2021-09-13 10:30 ` rguenth at gcc dot gnu.org
2021-09-13 10:34 ` rguenth at gcc dot gnu.org
2021-09-13 11:22 ` marxin at gcc dot gnu.org
2021-09-13 11:52 ` cvs-commit at gcc dot gnu.org
2021-09-18 20:02 ` pinskia 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).