[LLVMdev] how to test the correct of the llvm backend
Francois Pichet
pichet2000 at gmail.com
Tue Sep 2 10:08:16 PDT 2014
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>
More information about the llvm-dev
mailing list