This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix a typo in the check for SNANs in the RX simulator.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7881f69ee902b06433f071fd8cbdee1b401c9b76

commit 7881f69ee902b06433f071fd8cbdee1b401c9b76
Author: Nick Clifton <nickc@redhat.com>
Date:   Wed Apr 27 12:37:11 2016 +0100

    Fix a typo in the check for SNANs in the RX simulator.
    
    	PR target/20000
    	* fpu.c (check_exceptions): Fix typo checking for signalling
    	NANs.

Diff:
---
 sim/rx/ChangeLog | 6 ++++++
 sim/rx/fpu.c     | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 7049d94..104578c 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,9 @@
+2016-04-27  Nick Clifton  <nickc@redhat.com>
+
+	PR target/20000
+	* fpu.c (check_exceptions): Fix typo checking for signalling
+	NANs.
+
 2016-01-10  Mike Frysinger  <vapier@gentoo.org>
 
 	* config.in, configure: Regenerate.
diff --git a/sim/rx/fpu.c b/sim/rx/fpu.c
index d3f4bdb..aa7fd2d 100644
--- a/sim/rx/fpu.c
+++ b/sim/rx/fpu.c
@@ -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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]