Fixed in r160775. The AVX form was named differently than the non-AVX form. I've fixed all the AVX cvt instructions to match the suffixes of their non-AVX counterparts.<br><br><div class="gmail_quote">On Thu, Jul 19, 2012 at 12:49 AM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nobu,<br>
<br>
> Thanks for response. Will this be fixed sometime soon?<br>
<br>
did you open a bug report?<br>
<br>
> Is there anything I can do to make it work in my copy of the latest llvm source?<br>
<br>
Are you sure that<br>
<br>
  vcvttsd2siq     %xmm0, %rax<br>
<br>
is correct and this isn't a gcc bug?<br>
<br>
Ciao, Duncan.<br>
<br>
><br>
> Best,<br>
> Nobu<br>
><br>
> 2012/7/17 jj <<a href="mailto:h59213@rtrtr.com">h59213@rtrtr.com</a>>:<br>
>> 片山 伸彦 <nobu.katayama <at> <a href="http://ipmu.jp" target="_blank">ipmu.jp</a>> writes:<br>
>><br>
>>><br>
>>> Dear llvm developers,<br>
>>><br>
>>> I am trying to run clang assembler to use avx instructions on Mac.<br>
>>><br>
>>> I use gcc 4.7.1 to generate  .s files from .c files. I can assemble foo.s by<br>
>>><br>
>>> clang -c -x assembler foo.s<br>
>>><br>
>>> to get foo.o but<br>
>>><br>
>>> clang -c -x assembler foo_long.s<br>
>>><br>
>>> fails with<br>
>>><br>
>>> $clang -x assembler foo_long.s<br>
>>> foo_long.s:27:2: error: invalid instruction mnemonic 'vcvttsd2siq'<br>
>>>          vcvttsd2siq     %xmm0, %rax<br>
>>>          ^~~~~~~~~~~<br>
>>><br>
>>> clang can assemble many other .s files with avx instructions.  I tried the<br>
>> default clang, clang+llvm 3.1<br>
>>> binary and svn checked out llvm/clang. All same.<br>
>>><br>
>>> Have you any idea?<br>
>>><br>
>>> Thank you so much!<br>
>>><br>
>>> Nobu<br>
>>><br>
>>> Nobu Katayama<br>
>>> nobu.katayama <at> <a href="http://ipmu.jp" target="_blank">ipmu.jp</a><br>
>><br>
>><br>
>> Same problem here. I have used clang (both OS X 10.6.8 native clang-2.9 and<br>
>> Macports clang-3.1) in a wrapper script along with GCC 4.7.1 to build ATLAS<br>
>> (tuned BLAS and LAPACK libraries). I ran into this error as well.<br>
>><br>
>> error: invalid instruction mnemonic 'vcvttsd2siq'<br>
>>          vcvttsd2siq     %xmm0, %rax<br>
>><br>
>> The wrapper script is described here:<br>
>> <a href="http://old.nabble.com/Re%3a-gcc,-as,-AVX,-binutils-and-MacOS-X-10.7-p32584737.html" target="_blank">http://old.nabble.com/Re%3a-gcc,-as,-AVX,-binutils-and-MacOS-X-10.7-p32584737.html</a><br>
>><br>
>> JJ<br>
>><br>
>><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>
> _______________________________________________<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>
><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>
</blockquote></div><br><br clear="all"><br>-- <br>~Craig<br>