public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/101930] New: [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c
@ 2021-08-16 8:12 marxin at gcc dot gnu.org
2021-08-16 8:42 ` [Bug target/101930] " crazylht at gmail dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-16 8:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101930
Bug ID: 101930
Summary: [12 Regression] ICE in extract_insn, at recog.c:2769
since r12-2888-g8c8df06e46493f6c
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: jakub at gcc dot gnu.org
Target Milestone: ---
The following fails:
$ gfortran /home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/scale_1.f90
-funsafe-math-optimizations -mavx512vnni
/home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/scale_1.f90:35:3:
35 | END
| ^
Error: unrecognizable insn:
(insn 15 14 16 2 (set (reg:SF 90)
(unspec:SF [
(mem/c:SF (plus:DI (reg/f:DI 77 virtual-stack-vars)
(const_int -4 [0xfffffffffffffffc])) [1 x+0 S4 A32])
(reg:SF 91)
] UNSPEC_SCALEF))
"/home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/scale_1.f90":21:17 -1
(nil))
during RTL pass: vregs
/home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/scale_1.f90:35:3:
internal compiler error: in extract_insn, at recog.c:2769
0x718de2 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
/home/marxin/Programming/gcc/gcc/rtl-error.c:108
0x718e04 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
/home/marxin/Programming/gcc/gcc/rtl-error.c:116
0x716f6f extract_insn(rtx_insn*)
/home/marxin/Programming/gcc/gcc/recog.c:2769
0xc0bea3 instantiate_virtual_regs_in_insn
/home/marxin/Programming/gcc/gcc/function.c:1611
0xc0bea3 instantiate_virtual_regs
/home/marxin/Programming/gcc/gcc/function.c:1985
0xc0bea3 execute
/home/marxin/Programming/gcc/gcc/function.c:2034
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Maybe similar to PR101860.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/101930] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c
2021-08-16 8:12 [Bug target/101930] New: [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c marxin at gcc dot gnu.org
@ 2021-08-16 8:42 ` crazylht at gmail dot com
2021-08-16 8:46 ` ubizjak at gmail dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: crazylht at gmail dot com @ 2021-08-16 8:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101930
Hongtao.liu <crazylht at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |crazylht at gmail dot com
--- Comment #1 from Hongtao.liu <crazylht at gmail dot com> ---
(> Maybe similar to PR101860.
No, it's a different issue.
Should be fixed by
{
rtx op2 = gen_reg_rtx (<MODE>mode);
- if (!nonimmediate_operand (operands[1], <MODE>mode))
+ if (!register_operand (operands[1], <MODE>mode))
operands[1] = force_reg (<MODE>mode, operands[1]);
i'm testing a patch.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/101930] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c
2021-08-16 8:12 [Bug target/101930] New: [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c marxin at gcc dot gnu.org
2021-08-16 8:42 ` [Bug target/101930] " crazylht at gmail dot com
@ 2021-08-16 8:46 ` ubizjak at gmail dot com
2021-08-16 8:50 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2021-08-16 8:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101930
--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Hongtao.liu from comment #1)
> (> Maybe similar to PR101860.
>
> No, it's a different issue.
>
> Should be fixed by
>
> {
> rtx op2 = gen_reg_rtx (<MODE>mode);
>
> - if (!nonimmediate_operand (operands[1], <MODE>mode))
> + if (!register_operand (operands[1], <MODE>mode))
> operands[1] = force_reg (<MODE>mode, operands[1]);
>
> i'm testing a patch.
No need to check for register_operand, just use
operands[1] = force_reg (...);
force_reg checks if the value is already a register.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/101930] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c
2021-08-16 8:12 [Bug target/101930] New: [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c marxin at gcc dot gnu.org
2021-08-16 8:42 ` [Bug target/101930] " crazylht at gmail dot com
2021-08-16 8:46 ` ubizjak at gmail dot com
@ 2021-08-16 8:50 ` pinskia at gcc dot gnu.org
2021-08-16 9:22 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-16 8:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101930
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-08-16
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Keywords| |ice-on-valid-code
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/101930] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c
2021-08-16 8:12 [Bug target/101930] New: [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2021-08-16 8:50 ` pinskia at gcc dot gnu.org
@ 2021-08-16 9:22 ` cvs-commit at gcc dot gnu.org
2021-08-16 9:44 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-16 9:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101930
--- Comment #3 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:1afcf5705a0becdca96111a6cb67670217c335b3
commit r12-2922-g1afcf5705a0becdca96111a6cb67670217c335b3
Author: liuhongt <hongtao.liu@intel.com>
Date: Mon Aug 16 17:12:21 2021 +0800
Fix ICE.
gcc/ChangeLog:
PR target/101930
* config/i386/i386.md (ldexp<mode>3): Force operands[1] to
reg.
gcc/testsuite/ChangeLog:
PR target/101930
* gcc.target/i386/pr101930.c: New test.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/101930] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c
2021-08-16 8:12 [Bug target/101930] New: [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c marxin at gcc dot gnu.org
` (3 preceding siblings ...)
2021-08-16 9:22 ` cvs-commit at gcc dot gnu.org
@ 2021-08-16 9:44 ` rguenth at gcc dot gnu.org
2021-08-23 8:01 ` marxin at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-08-16 9:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101930
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/101930] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c
2021-08-16 8:12 [Bug target/101930] New: [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c marxin at gcc dot gnu.org
` (4 preceding siblings ...)
2021-08-16 9:44 ` rguenth at gcc dot gnu.org
@ 2021-08-23 8:01 ` marxin at gcc dot gnu.org
2021-08-23 9:31 ` crazylht at gmail dot com
2021-09-01 7:05 ` marxin at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-23 8:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101930
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Can we close it as fixed, please?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/101930] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c
2021-08-16 8:12 [Bug target/101930] New: [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c marxin at gcc dot gnu.org
` (5 preceding siblings ...)
2021-08-23 8:01 ` marxin at gcc dot gnu.org
@ 2021-08-23 9:31 ` crazylht at gmail dot com
2021-09-01 7:05 ` marxin at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: crazylht at gmail dot com @ 2021-08-23 9:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101930
--- Comment #5 from Hongtao.liu <crazylht at gmail dot com> ---
(In reply to Martin Liška from comment #4)
> Can we close it as fixed, please?
Yes.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/101930] [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c
2021-08-16 8:12 [Bug target/101930] New: [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c marxin at gcc dot gnu.org
` (6 preceding siblings ...)
2021-08-23 9:31 ` crazylht at gmail dot com
@ 2021-09-01 7:05 ` marxin at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-01 7:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101930
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-09-01 7:05 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16 8:12 [Bug target/101930] New: [12 Regression] ICE in extract_insn, at recog.c:2769 since r12-2888-g8c8df06e46493f6c marxin at gcc dot gnu.org
2021-08-16 8:42 ` [Bug target/101930] " crazylht at gmail dot com
2021-08-16 8:46 ` ubizjak at gmail dot com
2021-08-16 8:50 ` pinskia at gcc dot gnu.org
2021-08-16 9:22 ` cvs-commit at gcc dot gnu.org
2021-08-16 9:44 ` rguenth at gcc dot gnu.org
2021-08-23 8:01 ` marxin at gcc dot gnu.org
2021-08-23 9:31 ` crazylht at gmail dot com
2021-09-01 7:05 ` marxin 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).