Commit 94bfa2da by Tom de Vries Committed by Tom de Vries

Fix ICE in aarch64_float_const_representable_p

2014-06-02  Tom de Vries  <tom@codesourcery.com>

	* config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
	case that x has VOIDmode.

From-SVN: r211132
parent 242d4d3f
2014-06-02 Tom de Vries <tom@codesourcery.com>
* config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
case that x has VOIDmode.
2014-06-02 Bernd Schmidt <bernds@codesourcery.com> 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
* varasm.c (copy_constant): Delete function. * varasm.c (copy_constant): Delete function.
......
...@@ -8466,6 +8466,9 @@ aarch64_float_const_representable_p (rtx x) ...@@ -8466,6 +8466,9 @@ aarch64_float_const_representable_p (rtx x)
if (!CONST_DOUBLE_P (x)) if (!CONST_DOUBLE_P (x))
return false; return false;
if (GET_MODE (x) == VOIDmode)
return false;
REAL_VALUE_FROM_CONST_DOUBLE (r, x); REAL_VALUE_FROM_CONST_DOUBLE (r, x);
/* We cannot represent infinities, NaNs or +/-zero. We won't /* We cannot represent infinities, NaNs or +/-zero. We won't
......
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