genrecog.c (compute_predicate_codes): Use op0_codes instead of codes.
authorSteve Ellcey <sje@cup.hp.com>
Thu, 9 Sep 2004 22:29:56 +0000 (22:29 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Thu, 9 Sep 2004 22:29:56 +0000 (22:29 +0000)
* genrecog.c (compute_predicate_codes): Use op0_codes
instead of codes.

From-SVN: r87257

gcc/ChangeLog
gcc/genrecog.c

index 57e0d484c8a7b1befc31e91f87bff424fe820de0..1284a06f8dc306f98b90efbc423f7d4823ad7428 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-09  Steve Ellcey  <sje@cup.hp.com>
+
+       * genrecog.c (compute_predicate_codes): Use op0_codes
+       instead of codes.
+
 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
index 241c08007ed6e30a64c2e2465d52346a60c5427e..83e2862f3b0354b4a487b385668d450a123e1ba0 100644 (file)
@@ -254,7 +254,7 @@ compute_predicate_codes (rtx exp, char codes[NUM_RTX_CODE])
     case NOT:
       compute_predicate_codes (XEXP (exp, 0), op0_codes);
       for (i = 0; i < NUM_RTX_CODE; i++)
-       codes[i] = TRISTATE_NOT (codes[i]);
+       codes[i] = TRISTATE_NOT (op0_codes[i]);
       break;
 
     case IF_THEN_ELSE: