[LLVMdev] Contributing new backend to LLVM

Sergei Larin
Tue, 01 Nov 2011 19:16:53 -0000

Eli,

  We can probably think of something like that, but diff on assembly output
is prone to false negatives and depends on the machine independent part of
the compiler...
Maybe someone can suggest more elegant way to verify the basic
functionality?

Thanks.

Sergei Larin

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum.

-----Original Message-----
From: Eli Friedman [mailto:eli.friedman at gmail.com]
Sent: Tuesday, November 01, 2011 2:12 PM
To: Sergei Larin
Cc: Tony Linthicum; llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Contributing new backend to LLVM

On Tue, Nov 1, 2011 at 12:01 PM, Sergei Larin <slarin at codeaurora.org>
wrote:
> Eli,
>
>  When you say "include tests" what exactly do you mean - ability
to run
> newly produced binary on newly supported target?
> Can you please elaborate?

Well, it would be nice to know that it can produce working binaries,
but no, you don't need to provide tests like that.  Just make sure
there are tests in test/CodeGen/ to check that the backend generates
the expected assembly code for simple cases.

-Eli