From f25960b03834712f312d46fed9a021df36f89f22 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 19 Sep 2023 13:18:51 +0200 Subject: c/111468 - dump unordered compare operators in their GIMPLE form with -gimple The following adjusts -gimple dumping to dump the unordered compare ops and *h in their GIMPLE form. It also adds parsing for __LTGT which I missed before. PR c/111468 gcc/c/ * gimple-parser.cc (c_parser_gimple_binary_expression): Handle __LTGT. gcc/ * tree-pretty-print.h (op_symbol_code): Add defaulted flags argument. * tree-pretty-print.cc (op_symbol): Likewise. (op_symbol_code): Print TDF_GIMPLE variant if requested. * gimple-pretty-print.cc (dump_binary_rhs): Pass flags to op_symbol_code. (dump_gimple_cond): Likewise. gcc/testsuite/ * gcc.dg/gimplefe-50.c: Amend. --- gcc/c/gimple-parser.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/c/gimple-parser.cc') diff --git a/gcc/c/gimple-parser.cc b/gcc/c/gimple-parser.cc index 9cf2970..f43c039 100644 --- a/gcc/c/gimple-parser.cc +++ b/gcc/c/gimple-parser.cc @@ -1044,6 +1044,11 @@ c_parser_gimple_binary_expression (gimple_parser &parser, tree ret_type) code = ORDERED_EXPR; break; } + else if (strcmp (IDENTIFIER_POINTER (id), "__LTGT") == 0) + { + code = LTGT_EXPR; + break; + } } /* Fallthru. */ default: -- cgit v1.1