mips.c (gen_int_relational): Tell the caller not to reverse a branch if a NE comparis...
authorRichard Sandiford <rsandifo@redhat.com>
Wed, 11 Jul 2001 09:32:18 +0000 (09:32 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 11 Jul 2001 09:32:18 +0000 (09:32 +0000)
* config/mips/mips.c (gen_int_relational): Tell the caller not to
reverse a branch if a NE comparison is implemented with GTU.

From-SVN: r43931

gcc/ChangeLog
gcc/config/mips/mips.c

index 80d975c..c523864 100644 (file)
@@ -1,4 +1,9 @@
 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config/mips/mips.c (gen_int_relational): Tell the caller not to
+       reverse a branch if a NE comparison is implemented with GTU.
+
+2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
            H.J. Lu  <hjl@gnu.org>
 
        * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
index c09a246..4436f7d 100644 (file)
@@ -2979,6 +2979,8 @@ gen_int_relational (test_code, result, cmp0, cmp1, p_invert)
       if (! TARGET_MIPS16)
        {
          convert_move (result, gen_rtx (GTU, mode, reg, const0_rtx), 0);
+         if (p_invert != NULL)
+           *p_invert = 0;
          invert = 0;
        }
       else