<html>
<head>
<base href="http://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 --- - Incorrect CPU selected in cc1 for 3 ARM architectures"
href="http://llvm.org/bugs/show_bug.cgi?id=18239">18239</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect CPU selected in cc1 for 3 ARM architectures
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bogden@arm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Giving the following architectures to the -target option in clang results in
surprising CPU selection in cc1:
1) armv5tej: -target-cpu arm1022e (expected arm926ej-s)
2) armv6j: -target-cpu arm1136jf-s (expected arm1136j-s)
3) armv6z: -target-cpu arm1136jf-s (expected arm1176jzf-s)
I'm not convinced that (2) is wrong, but it is inconsistent with the mapping
given in function getARMCPUForMArch in lib/Driver/Tools.cpp.
(1) and (3) seem incorrect as well as inconsistent with the mapping. 1022e does
not implement the 'j' part of v5tej, and 1136jf-s does not implement the 'z'
part of armv6z.
This is captured in FIXMEs in test/Driver/arm-cortex-cpus.c.</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>