<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 - ARM64: Loading 64 bit/128 bit literals into SIMD&FP registers not working correctly"
href="https://bugs.llvm.org/show_bug.cgi?id=47179">47179</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ARM64: Loading 64 bit/128 bit literals into SIMD&FP registers not working correctly
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>gccas
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>fuzxxl@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I'm trying to load a bit mask into an ARM64 SIMD&FP register like this:
ldr d10, =0x8040201008040201
LLVM-as complains upon seeing this code:
count8asm.s:8:11: error: Immediate too large for register
ldr d10, =0x8040201008040201
However, this error message is clearly nonsensical. GNU as assembles this just
fine.
The reason for this seems to be a borked check in AArch64AsmParser.cpp which
wants to check if the immediate is a 32 bit number when the argument is a W
register, but it instead does this check for all registers instead of X
registers, which is clearly incorrect. More sophisticated handling, including
code to deal with 128 bit literals is needed.</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>