Commit 25238622 by Richard Henderson Committed by Richard Henderson

genrecog.c (validate_pattern): Typo last change.

        * genrecog.c (validate_pattern): Typo last change.  Verify
        that output operands have output reloads.

From-SVN: r29968
parent 8fe0ca0c
Thu Oct 14 02:57:05 1999 Richard Henderson <rth@cygnus.com>
* genrecog.c (validate_pattern): Typo last change. Verify
that output operands have output reloads.
Thu Oct 14 01:49:54 1999 Richard Henderson <rth@cygnus.com>
* genrecog.c (special_mode_pred_table): New.
......
......@@ -525,7 +525,7 @@ validate_pattern (pattern, insn, set_dest)
&& pred_name[0] != '\0'
&& allows_non_const
&& ! special_mode_pred
&& strstr (c_test, "operands") != NULL
&& strstr (c_test, "operands") == NULL
&& GET_CODE (insn) == DEFINE_INSN)
{
message_with_line (pattern_lineno,
......@@ -533,6 +533,19 @@ validate_pattern (pattern, insn, set_dest)
XINT (pattern, 0));
}
/* A MATCH_OPERAND that is a SET should have an output reload. */
if (set_dest
&& code == MATCH_OPERAND
&& XSTR (pattern, 2)[0] != '\0'
&& XSTR (pattern, 2)[0] != '='
&& XSTR (pattern, 2)[0] != '+')
{
message_with_line (pattern_lineno,
"operand %d missing output reload",
XINT (pattern, 0));
error_count++;
}
return;
}
......
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