Re: RE: [arm-gnu] Assembler error for Inline Assembly (cortex-A8 processor)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE: [arm-gnu] Assembler error for Inline Assembly (cortex-A8 processor)
- To: "Shilimkar, Santosh" <santosh.shilimkar@xxxxxx>
- Subject: Re: RE: [arm-gnu] Assembler error for Inline Assembly (cortex-A8 processor)
- From: Joshi Akshay <akshay.joshi@xxxxxxxxxxx>
- Date: Fri, 21 Nov 2008 05:35:57 +0000 (GMT)
<HTML><HEAD>
<META http-equiv=Content-Type content='text/html; charset=windows-1252'>
<title>Samsung Enterprise Portal mySingle</title>
<style> P, td, li {font-family:Arial, arial; font-size:9pt; margin-top:5px;margin-bottom:5px;} body{font-family:Arial, arial; font-size:9pt;}</style>
</HEAD><BODY><br>>>>> I have tried instructions like 'vadd,vmov,vzip,vqmovn' using NEON registers without
<br>>>>> any problems in inline assembly.
<br>
<p> </p>
<p>Can you attach a code snippet containing these instructions? maybe there's
a problem with the syntax i've used...</p>
<p> </p>
<p>Thanks,</p>
<p>--Akshay</p>
<p> </p><p> </p><br><br>------- <b>Original Message</b> -------<br><b>Sender</b> : Shilimkar, Santosh<santosh.shilimkar@xxxxxx><br><b>Date</b> : Nov 21, 2008 10:22 (GMT+05:00)<br><b>Title</b> : RE: [arm-gnu] Assembler error for Inline Assembly (cortex-A8 processor)<br><br>
<br>
<br>> -----Original Message-----
<br>> From: Akshay Joshi [mailto:akshay.joshi@xxxxxxxxxxx]
<br>> Sent: Friday, November 21, 2008 9:39 AM
<br>> To: Laurent Desnogues
<br>> Cc: arm-gnu@xxxxxxxxxxxxxxxx
<br>> Subject: RE: [arm-gnu] Assembler error for Inline Assembly
<br>> (cortex-A8 processor)
<br>>
<br>> >>>> Try adding -mfloat-abi=softfp.
<br>>
<br>> >>>>> Laurent
<br>>
<br>> tried this option but with no luck.
<br>>
<br>>
<br>> >>>>Can you try adding this option as well. '-march=armv7a'
<br>>
<br>> >>>>-Santosh
<br>>
<br>> added -march=armv7-a too. no luck here either...
<br>>
<br>> Has anyone tried using NEON regs in inline assembly w/o
<br>> facing any problems?
<br>> I'm using the latest toolchain (2008q3)...
<br>
<br>I have tried instructions like 'vadd,vmov,vzip,vqmovn' using NEON registers without
<br>any problems in inline assembly.
<br>
<br>
<br>
<br>>
<br>>
<br>> -----Original Message-----
<br>> From: Laurent Desnogues [mailto:laurent.desnogues@xxxxxxxxx]
<br>> Sent: Thursday, November 20, 2008 2:20 PM
<br>> To: akshay.joshi@xxxxxxxxxxx
<br>> Cc: arm-gnu@xxxxxxxxxxxxxxxx
<br>> Subject: Re: [arm-gnu] Assembler error for Inline Assembly (cortex-A8
<br>> processor)
<br>>
<br>>
<br>> On Wed, Nov 19, 2008 at 4:15 PM, Akshay Joshi
<br>> <akshay.joshi@xxxxxxxxxxx>
<br>> wrote:
<br>> >
<br>> > For example:
<br>> > /tmp/cc4wfCkh.s:169: Error: bad instruction
<br>> `vld1.32 d0[],[r7]!'
<br>> > The syntax used for the above instruction in the ".c" file
<br>> was as follows:
<br>> >
<br>> > asm ("vld1.32 d0[], [r7]!");
<br>> > But, if I use the same instruction in a ".s" file, the
<br>> error does not
<br>> occur.
<br>> > vld1.32 d0[], [r7]!
<br>> > Is there any option that I need to pass to the assembler /
<br>> compiler? Or,
<br>> is
<br>> > my inline assembly syntax incorrect?
<br>> >
<br>> > Currently, I am using the following options while compiling
<br>> the code:
<br>> >
<br>> > -mcpu=cortex-a8 -mfpu=neon -O3 -fpack-struct
<br>> -funroll-loops
<br>> > -freorder-blocks-and-partition -lm -lc -lgcc
<br>>
<br>> Try adding -mfloat-abi=softfp.
<br>>
<br>>
<br>> Laurent
<br>>
<br>>
<br>> <p> </p><p> </p><!--SP:akshay.joshi--><!--akshay.joshi:EP--><p> </p><p> </p></BODY></HTML>