diff options
author | Tom de Vries <tom@codesourcery.com> | 2014-06-02 13:13:43 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2014-06-02 13:13:43 +0000 |
commit | 94bfa2da9a5a7912f0b48bf9501f3246eb86ee14 (patch) | |
tree | c0a28fb97befe9987d97d90ff539a944de8a435b | |
parent | 242d4d3fdd55ef2a7ed4f80febf7466d4aa69d46 (diff) | |
download | gcc-94bfa2da9a5a7912f0b48bf9501f3246eb86ee14.zip gcc-94bfa2da9a5a7912f0b48bf9501f3246eb86ee14.tar.gz gcc-94bfa2da9a5a7912f0b48bf9501f3246eb86ee14.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 07f3b0f..628c027 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * varasm.c (copy_constant): Delete function. diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index f69457a..a1d8486 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -8466,6 +8466,9 @@ aarch64_float_const_representable_p (rtx x) if (!CONST_DOUBLE_P (x)) return false; + if (GET_MODE (x) == VOIDmode) + return false; + REAL_VALUE_FROM_CONST_DOUBLE (r, x); /* We cannot represent infinities, NaNs or +/-zero. We won't |