re PR target/70162 ([RX] const_int printing causes wrong code on 32 bit host)
authorNick Clifton <nickc@redhat.com>
Thu, 17 Mar 2016 10:16:38 +0000 (10:16 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 17 Mar 2016 10:16:38 +0000 (10:16 +0000)
PR target/70162
* config/rx/rx.c (rx_print_integer): Print negative constants in
decimal.

From-SVN: r234280

gcc/ChangeLog
gcc/config/rx/rx.c

index 00bc1a6..5e8e3fb 100644 (file)
@@ -1,3 +1,9 @@
+2016-03-17  Nick Clifton  <nickc@redhat.com>
+
+       PR target/70162
+       * config/rx/rx.c (rx_print_integer): Print negative constants in
+       decimal.
+
 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/70261
index 88cf18c..3a374a0 100644 (file)
@@ -467,7 +467,7 @@ rx_print_operand_address (FILE * file, machine_mode /*mode*/, rtx addr)
 static void
 rx_print_integer (FILE * file, HOST_WIDE_INT val)
 {
-  if (IN_RANGE (val, -64, 64))
+  if (val < 64)
     fprintf (file, HOST_WIDE_INT_PRINT_DEC, val);
   else
     fprintf (file,