Message ID | 20210225233908.97275-5-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
Series | small reorganization of OP_SLICE | expand |
On 25/02/2021 23:39, Luc Van Oostenryck wrote: > When displaying an OP_SLICE, the width is shown but the size > of the source pseudo is useful to. So display the it, like > done for unops. Hmm, s/useful to./useful too./, s/the it,/it/, s/like.*unops./in a similar manner to the unops./ ... if that makes sense! ;-) ie: When displaying an OP_SLICE, the width is shown but the size of the source pseudo is useful too. So, display it in a similar manner to the unops. ATB, Ramsay Jones > > Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> > --- > linearize.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linearize.c b/linearize.c > index 7ab69d3ac968..b06c062599ee 100644 > --- a/linearize.c > +++ b/linearize.c > @@ -470,7 +470,7 @@ const char *show_instruction(struct instruction *insn) > break; > > case OP_SLICE: > - buf += sprintf(buf, "%s <- %s, %d", show_pseudo(insn->target), show_pseudo(insn->src), insn->from); > + buf += sprintf(buf, "%s <- (%d) %s, %d", show_pseudo(insn->target), type_size(insn->orig_type), show_pseudo(insn->src), insn->from); > break; > > case OP_NOT: case OP_NEG: >
diff --git a/linearize.c b/linearize.c index 7ab69d3ac968..b06c062599ee 100644 --- a/linearize.c +++ b/linearize.c @@ -470,7 +470,7 @@ const char *show_instruction(struct instruction *insn) break; case OP_SLICE: - buf += sprintf(buf, "%s <- %s, %d", show_pseudo(insn->target), show_pseudo(insn->src), insn->from); + buf += sprintf(buf, "%s <- (%d) %s, %d", show_pseudo(insn->target), type_size(insn->orig_type), show_pseudo(insn->src), insn->from); break; case OP_NOT: case OP_NEG:
When displaying an OP_SLICE, the width is shown but the size of the source pseudo is useful to. So display the it, like done for unops. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- linearize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)