aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-02-26 00:19:52 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-02-28 22:41:40 +0100
commitb2cbc0ff13976e13d5ad62779440526bc5fa5616 (patch)
tree07af80785a2cc7c0f8e11aa2a628e1f0045b2d48
parent04c02822a0750e3eb8ef2487e2407b3aa0b66245 (diff)
downloadsparse-b2cbc0ff13976e13d5ad62779440526bc5fa5616.tar.gz
slice: display the source's size, like for unops
When displaying an OP_SLICE, the width is shown but the size of the source pseudo is useful too. So, display this size in a similar manner to the unops. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--linearize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linearize.c b/linearize.c
index 7ab69d3a..b06c0625 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: