x86: implements fsin, fcos instructions

This commit is contained in:
Nilay Vaish
2013-01-15 07:43:21 -06:00
parent 7f5463539b
commit ac9bb51405
2 changed files with 9 additions and 4 deletions

View File

@@ -109,8 +109,8 @@ format WarnUnimpl {
0x3: Inst::FSINCOS();
0x4: frndint();
0x5: fscale();
0x6: fsin();
0x7: fcos();
0x6: Inst::FSIN();
0x7: Inst::FCOS();
}
default: Inst::FNSTCW(Mw);
}

View File

@@ -36,8 +36,13 @@
# Authors: Gabe Black
microcode = '''
# FSIN
# FCOS
def macroop FSIN {
sinfp st(0), st(0)
};
def macroop FCOS {
cosfp st(0), st(0)
};
def macroop FSINCOS {
sinfp ufp1, st(0)