summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py')
-rw-r--r--src/arch/x86/isa/insts/x87/arithmetic/partial_remainder.py9
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)
+};
'''