<div dir="ltr">On Tue, Jul 2, 2013 at 11:35 AM, Robert Lytton <span dir="ltr"><<a href="mailto:robert@xmos.com" target="_blank">robert@xmos.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi,<br>
<br>
The XCore target in LLVM is currently only supported by the llvm-gcc front end.<br>
<br>
I have patched lib/Basic/Targets.cpp & lib/CodeGen/TargetInfo.cpp to add support to clang.<br>
I have not yet written any tests within the clang code base (running an external llvm-gcc suite instead).<br>
What tests should be provided? Should I use the test/CodeGen/<target>... example as a guide?<br>
</div></div><div style="direction:ltr;font-size:10pt;font-family:Tahoma"><br></div></blockquote><br>The important things you want to test (and compare to gcc) are that the preprocessor defines are correct and that the call/va_arg code generates the expected IR. So you probably want to update test/Preprocessor/init.c and test/Preprocessor/stdint.c, and add a test for call/va_arg to test/CodeGen/ .<div>
<br></div><div>-Eli</div></div><br></div></div>