public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/104499] New: [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1
@ 2022-02-11 11:04 zsojka at seznam dot cz
2022-02-11 12:38 ` [Bug rtl-optimization/104499] " jakub at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2022-02-11 11:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104499
Bug ID: 104499
Summary: [12 Regression] ICE: in emit_move_insn, at
expr.cc:4010 at -O1
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: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 52412
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52412&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -O testcase.c
during RTL pass: expand
testcase.c: In function 'foo':
testcase.c:6:1: internal compiler error: in emit_move_insn, at expr.cc:4010
6 | foo (void)
| ^~~
0x6cb317 emit_move_insn(rtx_def*, rtx_def*)
/repo/gcc-trunk/gcc/expr.cc:4010
0xe71cfa expand_gimple_stmt_1
/repo/gcc-trunk/gcc/cfgexpand.cc:3994
0xe71cfa expand_gimple_stmt
/repo/gcc-trunk/gcc/cfgexpand.cc:4028
0xe779b8 expand_gimple_basic_block
/repo/gcc-trunk/gcc/cfgexpand.cc:6069
0xe79b47 execute
/repo/gcc-trunk/gcc/cfgexpand.cc:6795
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-7195-20220211112825-g72f8d228aff-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r12-7195-20220211112825-g72f8d228aff-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.0.1 20220211 (experimental) (GCC)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/104499] [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1
2022-02-11 11:04 [Bug rtl-optimization/104499] New: [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1 zsojka at seznam dot cz
@ 2022-02-11 12:38 ` jakub at gcc dot gnu.org
2022-02-11 12:50 ` [Bug tree-optimization/104499] " jakub at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-02-11 12:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104499
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Last reconfirmed| |2022-02-11
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Priority|P3 |P1
Target Milestone|--- |12.0
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r12-5489-g0888d6bbe97e10de0e624f4ab46acc276e5ee1d7
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/104499] [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1
2022-02-11 11:04 [Bug rtl-optimization/104499] New: [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1 zsojka at seznam dot cz
2022-02-11 12:38 ` [Bug rtl-optimization/104499] " jakub at gcc dot gnu.org
@ 2022-02-11 12:50 ` jakub at gcc dot gnu.org
2022-02-11 19:27 ` cvs-commit at gcc dot gnu.org
2022-02-11 19:29 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-02-11 12:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104499
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 52414
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52414&action=edit
gcc12-pr104499.patch
Untested fix.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/104499] [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1
2022-02-11 11:04 [Bug rtl-optimization/104499] New: [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1 zsojka at seznam dot cz
2022-02-11 12:38 ` [Bug rtl-optimization/104499] " jakub at gcc dot gnu.org
2022-02-11 12:50 ` [Bug tree-optimization/104499] " jakub at gcc dot gnu.org
@ 2022-02-11 19:27 ` cvs-commit at gcc dot gnu.org
2022-02-11 19:29 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-02-11 19:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104499
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:9355a8c35883b5125851bb9b4169a1a1cd8e343f
commit r12-7202-g9355a8c35883b5125851bb9b4169a1a1cd8e343f
Author: Jakub Jelinek <jakub@redhat.com>
Date: Fri Feb 11 20:27:23 2022 +0100
match.pd: Fix up (X & Y) CMP 0 -> X CMP2 ~Y simplifications [PR104499]
The following testcase ICEs on x86_64-linux, because match.pd emits
there a NOP_EXPR cast from int*8 vector type with BLKmode to
unsigned*8 vector type with BLKmode and vec-lowering isn't prepared
to handle such casts.
Fixed by using VIEW_CONVERT_EXPR instead.
2022-02-11 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/104499
* match.pd ((X & Y) CMP 0 -> X CMP2 ~Y): Use view_convert instead
of convert.
* gcc.c-torture/compile/pr104499.c: New test.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug tree-optimization/104499] [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1
2022-02-11 11:04 [Bug rtl-optimization/104499] New: [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1 zsojka at seznam dot cz
` (2 preceding siblings ...)
2022-02-11 19:27 ` cvs-commit at gcc dot gnu.org
@ 2022-02-11 19:29 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-02-11 19:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104499
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-02-11 19:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-11 11:04 [Bug rtl-optimization/104499] New: [12 Regression] ICE: in emit_move_insn, at expr.cc:4010 at -O1 zsojka at seznam dot cz
2022-02-11 12:38 ` [Bug rtl-optimization/104499] " jakub at gcc dot gnu.org
2022-02-11 12:50 ` [Bug tree-optimization/104499] " jakub at gcc dot gnu.org
2022-02-11 19:27 ` cvs-commit at gcc dot gnu.org
2022-02-11 19:29 ` jakub 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).