[llvm-bugs] [Bug 48572] movd %r8, %mm7 should be illegal
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 22 09:04:42 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48572
chris.sears at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |---
Summary|movd mm0, mm1 gets an |movd %r8, %mm7 should be
|invalid operand error |illegal
Status|RESOLVED |REOPENED
--- Comment #4 from chris.sears at gmail.com ---
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]
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201222/4a77e48a/attachment.html>
More information about the llvm-bugs
mailing list