liuyu11 at ict.ac.cn
2014-Aug-28 03:20 UTC
[LLVMdev] how to test the correct of the llvm backend
Hi,everyone I am a beginner for llvm , now I am writing a llvm backend,I want to know how to test the correctness of llvm backend . Thank you liuyu11 at ict.ac.cn -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140828/7fab3104/attachment.html>
On Thu, Aug 28, 2014 at 11:20:15AM +0800, liuyu11 at ict.ac.cn wrote:> Hi,everyone > I am a beginner for llvm , now I am writing a llvm backend,I want to know how to test the correctness of llvm backend . > Thank you >You could try compiling programs from the llvm test-suite and see if they work, or you could write lit tests. See test/CodeGen/X86 for examples. -Tom> > > liuyu11 at ict.ac.cn> _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Francois Pichet
2014-Sep-02 17:08 UTC
[LLVMdev] how to test the correct of the llvm backend
My personal experience writing a LLVM backend for Octasic is that a good commercial C/C++ compiler validation test suite will catch the most bug. Especially corner cases. If you can't afford one then you could try the GCC torture test. On Tue, Sep 2, 2014 at 10:20 AM, Tom Stellard <tom at stellard.net> wrote:> On Thu, Aug 28, 2014 at 11:20:15AM +0800, liuyu11 at ict.ac.cn wrote: > > Hi,everyone > > I am a beginner for llvm , now I am writing a llvm backend,I want to > know how to test the correctness of llvm backend . > > Thank you > > > > You could try compiling programs from the llvm test-suite and see if they > work, or you could write lit tests. See test/CodeGen/X86 for examples. > > -Tom > > > > > > > liuyu11 at ict.ac.cn > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140902/0853de45/attachment.html>