Re: [arm-gnu] How to write VFP inline asm with double precision register constraints?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] How to write VFP inline asm with double precision register constraints?
- To: Cheng-Wei Chen <cwchen00@xxxxxxxxx>
- Subject: Re: [arm-gnu] How to write VFP inline asm with double precision register constraints?
- From: Daniel Jacobowitz <dan@xxxxxxxxxxxxxxxx>
- Date: Tue, 24 Aug 2010 10:02:34 -0400
On Tue, Aug 24, 2010 at 03:18:10PM +0800, Cheng-Wei Chen wrote:
> Hi,
>
> I try to write VFP inline asm with double precision register
> constraints, but GCC reports the following error message: Error:
> VFP/Neon double precision register expected -- `faddd s14,s10,s12'. It
> seems GCC cannot generate correct VFP double precision registers to
> asm? Below is my sample program:
You have the right constraint, but you need to tell GCC to print it as
a double. Oddly, this doesn't seem to be in the manual. Try %P[ret]
instead.
--
Daniel Jacobowitz
CodeSourcery