<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Instruction for non-existing register is generated when cross-compiling for arm1176jzf-s (raspberry pi zero)"
href="https://bugs.llvm.org/show_bug.cgi?id=45123">45123</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Instruction for non-existing register is generated when cross-compiling for arm1176jzf-s (raspberry pi zero)
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>9.0
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bojo@jobo.tv
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Example test can be seen here: <a href="https://godbolt.org/z/nrkawW">https://godbolt.org/z/nrkawW</a>
int main()
{
long long a = 1234567890;
auto d = static_cast<double>(a);
return(d);
}
/*
-target arm-linux-gnueabihf
-march=armv6
-mfpu=vfpv2
-mcpu=arm1176jzf-s
-mtune=arm1176jzf-s
-mfloat-abi=hard
*/
when cross-compiled with clang-9 instruction for non-existing register d16 is
generated:
...
vmov d16, r0, r1
vstr d16, [sp]
vldr d16, [sp]
...
when cross-compiled with clang-8 or less register d0 (existing is used)
...
vmov d0, r0, r1
vstr d0, [sp]
vldr d0, [sp]
...</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>