From 0d277f51d0aae02edc7226fe9cd91ab0a6c67470 Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 11 Dec 2000 07:14:34 +0000 Subject: [PATCH] 2000-12-11 Ben Elliston * cgen-ops.h (SUBWORDDFDI): New function. --- sim/common/ChangeLog | 4 ++++ sim/common/cgen-ops.h | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index d2248279b3e..8107fd6b689 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2000-12-11 Ben Elliston + + * cgen-ops.h (SUBWORDDFDI): New function. + 2000-12-05 Ben Elliston * Make-common.in (cgen-defs): New target. diff --git a/sim/common/cgen-ops.h b/sim/common/cgen-ops.h index d829e930e75..2ce1b12d9dc 100644 --- a/sim/common/cgen-ops.h +++ b/sim/common/cgen-ops.h @@ -364,6 +364,14 @@ SUBWORDSFSI (SF in) return x.out; } +SEMOPS_INLINE DI +SUBWORDDFDI (DF in) +{ + union { DF in; DI out; } x; + x.in = in; + return x.out; +} + SEMOPS_INLINE UQI SUBWORDDIUQI (DI in, int byte) { @@ -456,6 +464,7 @@ QI SUBWORDSIQI (SI); HI SUBWORDSIHI (HI); SI SUBWORDSFSI (SF); SF SUBWORDSISF (SI); +DI SUBWORDDFDI (DF); DF SUBWORDDIDF (DI); QI SUBWORDDIQI (DI, int); HI SUBWORDDIHI (DI, int); -- 2.30.2