projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cdad34
)
Fix a typo in the check for SNANs in the RX simulator.
author
Nick Clifton
<nickc@redhat.com>
Wed, 27 Apr 2016 11:37:11 +0000
(12:37 +0100)
committer
Nick Clifton
<nickc@redhat.com>
Wed, 27 Apr 2016 11:37:11 +0000
(12:37 +0100)
PR target/20000
* fpu.c (check_exceptions): Fix typo checking for signalling
NANs.
sim/rx/ChangeLog
patch
|
blob
|
history
sim/rx/fpu.c
patch
|
blob
|
history
diff --git
a/sim/rx/ChangeLog
b/sim/rx/ChangeLog
index 7049d948b7abf5141bc52c90cb742ff11cd13c85..104578cf3615f31204cccf060d20340c7859ab9f 100644
(file)
--- 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 d3f4bdbf6945edaa67c117cfdf06fafc783bd9b3..aa7fd2da051d7ed80e6576f16ea95561e8c144fe 100644
(file)
--- 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;