Re: 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: RE: [arm-gnu] Assembler error for Inline Assembly (cortex-A8 processor)
- To: "Shilimkar, Santosh" <santosh.shilimkar@xxxxxx>
- Subject: Re: RE: RE: [arm-gnu] Assembler error for Inline Assembly (cortex-A8 processor)
- From: Joshi Akshay <akshay.joshi@xxxxxxxxxxx>
- Date: Mon, 24 Nov 2008 05:06:37 +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>This syntax certainly works... so it was a problem with my
syntax of inline assembly.
<p>Thanks a lot!</p>
<p> </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 24, 2008 09:56 (GMT+05:00)<br><b>Title</b> : RE: RE: [arm-gnu] Assembler error for Inline Assembly (cortex-A8
processor)<br><br>Did it help ?
<br>
<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> Can you attach a code snippet containing these instructions? maybe there's a problem with the syntax i've used...
<br>
<br>
<br>
<br> Infact I tried your instruction and it also compiled for me. I used the compile option '-march=armv7a -mfpu=neon -mfloat-abi=softfp'
<br>
<br> I don't see any issue with your syntax. Just for ur reference, here is the example.
<br>
<br> void func( )
<br>
<br> {
<br>
<br> __asm__ __volatile__(
<br>
<br> " vadd.s32 d0, d0\n"
<br>
<br> " vld1.32 d0[], [r7]!\n"
<br>
<br> " vadd.s32 d0, d0\n"
<br> " vzip.s32 d8, d8\n");
<br>
<br> }
<br>
<br>
<br>
<br>
<br> - Santosh
<br>
<br>
<br>
<br> ------- Original Message -------
<br> Sender : Shilimkar, Santosh<santosh.shilimkar@xxxxxx>
<br> Date : Nov 21, 2008 10:22 (GMT+05:00)
<br> Title : 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> >
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br><p> </p><p> </p><!--SP:akshay.joshi--><!--akshay.joshi:EP--><p> </p><p> </p></BODY></HTML>