+2000-03-23 Dave Brolley <brolley@redhat.com>
+
+ * cgen-fpu.h: Rename extsfdf to fextsfdf. Rename truncdfsf to
+ ftruncdfsf.
+ * cgen-accfp.c (fextsfdf): New function.
+ (ftruncdfsf): New function.
+ (cgen_init_accurate_fpu): Initialize fextsfdf and ftruncdfsf.
+
2000-03-13 Jeff Johnston <jjohnstn@cygnus.com>
* cgen-ops.h: Added TRUNCSISI.
return sim_fpu_is_ge (&op1, &op2);
}
+static DF
+fextsfdf (CGEN_FPU* fpu, SF x)
+{
+ sim_fpu op1;
+ unsigned64 res;
+
+ sim_fpu_32to (&op1, x);
+ sim_fpu_to64 (&res, &op1);
+
+ return res;
+}
+
+static SF
+ftruncdfsf (CGEN_FPU* fpu, DF x)
+{
+ sim_fpu op1;
+ unsigned32 res;
+
+ sim_fpu_64to (&op1, x);
+ sim_fpu_to32 (&res, &op1);
+
+ return res;
+}
+
static SF
floatsisf (CGEN_FPU* fpu, SI x)
{
o->ledf = ledf;
o->gtdf = gtdf;
o->gedf = gedf;
+ o->fextsfdf = fextsfdf;
+ o->ftruncdfsf = ftruncdfsf;
o->floatsisf = floatsisf;
o->floatsidf = floatsidf;
o->ufloatsisf = ufloatsisf;
/* SF/DF conversion ops */
- DF (*extsfdf) (CGEN_FPU*, SF);
- SF (*truncdfsf) (CGEN_FPU*, DF);
+ DF (*fextsfdf) (CGEN_FPU*, SF);
+ SF (*ftruncdfsf) (CGEN_FPU*, DF);
SF (*floatsisf) (CGEN_FPU*, SI);
SF (*floatdisf) (CGEN_FPU*, DI);