[v2,4/5] opcodes/loongarch: do not print hex notation for signed immediates
Checks
Commit Message
From: WANG Xuerui <git@xen0n.name>
---
opcodes/loongarch-dis.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
@@ -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':