x86: implements fsin, fcos instructions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user