+2017-08-02 Tamar Christina <tamar.christina@arm.com>
+
+ * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
+ Correct endianness.
+
2017-08-02 Jakub Jelinek <jakub@redhat.com>
PR middle-end/79499
CONST_DOUBLE_REAL_VALUE (value),
REAL_MODE_FORMAT (mode));
- ival = zext_hwi (res[0], 32);
- if (GET_MODE_BITSIZE (mode) == GET_MODE_BITSIZE (DFmode))
- ival |= (zext_hwi (res[1], 32) << 32);
+ if (mode == DFmode)
+ {
+ int order = BYTES_BIG_ENDIAN ? 1 : 0;
+ ival = zext_hwi (res[order], 32);
+ ival |= (zext_hwi (res[1 - order], 32) << 32);
+ }
+ else
+ ival = zext_hwi (res[0], 32);
*intval = ival;
return true;