https://bugs.llvm.org/show_bug.cgi?id=48572
chris.se...@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.se...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs