diff options
-rw-r--r-- | sim/common/ChangeLog | 4 | ||||
-rw-r--r-- | sim/common/cgen-ops.h | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index d224827..8107fd6 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2000-12-11 Ben Elliston <bje@redhat.com> + + * cgen-ops.h (SUBWORDDFDI): New function. + 2000-12-05 Ben Elliston <bje@redhat.com> * Make-common.in (cgen-defs): New target. diff --git a/sim/common/cgen-ops.h b/sim/common/cgen-ops.h index d829e93..2ce1b12 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); |