RISC-V: Print XTheadMemPair literal as "immediate"
authorTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 26 Sep 2022 10:47:53 +0000 (10:47 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Thu, 6 Oct 2022 02:23:31 +0000 (02:23 +0000)
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

index 9d7335655496c157eac502f2722c388b0d1eb6a0..27a6bfe2283793f8ba2e243a2b8953e225f46baa 100644 (file)
@@ -578,7 +578,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--;