From 80dee53b0430f829e8f9aff1a68c62e113f3ce24 Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Thu, 11 May 2006 03:26:19 -0400 Subject: Fixes for Paired-Single FP Compare Operations... Now all the variations of FP should be implemented correctly in the decoder. The new formats and functions supporting these functions need to be implemented for some of the FP stuff but for the most part things are looking like their "supposed to"... arch/mips/isa/decoder.isa: Fixes for Paired-Single FP Compare Operations... Now all the variations of FP should be implemented correctly in the decoder. arch/mips/isa/formats/fp.isa: Add new PS formats arch/mips/isa_traits.cc: Add skeleton overloaded round & truncate functions arch/mips/isa_traits.hh: declare overloaded functions --HG-- extra : convert_revision : 15d5cf7b08ac2dc9ebcd6b268e92d4abffdd8597 --- arch/mips/isa_traits.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'arch/mips/isa_traits.cc') diff --git a/arch/mips/isa_traits.cc b/arch/mips/isa_traits.cc index 05499f4dc..19ef46291 100644 --- a/arch/mips/isa_traits.cc +++ b/arch/mips/isa_traits.cc @@ -102,6 +102,12 @@ MipsISA::roundFP(float val) return 1.5; } +float +MipsISA::roundFP(uint64_t val) +{ + return 1.5; +} + double MipsISA::roundFP(double val) { @@ -120,6 +126,13 @@ MipsISA::truncFP(float val) return 1.0; } +double +MipsISA::truncFP(uint64_t val) +{ + int trunc_val = (int) val; + return (double) trunc_val; +} + double MipsISA::truncFP(double val) { -- cgit v1.2.3