From ccd26f0f81cd3ee79a9f29d49bc2a7556e165bc3 Mon Sep 17 00:00:00 2001 From: yroux Date: Sun, 11 Jan 2015 18:50:35 +0000 Subject: [PATCH] 2015-01-11 Yvan Roux Backport from trunk r211132. 2014-06-02 Tom de Vries * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle case that x has VOIDmode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_9-branch@219435 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog.linaro | 8 ++++++++ gcc/config/aarch64/aarch64.c | 3 +++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog.linaro b/gcc/ChangeLog.linaro index eb02053..98c5e65 100644 --- a/gcc/ChangeLog.linaro +++ b/gcc/ChangeLog.linaro @@ -1,5 +1,13 @@ 2015-01-11 Yvan Roux + Backport from trunk r211132. + 2014-06-02 Tom de Vries + + * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle + case that x has VOIDmode. + +2015-01-11 Yvan Roux + Backport from trunk r209620. 2014-04-22 Vidya Praveen diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index aa78638..0d6e9bf 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -8890,6 +8890,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 -- 2.7.4