<html>
<head>
<base href="http://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 --- - Integrated assembler rejects "pextrw $7,%xmm3,%r10""
href="http://llvm.org/bugs/show_bug.cgi?id=17779">17779</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Integrated assembler rejects "pextrw $7,%xmm3,%r10"
</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>OpenBSD
</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>matthew@dempsky.org
</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>In OpenBSD's aes_intel.S assembly
(<a href="http://www.openbsd.org/cgi-bin/cvsweb/src/sys/arch/amd64/amd64/aes_intel.S?rev=1.9;content-type=text%2Fplain">http://www.openbsd.org/cgi-bin/cvsweb/src/sys/arch/amd64/amd64/aes_intel.S?rev=1.9;content-type=text%2Fplain</a>),
there are several instructions like:
pextrw $7,%xmm3,%r10
These are acceptable by binutils's assembler, but not by clang's integrated
assembler:
$ echo "pextrw $7,%xmm3,%r10" | clang -c -x assembler - -o /dev/null
<stdin>:1:1: error: invalid operand for instruction
pextrw $7,%xmm3,%r10
^
Changing %r10 to %r10d allows the code to be assembled by clang, but it causes
binutils to emit slightly different output, and I'm not familiar enough with
x86-64 machine code to know if it matters or not.</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>