<div dir="ltr">Makes sense. I have updated CLANG_TEST_DEPS in r247554.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 14, 2015 at 9:38 PM Simon Atanasyan <<a href="mailto:simon@atanasyan.com">simon@atanasyan.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Sep 14, 2015 at 3:24 PM, NAKAMURA Takumi <<a href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.com</a>> wrote:<br>
> Why is it tested in clang?<br>
<br>
Because the problem fixed by r247546 can be reproduced only in case of<br>
using inline assembler. And the problem is in the incorrect ELF header<br>
flag. So this test cannot be in llvm/test because there is no inline<br>
assembler there, and I cannot escape to use llvm-readobj because<br>
"-emit-llvm" produces correct code.<br>
<br>
> FYI, update CLANG_TEST_DEPS in clang/test/CMakeLists.txt, if it would remain<br>
> in clang/test.<br>
<br>
Thanks. Will update it soon.<br>
<br>
> On Mon, Sep 14, 2015 at 8:24 PM Simon Atanasyan via cfe-commits<br>
> <<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>> wrote:<br>
>><br>
>> Author: atanasyan<br>
>> Date: Mon Sep 14 06:23:02 2015<br>
>> New Revision: 247548<br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=247548&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=247548&view=rev</a><br>
>> Log:<br>
>> [mips] Add test case to check ABI flag emissions in case of inline<br>
>> assembler<br>
>><br>
>> Follow up to r247546. The test case reproduces the problem fixed by this<br>
>> commit.<br>
>><br>
>> Added:<br>
>>     cfe/trunk/test/CodeGen/mips-inline-asm-abi.c<br>
>><br>
>> Added: cfe/trunk/test/CodeGen/mips-inline-asm-abi.c<br>
>> URL:<br>
>> <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/mips-inline-asm-abi.c?rev=247548&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/mips-inline-asm-abi.c?rev=247548&view=auto</a><br>
>><br>
>> ==============================================================================<br>
>> --- cfe/trunk/test/CodeGen/mips-inline-asm-abi.c (added)<br>
>> +++ cfe/trunk/test/CodeGen/mips-inline-asm-abi.c Mon Sep 14 06:23:02 2015<br>
>> @@ -0,0 +1,12 @@<br>
>> +// REQUIRES: mips-registered-target<br>
>> +// RUN: %clang_cc1 -triple mips-linux-gnu -emit-obj -o - %s | \<br>
>> +// RUN:   llvm-readobj -h - | FileCheck %s<br>
>> +<br>
>> +// CHECK: EF_MIPS_ABI_O32<br>
>> +<br>
>> +__asm__(<br>
>> +"bar:\n"<br>
>> +"  nop\n"<br>
>> +);<br>
>> +<br>
>> +void foo() {}<br>
<br>
--<br>
Simon Atanasyan<br>
</blockquote></div>