diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-11 13:15:46 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-11 13:15:46 -0500 |
commit | 5c940fec0aebcce5f81063f195220184918b377b (patch) | |
tree | c9e754107957d63e7331ef13d2527a3874524393 /src/arch/x86/isa/insts/x87/arithmetic | |
parent | 82f600e02ded4d7162dd9286f790462b9ab5d554 (diff) | |
download | gem5-5c940fec0aebcce5f81063f195220184918b377b.tar.xz |
x86: implement some of the x87 instructions
This patch implements ftan, fprem, fyl2x, fld* floating-point instructions.
Diffstat (limited to 'src/arch/x86/isa/insts/x87/arithmetic')
-rw-r--r-- | src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py b/src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py index 5a4959973..b02184e1a 100644 --- a/src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py +++ b/src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py @@ -36,6 +36,11 @@ # Authors: Gabe Black microcode = ''' -# FPREM -# FPREM1 +def macroop FPREM { + premfp st(0), st(1), st(0) +}; + +def macroop FPREM1 { + premfp st(0), st(1), st(0) +}; ''' |