[LLVMdev] Problem about "llc -march=msil"
Shao-Yin Cheng
sycheng at ustc.edu.cn
Tue May 6 03:41:53 PDT 2008
Hi,
I am trying to use llvm to translate ftp.c(a file of wget-1.11.2.tar.bz2 )
to msil. But it shows errors like:
[dayin at localhost src]$ llvm-gcc -emit-llvm ftp.c -c -o ftp.bc
[dayin at localhost src]$ llc ftp.bc -march=msil -o ftp.s
Intrinsic ID = 32
llc: /home/dayin/llvm/llvm-2.2/lib/Target/MSIL/MSILWriter.cpp:802: void
<unnamed>::MSILWriter::printIntrinsicCall(const llvm::IntrinsicInst*):
Assertion `0 && "Invalid intrinsic function"' failed.
llc((anonymous namespace)::PrintStackTrace()+0x15)[0x8759049]
/lib/tls/libc.so.6(abort+0xe9)[0x493279]
/lib/tls/libc.so.6(__assert_fail+0x101)[0x48ad91]
llc((anonymous
namespace)::MSILWriter::printIntrinsicCall(llvm::IntrinsicInst
const*)+0xbd)[0x8194db9]
Aborted
What does these mean?
And the follow commands work well:
[dayin at localhost src]$ llc ftp.bc -o ftp.s
[dayin at localhost src]$ llc ftp.bc -march=c -o ftp.c.s
[dayin at localhost src]$ llvm-dis ftp.bc -o ftp.ll
Enc. ftp.bc and ftp.ll
Thank you!
----------------------------------------------
Shao-Yin Cheng
sycheng at ustc.edu.cn
2008-4-26
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080506/7d369c86/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ftp.ll
Type: application/octet-stream
Size: 191522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080506/7d369c86/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ftp.bc
Type: application/octet-stream
Size: 39320 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080506/7d369c86/attachment-0001.obj>
More information about the llvm-dev
mailing list