* compile.c (sim_resume): Fix the handling of bxor.
authorKazu Hirata <kazu@codesourcery.com>
Sat, 1 Feb 2003 03:00:14 +0000 (03:00 +0000)
committerKazu Hirata <kazu@codesourcery.com>
Sat, 1 Feb 2003 03:00:14 +0000 (03:00 +0000)
sim/h8300/ChangeLog
sim/h8300/compile.c

index 227966e..62fd073 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-31  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * compile.c (sim_resume): Fix the handling of bxor.
+
 2003-01-16  Michael Snyder  <msnyder@redhat.com>
 
        * compile.c: Change K&R function definitions to ISO.
index e36a0ed..e845899 100644 (file)
@@ -1505,7 +1505,7 @@ sim_resume (SIM_DESC sd, int step, int siggnal)
          OBITOP (O_BIAND, 1, 0, c = !(ea & m) && C);
          OBITOP (O_BOR, 1, 0, c = (ea & m) || C);
          OBITOP (O_BIOR, 1, 0, c = !(ea & m) || C);
-         OBITOP (O_BXOR, 1, 0, c = (ea & m) != C);
+         OBITOP (O_BXOR, 1, 0, c = ((ea & m) != 0) != C);
          OBITOP (O_BIXOR, 1, 0, c = !(ea & m) != C);
 
 #define MOP(bsize, signed)                     \