public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/23424] New: cris.md rtl canonicalization bug
@ 2005-08-16 17:44 hp at gcc dot gnu dot org
2005-08-16 17:47 ` [Bug target/23424] " hp at gcc dot gnu dot org
0 siblings, 1 reply; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-08-16 17:44 UTC (permalink / raw)
To: gcc-bugs
For this code, at -O2:
extern char *x;
extern void foo (void);
void f (char *s, char *se, char *mp, char *y)
{
while (s != se)
{
char *p;
foo ();
p = s + *mp;
*y++ = *p;
s = p;
}
x = s;
}
I get with LAST_UPDATED "Tue Aug 16 12:30:26 UTC 2005":
/tmp/b.c:15: error: insn does not satisfy its constraints:
(insn 74 26 29 2 (parallel [
(set (reg:QI 13 r13)
(mem:QI (plus:SI (sign_extend:SI (mem:QI (reg/v/f:SI 3 r3
[orig:31 mp ] [31]) [0 S1 A8]))
(reg/v/f:SI 0 r0 [orig:29 s ] [29])) [0 S1 A8]))
(set (reg/v/f:SI 9 r9 [orig:28 p ] [28])
(plus:SI (sign_extend:SI (mem:QI (reg/v/f:SI 3 r3 [orig:31 mp ]
[31]) [0 S1 A8]))
(reg/v/f:SI 0 r0 [orig:29 s ] [29])))
]) 18 {*mov_sideqi} (nil)
(expr_list:REG_DEAD (reg/v/f:SI 0 r0 [orig:29 s ] [29])
(nil)))
/tmp/b.c:15: internal compiler error: in copyprop_hardreg_forward_1, at
regrename.c:1578
At first sight, there's a cris.md bug that has been there forever:
the insn is supposed to match "*mov_side<mode>", but that can only happen
with help of the "%" commutative marker. That marker isn't handled after
reload, and the insn is generated by the moverside peephole2 pattern.
All patterns *have* to be able to match whatever (canonical) RTL is generated
by the target after reload, without the commutativity marker.
So I'd say it's a target bug (the generated RTL is canonical) and IMHO arguably
also a documentation bug. But there's more...
--
Summary: cris.md rtl canonicalization bug
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hp at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: cris-axis-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23424
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/23424] cris.md rtl canonicalization bug
2005-08-16 17:44 [Bug target/23424] New: cris.md rtl canonicalization bug hp at gcc dot gnu dot org
@ 2005-08-16 17:47 ` hp at gcc dot gnu dot org
0 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-08-16 17:47 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |hp at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-08-16 17:44:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23424
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/23424] cris.md rtl canonicalization bug
[not found] <bug-23424-507@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2005-12-08 23:07 ` hp at gcc dot gnu dot org
@ 2006-02-15 4:14 ` hp at gcc dot gnu dot org
7 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-02-15 4:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from hp at gcc dot gnu dot org 2006-02-15 04:14 -------
Subject: Bug 23424
Author: hp
Date: Wed Feb 15 04:14:02 2006
New Revision: 111017
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111017
Log:
PR target/23424
* config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
Reenable.
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/config/cris/predicates.md
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23424
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/23424] cris.md rtl canonicalization bug
[not found] <bug-23424-507@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2005-11-04 21:24 ` hp at gcc dot gnu dot org
@ 2005-12-08 23:07 ` hp at gcc dot gnu dot org
2006-02-15 4:14 ` hp at gcc dot gnu dot org
7 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-12-08 23:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from hp at gcc dot gnu dot org 2005-12-08 23:07 -------
Subject: Bug 23424
Author: hp
Date: Thu Dec 8 23:07:31 2005
New Revision: 108255
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108255
Log:
PR target/23424
* recog.c (constrain_operands): Strip unary operators
only ifndef KEEP_UNARY_OPERATORS_AT_CONSTRAINT_CHECKING.
* reload.c (find_reloads): Ditto.
* config/cris/cris.h (KEEP_UNARY_OPERATORS_AT_CONSTRAINT_CHECKING):
Define.
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/config/cris/cris.h
branches/gcc-4_1-branch/gcc/recog.c
branches/gcc-4_1-branch/gcc/reload.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23424
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/23424] cris.md rtl canonicalization bug
[not found] <bug-23424-507@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2005-11-04 21:20 ` hp at gcc dot gnu dot org
@ 2005-11-04 21:24 ` hp at gcc dot gnu dot org
2005-12-08 23:07 ` hp at gcc dot gnu dot org
2006-02-15 4:14 ` hp at gcc dot gnu dot org
7 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-11-04 21:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hp at gcc dot gnu dot org 2005-11-04 21:24 -------
Subject: Bug 23424
Author: hp
Date: Fri Nov 4 21:24:20 2005
New Revision: 106507
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106507
Log:
PR target/23424
* gcc.dg/torture/pr23424-1.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr23424-1.c
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23424
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/23424] cris.md rtl canonicalization bug
[not found] <bug-23424-507@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2005-10-17 20:39 ` cvs-commit at gcc dot gnu dot org
@ 2005-11-04 21:20 ` hp at gcc dot gnu dot org
2005-11-04 21:24 ` hp at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-11-04 21:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hp at gcc dot gnu dot org 2005-11-04 21:20 -------
Subject: Bug 23424
Author: hp
Date: Fri Nov 4 21:20:24 2005
New Revision: 106506
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106506
Log:
PR target/23424
* config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
Disable.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/cris/predicates.md
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23424
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/23424] cris.md rtl canonicalization bug
[not found] <bug-23424-507@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2005-10-16 23:26 ` hp at gcc dot gnu dot org
@ 2005-10-17 20:39 ` cvs-commit at gcc dot gnu dot org
2005-11-04 21:20 ` hp at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-17 20:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from cvs-commit at gcc dot gnu dot org 2005-10-17 20:39 -------
Subject: Bug 23424
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: hp@gcc.gnu.org 2005-10-17 20:39:46
Modified files:
gcc : ChangeLog
gcc/doc : md.texi
Log message:
PR target/23424
* md.texi (Modifiers) <%>: Clarify that % doesn't work
after register allocation.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.10174&r2=2.10175
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/md.texi.diff?cvsroot=gcc&r1=1.148&r2=1.149
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23424
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/23424] cris.md rtl canonicalization bug
[not found] <bug-23424-507@http.gcc.gnu.org/bugzilla/>
2005-10-16 23:11 ` cvs-commit at gcc dot gnu dot org
2005-10-16 23:18 ` hp at gcc dot gnu dot org
@ 2005-10-16 23:26 ` hp at gcc dot gnu dot org
2005-10-17 20:39 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-10-16 23:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from hp at gcc dot gnu dot org 2005-10-16 23:26 -------
For the "there's more" at the end of the PR description, see the first patch
of comment #2.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23424
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/23424] cris.md rtl canonicalization bug
[not found] <bug-23424-507@http.gcc.gnu.org/bugzilla/>
2005-10-16 23:11 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-16 23:18 ` hp at gcc dot gnu dot org
2005-10-16 23:26 ` hp at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-10-16 23:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hp at gcc dot gnu dot org 2005-10-16 23:18 -------
Patches at <URL:http://gcc.gnu.org/ml/gcc-patches/2005-10/msg00940.html>
and <URL:http://gcc.gnu.org/ml/gcc-patches/2005-10/msg00941.html>
(the latter has been committed).
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23424
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/23424] cris.md rtl canonicalization bug
[not found] <bug-23424-507@http.gcc.gnu.org/bugzilla/>
@ 2005-10-16 23:11 ` cvs-commit at gcc dot gnu dot org
2005-10-16 23:18 ` hp at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-16 23:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from cvs-commit at gcc dot gnu dot org 2005-10-16 23:11 -------
Subject: Bug 23424
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: hp@gcc.gnu.org 2005-10-16 23:11:50
Modified files:
gcc : ChangeLog
gcc/config/cris: cris.md
Log message:
PR target/23424
* config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
swapped, alternatives for the R constraint.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.10166&r2=2.10167
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/cris/cris.md.diff?cvsroot=gcc&r1=1.38&r2=1.39
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23424
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-02-15 4:14 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-16 17:44 [Bug target/23424] New: cris.md rtl canonicalization bug hp at gcc dot gnu dot org
2005-08-16 17:47 ` [Bug target/23424] " hp at gcc dot gnu dot org
[not found] <bug-23424-507@http.gcc.gnu.org/bugzilla/>
2005-10-16 23:11 ` cvs-commit at gcc dot gnu dot org
2005-10-16 23:18 ` hp at gcc dot gnu dot org
2005-10-16 23:26 ` hp at gcc dot gnu dot org
2005-10-17 20:39 ` cvs-commit at gcc dot gnu dot org
2005-11-04 21:20 ` hp at gcc dot gnu dot org
2005-11-04 21:24 ` hp at gcc dot gnu dot org
2005-12-08 23:07 ` hp at gcc dot gnu dot org
2006-02-15 4:14 ` 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).