Hi, I'm trying to use the SSE4.2's instruction _mm_crc32_u64 and also added -msse4.2 flag in the makefile, but yet I get this error when I try to compile my code with clang/llvm. LLVM ERROR: Cannot select: intrinsic %llvm.x86.sse42.crc32.64.64 I also tried to pass -march=native, but still no luck. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130503/943f2a47/attachment.html>
Hey, On Fri, May 3, 2013 at 10:50 AM, Blind Faith <person.of.book at gmail.com>wrote:> Hi, > > I'm trying to use the SSE4.2's instruction _mm_crc32_u64 and also > added -msse4.2 flag in the makefile, but yet I get this error when I try to > compile my code with clang/llvm. > > LLVM ERROR: Cannot select: intrinsic %llvm.x86.sse42.crc32.64.64 > > I also tried to pass -march=native, but still no luck. >The best attack would be to debug ISel. If you would send the DAG you are trying to match, that may help too. You may be passing operands of the wrong type to the intrinsic. Or, some other issue may be preventing the selection. -Cameron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130503/b44d9653/attachment.html>
On Fri, May 3, 2013 at 11:07 AM, Blind Faith <person.of.book at gmail.com>wrote: ...> "You may be passing operands of the wrong type to the intrinsic" -> Well > I don't do anything to the LLVM bit code, I just try to compile my C code, > all code being generated by clang. >Sorry for misunderstanding... I have a simple test here that generates @llvm.x86.sse42.crc32.64.64(i64 %28, i64 %29). It appears to work as expected using Clang from trunk. You should probably file a Bug with your specific test case and environment details. If you're feeling ambitious ;), you could try -emit-llvm and see what's coming across the interface. -Cameron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130503/547bc009/attachment.html>