From 91b00d98a5973d47b831495f5c668bbb185c7a15 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Tue, 15 Jan 2013 07:43:19 -0600 Subject: x86: implement fabs, fchs instructions --- src/arch/x86/isa/insts/x87/arithmetic/change_sign.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/arch/x86/isa/insts') 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) +}; ''' -- cgit v1.2.3