From b5265b32766f94e5170516885439901cbc53f73f Mon Sep 17 00:00:00 2001
From: Richard Sandiford <rsandifo@redhat.com>
Date: Wed, 11 Jul 2001 09:32:18 +0000
Subject: [PATCH] mips.c (gen_int_relational): Tell the caller not to reverse a
 branch if a NE comparison is implemented with GTU.

	* 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          | 5 +++++
 gcc/config/mips/mips.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 80d975c07889..c5238646b0b5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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>
 
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index c09a2461dce6..4436f7d15c66 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -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
-- 
GitLab