Re: [arm-gnu] Assembler error for Inline Assembly (cortex-A8 processor)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] Assembler error for Inline Assembly (cortex-A8 processor)



On Wed, Nov 19, 2008 at 4:15 PM, Akshay Joshi <akshay.joshi@xxxxxxxxxxx> wrote:
>
> For example:
>         /tmp/cc4wfCkh.s:169: Error: bad instruction `vld1.32 d0[],[r7]!'
> The syntax used for the above instruction in the ".c" file was as follows:
>
>      asm ("vld1.32 d0[], [r7]!");
> But, if I use the same instruction in a ".s" file, the error does not occur.
>          vld1.32 d0[], [r7]!
> Is there any option that I need to pass to the assembler / compiler? Or, is
> my inline assembly syntax incorrect?
>
> Currently, I am using the following options while compiling the code:
>
>          -mcpu=cortex-a8 -mfpu=neon -O3  -fpack-struct -funroll-loops
> -freorder-blocks-and-partition -lm -lc -lgcc

Try adding -mfloat-abi=softfp.


Laurent