[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc
Subject: Re: commutative asm operands
From: Richard Henderson <rth () redhat ! com>
Date: 2002-07-31 22:48:04
[Download RAW message or body]
On Wed, Jul 31, 2002 at 11:44:25PM +0930, Alan Modra wrote:
> I was forwarded a testcase today containing some horrible asm
>
> asm ("addc %0, %2, %3\n\t"
> "adde %1, %4, %5"
> : "=r" (lo), "=r" (hi)
> : "%r" (__lo), "0" (lo), "%r" (__hi), "1" (hi))
>
> Note the use of "%" with "0"/"1" in the next operand. Is this legal?
Dunno. The x86 port does this the other way around -- puts
the % with the matching constraint. I.e.
: "%0" (lo), "r"(__lo)
r~
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic