aboutsummaryrefslogtreecommitdiff
path: root/sim/common/cgen-fpu.h
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2019-06-13 21:27:10 +0900
committerStafford Horne <shorne@gmail.com>2019-06-13 21:27:10 +0900
commitf1cc84f59441d59827748e47a5971a12ed1ac283 (patch)
tree73518447b7142a480d01b43ceecd89504d84ff3b /sim/common/cgen-fpu.h
parent688cea90bc0af3a0188695a25f5c4e8db4ef763b (diff)
downloadgdb-f1cc84f59441d59827748e47a5971a12ed1ac283.zip
gdb-f1cc84f59441d59827748e47a5971a12ed1ac283.tar.gz
gdb-f1cc84f59441d59827748e47a5971a12ed1ac283.tar.bz2
sim/common: wire up new unordered comparisons
Define and wire up unordered floating point comparison operations for cgen targets. This patch depends on my posted cgen patches[0]. [0] https://www.sourceware.org/ml/cgen/2019-q2/msg00013.html sim/common/ChangeLog: yyyy-mm-dd Stafford Horne <shorne@gmail.com> * cgen-accfp.c (unorderedsf, unordereddf): New functions. (cgen_init_accurate_fpu): Wire up unorderedsf and unordereddf. * cgen-fpu.h (cgen_fp_ops): Define fields unorderedsf and unordereddf.
Diffstat (limited to 'sim/common/cgen-fpu.h')
-rw-r--r--sim/common/cgen-fpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/common/cgen-fpu.h b/sim/common/cgen-fpu.h
index 5f9b55d..cc5d356 100644
--- a/sim/common/cgen-fpu.h
+++ b/sim/common/cgen-fpu.h
@@ -87,6 +87,7 @@ struct cgen_fp_ops {
int (*lesf) (CGEN_FPU*, SF, SF);
int (*gtsf) (CGEN_FPU*, SF, SF);
int (*gesf) (CGEN_FPU*, SF, SF);
+ int (*unorderedsf) (CGEN_FPU*, SF, SF);
/* basic DF ops */
@@ -112,6 +113,7 @@ struct cgen_fp_ops {
int (*ledf) (CGEN_FPU*, DF, DF);
int (*gtdf) (CGEN_FPU*, DF, DF);
int (*gedf) (CGEN_FPU*, DF, DF);
+ int (*unordereddf) (CGEN_FPU*, DF, DF);
/* SF/DF conversion ops */