Make the >>> error message depend on the allow signed flag.

The >>> operator is also part of the allow signed extensions.
This commit is contained in:
Cary R 2011-03-17 09:55:01 -07:00 committed by Stephen Williams
parent 8580ceea4d
commit ab265c6373
1 changed files with 6 additions and 4 deletions

View File

@ -143,10 +143,12 @@ static void emit_expr_binary(ivl_scope_t scope, ivl_expr_t expr, unsigned wid)
emit_expr(scope, ivl_expr_oper2(expr), 0);
break;
case 'R':
if (! allow_signed) {
fprintf(stderr, "%s:%u: vlog95 error: >>> operator is not "
"supported.\n",
ivl_expr_file(expr), ivl_expr_lineno(expr));
vlog_errors += 1;
}
case 'l':
case 'r':
emit_expr(scope, ivl_expr_oper1(expr), wid);