<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt">AFAIK A9 doesn't have VFPv4 or AdvSIMDv2, so it doesn't have VFMA. I don't know what LLVM does, but it shouldn't emit VFMA when you target A9. VMLA isn't a fused multiply-add, it's a multiply followed by an add and has different latency as well as precision.<div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 4:57 AM, Sebastien DELDON-GNB <span dir="ltr"><<a href="mailto:sebastien.deldon@st.com" target="_blank">sebastien.deldon@st.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Anitha,<br>
<br>
Thanks for your answer but -mcpu=cortex-a9 -mattr=+vfp4 doesn' t enable fused mac generation for me.<br>
I would like just to understand why -mtriple=armv7-eabi enables it while -mcpu=cortex-a9 seems to disable it ?<br>
<br>
Seb<br>
<div class="im"><br>
> -----Original Message-----<br>
> From: Anitha Boyapati [mailto:<a href="mailto:anitha.boyapati@gmail.com">anitha.boyapati@gmail.com</a>]<br>
> Sent: Thursday, November 08, 2012 10:22 AM<br>
> To: Sebastien DELDON-GNB<br>
> Cc: <a href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a><br>
> Subject: Re: [LLVMdev] fmac generation for cortex-a9<br>
><br>
> On 8 November 2012 13:56, Sebastien DELDON-GNB<br>
> <<a href="mailto:sebastien.deldon@st.com">sebastien.deldon@st.com</a>> wrote:<br>
> > Hi all,<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > I've a .ll code that use double precision fmul/fadd or fmul/fsub. When<br>
</div>> > I compile it using llc -mcpu=cortex-a9 I couldn't get vmla/vmls<br>
> > generated even using -fp-contract=fast, but when I use option<br>
> > -mtriple=armv7-eabi instead of -mcpu=cortex-a9 fused mac are<br>
<div class="HOEnZb"><div class="h5">> generated. Can someone explain me why  ?<br>
> ><br>
><br>
> Perhaps you need to use some attributes. -mattr=+vfp4 Check fusedMAC.ll<br>
> from ARM codegen tests.<br>
><br>
><br>
> --<br>
>  Anitha<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div>