[ARC] Enhance enter/leave mnemonics.
[deliverable/binutils-gdb.git] / opcodes / arc-dis.c
index 4beca689c397c42ee33c13da3024927d13f3b7d3..6fb030e5dbe031d840250f2650c7f5a71349351b 100644 (file)
@@ -1208,9 +1208,22 @@ print_insn_arc (bfd_vma memaddr,
          if (operand->flags & ARC_OPERAND_TRUNCATE
              && !(operand->flags & ARC_OPERAND_ALIGNED32)
              && !(operand->flags & ARC_OPERAND_ALIGNED16)
-             && value > 0 && value <= 14)
-           (*info->fprintf_func) (info->stream, "r13-%s",
-                                  regnames[13 + value - 1]);
+             && value >= 0 && value <= 14)
+           {
+             switch (value)
+               {
+               case 0:
+                 need_comma = FALSE;
+                 break;
+               case 1:
+                 (*info->fprintf_func) (info->stream, "r13");
+                 break;
+               default:
+                 (*info->fprintf_func) (info->stream, "r13-%s",
+                                        regnames[13 + value - 1]);
+                 break;
+               }
+           }
          else
            {
              const char *rname = get_auxreg (opcode, value, isa_mask);
This page took 0.027395 seconds and 4 git commands to generate.