gimplefe: expose MULT_HIGHPART_EXPR

* gimple-parser.c (c_parser_gimple_binary_expression): Accept infix
	"__MULT_HIGHPART" for MULT_HIGHPART_EXPR.

From-SVN: r263982
This commit is contained in:
Alexander Monakov 2018-08-30 16:47:59 +03:00 committed by Alexander Monakov
parent a5f4d3d6a1
commit 22eea6b2f4
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2018-08-30 Alexander Monakov <amonakov@ispras.ru>
* gimple-parser.c (c_parser_gimple_binary_expression): Accept infix
"__MULT_HIGHPART" for MULT_HIGHPART_EXPR.
2018-08-27 David Malcolm <dmalcolm@redhat.com>
PR 87091

View file

@ -450,6 +450,7 @@ c_parser_gimple_statement (c_parser *parser, gimple_seq *seq)
gimple-binary-expression:
gimple-unary-expression * gimple-unary-expression
gimple-unary-expression __MULT_HIGHPART gimple-unary-expression
gimple-unary-expression / gimple-unary-expression
gimple-unary-expression % gimple-unary-expression
gimple-unary-expression + gimple-unary-expression
@ -544,6 +545,16 @@ c_parser_gimple_binary_expression (c_parser *parser)
case CPP_OR_OR:
c_parser_error (parser, "%<||%> not valid in GIMPLE");
return ret;
case CPP_NAME:
{
tree id = c_parser_peek_token (parser)->value;
if (strcmp (IDENTIFIER_POINTER (id), "__MULT_HIGHPART") == 0)
{
code = MULT_HIGHPART_EXPR;
break;
}
}
/* Fallthru. */
default:
/* Not a binary expression. */
return lhs;