Added the "movd" instruction

This commit is contained in:
Pierre Pronchery 2011-04-19 23:05:58 +00:00
parent 2e8a3235b8
commit fb58a25507
2 changed files with 26 additions and 0 deletions

View File

@ -28,6 +28,20 @@
/* instructions */
/* EMMS 0x0f77 2 */
{ "emms", 0x0f77, OP2F, AOT_NONE, AOT_NONE, AOT_NONE },
/* MOVD 0x0f6e /r OP2F mm mm/m64 */
#if 1 /* FIXME doesn't work properly */
{ "movd", 0x0f6e, OP2F, OP_R64_R, OP_RM64_D0_R,AOT_NONE },
{ "movd", 0x0f6e, OP2F, OP_R64_R, OP_RM64_D8_R,AOT_NONE },
{ "movd", 0x0f6e, OP2F, OP_R64_R, OP_RM64_DW_R,AOT_NONE },
{ "movd", 0x0f6e, OP2F, OP_R64_R, OP_RM64_R64_R,AOT_NONE},
#endif
/* MOVD 0x0f7e /r OP2F mm/m64 mm */
{ "movd", 0x0f7e, OP2F, OP_RM64_D0_R,OP_R64_R, AOT_NONE },
{ "movd", 0x0f7e, OP2F, OP_RM64_D8_R,OP_R64_R, AOT_NONE },
{ "movd", 0x0f7e, OP2F, OP_RM64_DW_R,OP_R64_R, AOT_NONE },
#if 1 /* FIXME doesn't work properly */
{ "movq", 0x0f7f, OP2F, OP_RM64_R64_R,OP_R64_R, AOT_NONE },
#endif
/* MOVQ 0x0f6f /r OP2F mm mm/m64 */
#if 1 /* FIXME doesn't work properly */
{ "movq", 0x0f6f, OP2F, OP_R64_R, OP_RM64_D0_R,AOT_NONE },

View File

@ -1,6 +1,18 @@
/* $Id$ */
.text
emms /* 0f 77 */
#if 1 /* FIXME doesn't work properly */
movd %mm1, [%edx]
movd %mm2, [%edx + $0x56]
movd %mm3, [%edx + $0x789abc]
movd %mm4, %mm5
#endif
movd [%edx], %mm2
movd [%edx + $0x56], %mm3
movd [%edx + $0x789abc], %mm4
#if 1 /* FIXME doesn't work properly */
movd %mm5, %mm6
#endif
#if 1 /* FIXME doesn't work properly */
movq %mm1, [%edx]
movq %mm2, [%edx + $0x56]