From b17d2d147491525c3368a0a5417810010e203894 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 13 Dec 1997 04:23:31 +0000 Subject: [PATCH] For MADD et.al. instructions sign extend 32 bit result assigned to a register. --- sim/mips/ChangeLog | 7 +++++++ sim/mips/vr5400.igen | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index 2a0d05c2248..2dd25208bd3 100644 --- a/sim/mips/ChangeLog +++ b/sim/mips/ChangeLog @@ -1,4 +1,11 @@ start-sanitize-vr5400 +Sat Dec 13 15:18:51 1997 Andrew Cagney + + * vr5400.igen (Low32Bits, High32Bits): Sign extend extracted 32 + bit values. + +end-sanitize-vr5400 +start-sanitize-vr5400 Fri Dec 12 12:26:07 1997 Jeffrey A Law (law@cygnus.com) * configure.in (sim_igen_filter): Multi-sim vr5000 - vr5000 or diff --git a/sim/mips/vr5400.igen b/sim/mips/vr5400.igen index ade64ada3e6..2e77ea2c31e 100644 --- a/sim/mips/vr5400.igen +++ b/sim/mips/vr5400.igen @@ -35,13 +35,13 @@ :function:::unsigned64:Low32Bits:unsigned64 value { - unsigned64 result = VL4_8 (value); + unsigned64 result = (signed64) (signed32) VL4_8 (value); return result; } :function:::unsigned64:High32Bits:unsigned64 value { - unsigned64 result = VH4_8 (value); + unsigned64 result = (signed64) (signed32) VH4_8 (value); return result; } -- 2.30.2