* [Bug target/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
@ 2023-12-18 8:21 ` rguenth at gcc dot gnu.org
2023-12-20 12:04 ` manuel.lauss at googlemail dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-12-18 8:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-12-18
Target Milestone|--- |13.3
Priority|P3 |P2
Status|UNCONFIRMED |NEW
Keywords| |ra
Ever confirmed|0 |1
Known to work| |12.3.1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
2023-12-18 8:21 ` [Bug target/113048] " rguenth at gcc dot gnu.org
@ 2023-12-20 12:04 ` manuel.lauss at googlemail dot com
2024-01-04 12:03 ` [Bug target/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716 jakub at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: manuel.lauss at googlemail dot com @ 2023-12-20 12:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
Manuel Lauss <manuel.lauss at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manuel.lauss at googlemail dot com
--- Comment #2 from Manuel Lauss <manuel.lauss at googlemail dot com> ---
I'm seeing similar ICE in xgcc when trying to build GCC-14 for MIPS32;
it goes away when I drop "-fPIC" or "-march=mips32":
/build/./gcc/xgcc -B/build/./gcc -march=mips32 -O2 -c wlocale-inst.ii -fPIC
/build/mipsel-softfloat-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:588:7:
error: unable to find a register to spill
588 | }
| ^
/build/mipsel-softfloat-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:588:7:
error: this is the insn:
(insn 470 2008 2009 82 (parallel [
(set (reg:SI 908)
(plus:SI (mult:SI (reg:SI 567 [ __result+4 ])
(reg/v:SI 220 [ __base ]))
(reg:SI 909)))
(clobber (reg:SI 796 [762]))
(clobber (reg:SI 763))
])
"/build/mipsel-softfloat-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc":493:14
42 {*mul_acc_si}
(expr_list:REG_UNUSED (reg:SI 763)
(expr_list:REG_UNUSED (reg:SI 796 [762])
(expr_list:REG_DEAD (reg:SI 909)
(expr_list:REG_DEAD (reg:SI 567 [ __result+4 ])
(nil))))))
during RTL pass: reload
/build/mipsel-softfloat-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:588:7:
internal compiler error: in lra_split_hard_reg_for, at lra-assigns.cc:1862
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
2023-12-18 8:21 ` [Bug target/113048] " rguenth at gcc dot gnu.org
2023-12-20 12:04 ` manuel.lauss at googlemail dot com
@ 2024-01-04 12:03 ` jakub at gcc dot gnu.org
2024-01-04 12:04 ` jakub at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-04 12:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[13/14 Regression] ICE: in |[13/14 Regression] ICE: in
|lra_split_hard_reg_for, at |lra_split_hard_reg_for, at
|lra-assigns.cc:1862 (unable |lra-assigns.cc:1862 (unable
|to find a register to |to find a register to
|spill) |spill)
|{*andndi3_doubleword_bmi} |{*andndi3_doubleword_bmi}
|with -march=cascadelake |with -march=cascadelake
| |since r13-1716
CC| |jakub at gcc dot gnu.org,
| |sayle at gcc dot gnu.org,
| |uros at gcc dot gnu.org,
| |vmakarov at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r13-1716-gfd3d25d6df1cbd385d2834ff3059dfb6905dd75c
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
` (2 preceding siblings ...)
2024-01-04 12:03 ` [Bug target/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716 jakub at gcc dot gnu.org
@ 2024-01-04 12:04 ` jakub at gcc dot gnu.org
2024-01-05 9:59 ` [Bug rtl-optimization/113048] " ubizjak at gmail dot com
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-04 12:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Manuel Lauss from comment #2)
> I'm seeing similar ICE in xgcc when trying to build GCC-14 for MIPS32;
> it goes away when I drop "-fPIC" or "-march=mips32":
Please file this separately, that is extremely unlikely the same issue.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
` (3 preceding siblings ...)
2024-01-04 12:04 ` jakub at gcc dot gnu.org
@ 2024-01-05 9:59 ` ubizjak at gmail dot com
2024-01-05 14:33 ` manuel.lauss at googlemail dot com
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ubizjak at gmail dot com @ 2024-01-05 9:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |rtl-optimization
--- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Jakub Jelinek from comment #3)
> Started with r13-1716-gfd3d25d6df1cbd385d2834ff3059dfb6905dd75c
There is nothing wrong with the constrints in *andndi3_doubleword_bmi:
(define_insn_and_split "*andn<dwi>3_doubleword_bmi"
[(set (match_operand:<DWI> 0 "register_operand" "=&r,r,r")
(and:<DWI>
(not:<DWI> (match_operand:<DWI> 1 "register_operand" "r,0,r"))
(match_operand:<DWI> 2 "nonimmediate_operand" "ro,ro,0")))
(clobber (reg:CC FLAGS_REG))]
Reconfirmed as RA problem.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
` (4 preceding siblings ...)
2024-01-05 9:59 ` [Bug rtl-optimization/113048] " ubizjak at gmail dot com
@ 2024-01-05 14:33 ` manuel.lauss at googlemail dot com
2024-01-15 15:55 ` vmakarov at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: manuel.lauss at googlemail dot com @ 2024-01-05 14:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
--- Comment #6 from Manuel Lauss <manuel.lauss at googlemail dot com> ---
After be977db17c91ad6627dee70a1904a95d229aa1be I don't see this ICE any longer
on either x64 or mips bootstrap.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
` (5 preceding siblings ...)
2024-01-05 14:33 ` manuel.lauss at googlemail dot com
@ 2024-01-15 15:55 ` vmakarov at gcc dot gnu.org
2024-01-15 16:08 ` ubizjak at gmail dot com
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2024-01-15 15:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
--- Comment #7 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
I believe this PR was recently fixed by
https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=a729b6e002fe76208f33fdcdee49d6a310a1940e
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
` (6 preceding siblings ...)
2024-01-15 15:55 ` vmakarov at gcc dot gnu.org
@ 2024-01-15 16:08 ` ubizjak at gmail dot com
2024-01-15 16:36 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: ubizjak at gmail dot com @ 2024-01-15 16:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
--- Comment #8 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Vladimir Makarov from comment #7)
> I believe this PR was recently fixed by
> https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;
> h=a729b6e002fe76208f33fdcdee49d6a310a1940e
Yes, I can confirm that the test compiles OK with recent:
xgcc (GCC) 14.0.1 20240115 (experimental) [master r14-7251-g04f22670d32]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/113048] [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
` (7 preceding siblings ...)
2024-01-15 16:08 ` ubizjak at gmail dot com
@ 2024-01-15 16:36 ` cvs-commit at gcc dot gnu.org
2024-01-15 16:37 ` [Bug rtl-optimization/113048] [13 " jakub at gcc dot gnu.org
2024-05-21 9:18 ` jakub at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-15 16:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
--- Comment #9 from GCC 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:2e493b697a4cb135b0af6944d0c1f3c8f59e8caf
commit r14-7253-g2e493b697a4cb135b0af6944d0c1f3c8f59e8caf
Author: Jakub Jelinek <jakub@redhat.com>
Date: Mon Jan 15 17:35:04 2024 +0100
testsuite: Add testcase for already fixed PR [PR113048]
The ICE on this testcase was fixed by r14-7141.
2024-01-15 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/113048
* gcc.target/i386/pr113048.c: New test.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/113048] [13 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
` (8 preceding siblings ...)
2024-01-15 16:36 ` cvs-commit at gcc dot gnu.org
@ 2024-01-15 16:37 ` jakub at gcc dot gnu.org
2024-05-21 9:18 ` jakub at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-01-15 16:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[13/14 Regression] ICE: in |[13 Regression] ICE: in
|lra_split_hard_reg_for, at |lra_split_hard_reg_for, at
|lra-assigns.cc:1862 (unable |lra-assigns.cc:1862 (unable
|to find a register to |to find a register to
|spill) |spill)
|{*andndi3_doubleword_bmi} |{*andndi3_doubleword_bmi}
|with -march=cascadelake |with -march=cascadelake
|since r13-1716 |since r13-1716
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed on the trunk so far.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/113048] [13 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake since r13-1716
2023-12-17 6:57 [Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake zsojka at seznam dot cz
` (9 preceding siblings ...)
2024-01-15 16:37 ` [Bug rtl-optimization/113048] [13 " jakub at gcc dot gnu.org
@ 2024-05-21 9:18 ` jakub at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-05-21 9:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113048
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|13.3 |13.4
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 13.3 is being released, retargeting bugs to GCC 13.4.
^ permalink raw reply [flat|nested] 12+ messages in thread