From abd70a9fc043549152f8567e5197c3dd1ebdea13 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Thu, 27 May 2004 01:05:30 +0000 Subject: [PATCH] dpas_type_identical: treat "float64" and "nfloat" as identical on platforms whose "long double" type is the same as "double". --- ChangeLog | 4 ++++ dpas/dpas-types.c | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 278cd42..5a8147e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,10 @@ the generation of "jit_apply_builder_align_regs" that affected ARM and PPC systems. + * dpas/dpas-types.c (dpas_type_identical): treat "float64" and + "nfloat" as identical on platforms whose "long double" type is + the same as "double". + 2004-05-26 Rhys Weatherley * jit/jit-insn.c, jit/jit-rules-x86.c, jit/jit-rules-x86.sel, diff --git a/dpas/dpas-types.c b/dpas/dpas-types.c index 910c32a..696ad6b 100644 --- a/dpas/dpas-types.c +++ b/dpas/dpas-types.c @@ -1245,6 +1245,15 @@ int dpas_type_identical(jit_type_t type1, jit_type_t type2, int normalize) } if(jit_type_get_kind(type1) != jit_type_get_kind(type2)) { +#ifdef JIT_NFLOAT_IS_DOUBLE + if((jit_type_get_kind(type1) == JIT_TYPE_FLOAT64 || + jit_type_get_kind(type1) == JIT_TYPE_NFLOAT) && + (jit_type_get_kind(type2) == JIT_TYPE_FLOAT64 || + jit_type_get_kind(type2) == JIT_TYPE_NFLOAT)) + { + return 1; + } +#endif return 0; } switch(jit_type_get_kind(type1)) -- 2.47.3