[Bug inline-asm/43518] New: ARM register constraint for ldrd and strd instructions

2010-03-25 Thread paulius dot zaleckas at gmail dot com
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



[Bug inline-asm/43518] ARM register constraint for ldrd and strd instructions

2010-04-20 Thread paulius dot zaleckas at gmail dot com


--- Comment #2 from paulius dot zaleckas at gmail dot com  2010-04-20 13:39 
---
(In reply to comment #1)
> Please supply a full testcase, and explain precisely the problem you are
> seeing.  I cannot determine from your initial post what problem you are 
> seeing.

Currently I am extremely busy... unable to provide stand-alone test case.
But please look at this thread for the actual problem:
http://lkml.org/lkml/2010/3/20/37


-- 


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