Commit 8f496bc2 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

ns32k.md: Revert Jan 9 change.

	* config/ns32k/ns32k.md: Revert Jan 9 change.

	* genrecog.c (maybe_both_true_2): Do not compare a predicate-test
	to a mode-test, if the predicate is address_operand.

From-SVN: r31384
parent 668bcf76
Wed Jan 12 23:12:47 2000 Hans-Peter Nilsson <hp@axis.com>
* config/ns32k/ns32k.md: Revert Jan 9 change.
* genrecog.c (maybe_both_true_2): Do not compare a predicate-test
to a mode-test, if the predicate is address_operand.
Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com) Wed Jan 12 22:34:00 2000 Jeffrey A Law (law@cygnus.com)
* combine.c (if_then_else_cond): Be careful about what kinds * combine.c (if_then_else_cond): Be careful about what kinds
......
...@@ -2032,7 +2032,7 @@ ...@@ -2032,7 +2032,7 @@
(define_insn "" (define_insn ""
[(set (match_operand:SI 0 "general_operand" "=g<") [(set (match_operand:SI 0 "general_operand" "=g<")
(match_operand:SI 1 "address_operand" "p"))] (match_operand:QI 1 "address_operand" "p"))]
"" ""
"* "*
{ {
......
/* Generate code from machine description to recognize rtl as insns. /* Generate code from machine description to recognize rtl as insns.
Copyright (C) 1987, 88, 92-95, 97-98, 1999 Free Software Foundation, Inc. Copyright (C) 1987, 88, 92-95, 97-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -1012,7 +1012,12 @@ maybe_both_true_2 (d1, d2) ...@@ -1012,7 +1012,12 @@ maybe_both_true_2 (d1, d2)
{ {
if (d2->type == DT_mode) if (d2->type == DT_mode)
{ {
if (d1->u.pred.mode != d2->u.mode) if (d1->u.pred.mode != d2->u.mode
/* The mode of an address_operand predicate is the
mode of the memory, not the operand. It can only
be used for testing the predicate, so we must
ignore it here. */
&& strcmp (d1->u.pred.name, "address_operand") != 0)
return 0; return 0;
} }
/* Don't check two predicate modes here, because if both predicates /* Don't check two predicate modes here, because if both predicates
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment