<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Clang really shouldn't have ASM tests in it"
href="https://llvm.org/bugs/show_bug.cgi?id=26815">26815</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang really shouldn't have ASM tests in it
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>renato.golin@linaro.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>After enough discussions in the mailing list, and what I believe is now the
consensus, we should move all ASM tests to LLVM and transform all Clang tests
into IR tests.
The few cases that people were arguing about:
1. NEON intrinsics need to lower to NEON instructions one-to-one.
That's not true. I love that the back-end combines vmul+vadd into vmla, and it
should still do it. Testing for a sequence of IR instructions instead (or
builtin) is not worse.
2. Inline ASM needs to be as is in asm output.
No it doesn't. There are a number of cases where we (and GAS) do slight
transformations on the asm and output a different code (ex. add r0, -1 -> sub
r0, 1). Furthermore, inline asm has a nice IR representation, which we can also
test.
3. Specific code-gen issues.
If C code gets translated into IR and then assembly, we can obviously always
find an IR that will produce the same assembly. To do that, simple -emit-llvm.
--
Having said that, the move itself will be *very* tedious, but it is necessary.
Given that most people were complaining about the ARM and AArch64 tests, I
think it's only fair that we, ARM folks, share the load into moving things.
I'll copy as many people as I can into this bug so we can coordinate our
efforts, but I'd like to have a much cleaner Clang test by 3.9.0.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>