gdbarch-selftests.c: No longer error out if debugging something
[deliverable/binutils-gdb.git] / sim / rx / fpu.c
index 2597dc2274347b5792329e938a965b68cef62aa4..e2a9dd0754aa76116f65e2785dfb6b628ad8d975 100644 (file)
@@ -1,6 +1,6 @@
 /* fpu.c --- FPU emulator for stand-alone RX simulator.
 
-Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+Copyright (C) 2008-2020 Free Software Foundation, Inc.
 Contributed by Red Hat, Inc.
 
 This file is part of the GNU simulators.
@@ -433,7 +433,7 @@ check_exceptions (FP_Parts *a, FP_Parts *b, fp_t *c,
       FP_RAISE (V);
       if (a->type == FP_SNAN)
        *c = a->orig_value | 0x00400000;
-      else if  (a->type == FP_SNAN)
+      else if  (b->type == FP_SNAN)
        *c = b->orig_value | 0x00400000;
       else
        *c = 0x7fc00000;
This page took 0.023122 seconds and 4 git commands to generate.