Commit 940fd0b5 by Richard Kenner

(simplify_unary_operation, case FLOAT, UNSIGNED_FLOAT): Truncate to

requested mode.

From-SVN: r9872
parent 7b57d1d3
......@@ -2958,7 +2958,7 @@ simplify_unary_operation (code, mode, op, op_mode)
d += (double) (unsigned HOST_WIDE_INT) lv;
}
#endif /* REAL_ARITHMETIC */
d = real_value_truncate (mode, d);
return CONST_DOUBLE_FROM_REAL_VALUE (d, mode);
}
else if (code == UNSIGNED_FLOAT && GET_MODE (op) == VOIDmode
......@@ -2993,7 +2993,7 @@ simplify_unary_operation (code, mode, op, op_mode)
* (double) ((HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT / 2)));
d += (double) (unsigned HOST_WIDE_INT) lv;
#endif /* REAL_ARITHMETIC */
d = real_value_truncate (mode, d);
return CONST_DOUBLE_FROM_REAL_VALUE (d, mode);
}
#endif
......
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