public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
@ 2006-03-01 17:54 ` hp at gcc dot gnu dot org
2009-10-12 4:10 ` hp at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-03-01 17:54 UTC (permalink / raw)
To: gcc-bugs
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-03-01 17:54:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register
@ 2006-03-01 17:54 hp at gcc dot gnu dot org
2006-03-01 17:54 ` [Bug target/26515] " hp at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2006-03-01 17:54 UTC (permalink / raw)
To: gcc-bugs
Noticed with revision 108225 plus local changes,
not noticed with revision 111226 plus local changes.
This code, compiled with -fpic -Os or -fpic -O2:
void
_nrrdSwap64Endian (void *_data, unsigned int N)
{
long long *data = 0;
long long l = 0;
long long fix = 0;
unsigned int I;
if (_data)
{
data = (long long *) _data;
for (I = 0; I < N; I++)
{
l = data[I];
fix = (l & 0x00000000000000FF);
fix = ((l & 0x000000000000FF00) >> 0x08) | (fix << 0x08);
fix = ((l & 0x0000000000FF0000) >> 0x10) | (fix << 0x08);
fix = ((l & 0x00000000FF000000) >> 0x18) | (fix << 0x08);
fix = ((l & 0x000000FF00000000LL) >> 0x20) | (fix << 0x08);
fix = ((l & 0x0000FF0000000000LL) >> 0x28) | (fix << 0x08);
fix = ((l & 0x00FF000000000000LL) >> 0x30) | (fix << 0x08);
data[I] = fix;
}
}
}
yields:
/tmp/e.i:1916: error: insn does not satisfy its constraints:
(insn 300 57 301 2 (set (reg:SI 6 r6)
(zero_extend:SI (reg:HI 17 mof))) 53 {zero_extendhisi2} (nil)
(nil))
due to a bug in cris.md:andu (peephole2) that it does not exclude non-general
registers for operand 1.
--
Summary: peephole2 causes unrecognized insn, zero_extending non-
general register
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: hp at gcc dot gnu dot org
ReportedBy: hp at gcc dot gnu dot org
GCC target triplet: cris-axis-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
2006-03-01 17:54 ` [Bug target/26515] " hp at gcc dot gnu dot org
@ 2009-10-12 4:10 ` hp at gcc dot gnu dot org
2009-10-12 4:15 ` hp at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-10-12 4:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hp at gcc dot gnu dot org 2009-10-12 04:10 -------
Created an attachment (id=18784)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18784&action=view)
patch and testcase from PR39765
Patch won't apply cleanly to gcc-4.3; apply s/CRIS_CONST/CONST/.
Also, the test-case doesn't trig on gcc-4.3-branch, just 4.4.
(Main trunk soon.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
2006-03-01 17:54 ` [Bug target/26515] " hp at gcc dot gnu dot org
2009-10-12 4:10 ` hp at gcc dot gnu dot org
@ 2009-10-12 4:15 ` hp at gcc dot gnu dot org
2009-10-12 4:18 ` hp at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-10-12 4:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hp at gcc dot gnu dot org 2009-10-12 04:14 -------
*** Bug 36482 has been marked as a duplicate of this bug. ***
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hinko dot kocevar at
| |cetrtapot dot si
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-10-12 4:15 ` hp at gcc dot gnu dot org
@ 2009-10-12 4:18 ` hp at gcc dot gnu dot org
2009-10-12 17:20 ` hp at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-10-12 4:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from hp at gcc dot gnu dot org 2009-10-12 04:18 -------
*** Bug 41642 has been marked as a duplicate of this bug. ***
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bohne-lang at medma dot uni-
| |heidelberg dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-10-12 4:18 ` hp at gcc dot gnu dot org
@ 2009-10-12 17:20 ` hp at gcc dot gnu dot org
2009-10-12 17:23 ` hp at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-10-12 17:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from hp at gcc dot gnu dot org 2009-10-12 17:20 -------
Subject: Bug 26515
Author: hp
Date: Mon Oct 12 17:19:56 2009
New Revision: 152673
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152673
Log:
PR target/26515
* config/cris/cris.md (andu): Check that operand 1 is one of the
general registers. Fix typo in head comment.
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/config/cris/cris.md
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-10-12 17:20 ` hp at gcc dot gnu dot org
@ 2009-10-12 17:23 ` hp at gcc dot gnu dot org
2009-10-12 17:38 ` hp at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-10-12 17:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hp at gcc dot gnu dot org 2009-10-12 17:23 -------
Subject: Bug 26515
Author: hp
Date: Mon Oct 12 17:22:57 2009
New Revision: 152674
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152674
Log:
PR target/26515
* gcc.dg/torture/pr26515.c: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/torture/pr26515.c
Modified:
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-10-12 17:23 ` hp at gcc dot gnu dot org
@ 2009-10-12 17:38 ` hp at gcc dot gnu dot org
2009-10-12 17:40 ` hp at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-10-12 17:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hp at gcc dot gnu dot org 2009-10-12 17:38 -------
Subject: Bug 26515
Author: hp
Date: Mon Oct 12 17:37:48 2009
New Revision: 152676
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152676
Log:
PR target/26515
* config/cris/cris.md (andu): Check that operand 1 is one of the
general registers. Fix typo in head comment.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/cris/cris.md
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-10-12 17:38 ` hp at gcc dot gnu dot org
@ 2009-10-12 17:40 ` hp at gcc dot gnu dot org
2009-10-12 17:59 ` hp at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-10-12 17:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from hp at gcc dot gnu dot org 2009-10-12 17:40 -------
Subject: Bug 26515
Author: hp
Date: Mon Oct 12 17:40:08 2009
New Revision: 152677
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152677
Log:
PR target/26515
* gcc.dg/torture/pr26515.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr26515.c
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-10-12 17:40 ` hp at gcc dot gnu dot org
@ 2009-10-12 17:59 ` hp at gcc dot gnu dot org
2009-10-12 18:00 ` hp at gcc dot gnu dot org
2009-10-12 18:14 ` hp at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-10-12 17:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from hp at gcc dot gnu dot org 2009-10-12 17:59 -------
Subject: Bug 26515
Author: hp
Date: Mon Oct 12 17:59:16 2009
New Revision: 152679
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152679
Log:
PR target/26515
* config/cris/cris.md (andu): Check that operand 1 is one of the
general registers. Fix typo in head comment.
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/config/cris/cris.md
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
` (8 preceding siblings ...)
2009-10-12 17:59 ` hp at gcc dot gnu dot org
@ 2009-10-12 18:00 ` hp at gcc dot gnu dot org
2009-10-12 18:14 ` hp at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-10-12 18:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from hp at gcc dot gnu dot org 2009-10-12 18:00 -------
Subject: Bug 26515
Author: hp
Date: Mon Oct 12 18:00:15 2009
New Revision: 152680
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152680
Log:
PR target/26515
* gcc.dg/torture/pr26515.c: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr26515.c
Modified:
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/26515] peephole2 causes unrecognized insn, zero_extending non-general register
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
` (9 preceding siblings ...)
2009-10-12 18:00 ` hp at gcc dot gnu dot org
@ 2009-10-12 18:14 ` hp at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-10-12 18:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from hp at gcc dot gnu dot org 2009-10-12 18:14 -------
Fixed; <http://gcc.gnu.org/ml/gcc-patches/2009-10/msg00774.html>. Sorry, the
4.2-branch is closed, but the patch for 4.3 should apply for local needs.
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26515
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-10-12 18:14 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-01 17:54 [Bug target/26515] New: peephole2 causes unrecognized insn, zero_extending non-general register hp at gcc dot gnu dot org
2006-03-01 17:54 ` [Bug target/26515] " hp at gcc dot gnu dot org
2009-10-12 4:10 ` hp at gcc dot gnu dot org
2009-10-12 4:15 ` hp at gcc dot gnu dot org
2009-10-12 4:18 ` hp at gcc dot gnu dot org
2009-10-12 17:20 ` hp at gcc dot gnu dot org
2009-10-12 17:23 ` hp at gcc dot gnu dot org
2009-10-12 17:38 ` hp at gcc dot gnu dot org
2009-10-12 17:40 ` hp at gcc dot gnu dot org
2009-10-12 17:59 ` hp at gcc dot gnu dot org
2009-10-12 18:00 ` hp at gcc dot gnu dot org
2009-10-12 18: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).