changeset 8a2175fa7fa0 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=8a2175fa7fa0
description:
        x86: implements fsin, fcos instructions

diffstat:

 src/arch/x86/isa/decoder/x87.isa                                               
|  4 ++--
 src/arch/x86/isa/insts/x87/transcendental_functions/trigonometric_functions.py 
|  9 +++++++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 4193ed60eed7 -r 8a2175fa7fa0 src/arch/x86/isa/decoder/x87.isa
--- a/src/arch/x86/isa/decoder/x87.isa  Tue Jan 15 07:43:20 2013 -0600
+++ b/src/arch/x86/isa/decoder/x87.isa  Tue Jan 15 07:43:21 2013 -0600
@@ -109,8 +109,8 @@
                     0x3: Inst::FSINCOS();
                     0x4: frndint();
                     0x5: fscale();
-                    0x6: fsin();
-                    0x7: fcos();
+                    0x6: Inst::FSIN();
+                    0x7: Inst::FCOS();
                 }
                 default: Inst::FNSTCW(Mw);
             }
diff -r 4193ed60eed7 -r 8a2175fa7fa0 
src/arch/x86/isa/insts/x87/transcendental_functions/trigonometric_functions.py
--- 
a/src/arch/x86/isa/insts/x87/transcendental_functions/trigonometric_functions.py
    Tue Jan 15 07:43:20 2013 -0600
+++ 
b/src/arch/x86/isa/insts/x87/transcendental_functions/trigonometric_functions.py
    Tue Jan 15 07:43:21 2013 -0600
@@ -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)
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to