From f1cc84f59441d59827748e47a5971a12ed1ac283 Mon Sep 17 00:00:00 2001 From: Stafford Horne Date: Thu, 13 Jun 2019 21:27:10 +0900 Subject: 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 * 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. --- sim/common/cgen-fpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sim/common/cgen-fpu.h') 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 */ -- cgit v1.1