]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make ex{f,t}* tests agree with book
authorMichael Meissner <gnu@the-meissners.org>
Mon, 9 Sep 1996 18:24:18 +0000 (18:24 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Mon, 9 Sep 1996 18:24:18 +0000 (18:24 +0000)
sim/d10v/ChangeLog
sim/d10v/simops.c

index 9703ca1166f2129d75767ca2745ab104c3a5e89a..69d6bd209f59663b3509cf1a052c1ae81396f34d 100644 (file)
@@ -3,6 +3,7 @@ Mon Sep  9 13:27:26 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
        * simops.c (trace_output): Properly align accumulator output.
        (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.
 
 Fri Sep  6 17:56:17 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
 
index 6b8329b38e3cac5ff010c4126eace5c05af9cb28..bb8b913bcffec4f2355c72e6360ce1f87571dac9 100644 (file)
@@ -880,7 +880,7 @@ void
 OP_4E04 ()
 {
   trace_input ("exef0f", OP_VOID, OP_VOID, OP_VOID);
-  State.exe = (State.F0) ? 0 : 1;
+  State.exe = (State.F0 == 0);
   trace_output (OP_FLAG);
 }
 
@@ -889,7 +889,7 @@ void
 OP_4E24 ()
 {
   trace_input ("exef0t", OP_VOID, OP_VOID, OP_VOID);
-  State.exe = State.F0;
+  State.exe = (State.F0 != 0);
   trace_output (OP_FLAG);
 }
 
@@ -898,7 +898,7 @@ void
 OP_4E40 ()
 {
   trace_input ("exef1f", OP_VOID, OP_VOID, OP_VOID);
-  State.exe = (State.F1) ? 0 : 1;
+  State.exe = (State.F1 == 0);
   trace_output (OP_FLAG);
 }
 
@@ -907,7 +907,7 @@ void
 OP_4E42 ()
 {
   trace_input ("exef1t", OP_VOID, OP_VOID, OP_VOID);
-  State.exe = State.F1;
+  State.exe = (State.F1 != 0);
   trace_output (OP_FLAG);
 }
 
@@ -916,7 +916,7 @@ void
 OP_4E00 ()
 {
   trace_input ("exefaf", OP_VOID, OP_VOID, OP_VOID);
-  State.exe = (State.F0 | State.F1) ? 0 : 1;
+  State.exe = (State.F0 == 0) & (State.F1 == 0);
   trace_output (OP_FLAG);
 }
 
@@ -925,7 +925,7 @@ void
 OP_4E02 ()
 {
   trace_input ("exefat", OP_VOID, OP_VOID, OP_VOID);
-  State.exe = (State.F0) ? 0 : (State.F1); 
+  State.exe = (State.F0 == 0) & (State.F1 != 0);
   trace_output (OP_FLAG);
 }
 
@@ -934,7 +934,7 @@ void
 OP_4E20 ()
 {
   trace_input ("exetaf", OP_VOID, OP_VOID, OP_VOID);
-  State.exe = (State.F1) ? 0 : (State.F0);
+  State.exe = (State.F0 != 0) & (State.F1 == 0);
   trace_output (OP_FLAG);
 }
 
@@ -943,7 +943,7 @@ void
 OP_4E22 ()
 {
   trace_input ("exetat", OP_VOID, OP_VOID, OP_VOID);
-  State.exe = (State.F0) ? (State.F1) : 0;
+  State.exe = (State.F0 != 0) & (State.F1 != 0);
   trace_output (OP_FLAG);
 }