[AArch64] Extra scalar_float_mode patch

In preparation for the switch to NUM_POLY_INT_COEFFS==2.

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

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

From-SVN: r256531
This commit is contained in:
Richard Sandiford 2018-01-11 13:11:12 +00:00 committed by Richard Sandiford
parent f3bd950563
commit 0d0e0188d8
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2018-01-11 Richard Sandiford <richard.sandiford@linaro.org>
* config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
Use scalar_float_mode.
2018-01-11 Richard Sandiford <richard.sandiford@linaro.org>
* config/aarch64/aarch64-simd.md

View File

@ -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 <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))