<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 - x86 integrated assembler: & separator not functional in .altmacro mode in some cases"
href="https://bugs.llvm.org/show_bug.cgi?id=39000">39000</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>x86 integrated assembler: & separator not functional in .altmacro mode in some cases
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>emaste@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Blocks</th>
<td>33405
</td>
</tr></table>
<p>
<div>
<pre>Found while trying to build the FreeBSD base system entirely with the
integrated assembler.
"In the alternative macro syntax mode the ampersand character (‘&’) can be used
as a separator."
Consider the following snippet:
-------------------------
.altmacro
v_0_0 = 255
.macro w v1,v2
_c_ = v_\v1&_\v2
.word _c_
.endm
w 0 0
-------------------------
GNU as and gcc assemble this by evaluating _c_ = v_0_0, producing .word 255.
Clang IAS produces:
<instantiation>:1:10: error: expression could not be evaluated
_c_ = v_0&_0
^</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [meta] Using the integrated assembler to build the FreeBSD base system (kernel + world)"
href="https://bugs.llvm.org/show_bug.cgi?id=33405">Bug 33405</a>] [meta] Using the integrated assembler to build the FreeBSD base system (kernel + world)
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>