<html>
<head>
<base href="https://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 --- - possible lexical analysis or parsing problem with assembly code" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24319&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=JQfgMS5BXJHb-nfDC_nye-acTllfie1xH8YrUftAUfs&s=NRIHmtWNH2TKVRgIVEtr-vyVtOIExB_XcOel6lBiU_4&e=">24319</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>possible lexical analysis or parsing problem with assembly code
</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>Windows NT
</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: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Wolfgang_Pieb@playstation.sony.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>Given the following assembly source (assemble with clang –c):
.macro ROUND _of,_sc=1
vpaddd \_of-4(%rdi,%rax,\_sc), %xmm0, %xmm0
.endm
ROUND 16+ 2
ROUND 16 + 2
The 2 resulting instructions are:
0: c5 f9 fe 44 47 0c vpaddd 0xc(%rdi,%rax,2),%xmm0,%xmm0
6: c5 f9 fe 44 07 0e vpaddd 0xe(%rdi,%rax,1),%xmm0,%xmm0
The first macro invocation seems to be interpreted as ROUND(16, 2), indicating
a possible problem with lexical analysis or parsing.
When assembled with gcc, the 2 macro invocations result in the same
instruction, identical to the instruction at offset 6 in the above example.</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>