[PATCH][AArch64] Add llvm-mc test for asm code generated from all LLVM IR tests
Rafael EspĂndola
rafael.espindola at gmail.com
Tue Dec 3 18:54:22 PST 2013
On 2 December 2013 22:32, Jiangning Liu <liujiangning1 at gmail.com> wrote:
> Hi Jim,
>
> Yes, llvm-mc is a tool rather than a compiler, but asm code is a kind of
> interface between compiler output and the assembler tool, correct?
>
> Without using assembler to test the asm output from compiler, how do we know
> the assembly code is correct? llvm-mc test is just to check the correctness
> of the assembly code generated from compiler.
>
> The example is, without this test we would have the bug which can be fixed
> by patch http://llvm.org/viewvc/llvm-project?view=revision&revision=195941.
> Otherwise, we would have llvm-mc time failure.
I can see the value of doing tests like this on the side, but the
tests in "make check" are intentionally simple regression tests that
check only one "thing" at a time.
Maybe this would be better served by a llc/clang-cc1 option to link a
MCAsmStreamer to an asm parser and then the final streamer? We could
then use that option on a bot building llvm-testsuite for example.
Cheers,
Rafael
More information about the llvm-commits
mailing list