public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/29983] New: [Regression 4.2] Out of range offset for ldrd/strd intruction.
@ 2006-11-26 3:27 raj dot khem at gmail dot com
2006-11-26 3:28 ` [Bug target/29983] " raj dot khem at gmail dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: raj dot khem at gmail dot com @ 2006-11-26 3:27 UTC (permalink / raw)
To: gcc-bugs
GCC 4.2 is generating wrong offset while compiling the attached example. This
only happens when using -mcpu=iwmmxt option. It works ok on 3.4.6
/tmp/cc4oD6OO.s: Assembler messages:
/tmp/cc4oD6OO.s:15151: Error: bad immediate value for half-word offset (328)
/tmp/cc4oD6OO.s:15151: Error: bad immediate value for half-word offset (512)
/tmp/cc4oD6OO.s:15151: Error: bad immediate value for half-word offset (328)
/tmp/cc4oD6OO.s:15151: Error: bad immediate value for half-word offset (328)
To reproduce this compile the testcase with gcc -O2 -c -mcpu=iwmmxt
--
Summary: [Regression 4.2] Out of range offset for ldrd/strd
intruction.
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: raj dot khem at gmail dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: armv5tel-*-linux-gnueabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29983
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/29983] [Regression 4.2] Out of range offset for ldrd/strd intruction.
2006-11-26 3:27 [Bug target/29983] New: [Regression 4.2] Out of range offset for ldrd/strd intruction raj dot khem at gmail dot com
@ 2006-11-26 3:28 ` raj dot khem at gmail dot com
2006-11-26 3:50 ` [Bug target/29983] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: raj dot khem at gmail dot com @ 2006-11-26 3:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from raj dot khem at gmail dot com 2006-11-26 03:27 -------
Created an attachment (id=12693)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12693&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29983
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/29983] Out of range offset for ldrd/strd intruction.
2006-11-26 3:27 [Bug target/29983] New: [Regression 4.2] Out of range offset for ldrd/strd intruction raj dot khem at gmail dot com
2006-11-26 3:28 ` [Bug target/29983] " raj dot khem at gmail dot com
@ 2006-11-26 3:50 ` pinskia at gcc dot gnu dot org
2006-11-26 4:04 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-26 3:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-11-26 03:50 -------
eabi was not added until at least 4.0.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work|3.4.6 |
Summary|[Regression 4.2] Out of |Out of range offset for
|range offset for ldrd/strd |ldrd/strd intruction.
|intruction. |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29983
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/29983] Out of range offset for ldrd/strd intruction.
2006-11-26 3:27 [Bug target/29983] New: [Regression 4.2] Out of range offset for ldrd/strd intruction raj dot khem at gmail dot com
2006-11-26 3:28 ` [Bug target/29983] " raj dot khem at gmail dot com
2006-11-26 3:50 ` [Bug target/29983] " pinskia at gcc dot gnu dot org
@ 2006-11-26 4:04 ` pinskia at gcc dot gnu dot org
2006-11-26 4:37 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-26 4:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-11-26 04:04 -------
Hmm, with that target I get:
checking target system type... Invalid configuration `armv5tel-linux-gnueabi':
machine `armv5tel' not recognized
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29983
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/29983] Out of range offset for ldrd/strd intruction.
2006-11-26 3:27 [Bug target/29983] New: [Regression 4.2] Out of range offset for ldrd/strd intruction raj dot khem at gmail dot com
` (2 preceding siblings ...)
2006-11-26 4:04 ` pinskia at gcc dot gnu dot org
@ 2006-11-26 4:37 ` pinskia at gcc dot gnu dot org
2006-11-26 7:06 ` raj dot khem at gmail dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-26 4:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-11-26 04:36 -------
I see:
ldrd r2, [r1], #328
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29983
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/29983] Out of range offset for ldrd/strd intruction.
2006-11-26 3:27 [Bug target/29983] New: [Regression 4.2] Out of range offset for ldrd/strd intruction raj dot khem at gmail dot com
` (3 preceding siblings ...)
2006-11-26 4:37 ` pinskia at gcc dot gnu dot org
@ 2006-11-26 7:06 ` raj dot khem at gmail dot com
2007-01-09 11:10 ` rearnsha at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: raj dot khem at gmail dot com @ 2006-11-26 7:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from raj dot khem at gmail dot com 2006-11-26 07:05 -------
It is also reproducible using trunk and arm-none-eabi
--
raj dot khem at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet|armv5tel-*-linux-gnueabi |arm-none-eabi
Known to fail|4.2.0 |4.2.0 4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29983
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/29983] Out of range offset for ldrd/strd intruction.
2006-11-26 3:27 [Bug target/29983] New: [Regression 4.2] Out of range offset for ldrd/strd intruction raj dot khem at gmail dot com
` (4 preceding siblings ...)
2006-11-26 7:06 ` raj dot khem at gmail dot com
@ 2007-01-09 11:10 ` rearnsha at gcc dot gnu dot org
2007-01-09 17:01 ` rearnsha at gcc dot gnu dot org
2007-03-02 22:51 ` pbrook at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2007-01-09 11:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rearnsha at gcc dot gnu dot org 2007-01-09 11:10 -------
(In reply to comment #4)
> I see:
> ldrd r2, [r1], #328
>
Which isn't a valid instruction (the offset is too large).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29983
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/29983] Out of range offset for ldrd/strd intruction.
2006-11-26 3:27 [Bug target/29983] New: [Regression 4.2] Out of range offset for ldrd/strd intruction raj dot khem at gmail dot com
` (5 preceding siblings ...)
2007-01-09 11:10 ` rearnsha at gcc dot gnu dot org
@ 2007-01-09 17:01 ` rearnsha at gcc dot gnu dot org
2007-03-02 22:51 ` pbrook at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2007-01-09 17:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rearnsha at gcc dot gnu dot org 2007-01-09 17:01 -------
Confirmed. This is iwmmxt-specific and occurs because the co-processor
load-double-word instructions have a larger offset than LDRD.
--
rearnsha at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-01-09 17:01:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29983
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/29983] Out of range offset for ldrd/strd intruction.
2006-11-26 3:27 [Bug target/29983] New: [Regression 4.2] Out of range offset for ldrd/strd intruction raj dot khem at gmail dot com
` (6 preceding siblings ...)
2007-01-09 17:01 ` rearnsha at gcc dot gnu dot org
@ 2007-03-02 22:51 ` pbrook at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2007-03-02 22:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pbrook at gcc dot gnu dot org 2007-03-02 22:51 -------
Fixed.
trunk r122437 http://gcc.gnu.org/ml/gcc-cvs/2007-03/msg00020.html
4.2 r122489 http://gcc.gnu.org/ml/gcc-cvs/2007-03/msg00072.html
--
pbrook at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29983
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-03-02 22:51 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-26 3:27 [Bug target/29983] New: [Regression 4.2] Out of range offset for ldrd/strd intruction raj dot khem at gmail dot com
2006-11-26 3:28 ` [Bug target/29983] " raj dot khem at gmail dot com
2006-11-26 3:50 ` [Bug target/29983] " pinskia at gcc dot gnu dot org
2006-11-26 4:04 ` pinskia at gcc dot gnu dot org
2006-11-26 4:37 ` pinskia at gcc dot gnu dot org
2006-11-26 7:06 ` raj dot khem at gmail dot com
2007-01-09 11:10 ` rearnsha at gcc dot gnu dot org
2007-01-09 17:01 ` rearnsha at gcc dot gnu dot org
2007-03-02 22:51 ` pbrook 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).