gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR dumping.
authorRichard Biener <rguenther@suse.de>
Wed, 3 Jul 2019 11:01:01 +0000 (11:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 3 Jul 2019 11:01:01 +0000 (11:01 +0000)
2019-07-03  Richard Biener  <rguenther@suse.de>

* gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
dumping.

From-SVN: r273001

gcc/ChangeLog
gcc/gimple-pretty-print.c

index 68eb338e7fa9d0214718b77664757a7ba6dca241..77d1f608b1fcc24724765ad47bedf1aed3fa9aaf 100644 (file)
@@ -1,3 +1,8 @@
+2019-07-03  Richard Biener  <rguenther@suse.de>
+
+       * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
+       dumping.
+
 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
 
        * config/aarch64/aarch64.md (FP_REGNUM): New constant.
index 0ccbd6c6352793a9179b70c03dfaf010546759be..45e7260e072c69af5d27a94319d244522cf034d2 100644 (file)
@@ -604,10 +604,14 @@ dump_ternary_rhs (pretty_printer *buffer, gassign *gs, int spc,
          pp_string (buffer, ", ");
          dump_generic_node (buffer, gimple_assign_rhs3 (gs),
                             spc, flags, false);
-         pp_string (buffer, " (");
          if (INTEGRAL_TYPE_P (TREE_TYPE (gimple_assign_rhs2 (gs))))
-           pp_decimal_int (buffer, TYPE_PRECISION
-                                     (TREE_TYPE (gimple_assign_rhs2 (gs))));
+           {
+             pp_string (buffer, " (");
+             pp_decimal_int (buffer, TYPE_PRECISION
+                             (TREE_TYPE (gimple_assign_rhs2 (gs))));
+             pp_string (buffer, " bits)");
+           }
+         pp_greater (buffer);
        }
       break;