From 800d5c9e172776de4ad5875559d83049263005a2 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 6 Jul 1998 15:40:02 -0700 Subject: print-rtl.c (print_rtx): Display the real-value equivalent of a const_double when easy. * print-rtl.c (print_rtx): Display the real-value equivalent of a const_double when easy. * real.h (REAL_VALUE_TO_TARGET_SINGLE): Use a union to pun types. Zero memory first for predictability. (REAL_VALUE_TO_TARGET_DOUBLE): Likewise. * varasm.c (immed_real_const_1): Notice width of H_W_I == double. From-SVN: r20972 --- gcc/varasm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/varasm.c') diff --git a/gcc/varasm.c b/gcc/varasm.c index 4ba0e08..39e09c7 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -2070,6 +2070,8 @@ immed_real_const_1 (d, mode) else if (! REAL_VALUE_ISNAN (d) && REAL_VALUES_EQUAL (dconst1, d)) return CONST1_RTX (mode); + if (sizeof u == sizeof (HOST_WIDE_INT)) + return immed_double_const (u.i[0], 0, mode); if (sizeof u == 2 * sizeof (HOST_WIDE_INT)) return immed_double_const (u.i[0], u.i[1], mode); -- cgit v1.1