Commit 98fa4d3c by Richard Biener Committed by Richard Biener

fixed-value.c (fixed_from_string): Restore use of elt (1) in place of uhigh ().

2017-03-03  Richard Biener  <rguenther@suse.de>

	* fixed-value.c (fixed_from_string): Restore use of elt (1)
	in place of uhigh ().
	(fixed_convert_from_real): Likewise.

From-SVN: r245867
parent 30d309aa
2017-03-03 Richard Biener <rguenther@suse.de>
* fixed-value.c (fixed_from_string): Restore use of elt (1)
in place of uhigh ().
(fixed_convert_from_real): Likewise.
2017-03-03 Uros Bizjak <ubizjak@gmail.com> 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
PR target/79514 PR target/79514
......
...@@ -131,7 +131,7 @@ fixed_from_string (FIXED_VALUE_TYPE *f, const char *str, machine_mode mode) ...@@ -131,7 +131,7 @@ fixed_from_string (FIXED_VALUE_TYPE *f, const char *str, machine_mode mode)
wide_int w = real_to_integer (&fixed_value, &fail, wide_int w = real_to_integer (&fixed_value, &fail,
GET_MODE_PRECISION (mode)); GET_MODE_PRECISION (mode));
f->data.low = w.ulow (); f->data.low = w.ulow ();
f->data.high = w.uhigh (); f->data.high = w.elt (1);
if (temp == FIXED_MAX_EPS && ALL_FRACT_MODE_P (f->mode)) if (temp == FIXED_MAX_EPS && ALL_FRACT_MODE_P (f->mode))
{ {
...@@ -1050,7 +1050,7 @@ fixed_convert_from_real (FIXED_VALUE_TYPE *f, machine_mode mode, ...@@ -1050,7 +1050,7 @@ fixed_convert_from_real (FIXED_VALUE_TYPE *f, machine_mode mode,
wide_int w = real_to_integer (&fixed_value, &fail, wide_int w = real_to_integer (&fixed_value, &fail,
GET_MODE_PRECISION (mode)); GET_MODE_PRECISION (mode));
f->data.low = w.ulow (); f->data.low = w.ulow ();
f->data.high = w.uhigh (); f->data.high = w.elt (1);
temp = check_real_for_fixed_mode (&real_value, mode); temp = check_real_for_fixed_mode (&real_value, mode);
if (temp == FIXED_UNDERFLOW) /* Minimum. */ if (temp == FIXED_UNDERFLOW) /* Minimum. */
{ {
......
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