Signed-off-by: Tomek Grabiec <[email protected]>
---
arch/x86/lir-printer.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/arch/x86/lir-printer.c b/arch/x86/lir-printer.c
index 2dc2cc5..7f5558d 100644
--- a/arch/x86/lir-printer.c
+++ b/arch/x86/lir-printer.c
@@ -53,7 +53,13 @@ static inline int print_imm(struct string *str, struct
operand *op)
static inline int print_reg(struct string *str, struct operand *op)
{
- return str_append(str, "r%lu", op->reg.interval->var_info->vreg);
+ struct live_interval *interval = op->reg.interval;
+
+ if (interval->fixed_reg)
+ return str_append(str, "r%lu=%s", interval->var_info->vreg,
+ reg_name(interval->reg));
+ else
+ return str_append(str, "r%lu", interval->var_info->vreg);
}
static inline int print_membase(struct string *str, struct operand *op)
--
1.6.0.6
------------------------------------------------------------------------------
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel