arc.c (arc_predicate_delay_insns): Swap comparison arguments to silence bogus warning.
authorJoern Rennecke <joern.rennecke@embecosm.com>
Sat, 6 Sep 2014 16:14:47 +0000 (16:14 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Sat, 6 Sep 2014 16:14:47 +0000 (17:14 +0100)
        * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
        arguments to silence bogus warning.

From-SVN: r214993

gcc/ChangeLog
gcc/config/arc/arc.c

index bd824e7bce68b8ad8267b669818f75903f412544..3596380d1c3c53254a5d4ddbe719532f274697d4 100644 (file)
@@ -1,7 +1,10 @@
 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
 
        * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
-       * arc_output_mi_thunk: Likewise.
+       (arc_output_mi_thunk): Likewise.
+
+       * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
+       arguments to silence bogus warning.
 
 2014-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
 
index 0b6fcb1a911fba95e39f368472eb7729a64886dd..1d7f3b80818a1ada16953021fd4117fc47746259 100644 (file)
@@ -8401,7 +8401,7 @@ arc_predicate_delay_insns (void)
        reverse = 1;
       else
        gcc_unreachable ();
-      if (!INSN_FROM_TARGET_P (dlay) != reverse)
+      if (reverse != !INSN_FROM_TARGET_P (dlay))
        {
          enum machine_mode ccm = GET_MODE (XEXP (cond, 0));
          enum rtx_code code = reverse_condition (GET_CODE (cond));