public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/43518]  New: ARM register constraint for ldrd and strd instructions
@ 2010-03-25 15:06 paulius dot zaleckas at gmail dot com
  2010-04-05 10:03 ` [Bug inline-asm/43518] " rearnsha at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: paulius dot zaleckas at gmail dot com @ 2010-03-25 15:06 UTC (permalink / raw)
  To: gcc-bugs

ldrd and strd registers require pair of registers restricted to being an
even-numbered register and the odd-numbered register that immediately follows
it (for example, R10 and R11).

We need additional constraint when declaring unsigned long long to assign
appropriate register-pair so it will work with ldrd/strd in inline-asm.

Example:
register usigned long long x asm ("???");
asm volatile ("ldrd\t%0, [%1]" : "=r" (x) : "r" (io_base));


-- 
           Summary: ARM register constraint for ldrd and strd instructions
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: paulius dot zaleckas at gmail dot com


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-23 12:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-25 15:06 [Bug inline-asm/43518] New: ARM register constraint for ldrd and strd instructions paulius dot zaleckas at gmail dot com
2010-04-05 10:03 ` [Bug inline-asm/43518] " rearnsha at gcc dot gnu dot org
2010-04-20 13:39 ` paulius dot zaleckas at gmail dot com
2010-04-23 12:44 ` rearnsha 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).