print-rtl: NOT is ~, not !
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 7 Aug 2017 10:21:32 +0000 (12:21 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 7 Aug 2017 10:21:32 +0000 (12:21 +0200)
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

gcc/ChangeLog
gcc/print-rtl.c

index 8fbb8c4..1b6c5ff 100644 (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
index dc8d980..79ec463 100644 (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: