public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/17626] New: Recent peephole2:s may cause internal compiler errors
@ 2004-09-23 1:28 hp at gcc dot gnu dot org
2004-09-23 21:59 ` [Bug target/17626] " cvs-commit at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hp at gcc dot gnu dot org @ 2004-09-23 1:28 UTC (permalink / raw)
To: gcc-bugs
The peephole2s marked "moverside" and "movemside" may cause noncanonical RTX,
which leads to an ICE that looks like this:
x/hws3.c: In function `f0':
x/hws3.c:47: unrecognizable insn:
(insn 196 106 108 (parallel[
(set (reg:HI 11 r11)
(mem/u:HI (plus:SI (reg/f:SI 13 r13 [67])
(mult:SI (reg/v:SI 1 r1 [23])
(const_int 2 [0x2]))) [7 cav1 S2 A8]))
(set (reg/f:SI 12 r12 [70])
(plus:SI (reg/f:SI 13 r13 [67])
(mult:SI (reg/v:SI 1 r1 [23])
(const_int 2 [0x2]))))
] ) -1 (nil)
(expr_list:REG_DEAD (reg/v:SI 1 r1 [23])
(nil)))
The left operand of the PLUS should have been the MULT, not the register.
No testcase for trunk, as this was only observed with a 3.2.1-derivate
with the peephole2-patch applied, and the failing code "works" on trunk.
--
Summary: Recent peephole2:s may cause internal compiler errors
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: target
AssignedTo: hp at gcc dot gnu dot org
ReportedBy: hp at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: cris-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17626
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/17626] Recent peephole2:s may cause internal compiler errors
2004-09-23 1:28 [Bug target/17626] New: Recent peephole2:s may cause internal compiler errors hp at gcc dot gnu dot org
@ 2004-09-23 21:59 ` cvs-commit at gcc dot gnu dot org
2004-09-23 22:10 ` hp at gcc dot gnu dot org
2004-09-29 19:50 ` hp at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-23 21:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-23 21:59 -------
Subject: Bug 17626
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: hp@gcc.gnu.org 2004-09-23 21:59:14
Modified files:
gcc : ChangeLog
gcc/config/cris: cris.md
Log message:
PR target/17626
* config/cris/cris.md (moverside, movemside): Rename variable
"reg" to "otherop". To generate canonical RTX, check that otherop
isn't constant instead of checking that operand 1 is a register.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5593&r2=2.5594
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/cris/cris.md.diff?cvsroot=gcc&r1=1.18&r2=1.19
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17626
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/17626] Recent peephole2:s may cause internal compiler errors
2004-09-23 1:28 [Bug target/17626] New: Recent peephole2:s may cause internal compiler errors hp at gcc dot gnu dot org
2004-09-23 21:59 ` [Bug target/17626] " cvs-commit at gcc dot gnu dot org
@ 2004-09-23 22:10 ` hp at gcc dot gnu dot org
2004-09-29 19:50 ` hp at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: hp at gcc dot gnu dot org @ 2004-09-23 22:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From hp at gcc dot gnu dot org 2004-09-23 22:10 -------
<URL:http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02464.html>
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17626
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/17626] Recent peephole2:s may cause internal compiler errors
2004-09-23 1:28 [Bug target/17626] New: Recent peephole2:s may cause internal compiler errors hp at gcc dot gnu dot org
2004-09-23 21:59 ` [Bug target/17626] " cvs-commit at gcc dot gnu dot org
2004-09-23 22:10 ` hp at gcc dot gnu dot org
@ 2004-09-29 19:50 ` hp at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: hp at gcc dot gnu dot org @ 2004-09-29 19:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From hp at gcc dot gnu dot org 2004-09-29 19:50 -------
For the record, a necessary follow-up patch (aka. brown-paper-bag patch)
is at <URL:http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02979.html>.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17626
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-09-29 19:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23 1:28 [Bug target/17626] New: Recent peephole2:s may cause internal compiler errors hp at gcc dot gnu dot org
2004-09-23 21:59 ` [Bug target/17626] " cvs-commit at gcc dot gnu dot org
2004-09-23 22:10 ` hp at gcc dot gnu dot org
2004-09-29 19:50 ` hp at gcc dot gnu dot 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).