public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40523]  New: GCC generates invalid instructions when building for Thumb-2 on armel
@ 2009-06-22 23:21 doko at ubuntu dot com
  2009-06-22 23:24 ` [Bug target/40523] " doko at ubuntu dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: doko at ubuntu dot com @ 2009-06-22 23:21 UTC (permalink / raw)
  To: gcc-bugs

[ forwarded from https://launchpad.net/+bugs/347864 ]

seen on the 4.3 branch, fixed in 4.4 and trunk.

When building for the Thumb-2 instruction set, GCC appears to generate Thumb2
loads and stores with invalid address offsets and base register writeback. The
Thumb-2 instruction set does not support the full offset range for these
instructions, causing the assembler to fail.

The failure is observed as follows:
g++ -march=armv7 -mthumb -O2 -c asbug.c++

/tmp/ccrSTYGR.s:525: Error: offset out of range

Line 545 of the generated assembler is:
        ldr r2, [sl, #264]!
However, the allowed offset range for this instruction is restricted to be
<256.


-- 
           Summary: GCC generates invalid instructions when building for
                    Thumb-2 on armel
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com
GCC target triplet: arm-linux-gnueabi


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40523


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-40523-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2013-08-06  8:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-22 23:21 [Bug target/40523] New: GCC generates invalid instructions when building for Thumb-2 on armel doko at ubuntu dot com
2009-06-22 23:24 ` [Bug target/40523] " doko at ubuntu dot com
2009-06-22 23:30 ` rearnsha at gcc dot gnu dot org
2009-07-09 19:03 ` mikpe at it dot uu dot se
2010-03-20 19:29 ` ramana at gcc dot gnu dot org
2010-05-22 19:01 ` rguenth at gcc dot gnu dot org
     [not found] <bug-40523-4@http.gcc.gnu.org/bugzilla/>
2011-04-28 16:37 ` rguenth at gcc dot gnu.org
2013-08-05 20:40 ` ramana at gcc dot gnu.org
2013-08-06  8:33 ` rearnsha at gcc dot gnu.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).