<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:chris.sears@gmail.com" title="chris.sears@gmail.com">chris.sears@gmail.com</a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - movd %r8, %mm7 should be illegal"
href="https://bugs.llvm.org/show_bug.cgi?id=48572">bug 48572</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>INVALID
</td>
<td>---
</td>
</tr>
<tr>
<td style="text-align:right;">Summary</td>
<td>movd mm0, mm1 gets an invalid operand error
</td>
<td>movd %r8, %mm7 should be illegal
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - movd %r8, %mm7 should be illegal"
href="https://bugs.llvm.org/show_bug.cgi?id=48572#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - movd %r8, %mm7 should be illegal"
href="https://bugs.llvm.org/show_bug.cgi?id=48572">bug 48572</a>
from <span class="vcard"><a class="email" href="mailto:chris.sears@gmail.com" title="chris.sears@gmail.com">chris.sears@gmail.com</a>
</span></b>
<pre>I'm reopening this and changing the name summary slightly. I don't know if that
is correct or if I should just open another bug.
movd %r8, %mm7 should be illegal. (Correct code would use r8d.) However,
instead of syntax erroring, movd is instead silently converted to movq %r8,
%mm7
BAD:
echo "movd %r8, %mm7" | llvm-mc -show-encoding -assemble -triple
x86_64-unknown-unknown
.text
movq %r8, %mm7 # encoding:
[0x49,0x0f,0x6e,0xf8]
GOOD:
echo "movd %r8d, %mm7" | llvm-mc -show-encoding -assemble -triple
x86_64-unknown-unknown
.text
movd %r8d, %mm7 # encoding:
[0x41,0x0f,0x6e,0xf8]
GOOD:
echo "movq %r8, %mm7" | llvm-mc -show-encoding -assemble -triple
x86_64-unknown-unknown
.text
movq %r8, %mm7 # encoding:
[0x49,0x0f,0x6e,0xf8]</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>