[committed,AArch64] Extra scalar_float_mode patch

Message ID 878td4levf.fsf@linaro.org
State New
Headers show
Series
  • [committed,AArch64] Extra scalar_float_mode patch
Related show

Commit Message

Richard Sandiford Jan. 11, 2018, 1:11 p.m.
In preparation for the switch to NUM_POLY_INT_COEFFS==2.

Tested on aarch64-linux-gnu and committed as obvious.

Richard


2018-01-11  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
	* config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
	Use scalar_float_mode.

Patch

Index: gcc/config/aarch64/aarch64.c
===================================================================
--- gcc/config/aarch64/aarch64.c	2018-01-09 15:46:35.553405532 +0000
+++ gcc/config/aarch64/aarch64.c	2018-01-11 13:09:31.920887761 +0000
@@ -4806,9 +4806,9 @@  aarch64_reinterpret_float_as_int (rtx va
       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 <scalar_float_mode> (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))