]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
tc-arm.c: Append ULL to 0xFFFFFFFFFFFFF to avoid errors on 32-bit hosts.
authorHans-Peter Nilsson <hp@bitrange.com>
Sat, 8 Aug 2015 20:44:37 +0000 (22:44 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Sat, 8 Aug 2015 20:44:37 +0000 (22:44 +0200)
gas/ChangeLog
gas/config/tc-arm.c

index cdb1f5d3961d67ba289eee12297f7f10ba5f10cd..79de86a6eab90082bab77fbdc852f6586fede2ef 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-08  Hans-Peter Nilsson  <hp@axis.com>
+
+       * tc-arm.c (double_to_single, is_double_a_single): Append ULL to
+       0xFFFFFFFFFFFFF to avoid errors on 32-bit hosts.
+
 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
 
        * doc/c-aarch64.texi (.xword): Document directive.
index 7b3b5c9cfe30df299eef516a7ecaaf7c91d561fd..899bfa20ae83ec8e6a786aea8e5d6b5bf4471447 100644 (file)
@@ -7760,7 +7760,7 @@ static bfd_boolean
 is_double_a_single (bfd_int64_t v)
 {
   int exp = (int)((v >> 52) & 0x7FF);
-  bfd_int64_t mantissa = (v & (bfd_int64_t)0xFFFFFFFFFFFFF);
+  bfd_int64_t mantissa = (v & (bfd_int64_t)0xFFFFFFFFFFFFFULL);
 
   return (exp == 0 || exp == 0x7FF
          || (exp >= 1023 - 126 && exp <= 1023 + 127))
@@ -7775,7 +7775,7 @@ double_to_single (bfd_int64_t v)
 {
   int sign = (int) ((v >> 63) & 1l);
   int exp = (int) ((v >> 52) & 0x7FF);
-  bfd_int64_t mantissa = (v & (bfd_int64_t)0xFFFFFFFFFFFFF);
+  bfd_int64_t mantissa = (v & (bfd_int64_t)0xFFFFFFFFFFFFFULL);
 
   if (exp == 0x7FF)
     exp = 0xFF;