[LLVMdev] Using llvm-mc assembler in the llvm test-suite
jcarter at mips.com
Mon Oct 15 15:14:42 PDT 2012
This invocation creates the .s file using llc:
build/Debug+Asserts/bin/llc -march=mipsel -mcpu=mips32r2 -mattr=o32 -disable-mips-delay-filler -filetype=asm -relocation-model=pic -asm-verbose=false -O3 Output/mandel-2.llvm.mipsel.ll -o Output/mandel-2.llc.mips32r2.s -info-output-file=/home/jcarter/workarea/assembler_jack/build/projects/test-suite/SingleSource/Benchmarks/Misc/Output/mandel-2.llc.mips32r2.s.info -stats -time-passes
The next line assembles it with gcc. The gcc driver will invoke gas on it. This is the part that I want to use llvm-mc.
mips-linux-gnu-g++ Output/mandel-2.llc.mips32r2.s -o Output/mandel-2.llc.mips32r2 -mips32r2 -EL -lm -lstdc++ -lpthread -fPIC -mabi=32
From: Eric Christopher [echristo at gmail.com]
Sent: Monday, October 15, 2012 2:36 PM
To: Carter, Jack
Subject: Re: [LLVMdev] Using llvm-mc assembler in the llvm test-suite
On Mon, 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.
Not quite sure what you mean, as far as I know there isn't any
assembler in there
so if it's using clang it should be dependent upon the use of -integrated-as for
I miss something?
More information about the llvm-dev