Commit 8450a694 by John Carr Committed by Jeff Law

genattrtab.c (check_attr_test): Handle MATCH_INSN like MATCH_OPERAND.

        * genattrtab.c (check_attr_test): Handle MATCH_INSN like MATCH_OPERAND.
        (write_test_expr): Allow MATCH_INSN.

From-SVN: r19213
parent c70afde1
Tue Apr 14 22:00:39 1998 John Carr <jfc@mit.edu>
* genattrtab.c (check_attr_test): Handle MATCH_INSN like MATCH_OPERAND.
(write_test_expr): Allow MATCH_INSN.
Tue Apr 14 21:57:57 1998 Paul Eggert <eggert@twinsun.com> Tue Apr 14 21:57:57 1998 Paul Eggert <eggert@twinsun.com>
* install.texi: Update section on warnings that can be safely ignored. * install.texi: Update section on warnings that can be safely ignored.
......
...@@ -1045,10 +1045,11 @@ check_attr_test (exp, is_const) ...@@ -1045,10 +1045,11 @@ check_attr_test (exp, is_const)
XEXP (exp, 0) = check_attr_test (XEXP (exp, 0), is_const); XEXP (exp, 0) = check_attr_test (XEXP (exp, 0), is_const);
break; break;
case MATCH_INSN:
case MATCH_OPERAND: case MATCH_OPERAND:
if (is_const) if (is_const)
fatal ("RTL operator \"%s\" not valid in constant attribute test", fatal ("RTL operator \"%s\" not valid in constant attribute test",
GET_RTX_NAME (MATCH_OPERAND)); GET_RTX_NAME (GET_CODE (exp)));
/* These cases can't be simplified. */ /* These cases can't be simplified. */
RTX_UNCHANGING_P (exp) = 1; RTX_UNCHANGING_P (exp) = 1;
break; break;
...@@ -4625,6 +4626,10 @@ write_test_expr (exp, flags) ...@@ -4625,6 +4626,10 @@ write_test_expr (exp, flags)
XSTR (exp, 1), XINT (exp, 0), GET_MODE_NAME (GET_MODE (exp))); XSTR (exp, 1), XINT (exp, 0), GET_MODE_NAME (GET_MODE (exp)));
break; break;
case MATCH_INSN:
printf ("%s (insn)", XSTR (exp, 0));
break;
/* Constant integer. */ /* Constant integer. */
case CONST_INT: case CONST_INT:
printf (HOST_WIDE_INT_PRINT_DEC, XWINT (exp, 0)); printf (HOST_WIDE_INT_PRINT_DEC, XWINT (exp, 0));
......
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