From eda833e3f2693db1c8f54d0cafdf3c0277ad20e3 Mon Sep 17 00:00:00 2001
From: Ben Elliston <bje@wasabisystems.com>
Date: Fri, 25 Apr 2003 15:24:30 +0000
Subject: [PATCH] arm.c (arm_adjust_cost): Correct logic that tests the return
 values from recog_memoized().

2003-04-26  Ben Elliston  <bje@wasabisystems.com>

	* config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
	return values from recog_memoized().

From-SVN: r66064
---
 gcc/ChangeLog        | 5 +++++
 gcc/config/arm/arm.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 51371d311ac1..7d291ea971b9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-26  Ben Elliston  <bje@wasabisystems.com>
+
+	* config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
+	return values from recog_memoized().
+
 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
 	PR opt/8705
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 09a71c13b4e6..8b002bd34ac7 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -3474,8 +3474,8 @@ arm_adjust_cost (insn, link, dep, cost)
      on precisely how certain input operands are used.  */
   if (arm_is_xscale
       && REG_NOTE_KIND (link) == 0
-      && recog_memoized (insn) < 0
-      && recog_memoized (dep) < 0)
+      && recog_memoized (insn) >= 0
+      && recog_memoized (dep) >= 0)
     {
       int shift_opnum = get_attr_shift (insn);
       enum attr_type attr_type = get_attr_type (dep);
-- 
GitLab