From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7896) id B9F5A384D156; Thu, 6 Oct 2022 03:35:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9F5A384D156 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tsukasa OI To: bfd-cvs@sourceware.org Subject: [binutils-gdb] RISC-V: Print XTheadMemPair literal as "immediate" X-Act-Checkin: binutils-gdb X-Git-Author: Tsukasa OI X-Git-Refname: refs/heads/master X-Git-Oldrev: 15543290129fde8b89b71f6e6494b88ca833c59c X-Git-Newrev: a13886e2198beb78b81c59839043b021ce6df78a Message-Id: <20221006033528.B9F5A384D156@sourceware.org> Date: Thu, 6 Oct 2022 03:35:28 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2022 03:35:28 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Da13886e2198b= eb78b81c59839043b021ce6df78a commit a13886e2198beb78b81c59839043b021ce6df78a Author: Tsukasa OI Date: Mon Sep 26 10:47:53 2022 +0000 RISC-V: Print XTheadMemPair literal as "immediate" =20 The operand type "Xl(...)" denotes that (...) is a literal. Specifical= ly, they are intended to be a constant immediate value. =20 This commit prints "Xl(...)" operand with dis_style_immediate style, not dis_style_text. =20 opcodes/ChangeLog: =20 * riscv-dis.c (print_insn_args): Use dis_style_immediate on the constant literal of the "Xl..." operand. Diff: --- 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 9d733565549..27a6bfe2283 100644 --- a/opcodes/riscv-dis.c +++ b/opcodes/riscv-dis.c @@ -578,7 +578,7 @@ print_insn_args (const char *oparg, insn_t l, bfd_vma p= c, disassemble_info *info oparg++; while (*oparg && *oparg !=3D ',') { - print (info->stream, dis_style_text, "%c", *oparg); + print (info->stream, dis_style_immediate, "%c", *oparg); oparg++; } oparg--;