<html>
<head>
<base href="http://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 - 'movz reg, #:abs_g0_nc:symbol' rejected by assembler"
href="http://bugs.llvm.org/show_bug.cgi?id=32527">32527</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>'movz reg, #:abs_g0_nc:symbol' rejected by assembler
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Backend: AArch64
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>roland@hack.frob.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, phosek@chromium.org
</td>
</tr></table>
<p>
<div>
<pre>For a -fno-pic -mcmodel=large materialization of &x, clang generates:
movz x0, #:abs_g0_nc:x
movk x0, #:abs_g1_nc:x
movk x0, #:abs_g2_nc:x
movk x0, #:abs_g3:x
However, the assembler refuses the first of those instructions:
x.s:8:11: error: immediate must be an integer in range [0, 65535].
movz x0, #:abs_g0_nc:x
The assembly syntax is valid, and -integrated-as emits the right code.
But text assembly input does not allow the same syntax.
GAS does allow it.</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>