x86: implements fsin, fcos instructions
authorNilay Vaish <nilay@cs.wisc.edu>
Tue, 15 Jan 2013 13:43:21 +0000 (07:43 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Tue, 15 Jan 2013 13:43:21 +0000 (07:43 -0600)
src/arch/x86/isa/decoder/x87.isa
src/arch/x86/isa/insts/x87/transcendental_functions/trigonometric_functions.py

index f278dc2f8220203ac924bd03224e829fa314e514..704a6f6dd5990d939adbdbade98012023313ed8d 100644 (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);
             }
index 05fd20829f12f7a33c306345d814af05a0c7b75d..ffdbcf15023ebe32daa252a5c6b568024761bbd0 100644 (file)
 # 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)