print-rtl: NOT is ~, not !

Slim RTL dumps print the RTL code NOT as !, but that is misleading:
its semantics are like the C operator ~.  This fixes it.


	* print-rtl.c (print_exp): Print NOT as "~" instead of as "!".

From-SVN: r250913
This commit is contained in:
Segher Boessenkool 2017-08-07 12:21:32 +02:00 committed by Segher Boessenkool
parent 1653a86549
commit d5e2c91a26
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-08-07 Segher Boessenkool <segher@kernel.crashing.org>
* print-rtl.c (print_exp): Print NOT as "~" instead of as "!".
2017-08-07 Marek Polacek <polacek@redhat.com>
PR middle-end/81737

View File

@ -1283,7 +1283,7 @@ print_exp (pretty_printer *pp, const_rtx x, int verbose)
op[1] = XEXP (x, 1);
break;
case NOT:
st[0] = "!";
st[0] = "~";
op[0] = XEXP (x, 0);
break;
case AND: