From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by sourceware.org (Postfix) with ESMTPS id 2F1B938369E8 for ; Wed, 7 Dec 2022 13:32:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2F1B938369E8 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=xen0n.name Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xen0n.name DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1670419927; bh=tUJBge8n0JB5TdIYq1S4S+0EZCosWd5ZECyRUQQe2/I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OGkrSUXKzg83vABZKuqFkP7ZESeOyOtgEeEFFd26yXgwM/RZAahQvaAyY5QdWcQLZ aCDjDII7Dmz5g1QnnU9rF5cSUmD0PI9qLIMx1gduEdEwRcYnTeGxtj0GgIR940p2Pw LdUITvkBit9aGLmkRdjUtTgptw+tc1VvOCDz5ub8= Received: from ld50.lan (unknown [101.88.134.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 7CC5E601A1; Wed, 7 Dec 2022 21:32:07 +0800 (CST) From: WANG Xuerui To: binutils@sourceware.org Cc: Chenghua Xu , Zhensong Liu , Xi Ruoyao , WANG Xuerui Subject: [PATCH v2 4/5] opcodes/loongarch: do not print hex notation for signed immediates Date: Wed, 7 Dec 2022 21:31:54 +0800 Message-Id: <20221207133155.3052074-5-i.swmail@xen0n.name> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221207133155.3052074-1-i.swmail@xen0n.name> References: <20221207133155.3052074-1-i.swmail@xen0n.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: WANG Xuerui --- 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