From 0d0e0188d80f337d2d997ac787b62cc7e8387612 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 11 Jan 2018 13:11:12 +0000 Subject: [PATCH] [AArch64] Extra scalar_float_mode patch In preparation for the switch to NUM_POLY_INT_COEFFS==2. 2018-01-11 Richard Sandiford gcc/ * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int): Use scalar_float_mode. From-SVN: r256531 --- gcc/ChangeLog | 5 +++++ gcc/config/aarch64/aarch64.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8654289e58b..fbd23bf76a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-01-11 Richard Sandiford + + * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int): + Use scalar_float_mode. + 2018-01-11 Richard Sandiford * config/aarch64/aarch64-simd.md diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 0aea458c4a2..d8ae9d2238c 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -4806,9 +4806,9 @@ aarch64_reinterpret_float_as_int (rtx value, unsigned HOST_WIDE_INT *intval) return true; } - machine_mode mode = GET_MODE (value); + scalar_float_mode mode; if (GET_CODE (value) != CONST_DOUBLE - || !SCALAR_FLOAT_MODE_P (mode) + || !is_a (GET_MODE (value), &mode) || GET_MODE_BITSIZE (mode) > HOST_BITS_PER_WIDE_INT /* Only support up to DF mode. */ || GET_MODE_BITSIZE (mode) > GET_MODE_BITSIZE (DFmode)) -- 2.30.2