From: WANG Xuerui <i.swmail@xen0n.name>
To: binutils@sourceware.org
Cc: Chenghua Xu <xuchenghua@loongson.cn>,
Zhensong Liu <liuzhensong@loongson.cn>,
Xi Ruoyao <xry111@xry111.site>, WANG Xuerui <git@xen0n.name>
Subject: [PATCH v2 4/5] opcodes/loongarch: do not print hex notation for signed immediates
Date: Wed, 7 Dec 2022 21:31:54 +0800 [thread overview]
Message-ID: <20221207133155.3052074-5-i.swmail@xen0n.name> (raw)
In-Reply-To: <20221207133155.3052074-1-i.swmail@xen0n.name>
From: WANG Xuerui <git@xen0n.name>
---
opcodes/loongarch-dis.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/opcodes/loongarch-dis.c b/opcodes/loongarch-dis.c
index 7ee18e14dd2..164069b2ede 100644
--- a/opcodes/loongarch-dis.c
+++ b/opcodes/loongarch-dis.c
@@ -177,13 +177,7 @@ dis_one_arg (char esc1, char esc2, const char *bit_field,
style = dis_style_immediate;
break;
}
- if (imm == 0)
- info->fprintf_styled_func (info->stream, style, "%d", imm);
- else
- {
- info->fprintf_styled_func (info->stream, style, "%d", imm);
- info->fprintf_styled_func (info->stream, dis_style_text, "(0x%x)", u_imm);
- }
+ info->fprintf_styled_func (info->stream, style, "%d", imm);
switch (esc2)
{
case 'b':
--
2.38.1
next prev parent reply other threads:[~2022-12-07 13:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-07 13:31 [PATCH v2 0/5] LoongArch: colored disassembly and readability tweaks WANG Xuerui
2022-12-07 13:31 ` [PATCH v2 1/5] opcodes/loongarch: remove unused code WANG Xuerui
2022-12-07 13:31 ` [PATCH v2 2/5] opcodes/loongarch: implement style support in the disassembler WANG Xuerui
2022-12-07 13:31 ` [PATCH v2 3/5] opcodes/loongarch: style disassembled address offsets as such WANG Xuerui
2022-12-07 13:31 ` WANG Xuerui [this message]
2022-12-07 13:31 ` [PATCH v2 5/5] opcodes/loongarch: print unrecognized instruction words with .insn prefix WANG Xuerui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221207133155.3052074-5-i.swmail@xen0n.name \
--to=i.swmail@xen0n.name \
--cc=binutils@sourceware.org \
--cc=git@xen0n.name \
--cc=liuzhensong@loongson.cn \
--cc=xry111@xry111.site \
--cc=xuchenghua@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).