aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2000-12-11 07:14:34 +0000
committerBen Elliston <bje@au.ibm.com>2000-12-11 07:14:34 +0000
commit0d277f51d0aae02edc7226fe9cd91ab0a6c67470 (patch)
tree2625ebb0b6dab5ce961b0df6cc8bd9f62a37bb81 /sim/common
parentd58c3cb85e0043e8c18b030e26be61aad78cb371 (diff)
downloadgdb-0d277f51d0aae02edc7226fe9cd91ab0a6c67470.zip
gdb-0d277f51d0aae02edc7226fe9cd91ab0a6c67470.tar.gz
gdb-0d277f51d0aae02edc7226fe9cd91ab0a6c67470.tar.bz2
2000-12-11 Ben Elliston <bje@redhat.com>
* cgen-ops.h (SUBWORDDFDI): New function.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/cgen-ops.h9
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);