Commit 53596fba by Richard Kenner

Use CONST_DOUBLE_FROM_REAL_VALUE macro for immed_real_const_1.

From-SVN: r7126
parent cfc3d13f
...@@ -692,14 +692,14 @@ gen_lowpart_common (mode, x) ...@@ -692,14 +692,14 @@ gen_lowpart_common (mode, x)
i = INTVAL (x); i = INTVAL (x);
r = REAL_VALUE_FROM_TARGET_SINGLE (i); r = REAL_VALUE_FROM_TARGET_SINGLE (i);
return immed_real_const_1 (r, mode); return CONST_DOUBLE_FROM_REAL_VALUE (r, mode);
} }
#else #else
{ {
union {HOST_WIDE_INT i; float d; } u; union {HOST_WIDE_INT i; float d; } u;
u.i = INTVAL (x); u.i = INTVAL (x);
return immed_real_const_1 (u.d, mode); return CONST_DOUBLE_FROM_REAL_VALUE (u.d, mode);
} }
#endif #endif
else if (((HOST_FLOAT_FORMAT == TARGET_FLOAT_FORMAT else if (((HOST_FLOAT_FORMAT == TARGET_FLOAT_FORMAT
...@@ -730,7 +730,7 @@ gen_lowpart_common (mode, x) ...@@ -730,7 +730,7 @@ gen_lowpart_common (mode, x)
i[0] = low, i[1] = high; i[0] = low, i[1] = high;
r = REAL_VALUE_FROM_TARGET_DOUBLE (i); r = REAL_VALUE_FROM_TARGET_DOUBLE (i);
return immed_real_const_1 (r, mode); return CONST_DOUBLE_FROM_REAL_VALUE (r, mode);
} }
#else #else
{ {
...@@ -748,7 +748,7 @@ gen_lowpart_common (mode, x) ...@@ -748,7 +748,7 @@ gen_lowpart_common (mode, x)
u.i[0] = low, u.i[1] = high; u.i[0] = low, u.i[1] = high;
#endif #endif
return immed_real_const_1 (u.d, mode); return CONST_DOUBLE_FROM_REAL_VALUE (u.d, mode);
} }
#endif #endif
/* Similarly, if this is converting a floating-point value into a /* Similarly, if this is converting a floating-point value into a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment