From b2cbc0ff13976e13d5ad62779440526bc5fa5616 Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Fri, 26 Feb 2021 00:19:52 +0100 Subject: 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 --- linearize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit 1.2.3-korg