]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Correct tracing of cpfg
authorMichael Meissner <gnu@the-meissners.org>
Mon, 9 Sep 1996 20:10:31 +0000 (20:10 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Mon, 9 Sep 1996 20:10:31 +0000 (20:10 +0000)
sim/d10v/ChangeLog
sim/d10v/simops.c

index 69d6bd209f59663b3509cf1a052c1ae81396f34d..6ca3da73c990c3c0b9a0d068799ebbbfc20720cc 100644 (file)
@@ -4,6 +4,9 @@ Mon Sep  9 13:27:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
        (OP_3{0,2,4}00): Properly parenthesize test expression.  Add error
        if shift count is too high.
        (OP_4E{00,02,04,20,22,40,42}): Make tests agree with book.
+       (OP_4E09): Make cpfg properly trace the input flags.
+       (op_types): Add OP_FLAG_OUTPUT.
+       (trace_{input,output}): Support OP_FLAG_OUTPUT.
 
 Fri Sep  6 17:56:17 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
 
index bb8b913bcffec4f2355c72e6360ce1f87571dac9..8618b4f6f48188a16abcf1163e1b3dad3be6951f 100644 (file)
@@ -21,6 +21,7 @@ enum op_types {
   OP_CR_OUTPUT,
   OP_CR_REVERSE,
   OP_FLAG,
+  OP_FLAG_OUTPUT,
   OP_CONSTANT16,
   OP_CONSTANT3,
   OP_CONSTANT4,
@@ -171,6 +172,7 @@ trace_input (name, in1, in2, in3)
          break;
 
        case OP_FLAG:
+       case OP_FLAG_OUTPUT:
          if (OP[i] == 0)
            sprintf (p, "%sf0", comma);
 
@@ -178,7 +180,7 @@ trace_input (name, in1, in2, in3)
            sprintf (p, "%sf1", comma);
 
          else
-           sprintf (p, "%scarry", comma);
+           sprintf (p, "%sc", comma);
 
          p += strlen (p);
          comma = ",";
@@ -211,6 +213,7 @@ trace_input (name, in1, in2, in3)
            case OP_DREG_OUTPUT:
            case OP_CR_OUTPUT:
            case OP_ACCUM_OUTPUT:
+           case OP_FLAG_OUTPUT:
              (*d10v_callback->printf_filtered) (d10v_callback, "%*s", SIZE_VALUES, "---");
              break;
 
@@ -339,6 +342,7 @@ trace_output (result)
          break;
 
        case OP_FLAG:
+       case OP_FLAG_OUTPUT:
          (*d10v_callback->printf_filtered) (d10v_callback, " :: %*s F0=%d F1=%d C=%d\n", SIZE_VALUES, "",
                                             State.F0 != 0, State.F1 != 0, State.C != 0);
          break;
@@ -835,7 +839,7 @@ OP_4E09 ()
 {
   uint8 *src, *dst;
   
-  trace_input ("cpfg", OP_FLAG, OP_VOID, OP_VOID);
+  trace_input ("cpfg", OP_FLAG_OUTPUT, OP_FLAG, OP_VOID);
   if (OP[0] == 0)
     dst = &State.F0;
   else