From 23461637db6c7add002112bca4c430e613522f88 Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Wed, 17 Jun 2020 01:15:40 -0700 Subject: rvv: commitlog: fix fractional lmul dump Signed-off-by: Chih-Min Chao --- riscv/execute.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'riscv/execute.cc') diff --git a/riscv/execute.cc b/riscv/execute.cc index e5513d8..7e89cd1 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -109,8 +109,8 @@ static void commit_log_print_insn(processor_t *p, reg_t pc, insn_t insn) if (!show_vec && (is_vreg || is_vec)) { fprintf(log_file, " e%ld %s%ld l%ld", p->VU.vsew, - p->VU.vflmul < 0 ? "mf" : "m", - p->VU.vflmul < 0 ? (reg_t)(1 / p->VU.vflmul) : (reg_t)p->VU.vflmul, + p->VU.vflmul < 1 ? "mf" : "m", + p->VU.vflmul < 1 ? (reg_t)(1 / p->VU.vflmul) : (reg_t)p->VU.vflmul, p->VU.vl); show_vec = true; } -- cgit v1.1