[LLVMdev] Using llvm-mc assembler in the llvm test-suite

Jim Grosbach grosbach at apple.com
Mon Oct 15 14:40:25 PDT 2012


Yes, absolutely. There's two pieces of this that are handy. First, checking the normal integrated-assembler code path. That doesn't check the actual assembler, but rather the binary encoder and object file emitter. To test that, I did runs with a locally modified clang that enabled the integrated assembler by default for my target (ARM/Darwin at the time). The second piece is checking the assembler itself. For that, I ran the full test suite and kept the .s files around. Then I ran each .s file through plain 'as' and llvm-mc and did a binary comparison of the results. Anything that showed up, I analyzed to see if it was innocuous or an error.

-Jim

On Oct 15, 2012, at 2:22 PM, "Carter, Jack" <jcarter at mips.com> wrote:

> Has anyone converted llvm/projects/test-suite to use the llvm assembler instead of gcc?

> If so, what was needed to change and how?
> 
> My assumption is that this would be a good way to test the llvm assembler.
> 
> Jack
> _______________________________________________
> 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/20121015/d1e1ed27/attachment.html>


More information about the llvm-dev mailing list