Patchwork : Handle STRICT_LOW_PART in slim RTL dumps

login
register
mail settings
Submitter Uros Bizjak
Date Nov. 3, 2011, 8:39 p.m.
Message ID <CAFULd4ZA8qyLJdMeT8qX8SW=N3Ntv0rSRaUdmbRgiHpAw0okbw@mail.gmail.com>
Download mbox | patch
Permalink /patch/123506/
State New
Headers show

Comments

Uros Bizjak - Nov. 3, 2011, 8:39 p.m.
Hello!

Currently slim RTL dump prints STRICT_LOW_PART as:

   48 strict_low_part=flags:CCZ!=0

Attached patch fixes these dumps to print:

   48 strict_low_part(ax:QI)=flags:CCZ!=0

2011-11-03  Uros Bizjak  <ubizjak@gmail.com>

	* sched-vis.c (print_value): Handle STRICT_LOW_PART.

Tested on x86_64-pc-linux-gnu by dumping a couple of long compiles.

OK for mainline?

Uros.
Richard Henderson - Nov. 3, 2011, 8:47 p.m.
On 11/03/2011 01:39 PM, Uros Bizjak wrote:
> 2011-11-03  Uros Bizjak  <ubizjak@gmail.com>
> 
> 	* sched-vis.c (print_value): Handle STRICT_LOW_PART.

Ok.


r~

Patch

Index: sched-vis.c
===================================================================
--- sched-vis.c	(revision 180840)
+++ sched-vis.c	(working copy)
@@ -511,6 +511,12 @@ 
       sprintf (t, "#%d", SUBREG_BYTE (x));
       cur = safe_concat (buf, cur, t);
       break;
+    case STRICT_LOW_PART:
+      print_value (t, XEXP (x, 0), verbose);
+      cur = safe_concat (buf, cur, "strict_low_part(");
+      cur = safe_concat (buf, cur, t);
+      cur = safe_concat (buf, cur, ")");
+      break;
     case SCRATCH:
       cur = safe_concat (buf, cur, "scratch");
       break;