summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/insts
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-01-15 07:43:19 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2013-01-15 07:43:19 -0600
commit91b00d98a5973d47b831495f5c668bbb185c7a15 (patch)
treed2108f83a8be89fdaeec5120c5f5ccb6744cdba1 /src/arch/x86/isa/insts
parent7fdcfdf08b9d654fcf311b213bd729cb957f822c (diff)
downloadgem5-91b00d98a5973d47b831495f5c668bbb185c7a15.tar.xz
x86: implement fabs, fchs instructions
Diffstat (limited to 'src/arch/x86/isa/insts')
-rw-r--r--src/arch/x86/isa/insts/x87/arithmetic/change_sign.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/arch/x86/isa/insts/x87/arithmetic/change_sign.py b/src/arch/x86/isa/insts/x87/arithmetic/change_sign.py
index 059fb1ef1..779f1b5b2 100644
--- a/src/arch/x86/isa/insts/x87/arithmetic/change_sign.py
+++ b/src/arch/x86/isa/insts/x87/arithmetic/change_sign.py
@@ -36,6 +36,12 @@
# Authors: Gabe Black
microcode = '''
-# FABS
-# FCHS
+
+def macroop FABS {
+ absfp st(0), st(0)
+};
+
+def macroop FCHS {
+ chsfp st(0), st(0)
+};
'''