diff options
author | Michael Meissner <gnu@the-meissners.org> | 1996-09-09 18:24:18 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1996-09-09 18:24:18 +0000 |
commit | 293c76a376ee3ff1a6266daa3797a402f45e6e13 (patch) | |
tree | 2a22a77d80a9cf7f15fb3fbf235c62a7729174f0 /sim/d10v/simops.c | |
parent | 629f776abf30a7148799b3c07fa3b0516daa0083 (diff) | |
download | gdb-293c76a376ee3ff1a6266daa3797a402f45e6e13.zip gdb-293c76a376ee3ff1a6266daa3797a402f45e6e13.tar.gz gdb-293c76a376ee3ff1a6266daa3797a402f45e6e13.tar.bz2 |
Make ex{f,t}* tests agree with book
Diffstat (limited to 'sim/d10v/simops.c')
-rw-r--r-- | sim/d10v/simops.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sim/d10v/simops.c b/sim/d10v/simops.c index 6b8329b..bb8b913 100644 --- a/sim/d10v/simops.c +++ b/sim/d10v/simops.c @@ -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); } |