Added the "fcom", "fcomp", "fcompp", "fcos" and "fdecstp" instructions

This commit is contained in:
Pierre Pronchery 2011-04-19 20:02:44 +00:00
parent cc04acaa9c
commit f41af9429d
2 changed files with 51 additions and 0 deletions

View File

@ -415,6 +415,36 @@
{ "fclex", 0x9bdbe2, OP3F, AOT_NONE, AOT_NONE, AOT_NONE },
/* FCMOVcc */
/* FIXME implement */
/* FCOM */
/* FIXME implement */
/* FCOM 0xd8d1 2 */
{ "fcom", 0xd8d1, OP2F, AOT_NONE, AOT_NONE, AOT_NONE },
/* FCOM 0xd8d0 +i 2 st(i) */
{ "fcom", 0xd8d0, OP2F, OP_st0, AOT_NONE, AOT_NONE },
{ "fcom", 0xd8d1, OP2F, OP_st1, AOT_NONE, AOT_NONE },
{ "fcom", 0xd8d2, OP2F, OP_st2, AOT_NONE, AOT_NONE },
{ "fcom", 0xd8d3, OP2F, OP_st3, AOT_NONE, AOT_NONE },
{ "fcom", 0xd8d4, OP2F, OP_st4, AOT_NONE, AOT_NONE },
{ "fcom", 0xd8d5, OP2F, OP_st5, AOT_NONE, AOT_NONE },
{ "fcom", 0xd8d6, OP2F, OP_st6, AOT_NONE, AOT_NONE },
{ "fcom", 0xd8d7, OP2F, OP_st7, AOT_NONE, AOT_NONE },
/* FCOMP 0xd8d9 2 */
{ "fcomp", 0xd8d9, OP2F, AOT_NONE, AOT_NONE, AOT_NONE },
/* FCOMP 0xd8d8 +i 2 st(i) */
{ "fcomp", 0xd8d8, OP2F, OP_st0, AOT_NONE, AOT_NONE },
{ "fcomp", 0xd8d9, OP2F, OP_st1, AOT_NONE, AOT_NONE },
{ "fcomp", 0xd8da, OP2F, OP_st2, AOT_NONE, AOT_NONE },
{ "fcomp", 0xd8db, OP2F, OP_st3, AOT_NONE, AOT_NONE },
{ "fcomp", 0xd8dc, OP2F, OP_st4, AOT_NONE, AOT_NONE },
{ "fcomp", 0xd8dd, OP2F, OP_st5, AOT_NONE, AOT_NONE },
{ "fcomp", 0xd8de, OP2F, OP_st6, AOT_NONE, AOT_NONE },
{ "fcomp", 0xd8df, OP2F, OP_st7, AOT_NONE, AOT_NONE },
/* FCOMPP 0xded9 2 */
{ "fcompp", 0xded9, OP2F, AOT_NONE, AOT_NONE, AOT_NONE },
/* FCOS 0xd9ff 2 */
{ "fcos", 0xd9ff, OP2F, AOT_NONE, AOT_NONE, AOT_NONE },
/* FDECSTP 0xd9f6 2 */
{ "fdecstp", 0xd9f6, OP2F, AOT_NONE, AOT_NONE, AOT_NONE },
/* FDIV 0xd8 /6 1 m32real */
/* FIXME implement */
/* FDIV 0xdc /6 1 m64real */

View File

@ -142,6 +142,27 @@
faddp %st7, %st0
fchs
fclex
fcom /* de d9 */
fcom %st0
fcom %st1
fcom %st2
fcom %st3
fcom %st4
fcom %st5
fcom %st6
fcom %st7
fcomp /* de d9 */
fcomp %st0
fcomp %st1
fcomp %st2
fcomp %st3
fcomp %st4
fcomp %st5
fcomp %st6
fcomp %st7
fcompp /* de d9 */
fcos
fdecstp
fdiv %st0, %st0
fdiv %st0, %st1
fdiv %st0, %st2