From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 4EE2E3851AA6 for ; Mon, 3 Oct 2022 10:45:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4EE2E3851AA6 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=irq.a4lg.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=irq.a4lg.com Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 97271300089; Mon, 3 Oct 2022 10:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1664793933; bh=+wQ5M7xBeDVkp4hjFx9bOcDf/pLEQwTqN4LaSEWD+XE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Mime-Version:Content-Transfer-Encoding; b=PRXBphKPQ54K/7IlLqrkGrGDWuzXiPgeI8AI5d7W0hnanYHgK0uIOLpcXoiNeu1OB y7AhpSTw7GW4HQj7sTQYV30hvYaSznFMrUFM+H7Hh7+gHixail6gA6NT/VTESYrQKt 9RMoTiW9CCccqm4mfP4gNFnMDIMqYpy8AwO5aHsg= From: Tsukasa OI To: Tsukasa OI , =?UTF-8?q?Christoph=20M=C3=BCllner?= , Nelson Chu , Kito Cheng , Palmer Dabbelt , Andrew Burgess Cc: binutils@sourceware.org Subject: [PATCH v3 6/6] RISC-V: Print XTheadMemPair literal as "immediate" Date: Mon, 3 Oct 2022 10:44:04 +0000 Message-Id: <0b68af932117258c908db62cf87c3a15d3cdec41.1664793840.git.research_trasio@irq.a4lg.com> In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,GIT_PATCH_0,KAM_MANYTO,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: The operand type "Xl(...)" denotes that (...) is a literal. Specifically, they are intended to be a constant immediate value. This commit prints "Xl(...)" operand with dis_style_immediate style, not dis_style_text. opcodes/ChangeLog: * riscv-dis.c (print_insn_args): Use dis_style_immediate on the constant literal of the "Xl..." operand. --- opcodes/riscv-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c index c0edc4c7d6b..7da96e15b65 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -577,7 +577,7 @@ print_insn_args (const char *oparg, insn_t l, bfd_vma pc, disassemble_info *info oparg++; while (*oparg && *oparg != ',') { - print (info->stream, dis_style_text, "%c", *oparg); + print (info->stream, dis_style_immediate, "%c", *oparg); oparg++; } oparg--; -- 2.34.1